]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/edp: eDP Data Overrride
authorSuraj Kandpal <suraj.kandpal@intel.com>
Thu, 21 Aug 2025 04:26:53 +0000 (09:56 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Mon, 25 Aug 2025 04:36:47 +0000 (10:06 +0530)
commit2dbb3d70af6003dbf3c248cc01e36d7df142543a
tree7afc78d2855a7b1867ebbccaf661a3e562aee98f
parent835a0d544defa05d2425496d16d006b147df5bde
drm/i915/edp: eDP Data Overrride

We need override certain link rates in favour of the next available
higher link rate. The Link rates that need to be overridden are
indicated by a mask in VBT. To make sure these modes are skipped we
don't add them in them in the sink rates array.

--v2
-Update the link rates after we have a final set of link rates [Ankit]
-Break this patch up [Ankit]
-Optimize the assingment during loop [Ankit]

--v3
-Add protection against broken VBTs [Jani]

--v4
-Fix build errors
-Create a seprate function to check if edp data override is selected
and using the correct vbt

--v5
-Use correct number to check the num of edp rates [Ankit]

--v6
-No seprate function check if vbt is broken in the reject rate function
[Jani]

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Link: https://lore.kernel.org/r/20250821042653.269227-4-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_dp.c