[PATCH 4/4] drm/i915: dump mcr steer val at suspend resume
Nirmoy Das
nirmoy.das at intel.com
Wed Sep 27 18:55:42 UTC 2023
Signed-off-by: Nirmoy Das <nirmoy.das at intel.com>
---
drivers/gpu/drm/i915/i915_driver.c | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/drivers/gpu/drm/i915/i915_driver.c b/drivers/gpu/drm/i915/i915_driver.c
index d50347e5773a..97b3cd0e8585 100644
--- a/drivers/gpu/drm/i915/i915_driver.c
+++ b/drivers/gpu/drm/i915/i915_driver.c
@@ -72,6 +72,7 @@
#include "gt/intel_gt.h"
#include "gt/intel_gt_pm.h"
#include "gt/intel_rc6.h"
+#include "gt/intel_gt_regs.h"
#include "pxp/intel_pxp.h"
#include "pxp/intel_pxp_debugfs.h"
@@ -1148,6 +1149,15 @@ static int i915_drm_suspend_late(struct drm_device *dev, bool hibernation)
goto out;
}
+ for_each_gt(gt, dev_priv, i) {
+ u32 val;
+
+ val = intel_uncore_read_fw(gt->uncore, MTL_STEER_SEMAPHORE);
+ if (val)
+ intel_uncore_write_fw(gt->uncore, MTL_STEER_SEMAPHORE, 1);
+ printk("%s %s steer %u\n", __func__, gt->name, val);
+ }
+
pci_disable_device(pdev);
/*
* During hibernation on some platforms the BIOS may try to access
@@ -1302,6 +1312,15 @@ static int i915_drm_resume_early(struct drm_device *dev)
return ret;
}
+ for_each_gt(gt, dev_priv, i) {
+ u32 val;
+
+ val = intel_uncore_read_fw(gt->uncore, MTL_STEER_SEMAPHORE);
+ if (val)
+ intel_uncore_write_fw(gt->uncore, MTL_STEER_SEMAPHORE, 1);
+ printk("%s %s steer %u\n", __func__, gt->name, val);
+ }
+
/*
* Note that pci_enable_device() first enables any parent bridge
* device and only then sets the power state for this device. The
--
2.41.0
More information about the Intel-gfx-trybot
mailing list