[PATCH 079/108] drm/i915/dp_link_caps: Compare internal config entries during table matching

Imre Deak
2026-04-28T12:55:28Z

Include the packed configuration entries when comparing two link
configuration tables, so that any change in them can be detected.

Signed-off-by: Imre Deak <imre.deak@intel.com>
---
drivers/gpu/drm/i915/display/intel_dp_link_caps.c | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/intel_dp_link_caps.c b/drivers/gpu/drm/i915/display/intel_dp_link_caps.c
index 65358ec34d44b..a6390ed024940 100644
--- a/drivers/gpu/drm/i915/display/intel_dp_link_caps.c
+++ b/drivers/gpu/drm/i915/display/intel_dp_link_caps.c
@@ -762,10 +762,17 @@ static bool config_tables_match(const struct intel_dp_link_caps_config_table *ta
if (table_a->max_lane_count != table_b->max_lane_count)
return false;

+ if (table_a->num_configs != table_b->num_configs)
+ return false;
+
if (memcmp(table_a->rates, table_b->rates,
table_a->num_rates * sizeof(table_a->rates[0])))
return false;

+ if (memcmp(table_a->configs, table_b->configs,
+ table_a->num_configs * sizeof(table_a->configs[0])))
+ return false;
+
return true;
}

--
2.49.1