[PATCH i-g-t 1/1] tests/i915/i915_suspend : Debug patch to dump pci d state for root port
Riana Tauro
riana.tauro at intel.com
Mon Aug 29 04:47:38 UTC 2022
Debug patch to dump pci d state for root port
Signed-off-by: Riana Tauro <riana.tauro at intel.com>
---
tests/i915/i915_suspend.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/tests/i915/i915_suspend.c b/tests/i915/i915_suspend.c
index 94935595..2ac71db7 100644
--- a/tests/i915/i915_suspend.c
+++ b/tests/i915/i915_suspend.c
@@ -206,13 +206,25 @@ test_forcewake(int fd, bool hibernate)
static void
test_suspend_without_i915(int state)
{
+ struct pci_device *root;
+ int d_state, fd;
+
igt_kmsg(KMSG_INFO "Unloading i915\n");
igt_assert_eq(igt_i915_driver_unload(),0);
+ fd = drm_open_driver(DRIVER_INTEL);
+ root = igt_device_get_pci_root_port(fd);
+
igt_system_suspend_autoresume(state, SUSPEND_TEST_NONE);
+ d_state = igt_pm_get_acpi_real_d_state(root);
+ igt_kmsg(KMSG_INFO "D State %d pci - %04x:%02x:%02x.%01x\n",
+ d_state, root->domain, root->bus, root->dev, root->func);
+
igt_kmsg(KMSG_INFO "Re-loading i915 \n");
igt_assert_eq(igt_i915_driver_load(NULL), 0);
+
+ close(fd);
}
int fd;
--
2.25.1
More information about the Intel-gfx-trybot
mailing list