]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/xe: add some debug info for d3cold
authorMatthew Auld <matthew.auld@intel.com>
Mon, 4 Dec 2023 10:51:27 +0000 (10:51 +0000)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:45:12 +0000 (11:45 -0500)
From the CI logs we want to easily know if the machine is capable and
allowed to enter d3cold, and can therefore potentially trigger the
d3cold RPM suspend and resume path.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Anshuman Gupta <anshuman.gupta@intel.com>
Cc: Riana Tauro <riana.tauro@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_pci.c
drivers/gpu/drm/xe/xe_pm.c

index b2e87746e8d87946d151ffac59f2a3e434c5168d..b85193d1dcc23a7b8d3447b4e1449491c1afff46 100644 (file)
@@ -778,6 +778,9 @@ static int xe_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 
        xe_pm_init(xe);
 
+       drm_dbg(&xe->drm, "d3cold: capable=%s\n",
+               str_yes_no(xe->d3cold.capable));
+
        return 0;
 }
 
index e31a91cf311c4fd57e82c2fbaaff9ff558ad95e7..b429c2876a76405e76f10f21e832adf8df929b9b 100644 (file)
@@ -399,4 +399,7 @@ void xe_pm_d3cold_allowed_toggle(struct xe_device *xe)
                xe->d3cold.allowed = false;
 
        mutex_unlock(&xe->d3cold.lock);
+
+       drm_dbg(&xe->drm,
+               "d3cold: allowed=%s\n", str_yes_no(xe->d3cold.allowed));
 }