]> Git Repo - linux.git/commit
drm/i915/dp: Track source OUI validity explicitly
authorImre Deak <[email protected]>
Fri, 25 Oct 2024 16:02:55 +0000 (19:02 +0300)
committerImre Deak <[email protected]>
Thu, 31 Oct 2024 16:10:11 +0000 (18:10 +0200)
commitc8081b2a8ac5aba91d75bc0ed0a442cbe568b36c
treed7f6040469f963c0ac5fbadcabfef2f55d8d3b7d
parent5861258c4e6a829a10200b41ba3fb4d7d1a4054f
drm/i915/dp: Track source OUI validity explicitly

While updating the source OUI on the sink the driver should avoid
writing the OUI if it's already up-to-date to prevent the sink from
resetting itself in response to the update. On eDP - the only output
type where the OUI was updated so far - the driver ensured this by
comparing the current source OUI DPCD register values with the expected
Intel OUI value, skipping the update in case of a match. On some non-eDP
sinks - at least on Synaptics branch devices - this method doesn't work,
since the source OUI DPCD registers read back as all 0, even after
updating the registers.

Handle the above kind of sinks by tracking when the OUI was updated and
so should be valid, regardless of what the DPCD registers contain.

eDP sinks reset the written source OUI value when the panel power is
disabled, invalidate the OUI state accordingly.

This is required by a follow-up patch updating the source OUI for
non-eDP sink types as well.

v2: Fix setting intel_dp::oui_valid=true, if the DPCD register contains
    already the expected value.

Reviewed-by: Ville Syrjälä <[email protected]>
Signed-off-by: Imre Deak <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/display/g4x_dp.c
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_dp.h
drivers/gpu/drm/i915/display/intel_pps.c
This page took 0.055987 seconds and 4 git commands to generate.