This is a note to let you know that I've just added the patch titled

    drm/amd/amdgpu: disable ASPM in some situations

to the 6.12-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-amd-amdgpu-disable-aspm-in-some-situations.patch
and it can be found in the queue-6.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From [email protected] Wed Apr  1 02:42:32 
>2026
From: Rosen Penev <[email protected]>
Date: Tue, 31 Mar 2026 17:39:00 -0700
Subject: drm/amd/amdgpu: disable ASPM in some situations
To: [email protected]
Cc: "Alex Deucher" <[email protected]>, "Christian König" 
<[email protected]>, "Xinhui Pan" <[email protected]>, "David Airlie" 
<[email protected]>, "Simona Vetter" <[email protected]>, "Harry Wentland" 
<[email protected]>, "Leo Li" <[email protected]>, "Rodrigo Siqueira" 
<[email protected]>, "Ray Wu" <[email protected]>, "Wayne Lin" 
<[email protected]>, "Mario Limonciello" <[email protected]>, "Roman 
Li" <[email protected]>, "Eric Yang" <[email protected]>, "Tony Cheng" 
<[email protected]>, "Mauro Rossi" <[email protected]>, "Timur Kristóf" 
<[email protected]>, "Alex Hung" <[email protected]>, 
[email protected] (open list:RADEON and AMDGPU DRM DRIVERS), 
[email protected] (open list:DRM DRIVERS), 
[email protected] (open list)
Message-ID: <[email protected]>

From: Kenneth Feng <[email protected]>

[ Upstream commit c770ef19673fb1defcbde2ee2b91c3c89bfcf164 ]

disable ASPM with some ASICs on some specific platforms.
required from PCIe controller owner.

Signed-off-by: Kenneth Feng <[email protected]>
Reviewed-by: Yang Wang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Signed-off-by: Rosen Penev <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c |   32 +++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -84,6 +84,7 @@
 
 #if IS_ENABLED(CONFIG_X86)
 #include <asm/intel-family.h>
+#include <asm/cpu_device_id.h>
 #endif
 
 MODULE_FIRMWARE("amdgpu/vega10_gpu_info.bin");
@@ -1758,6 +1759,35 @@ static bool amdgpu_device_pcie_dynamic_s
        return true;
 }
 
+static bool amdgpu_device_aspm_support_quirk(struct amdgpu_device *adev)
+{
+#if IS_ENABLED(CONFIG_X86)
+       struct cpuinfo_x86 *c = &cpu_data(0);
+
+       if (!(amdgpu_ip_version(adev, GC_HWIP, 0) == IP_VERSION(12, 0, 0) ||
+                 amdgpu_ip_version(adev, GC_HWIP, 0) == IP_VERSION(12, 0, 1)))
+               return false;
+
+       if (c->x86 == 6 &&
+               adev->pm.pcie_gen_mask & CAIL_PCIE_LINK_SPEED_SUPPORT_GEN5) {
+               switch (c->x86_model) {
+               case VFM_MODEL(INTEL_ALDERLAKE):
+               case VFM_MODEL(INTEL_ALDERLAKE_L):
+               case VFM_MODEL(INTEL_RAPTORLAKE):
+               case VFM_MODEL(INTEL_RAPTORLAKE_P):
+               case VFM_MODEL(INTEL_RAPTORLAKE_S):
+                       return true;
+               default:
+                       return false;
+               }
+       } else {
+               return false;
+       }
+#else
+       return false;
+#endif
+}
+
 /**
  * amdgpu_device_should_use_aspm - check if the device should program ASPM
  *
@@ -1782,6 +1812,8 @@ bool amdgpu_device_should_use_aspm(struc
        }
        if (adev->flags & AMD_IS_APU)
                return false;
+       if (amdgpu_device_aspm_support_quirk(adev))
+               return false;
        return pcie_aspm_enabled(adev->pdev);
 }
 


Patches currently in stable-queue which might be from [email protected] are

queue-6.12/drm-amd-amdgpu-decouple-aspm-with-pcie-dpm.patch
queue-6.12/drm-amd-display-reject-modes-with-too-high-pixel-clock-on-dce6-10.patch
queue-6.12/drm-amd-display-fix-dce-6.0-and-6.4-pll-programming.patch
queue-6.12/drm-amd-display-disable-scaling-on-dce6-for-now.patch
queue-6.12/drm-amd-display-disable-fastboot-on-dce-6-too.patch
queue-6.12/drm-amd-display-correct-logic-check-error-for-fastboot.patch
queue-6.12/drm-amd-amdgpu-disable-aspm-in-some-situations.patch
queue-6.12/drm-amd-display-keep-pll0-running-on-dce-6.0-and-6.4.patch
queue-6.12/drm-amd-display-adjust-dce-8-10-clock-don-t-overclock-by-15.patch
queue-6.12/drm-amd-disable-aspm-on-si.patch

Reply via email to