]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/display/vrr: Reset VRR capable property on a long hpd
authorManasi Navare <manasi.d.navare@intel.com>
Tue, 15 Feb 2022 20:26:01 +0000 (12:26 -0800)
committerManasi Navare <manasi.d.navare@intel.com>
Tue, 22 Feb 2022 19:58:10 +0000 (11:58 -0800)
commit144eb8abe1d5b61480aa875796b6bfd407b1850e
tree6504275acf83559e274c7aceae2499c5d29c9ba8
parent2f380e721c627926f84da38f0d798b5e0e7ac087
drm/i915/display/vrr: Reset VRR capable property on a long hpd

With some VRR panels, user can turn VRR ON/OFF on the fly from the panel settings.
When VRR is turned OFF ,sends a long HPD to the driver clearing the Ignore MSA bit
in the DPCD. Currently the driver parses that onevery HPD but fails to reset
the corresponding VRR Capable Connector property.
Hence the userspace still sees this as VRR Capable panel which is incorrect.

Fix this by explicitly resetting the connector property.

v2: Reset vrr capable if status == connector_disconnected
v3: Use i915 and use bool vrr_capable (Jani Nikula)
v4: Move vrr_capable to after update modes call (Jani N)
Remove the redundant comment (Jan N)

Cc: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220215202601.22943-1-manasi.d.navare@intel.com
drivers/gpu/drm/i915/display/intel_dp.c