From: Badal Nilawar Date: Thu, 27 Mar 2025 16:19:14 +0000 (+0530) Subject: drm/xe/d3cold: Set power state to D3Cold during s2idle/s3 X-Git-Tag: v6.16-rc1~144^2~18^2~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f945dd89fa8da3f662508165453dafdb4035d9d3;p=thirdparty%2Flinux.git drm/xe/d3cold: Set power state to D3Cold during s2idle/s3 According to pci core guidelines, pci_save_config is recommended when the driver explicitly needs to set the pci power state. As of now xe kmd is only doing pci_save_config while entering to s2idle/s3 state, which makes pci core think that device driver has already applied required pci power state. This leads to GPU remain in D0 state. To fix the issue setting the pci power state to D3Cold. Fixes:dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs") Cc: Rafael J. Wysocki Cc: Rodrigo Vivi Signed-off-by: Badal Nilawar Signed-off-by: Anshuman Gupta Reviewed-by: Rodrigo Vivi Link: https://lore.kernel.org/r/20250327161914.432552-1-badal.nilawar@intel.com Signed-off-by: Rodrigo Vivi --- diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c index 88138a3fcf506..58347fa918415 100644 --- a/drivers/gpu/drm/xe/xe_pci.c +++ b/drivers/gpu/drm/xe/xe_pci.c @@ -924,6 +924,7 @@ static int xe_pci_suspend(struct device *dev) pci_save_state(pdev); pci_disable_device(pdev); + pci_set_power_state(pdev, PCI_D3cold); return 0; }