[PATCH 9/9] HACK for trybot: compare old and new display steppings

Jani Nikula jani.nikula at intel.com
Wed Aug 21 10:00:58 UTC 2024


Before removing the old code, check that the new display stepping
identification matches.

Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
 drivers/gpu/drm/i915/intel_step.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_step.c b/drivers/gpu/drm/i915/intel_step.c
index 80464e4edcce..81bf2875bca7 100644
--- a/drivers/gpu/drm/i915/intel_step.c
+++ b/drivers/gpu/drm/i915/intel_step.c
@@ -166,6 +166,9 @@ void intel_step_init(struct drm_i915_private *i915)
 
 		RUNTIME_INFO(i915)->step = step;
 
+		drm_WARN_ON(&i915->drm, RUNTIME_INFO(i915)->step.display_step !=
+			    DISPLAY_RUNTIME_INFO(i915)->step);
+
 		return;
 	}
 
@@ -260,6 +263,9 @@ void intel_step_init(struct drm_i915_private *i915)
 		return;
 
 	RUNTIME_INFO(i915)->step = step;
+
+	drm_WARN_ON(&i915->drm, RUNTIME_INFO(i915)->step.display_step !=
+		    DISPLAY_RUNTIME_INFO(i915)->step);
 }
 
 #define STEP_NAME_CASE(name)	\
-- 
2.39.2



More information about the Intel-gfx-trybot mailing list