[PATCH 2/2] drm/xe: Ensure d3cold is only allowed in DGFX

Rodrigo Vivi rodrigo.vivi at intel.com
Mon Jun 3 21:52:18 UTC 2024


For our integrated parts, the GPU is part of the CPU package,
hence removing the power at the root port is likely not possible.

Let's add this extra layer of protection to ensure that we are
really not seeing d3cold atempts into integrated devices.

Cc: Paulo Zanoni <paulo.r.zanoni at intel.com>
Cc: Anshuman Gupta <anshuman.gupta at intel.com>
Cc: Francois Dugast <francois.dugast at intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
---
 drivers/gpu/drm/xe/xe_pm.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_pm.c b/drivers/gpu/drm/xe/xe_pm.c
index de3b5df65e48..1facb7dd8b66 100644
--- a/drivers/gpu/drm/xe/xe_pm.c
+++ b/drivers/gpu/drm/xe/xe_pm.c
@@ -172,6 +172,9 @@ static bool xe_pm_pci_d3cold_capable(struct xe_device *xe)
 	struct pci_dev *pdev = to_pci_dev(xe->drm.dev);
 	struct pci_dev *root_pdev;
 
+	if (!IS_DGFX(xe))
+		return false;
+
 	root_pdev = pcie_find_root_port(pdev);
 	if (!root_pdev)
 		return false;
-- 
2.45.1



More information about the Intel-xe mailing list