drm/amdgpu: disable ASPM on Intel Alder Lake based systems
Subsystems (2)
PATCH v4 1/1 drm/amdgpu: disable ASPM on Intel Alder Lake based systems
Active State Power Management (ASPM) feature is enabled since kernel 5.14. There are some AMD GFX cards (such as WX3200 and RX640) that won't work with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as video/display output, Intel Alder Lake based systems will hang during suspend/resume.
The issue was initially reported on one system (Dell Precision 3660 with BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder Lake based systems.
Add extra check to disable ASPM on Intel Alder Lake based systems.
---
v4: s/CONFIG_X86_64/CONFIG_X86
enhanced check logic
v3: s/intel_core_asom_chk/aspm_support_quirk_check
correct build error with W=1 option
v2: correct commit description
move the check from chip family to problematic platform
--- drivers/gpu/drm/amd/amdgpu/vi.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/vi.c +16 -1
@@ -81,6 +81,10 @@#include "mxgpu_vi.h" #include "amdgpu_dm.h" +#if IS_ENABLED (CONFIG_X86 ) +#include <asm/intel-family.h> +#endif +#define ixPCIE_LC_L1_PM_SUBSTATE 0x100100C6#define PCIE_LC_L1_PM_SUBSTATE__LC_L1_SUBSTATES_OVERRIDE_EN_MASK 0x00000001L#define PCIE_LC_L1_PM_SUBSTATE__LC_PCI_PM_L1_2_OVERRIDE_MASK 0x00000002L
@@ -1134,13 +1138,24 @@ static void vi_enable_aspm(struct amdgpu_device *adev)WREG32_PCIE (ixPCIE_LC_CNTL, data); } +static bool aspm_support_quirk_check (void ) +{ +if (IS_ENABLED (CONFIG_X86 )) { +struct cpuinfo_x86 *c = &cpu_data (0 ); + +return !(c->x86 ==6 && c->x86_model ==INTEL_FAM6_ALDERLAKE ); + } + +return true; +} +static void vi_program_aspm (struct amdgpu_device *adev) {u32 data, data1, orig;bool bL1SS = false;bool bClkReqSupport = true; -if (!amdgpu_device_should_use_aspm (adev)) +if (!amdgpu_device_should_use_aspm (adev) || !aspm_support_quirk_check ())return ; if (adev->flags & AMD_IS_APU ||
Signature · 1 line
2.25.1
Quoted 10 lines · Richard Gong
Active State Power Management (ASPM) feature is enabled since kernel 5.14. There are some AMD GFX cards (such as WX3200 and RX640) that won't work with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as video/display output, Intel Alder Lake based systems will hang during suspend/resume.
The issue was initially reported on one system (Dell Precision 3660 with BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder Lake based systems.
Quoted 6 lines
Add extra check to disable ASPM on Intel Alder Lake based systems.
Fixes 0064b0ce85bb ("drm/amd/pm: enable ASPM by default")Reported-by kernel test robot <[email protected]>Signed-off-by Richard Gong <[email protected]>
Thanks,
Lijo
Quoted 53 lines
---
v4: s/CONFIG_X86_64/CONFIG_X86
enhanced check logic
v3: s/intel_core_asom_chk/aspm_support_quirk_check
correct build error with W=1 option
v2: correct commit description
move the check from chip family to problematic platform--- drivers/gpu/drm/amd/amdgpu/vi.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/vi.c +16
-1@@ -81,6 +81,10 @@#include "mxgpu_vi.h" #include "amdgpu_dm.h" +#if IS_ENABLED (CONFIG_X86 ) +#include <asm/intel-family.h> +#endif +#define ixPCIE_LC_L1_PM_SUBSTATE 0x100100C6#define PCIE_LC_L1_PM_SUBSTATE__LC_L1_SUBSTATES_OVERRIDE_EN_MASK 0x00000001L#define PCIE_LC_L1_PM_SUBSTATE__LC_PCI_PM_L1_2_OVERRIDE_MASK 0x00000002L@@ -1134,13 +1138,24 @@ static void vi_enable_aspm(struct amdgpu_device *adev)WREG32_PCIE (ixPCIE_LC_CNTL, data); } +static bool aspm_support_quirk_check (void ) +{ +if (IS_ENABLED (CONFIG_X86 )) { +struct cpuinfo_x86 *c = &cpu_data (0 ); + +return !(c->x86 ==6 && c->x86_model ==INTEL_FAM6_ALDERLAKE ); + } + +return true; +} +static void vi_program_aspm (struct amdgpu_device *adev) {u32 data, data1, orig;bool bL1SS = false;bool bClkReqSupport = true; -if (!amdgpu_device_should_use_aspm (adev)) +if (!amdgpu_device_should_use_aspm (adev) || !aspm_support_quirk_check ())return ; if (adev->flags & AMD_IS_APU ||
Dear Richard,
Thank you for sending out v4.
Am 12.04.22 um 23:50 schrieb Richard Gong:
Quoted 5 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14. There are some AMD GFX cards (such as WX3200 and RX640) that won't work with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as video/display output, Intel Alder Lake based systems will hang during suspend/resume.
I am still not clear, what “hang during suspend/resume” means. I guess suspending works fine? During resume (S3 or S0ix?), where does it hang? The system is functional, but there are only display problems?
Quoted 9 lines
The issue was initially reported on one system (Dell Precision 3660 with BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder Lake based systems.
Add extra check to disable ASPM on Intel Alder Lake based systems.
Fixes 0064b0ce85bb ("drm/amd/pm: enable ASPM by default")Reported-by kernel test robot <[email protected]>
This tag is a little confusing. Maybe clarify that it was for an issue in a previous patch iteration?
Quoted 41 lines
Signed-off-by Richard Gong <[email protected]>---
v4: s/CONFIG_X86_64/CONFIG_X86
enhanced check logic
v3: s/intel_core_asom_chk/aspm_support_quirk_check
correct build error with W=1 option
v2: correct commit description
move the check from chip family to problematic platform--- drivers/gpu/drm/amd/amdgpu/vi.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/vi.c +14
-0@@ -81,6 +81,10 @@#include "mxgpu_vi.h" #include "amdgpu_dm.h" +#if IS_ENABLED (CONFIG_X86 ) +#include <asm/intel-family.h> +#endif +#define ixPCIE_LC_L1_PM_SUBSTATE 0x100100C6#define PCIE_LC_L1_PM_SUBSTATE__LC_L1_SUBSTATES_OVERRIDE_EN_MASK 0x00000001L#define PCIE_LC_L1_PM_SUBSTATE__LC_PCI_PM_L1_2_OVERRIDE_MASK 0x00000002L@@ -1134,13 +1138,24 @@ static void vi_enable_aspm(struct amdgpu_device *adev)WREG32_PCIE (ixPCIE_LC_CNTL, data); } +static bool aspm_support_quirk_check (void ) +{ +if (IS_ENABLED (CONFIG_X86 )) { +struct cpuinfo_x86 *c = &cpu_data (0 ); + +return !(c->x86 ==6 && c->x86_model ==INTEL_FAM6_ALDERLAKE ); + } + +return true; +}
drivers/gpu/drm/amd/amdgpu/vi.c static void vi_enable_aspm(struct amdgpu_device *adev) · line 1159
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/vi.c +2
-1+static void vi_program_aspm (struct amdgpu_device *adev) {u32 data, data1, orig;bool bL1SS = false;bool bClkReqSupport = true; -if (!amdgpu_device_should_use_aspm (adev)) +if (!amdgpu_device_should_use_aspm (adev) || !aspm_support_quirk_check ())return ;
Can users still forcefully enable ASPM with the parameter amdgpu.aspm?
drivers/gpu/drm/amd/amdgpu/vi.c static void vi_enable_aspm(struct amdgpu_device *adev) · line 1161
Quoted 2 lines
drivers/gpu/drm/amd/amdgpu/vi.c +0
-0if (adev->flags & AMD_IS_APU ||
If I remember correctly, there were also newer cards, where ASPM worked with Intel Alder Lake, right? Can only the problematic generations for WX3200 and RX640 be excluded from ASPM?
Kind regards,
Paul
Quoted 85 lines · Paul Menzel
Dear Richard,
Thank you for sending out v4.
Am 12.04.22 um 23:50 schrieb Richard Gong:
Quoted 5 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14. There are some AMD GFX cards (such as WX3200 and RX640) that won't work with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as video/display output, Intel Alder Lake based systems will hang during suspend/resume.
I am still not clear, what “hang during suspend/resume” means. I guess suspending works fine? During resume (S3 or S0ix?), where does it hang? The system is functional, but there are only display problems?
Quoted 9 lines
The issue was initially reported on one system (Dell Precision 3660 with BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder Lake based systems.
Add extra check to disable ASPM on Intel Alder Lake based systems.
Fixes 0064b0ce85bb ("drm/amd/pm: enable ASPM by default")Reported-by kernel test robot <[email protected]>This tag is a little confusing. Maybe clarify that it was for an issue in a previous patch iteration?
Quoted 41 lines
Signed-off-by Richard Gong <[email protected]>---
v4: s/CONFIG_X86_64/CONFIG_X86
enhanced check logic
v3: s/intel_core_asom_chk/aspm_support_quirk_check
correct build error with W=1 option
v2: correct commit description
move the check from chip family to problematic platform--- drivers/gpu/drm/amd/amdgpu/vi.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/vi.c +14
-0@@ -81,6 +81,10 @@#include "mxgpu_vi.h" #include "amdgpu_dm.h" +#if IS_ENABLED (CONFIG_X86 ) +#include <asm/intel-family.h> +#endif +#define ixPCIE_LC_L1_PM_SUBSTATE 0x100100C6#define PCIE_LC_L1_PM_SUBSTATE__LC_L1_SUBSTATES_OVERRIDE_EN_MASK 0x00000001L#define PCIE_LC_L1_PM_SUBSTATE__LC_PCI_PM_L1_2_OVERRIDE_MASK 0x00000002L@@ -1134,13 +1138,24 @@ static void vi_enable_aspm(struct amdgpu_device *adev)WREG32_PCIE (ixPCIE_LC_CNTL, data); } +static bool aspm_support_quirk_check (void ) +{ +if (IS_ENABLED (CONFIG_X86 )) { +struct cpuinfo_x86 *c = &cpu_data (0 ); + +return !(c->x86 ==6 && c->x86_model ==INTEL_FAM6_ALDERLAKE ); + } + +return true; +}drivers/gpu/drm/amd/amdgpu/vi.c static void vi_enable_aspm(struct amdgpu_device *adev) · line 1159
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/vi.c +2
-1+static void vi_program_aspm (struct amdgpu_device *adev) {u32 data, data1, orig;bool bL1SS = false;bool bClkReqSupport = true; -if (!amdgpu_device_should_use_aspm (adev)) +if (!amdgpu_device_should_use_aspm (adev) || !aspm_support_quirk_check ())return ;Can users still forcefully enable ASPM with the parameter
amdgpu.aspm?Quoted 1 line
Quoted 5 lines
Quoted 1 line
if (adev->flags & AMD_IS_APU ||If I remember correctly, there were also newer cards, where ASPM worked with Intel Alder Lake, right? Can only the problematic generations for WX3200 and RX640 be excluded from ASPM?
This patch only disables it for the generation that was problematic.
Alex
Quoted 5 lines
Kind regards,
Paul
[Public]
Quoted 8 lines
Quoted 6 lines · Paul Menzel
Dear Richard,
Thank you for sending out v4.
Quoted 13 lines
Quoted 2 lines
Am 12.04.22 um 23:50 schrieb Richard Gong:
Quoted 1 line
Active State Power Management (ASPM) feature is enabled since kernel
5.14.
Quoted 1 line
Quoted 1 line
There are some AMD GFX cards (such as WX3200 and RX640) that won't
work
Quoted 1 line
Quoted 1 line
with ASPM-enabled Intel Alder Lake based systems. Using these GFX
cards as
Quoted 6 lines
Quoted 2 lines
video/display output, Intel Alder Lake based systems will hang during suspend/resume.
I am still not clear, what "hang during suspend/resume" means. I guess suspending works fine? During resume (S3 or S0ix?), where does it hang? The system is functional, but there are only display problems?
I believe Intel would need to identify the state of the SOC to determine where the PCIE problem actually occurs; on the way down or up.
As he said in the commit message it results in a hang.
Quoted 59 lines
Quoted 9 lines
Quoted 9 lines
The issue was initially reported on one system (Dell Precision 3660 with BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder Lake based systems.
Add extra check to disable ASPM on Intel Alder Lake based systems.
Fixes 0064b0ce85bb ("drm/amd/pm: enable ASPM by default")Link:
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitla
b.freedesktop.org%2Fdrm%2Famd%2F- %2Fissues%2F1885&data=04%7C01%7Cmario.limonciello%40amd.com% 7Cfe4b6b553c3b47c1288f08da1d4da9c8%7C3dd8961fe4884e608e11a82d994e 183d%7C0%7C0%7C637854516675116782%7CUnknown%7CTWFpbGZsb3d8ey JWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D% 7C3000&sdata=gvFmP1HQP%2FyzLfT0gYYCupAQBIG%2FtiDYelQNqTLAx ck%3D&reserved=0Quoted 17 lines
Quoted 1 line
Reported-by kernel test robot <[email protected]>This tag is a little confusing. Maybe clarify that it was for an issue in a previous patch iteration?
Quoted 12 lines
Signed-off-by Richard Gong <[email protected]>---
v4: s/CONFIG_X86_64/CONFIG_X86
enhanced check logic
v3: s/intel_core_asom_chk/aspm_support_quirk_check
correct build error with W=1 option
v2: correct commit description
move the check from chip family to problematic platform--- drivers/gpu/drm/amd/amdgpu/vi.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)Quoted 1 line
Review
Quoted 1 line
(quoted diff) +0
-0
b/drivers/gpu/drm/amd/amdgpu/vi.cQuoted 7 lines
Quoted 7 lines
index
039b90cdc3bc..b33e0a9bee65100644drivers/gpu/drm/amd/amdgpu/vi.c +0
-0@@ -81,6 +81,10 @@#include "mxgpu_vi.h" #include "amdgpu_dm.h" Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/vi.c line 89
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/vi.c +4
-0+#if IS_ENABLED (CONFIG_X86 ) +#include <asm/intel-family.h> +#endif +#define ixPCIE_LC_L1_PM_SUBSTATE 0x100100C6 #define
PCIE_LC_L1_PM_SUBSTATE__LC_L1_SUBSTATES_OVERRIDE_EN_MASK0x00000001LQuoted 1 line
drivers/gpu/drm/amd/amdgpu/vi.c line 90
Quoted 1 line
drivers/gpu/drm/amd/amdgpu/vi.c +0
-0#define
PCIE_LC_L1_PM_SUBSTATE__LC_PCI_PM_L1_2_OVERRIDE_MASK0x00000002LQuoted 1 line
drivers/gpu/drm/amd/amdgpu/vi.c static void vi_enable_aspm(struct
Quoted 1 line
drivers/gpu/drm/amd/amdgpu/vi.c +0
-0@@ -1134,13 +1138,24 @@ static void vi_enable_aspm(struct
amdgpu_device*adev)Quoted 3 lines
Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/vi.c +0
-0WREG32_PCIE (ixPCIE_LC_CNTL, data); }
Quoted 7 lines
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/vi.c static void vi_enable_aspm(struct · line 1146
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/vi.c +6
-0+static bool aspm_support_quirk_check(void) +{ + if (IS_ENABLED(CONFIG_X86)) { + struct cpuinfo_x86 *c = &cpu_data(0); + + return !(c->x86 == 6 && c->x86_model ==
INTEL_FAM6_ALDERLAKE);
Don't you need to check x86_vendor? Although extremely unlikely if you don't check x86_vendor nothing to stop another X86 manufacturer from having a design that has same model # as INTEL_FAM6_ALDERLAKE.
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
drivers/gpu/drm/amd/amdgpu/vi.c +5
-0+ } + +return true; +} +static void vi_program_aspm (struct amdgpu_device *adev) {u32 data, data1, orig;bool bL1SS = false;bool bClkReqSupport = true;
Quoted 6 lines
Quoted 2 lines
drivers/gpu/drm/amd/amdgpu/vi.c static void vi_enable_aspm(struct · line 1158
Quoted 2 lines
drivers/gpu/drm/amd/amdgpu/vi.c +1
-1-if (!amdgpu_device_should_use_aspm (adev)) + if (!amdgpu_device_should_use_aspm(adev) ||!aspm_support_quirk_check())
Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/vi.c static void vi_enable_aspm(struct · line 1159
Quoted 1 line
drivers/gpu/drm/amd/amdgpu/vi.c +0
-0return ;Can users still forcefully enable ASPM with the parameter
amdgpu.aspm?
amdgpu.aspm is module wide not just for one card. That is it covers all AMD GPU cards in the system. If it's set to 1 or pcie_aspm_enabled returns true it will enable for other GPUs besides these.
There is the possibility to move this quirk check within " amdgpu_device_should_use_aspm" and only match this combination when set to amdgpu.aspm is set to "-1" (the default), something like this:
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2 -0
@@ -1335,6 +1335,8 @@ bool amdgpu_device_should_use_aspm(struct amdgpu_device *adev)default :return false; } +if (amdgpu_device_is_quirked_for_aspm (adev)) +return false;return pcie_aspm_enabled (adev->pdev); }
Quoted 17 lines
Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/vi.c static void vi_enable_aspm(struct · line 1160
Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/vi.c +0
-0if (adev->flags & AMD_IS_APU ||If I remember correctly, there were also newer cards, where ASPM worked with Intel Alder Lake, right? Can only the problematic generations for WX3200 and RX640 be excluded from ASPM?
This patch only disables it for the generation that was problematic.
Alex
Quoted 5 lines
Kind regards,
Paul
[Cc: -kernel test robot <[email protected]>]
Dear Alex, dear Richard,
Am 13.04.22 um 15:00 schrieb Alex Deucher:
Quoted 83 lines · Paul Menzel
Quoted 82 lines
Thank you for sending out v4.
Am 12.04.22 um 23:50 schrieb Richard Gong:
Quoted 5 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14. There are some AMD GFX cards (such as WX3200 and RX640) that won't work with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as video/display output, Intel Alder Lake based systems will hang during suspend/resume.
I am still not clear, what “hang during suspend/resume” means. I guess suspending works fine? During resume (S3 or S0ix?), where does it hang? The system is functional, but there are only display problems?
Quoted 9 lines
The issue was initially reported on one system (Dell Precision 3660 with BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder Lake based systems.
Add extra check to disable ASPM on Intel Alder Lake based systems.
Fixes 0064b0ce85bb ("drm/amd/pm: enable ASPM by default")Reported-by kernel test robot <[email protected]>This tag is a little confusing. Maybe clarify that it was for an issue in a previous patch iteration?
Quoted 41 lines
Signed-off-by Richard Gong <[email protected]>---
v4: s/CONFIG_X86_64/CONFIG_X86
enhanced check logic
v3: s/intel_core_asom_chk/aspm_support_quirk_check
correct build error with W=1 option
v2: correct commit description
move the check from chip family to problematic platform--- drivers/gpu/drm/amd/amdgpu/vi.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/vi.c +14
-0@@ -81,6 +81,10 @@#include "mxgpu_vi.h" #include "amdgpu_dm.h" +#if IS_ENABLED (CONFIG_X86 ) +#include <asm/intel-family.h> +#endif +#define ixPCIE_LC_L1_PM_SUBSTATE 0x100100C6#define PCIE_LC_L1_PM_SUBSTATE__LC_L1_SUBSTATES_OVERRIDE_EN_MASK 0x00000001L#define PCIE_LC_L1_PM_SUBSTATE__LC_PCI_PM_L1_2_OVERRIDE_MASK 0x00000002L@@ -1134,13 +1138,24 @@ static void vi_enable_aspm(struct amdgpu_device *adev)WREG32_PCIE (ixPCIE_LC_CNTL, data); } +static bool aspm_support_quirk_check (void ) +{ +if (IS_ENABLED (CONFIG_X86 )) { +struct cpuinfo_x86 *c = &cpu_data (0 ); + +return !(c->x86 ==6 && c->x86_model ==INTEL_FAM6_ALDERLAKE ); + } + +return true; +}drivers/gpu/drm/amd/amdgpu/vi.c static void vi_enable_aspm(struct amdgpu_device *adev) · line 1159
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/vi.c +2
-1+static void vi_program_aspm (struct amdgpu_device *adev) {u32 data, data1, orig;bool bL1SS = false;bool bClkReqSupport = true; -if (!amdgpu_device_should_use_aspm (adev)) +if (!amdgpu_device_should_use_aspm (adev) || !aspm_support_quirk_check ())return ;Can users still forcefully enable ASPM with the parameter
amdgpu.aspm?Quoted 1 line
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
if (adev->flags & AMD_IS_APU ||If I remember correctly, there were also newer cards, where ASPM worked with Intel Alder Lake, right? Can only the problematic generations for WX3200 and RX640 be excluded from ASPM?
This patch only disables it for the generation that was problematic.
Could that please be made clear in the commit message summary, and message?
Loosely related, is there a public (or internal issue) to analyze how to get ASPM working for VI generation devices with Intel Alder Lake?
Kind regards,
Paul
Quoted 92 lines · Paul Menzel
[Cc: -kernel test robot <[email protected]>]
Dear Alex, dear Richard,
Am 13.04.22 um 15:00 schrieb Alex Deucher:
Quoted 85 lines · Paul Menzel
Quoted 84 lines
Thank you for sending out v4.
Am 12.04.22 um 23:50 schrieb Richard Gong:
Quoted 5 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14. There are some AMD GFX cards (such as WX3200 and RX640) that won't work with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as video/display output, Intel Alder Lake based systems will hang during suspend/resume.
I am still not clear, what “hang during suspend/resume” means. I guess suspending works fine? During resume (S3 or S0ix?), where does it hang? The system is functional, but there are only display problems?
Quoted 9 lines
The issue was initially reported on one system (Dell Precision 3660 with BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder Lake based systems.
Add extra check to disable ASPM on Intel Alder Lake based systems.
Fixes 0064b0ce85bb ("drm/amd/pm: enable ASPM by default")Reported-by kernel test robot <[email protected]>This tag is a little confusing. Maybe clarify that it was for an issue in a previous patch iteration?
Quoted 41 lines
Signed-off-by Richard Gong <[email protected]>---
v4: s/CONFIG_X86_64/CONFIG_X86
enhanced check logic
v3: s/intel_core_asom_chk/aspm_support_quirk_check
correct build error with W=1 option
v2: correct commit description
move the check from chip family to problematic platform--- drivers/gpu/drm/amd/amdgpu/vi.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/vi.c +14
-0@@ -81,6 +81,10 @@#include "mxgpu_vi.h" #include "amdgpu_dm.h" +#if IS_ENABLED (CONFIG_X86 ) +#include <asm/intel-family.h> +#endif +#define ixPCIE_LC_L1_PM_SUBSTATE 0x100100C6#define PCIE_LC_L1_PM_SUBSTATE__LC_L1_SUBSTATES_OVERRIDE_EN_MASK 0x00000001L#define PCIE_LC_L1_PM_SUBSTATE__LC_PCI_PM_L1_2_OVERRIDE_MASK 0x00000002L@@ -1134,13 +1138,24 @@ static void vi_enable_aspm(struct amdgpu_device *adev)WREG32_PCIE (ixPCIE_LC_CNTL, data); } +static bool aspm_support_quirk_check (void ) +{ +if (IS_ENABLED (CONFIG_X86 )) { +struct cpuinfo_x86 *c = &cpu_data (0 ); + +return !(c->x86 ==6 && c->x86_model ==INTEL_FAM6_ALDERLAKE ); + } + +return true; +}drivers/gpu/drm/amd/amdgpu/vi.c static void vi_enable_aspm(struct amdgpu_device *adev) · line 1159
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/vi.c +2
-1+static void vi_program_aspm (struct amdgpu_device *adev) {u32 data, data1, orig;bool bL1SS = false;bool bClkReqSupport = true; -if (!amdgpu_device_should_use_aspm (adev)) +if (!amdgpu_device_should_use_aspm (adev) || !aspm_support_quirk_check ())return ;Can users still forcefully enable ASPM with the parameter
amdgpu.aspm?Quoted 2 lines
drivers/gpu/drm/amd/amdgpu/vi.c +0
-0if (adev->flags & AMD_IS_APU ||
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
If I remember correctly, there were also newer cards, where ASPM worked with Intel Alder Lake, right? Can only the problematic generations for WX3200 and RX640 be excluded from ASPM?
This patch only disables it for the generation that was problematic.
Could that please be made clear in the commit message summary, and message?
Sure. Richard, please add that this only disables ASPM on VI parts when in an alderlake system.
Quoted 3 lines
Loosely related, is there a public (or internal issue) to analyze how to get ASPM working for VI generation devices with Intel Alder Lake?
We'd need support from Intel. I'm not sure where things currently stand.
Alex
Hi Paul,
Quoted 20 lines · Paul Menzel
[Cc: -kernel test robot <[email protected]>]
Dear Alex, dear Richard,
Am 13.04.22 um 15:00 schrieb Alex Deucher:
Quoted 14 lines · Paul Menzel
Quoted 13 lines
Thank you for sending out v4.
Am 12.04.22 um 23:50 schrieb Richard Gong:
Quoted 5 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14. There are some AMD GFX cards (such as WX3200 and RX640) that won't work with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as video/display output, Intel Alder Lake based systems will hang during suspend/resume.
I am still not clear, what “hang during suspend/resume” means. I guess suspending works fine? During resume (S3 or S0ix?), where does it hang? The system is functional, but there are only display problems?
System freeze after suspend/resume.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
The issue was initially reported on one system (Dell Precision 3660 with BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder Lake based systems.
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
Add extra check to disable ASPM on Intel Alder Lake based systems.
Fixes 0064b0ce85bb ("drm/amd/pm: enable ASPM by default")Reported-by kernel test robot <[email protected]>This tag is a little confusing. Maybe clarify that it was for an issue in a previous patch iteration?
I did describe in change-list version 3 below, which corrected the build error with W=1 option.
It is not good idea to add the description for that to the commit message, this is why I add descriptions on change-list version 3.
Quoted 51 lines
Quoted 51 lines
Quoted 51 lines
Quoted 51 lines
Signed-off-by Richard Gong <[email protected]>---
v4: s/CONFIG_X86_64/CONFIG_X86
enhanced check logic
v3: s/intel_core_asom_chk/aspm_support_quirk_check correct build error with W=1 option
v2: correct commit description
move the check from chip family to problematic platform
---
drivers/gpu/drm/amd/amdgpu/vi.c| 17 ++++++++++++++++-1 file changed, 16 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/vi.c +15
-0@@ -81,6 +81,10 @@ #include "mxgpu_vi.h" #include "amdgpu_dm.h" +#if IS_ENABLED (CONFIG_X86 ) +#include <asm/intel-family.h> +#endif + #define ixPCIE_LC_L1_PM_SUBSTATE 0x100100C6 #define PCIE_LC_L1_PM_SUBSTATE__LC_L1_SUBSTATES_OVERRIDE_EN_MASK 0x00000001L #define PCIE_LC_L1_PM_SUBSTATE__LC_PCI_PM_L1_2_OVERRIDE_MASK 0x00000002L@@ -1134,13 +1138,24 @@ static void vi_enable_aspm(struct amdgpu_device *adev) WREG32_PCIE(ixPCIE_LC_CNTL, data); } +static bool aspm_support_quirk_check (void ) +{ + if (IS_ENABLED(CONFIG_X86)) { + struct cpuinfo_x86 *c = &cpu_data(0); + + return !(c->x86 == 6 && c->x86_model ==INTEL_FAM6_ALDERLAKE ); + } + + return true; +} + static void vi_program_aspm(struct amdgpu_device *adev) { u32 data, data1, orig; bool bL1SS = false; bool bClkReqSupport = true;
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/vi.c +1
-1- if (!amdgpu_device_should_use_aspm(adev)) + if (!amdgpu_device_should_use_aspm(adev) || !aspm_support_quirk_check ())return;
Can users still forcefully enable ASPM with the parameter
amdgpu.aspm?
As Mario mentioned in a separate reply, we can't forcefully enable ASPM with the parameter 'amdgpu.aspm'.
Quoted 10 lines
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
if (
adev->flags&AMD_IS_APU||If I remember correctly, there were also newer cards, where ASPM worked with Intel Alder Lake, right? Can only the problematic generations for WX3200 and RX640 be excluded from ASPM?
This patch only disables it for the generation that was problematic.
Could that please be made clear in the commit message summary, and message?
Are you ok with the commit messages below?
Active State Power Management (ASPM) feature is enabled since kernel 5.14.
There are some AMD GFX cards (such as WX3200 and RX640) that won't work
with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as
video/display output, Intel Alder Lake based systems will freeze after
suspend/resume.
The issue was initially reported on one system (Dell Precision 3660 with
BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder
Lake based systems.
Add extra check to disable ASPM on Intel Alder Lake based systems with
problematic generation GFX cards.
Quoted 2 lines
Loosely related, is there a public (or internal issue) to analyze how to get ASPM working for VI generation devices with Intel Alder Lake?
As Alex mentioned, we need support from Intel. We don't have any update on that.
Regards,
Richard
Quoted 5 lines
Kind regards,
Paul
Dear Richard,
Am 19.04.22 um 23:46 schrieb Gong, Richard:
Quoted 2 lines · Paul Menzel
Quoted 1 line
[Cc: -kernel test robot <[email protected]>]
[…]
Quoted 11 lines
Quoted 11 lines
Am 13.04.22 um 15:00 schrieb Alex Deucher:
Quoted 10 lines · Paul Menzel
Quoted 9 lines
Thank you for sending out v4.
Am 12.04.22 um 23:50 schrieb Richard Gong:
Quoted 5 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14. There are some AMD GFX cards (such as WX3200 and RX640) that won't work with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as video/display output, Intel Alder Lake based systems will hang during suspend/resume.
[Your email program wraps lines in cited text for some reason, making the citation harder to read.]
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
I am still not clear, what “hang during suspend/resume” means. I guess suspending works fine? During resume (S3 or S0ix?), where does it hang? The system is functional, but there are only display problems?
System freeze after suspend/resume.
But you see certain messages still? At what point does it freeze exactly? In the bug report you posted Linux messages.
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
The issue was initially reported on one system (Dell Precision 3660 with BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder Lake based systems.
Add extra check to disable ASPM on Intel Alder Lake based systems.
Fixes 0064b0ce85bb ("drm/amd/pm: enable ASPM by default")
Thank you Microsoft Outlook for keeping us safe. :(
Quoted 9 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Reported-by kernel test robot <[email protected]>This tag is a little confusing. Maybe clarify that it was for an issue in a previous patch iteration?
I did describe in change-list version 3 below, which corrected the build error with W=1 option.
It is not good idea to add the description for that to the commit message, this is why I add descriptions on change-list version 3.
Do as you wish, but the current style is confusing, and readers of the commit are going to think, the kernel test robot reported the problem with AMD VI ASICs and Intel Alder Lake systems.
Quoted 51 lines
Quoted 51 lines
Quoted 51 lines
Quoted 51 lines
Quoted 51 lines
Signed-off-by Richard Gong <[email protected]>---
v4: s/CONFIG_X86_64/CONFIG_X86
enhanced check logic
v3: s/intel_core_asom_chk/aspm_support_quirk_check correct build error with W=1 option
v2: correct commit description
move the check from chip family to problematic platform
---
drivers/gpu/drm/amd/amdgpu/vi.c| 17 ++++++++++++++++-1 file changed, 16 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/vi.c +15
-0@@ -81,6 +81,10 @@ #include "mxgpu_vi.h" #include "amdgpu_dm.h" +#if IS_ENABLED (CONFIG_X86 ) +#include <asm/intel-family.h> +#endif + #define ixPCIE_LC_L1_PM_SUBSTATE 0x100100C6 #define PCIE_LC_L1_PM_SUBSTATE__LC_L1_SUBSTATES_OVERRIDE_EN_MASK 0x00000001L #define PCIE_LC_L1_PM_SUBSTATE__LC_PCI_PM_L1_2_OVERRIDE_MASK 0x00000002L@@ -1134,13 +1138,24 @@ static void vi_enable_aspm(struct amdgpu_device *adev) WREG32_PCIE(ixPCIE_LC_CNTL, data); } +static bool aspm_support_quirk_check (void ) +{ + if (IS_ENABLED(CONFIG_X86)) { + struct cpuinfo_x86 *c = &cpu_data(0); + + return !(c->x86 == 6 && c->x86_model ==INTEL_FAM6_ALDERLAKE ); + } + + return true; +} + static void vi_program_aspm(struct amdgpu_device *adev) { u32 data, data1, orig; bool bL1SS = false; bool bClkReqSupport = true;
Quoted 8 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/vi.c +1
-1- if (!amdgpu_device_should_use_aspm(adev)) + if (!amdgpu_device_should_use_aspm(adev) || !aspm_support_quirk_check ())return;
Can users still forcefully enable ASPM with the parameter
amdgpu.aspm?As Mario mentioned in a separate reply, we can't forcefully enable ASPM with the parameter 'amdgpu.aspm'.
That would be a regression on systems where ASPM used to work. Hmm. I guess, you could say, there are no such systems.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 2 lines
if (
adev->flags&AMD_IS_APU||If I remember correctly, there were also newer cards, where ASPM worked with Intel Alder Lake, right? Can only the problematic generations for WX3200 and RX640 be excluded from ASPM?
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
This patch only disables it for the generatioaon that was problematic.
Could that please be made clear in the commit message summary, and message?
Are you ok with the commit messages below?
Please change the commit message summary. Maybe:
drm/amdgpu: VI: Disable ASPM on Intel Alder Lake based systems
Quoted 6 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14.
There are some AMD GFX cards (such as WX3200 and RX640) that won't work with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as video/display output, Intel Alder Lake based systems will freeze after suspend/resume.
Something like:
On Intel Alder Lake based systems using ASPM with AMD GFX Volcanic Islands (VI) cards, like WX3200 and RX640, graphics don’t initialize when resuming from S0ix(?).
Quoted 3 lines
The issue was initially reported on one system (Dell Precision 3660 with BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder Lake based systems.
Which ones?
Quoted 2 lines
Add extra check to disable ASPM on Intel Alder Lake based systems with problematic generation GFX cards.
… with the problematic Volcanic Islands GFX cards.
Quoted 4 lines
Quoted 2 lines
Loosely related, is there a public (or internal issue) to analyze how to get ASPM working for VI generation devices with Intel Alder Lake?
As Alex mentioned, we need support from Intel. We don't have any update on that.
It’d be great to get that fixed properly.
Last thing, please don’t hate me, does Linux log, that ASPM is disabled?
Kind regards,
Paul
Quoted 183 lines · Paul Menzel
Dear Richard,
Am 19.04.22 um 23:46 schrieb Gong, Richard:
Quoted 2 lines · Paul Menzel
Quoted 1 line
[Cc: -kernel test robot <[email protected]>]
[…]
Quoted 6 lines
Quoted 6 lines
Am 13.04.22 um 15:00 schrieb Alex Deucher:
Quoted 5 lines · Paul Menzel
Quoted 4 lines
Thank you for sending out v4.
Am 12.04.22 um 23:50 schrieb Richard Gong:
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14.
There are some AMD GFX cards (such as WX3200 and RX640) that won't work
with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as
video/display output, Intel Alder Lake based systems will hang during suspend/resume.[Your email program wraps lines in cited text for some reason, making the citation harder to read.]
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
I am still not clear, what “hang during suspend/resume” means. I guess suspending works fine? During resume (S3 or S0ix?), where does it hang? The system is functional, but there are only display problems?
System freeze after suspend/resume.
But you see certain messages still? At what point does it freeze exactly? In the bug report you posted Linux messages.
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
The issue was initially reported on one system (Dell Precision 3660 with
BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder
Lake based systems.Add extra check to disable ASPM on Intel Alder Lake based systems.
Fixes 0064b0ce85bb ("drm/amd/pm: enable ASPM by default")Thank you Microsoft Outlook for keeping us safe. :(
Quoted 11 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Reported-by kernel test robot <[email protected]>This tag is a little confusing. Maybe clarify that it was for an issue in a previous patch iteration?
I did describe in change-list version 3 below, which corrected the build error with W=1 option.
It is not good idea to add the description for that to the commit message, this is why I add descriptions on change-list version 3.
Do as you wish, but the current style is confusing, and readers of the commit are going to think, the kernel test robot reported the problem with AMD VI ASICs and Intel Alder Lake systems.
Quoted 62 lines
Quoted 54 lines
Quoted 54 lines
Quoted 54 lines
Quoted 54 lines
Signed-off-by Richard Gong <[email protected]>---
v4: s/CONFIG_X86_64/CONFIG_X86
enhanced check logic
v3: s/intel_core_asom_chk/aspm_support_quirk_check
correct build error with W=1 option
v2: correct commit description
move the check from chip family to problematic platform--- drivers/gpu/drm/amd/amdgpu/vi.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/vi.c +4
-0@@ -81,6 +81,10 @@#include "mxgpu_vi.h" #include "amdgpu_dm.h" +#if IS_ENABLED (CONFIG_X86 ) +#include <asm/intel-family.h> +#endif +#define ixPCIE_LC_L1_PM_SUBSTATE 0x100100C6#define PCIE_LC_L1_PM_SUBSTATE__LC_L1_SUBSTATES_OVERRIDE_EN_MASK
0x00000001L
#definePCIE_LC_L1_PM_SUBSTATE__LC_PCI_PM_L1_2_OVERRIDE_MASK0x00000002Ldrivers/gpu/drm/amd/amdgpu/vi.c +11
-0@@ -1134,13 +1138,24 @@ static void vi_enable_aspm(struct amdgpu_device *adev)WREG32_PCIE (ixPCIE_LC_CNTL ,data ); } +static bool aspm_support_quirk_check (void ) +{ +if (IS_ENABLED (CONFIG_X86 )) { +struct cpuinfo_x86 *c = &cpu_data (0 ); + +return !(c->x86 ==6 && c->x86_model ==INTEL_FAM6_ALDERLAKE ); + } + +return true; +} +static void vi_program_aspm (struct amdgpu_device *adev) {u32 data, data1, orig;bool bL1SS = false;bool bClkReqSupport = true;Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/vi.c +1
-1-if (!amdgpu_device_should_use_aspm (adev)) +if (!amdgpu_device_should_use_aspm (adev) || !aspm_support_quirk_check ())return;Can users still forcefully enable ASPM with the parameter
amdgpu.aspm?Quoted 2 lines
As Mario mentioned in a separate reply, we can't forcefully enable ASPM with the parameter 'amdgpu.aspm'.
That would be a regression on systems where ASPM used to work. Hmm. I guess, you could say, there are no such systems.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 2 lines
if (adev->flags & AMD_IS_APU ||If I remember correctly, there were also newer cards, where ASPM worked with Intel Alder Lake, right? Can only the problematic generations for WX3200 and RX640 be excluded from ASPM?
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
This patch only disables it for the generatioaon that was problematic.
Could that please be made clear in the commit message summary, and message?
Are you ok with the commit messages below?
Please change the commit message summary. Maybe:
drm/amdgpu: VI: Disable ASPM on Intel Alder Lake based systems
Quoted 6 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14.
There are some AMD GFX cards (such as WX3200 and RX640) that won't work with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as video/display output, Intel Alder Lake based systems will freeze after suspend/resume.
Something like:
On Intel Alder Lake based systems using ASPM with AMD GFX Volcanic Islands (VI) cards, like WX3200 and RX640, graphics don’t initialize when resuming from S0ix(?).
Quoted 3 lines
The issue was initially reported on one system (Dell Precision 3660 with BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder Lake based systems.
Which ones?
Quoted 2 lines
Add extra check to disable ASPM on Intel Alder Lake based systems with problematic generation GFX cards.
… with the problematic Volcanic Islands GFX cards.
Quoted 4 lines
Quoted 3 lines
Loosely related, is there a public (or internal issue) to analyze how to get ASPM working for VI generation devices with Intel Alder Lake?
Quoted 6 lines
Quoted 2 lines
As Alex mentioned, we need support from Intel. We don't have any update on that.
It’d be great to get that fixed properly.
Last thing, please don’t hate me, does Linux log, that ASPM is disabled?
I'm not sure what gets logged at the platform level with respect to ASPM, but whether or not the driver enables ASPM is tied to whether ASPM is allowed at the platform level or not so if the platform indicates that ASPM is not supported, the driver won't enable it. The driver does not log whether ASPM is enabled or not if that is what you are asking. As to whether or not it should, it comes down to how much stuff is worth indiciating in the log. The driver is already pretty chatty by driver standards.
Alex
Dear Alex,
Am 20.04.22 um 22:40 schrieb Alex Deucher:
Quoted 188 lines · Paul Menzel
Quoted 180 lines
Am 19.04.22 um 23:46 schrieb Gong, Richard:
Quoted 2 lines · Paul Menzel
Quoted 1 line
[Cc: -kernel test robot <[email protected]>]
[…]
Quoted 6 lines
Quoted 6 lines
Am 13.04.22 um 15:00 schrieb Alex Deucher:
Quoted 5 lines · Paul Menzel
Quoted 4 lines
Thank you for sending out v4.
Am 12.04.22 um 23:50 schrieb Richard Gong:
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14.
There are some AMD GFX cards (such as WX3200 and RX640) that won't work
with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as
video/display output, Intel Alder Lake based systems will hang during suspend/resume.[Your email program wraps lines in cited text for some reason, making the citation harder to read.]
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
I am still not clear, what “hang during suspend/resume” means. I guess suspending works fine? During resume (S3 or S0ix?), where does it hang? The system is functional, but there are only display problems?
System freeze after suspend/resume.
But you see certain messages still? At what point does it freeze exactly? In the bug report you posted Linux messages.
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
The issue was initially reported on one system (Dell Precision 3660 with
BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder
Lake based systems.Add extra check to disable ASPM on Intel Alder Lake based systems.
Fixes 0064b0ce85bb ("drm/amd/pm: enable ASPM by default")Thank you Microsoft Outlook for keeping us safe. :(
Quoted 11 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Reported-by kernel test robot <[email protected]>This tag is a little confusing. Maybe clarify that it was for an issue in a previous patch iteration?
I did describe in change-list version 3 below, which corrected the build error with W=1 option.
It is not good idea to add the description for that to the commit message, this is why I add descriptions on change-list version 3.
Do as you wish, but the current style is confusing, and readers of the commit are going to think, the kernel test robot reported the problem with AMD VI ASICs and Intel Alder Lake systems.
Quoted 62 lines
Quoted 54 lines
Quoted 54 lines
Quoted 54 lines
Quoted 54 lines
Signed-off-by Richard Gong <[email protected]>---
v4: s/CONFIG_X86_64/CONFIG_X86
enhanced check logic
v3: s/intel_core_asom_chk/aspm_support_quirk_check
correct build error with W=1 option
v2: correct commit description
move the check from chip family to problematic platform--- drivers/gpu/drm/amd/amdgpu/vi.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/vi.c +4
-0@@ -81,6 +81,10 @@#include "mxgpu_vi.h" #include "amdgpu_dm.h" +#if IS_ENABLED (CONFIG_X86 ) +#include <asm/intel-family.h> +#endif +#define ixPCIE_LC_L1_PM_SUBSTATE 0x100100C6#define PCIE_LC_L1_PM_SUBSTATE__LC_L1_SUBSTATES_OVERRIDE_EN_MASK
0x00000001L#define PCIE_LC_L1_PM_SUBSTATE__LC_PCI_PM_L1_2_OVERRIDE_MASK
0x00000002Ldrivers/gpu/drm/amd/amdgpu/vi.c +11
-0@@ -1134,13 +1138,24 @@ static void vi_enable_aspm(struct amdgpu_device *adev)WREG32_PCIE (ixPCIE_LC_CNTL ,data ); } +static bool aspm_support_quirk_check (void ) +{ +if (IS_ENABLED (CONFIG_X86 )) { +struct cpuinfo_x86 *c = &cpu_data (0 ); + +return !(c->x86 ==6 && c->x86_model ==INTEL_FAM6_ALDERLAKE ); + } + +return true; +} +static void vi_program_aspm (struct amdgpu_device *adev) {u32 data, data1, orig;bool bL1SS = false;bool bClkReqSupport = true;Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/vi.c +1
-1-if (!amdgpu_device_should_use_aspm (adev)) +if (!amdgpu_device_should_use_aspm (adev) || !aspm_support_quirk_check ())return;Can users still forcefully enable ASPM with the parameter
amdgpu.aspm?Quoted 2 lines
As Mario mentioned in a separate reply, we can't forcefully enable ASPM with the parameter 'amdgpu.aspm'.
That would be a regression on systems where ASPM used to work. Hmm. I guess, you could say, there are no such systems.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 2 lines
if (adev->flags & AMD_IS_APU ||If I remember correctly, there were also newer cards, where ASPM worked with Intel Alder Lake, right? Can only the problematic generations for WX3200 and RX640 be excluded from ASPM?
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
This patch only disables it for the generatioaon that was problematic.
Could that please be made clear in the commit message summary, and message?
Are you ok with the commit messages below?
Please change the commit message summary. Maybe:
drm/amdgpu: VI: Disable ASPM on Intel Alder Lake based systems
Quoted 6 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14.
There are some AMD GFX cards (such as WX3200 and RX640) that won't work with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as video/display output, Intel Alder Lake based systems will freeze after suspend/resume.
Something like:
On Intel Alder Lake based systems using ASPM with AMD GFX Volcanic Islands (VI) cards, like WX3200 and RX640, graphics don’t initialize when resuming from S0ix(?).
Quoted 3 lines
The issue was initially reported on one system (Dell Precision 3660 with BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder Lake based systems.
Which ones?
Quoted 2 lines
Add extra check to disable ASPM on Intel Alder Lake based systems with problematic generation GFX cards.
… with the problematic Volcanic Islands GFX cards.
Quoted 4 lines
Quoted 3 lines
Loosely related, is there a public (or internal issue) to analyze how to get ASPM working for VI generation devices with Intel Alder Lake?
Quoted 6 lines
Quoted 2 lines
As Alex mentioned, we need support from Intel. We don't have any update on that.
It’d be great to get that fixed properly.
Last thing, please don’t hate me, does Linux log, that ASPM is disabled?
Quoted 8 lines
I'm not sure what gets logged at the platform level with respect to ASPM, but whether or not the driver enables ASPM is tied to whether ASPM is allowed at the platform level or not so if the platform indicates that ASPM is not supported, the driver won't enable it. The driver does not log whether ASPM is enabled or not if that is what you are asking. As to whether or not it should, it comes down to how much stuff is worth indiciating in the log. The driver is already pretty chatty by driver standards.
I specifically mean, Linux should log the quirks it applies. (As a normal user, I’d also expect ASPM to work nowadays, so a message, that it’s disabled would help a lot.)
Kind regards,
Paul
Hi Paul,
Quoted 202 lines · Paul Menzel
Dear Alex,
Am 20.04.22 um 22:40 schrieb Alex Deucher:
Quoted 189 lines · Paul Menzel
Quoted 181 lines
Am 19.04.22 um 23:46 schrieb Gong, Richard:
Quoted 2 lines · Paul Menzel
Quoted 1 line
[Cc: -kernel test robot <[email protected]>]
[…]
Quoted 6 lines
Quoted 6 lines
Am 13.04.22 um 15:00 schrieb Alex Deucher:
Quoted 5 lines · Paul Menzel
Quoted 4 lines
Thank you for sending out v4.
Am 12.04.22 um 23:50 schrieb Richard Gong:
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14.
There are some AMD GFX cards (such as WX3200 and RX640) that won't work
with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as
video/display output, Intel Alder Lake based systems will hang during suspend/resume.[Your email program wraps lines in cited text for some reason, making the citation harder to read.]
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
I am still not clear, what “hang during suspend/resume” means. I guess suspending works fine? During resume (S3 or S0ix?), where does it hang? The system is functional, but there are only display problems?
System freeze after suspend/resume.
But you see certain messages still? At what point does it freeze exactly? In the bug report you posted Linux messages.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
The issue was initially reported on one system (Dell Precision 3660 with
BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder
Lake based systems.Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Add extra check to disable ASPM on Intel Alder Lake based systems.
Fixes 0064b0ce85bb ("drm/amd/pm: enable ASPM by default")Thank you Microsoft Outlook for keeping us safe. :(
Quoted 11 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Reported-by kernel test robot <[email protected]>This tag is a little confusing. Maybe clarify that it was for an issue in a previous patch iteration?
I did describe in change-list version 3 below, which corrected the build error with W=1 option.
It is not good idea to add the description for that to the commit message, this is why I add descriptions on change-list version 3.
Do as you wish, but the current style is confusing, and readers of the commit are going to think, the kernel test robot reported the problem with AMD VI ASICs and Intel Alder Lake systems.
Quoted 62 lines
Quoted 54 lines
Quoted 54 lines
Quoted 54 lines
Quoted 54 lines
Signed-off-by Richard Gong <[email protected]>---
v4: s/CONFIG_X86_64/CONFIG_X86
enhanced check logic
v3: s/intel_core_asom_chk/aspm_support_quirk_check correct build error with W=1 option
v2: correct commit description
move the check from chip family to problematic platform
---
drivers/gpu/drm/amd/amdgpu/vi.c| 17 ++++++++++++++++-1 file changed, 16 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/vi.c +4
-0@@ -81,6 +81,10 @@ #include "mxgpu_vi.h" #include "amdgpu_dm.h" +#if IS_ENABLED (CONFIG_X86 ) +#include <asm/intel-family.h> +#endif + #define ixPCIE_LC_L1_PM_SUBSTATE 0x100100C6 #define PCIE_LC_L1_PM_SUBSTATE__LC_L1_SUBSTATES_OVERRIDE_EN_MASK
0x00000001L
#definePCIE_LC_L1_PM_SUBSTATE__LC_PCI_PM_L1_2_OVERRIDE_MASK0x00000002Ldrivers/gpu/drm/amd/amdgpu/vi.c +11
-0@@ -1134,13 +1138,24 @@ static void vi_enable_aspm(struct amdgpu_device *adev) WREG32_PCIE(ixPCIE_LC_CNTL, data); } +static bool aspm_support_quirk_check (void ) +{ + if (IS_ENABLED(CONFIG_X86)) { + struct cpuinfo_x86 *c = &cpu_data(0); + + return !(c->x86 == 6 && c->x86_model ==INTEL_FAM6_ALDERLAKE ); + } + + return true; +} + static void vi_program_aspm(struct amdgpu_device *adev) { u32 data, data1, orig; bool bL1SS = false; bool bClkReqSupport = true;Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/vi.c +1
-1- if (!amdgpu_device_should_use_aspm(adev)) + if (!amdgpu_device_should_use_aspm(adev) || !aspm_support_quirk_check ())return;
Can users still forcefully enable ASPM with the parameter
amdgpu.aspm?Quoted 2 lines
As Mario mentioned in a separate reply, we can't forcefully enable ASPM with the parameter 'amdgpu.aspm'.
That would be a regression on systems where ASPM used to work. Hmm. I guess, you could say, there are no such systems.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 2 lines
if (
adev->flags&AMD_IS_APU||If I remember correctly, there were also newer cards, where ASPM worked with Intel Alder Lake, right? Can only the problematic generations for WX3200 and RX640 be excluded from ASPM?
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
This patch only disables it for the generatioaon that was problematic.
Could that please be made clear in the commit message summary, and message?
Are you ok with the commit messages below?
Please change the commit message summary. Maybe:
drm/amdgpu: VI: Disable ASPM on Intel Alder Lake based systems
Quoted 6 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14.
There are some AMD GFX cards (such as WX3200 and RX640) that won't work with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as video/display output, Intel Alder Lake based systems will freeze after suspend/resume.
Something like:
On Intel Alder Lake based systems using ASPM with AMD GFX Volcanic Islands (VI) cards, like WX3200 and RX640, graphics don’t initialize when resuming from S0ix(?).
Quoted 3 lines
The issue was initially reported on one system (Dell Precision 3660 with BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder Lake based systems.
Which ones?
Quoted 2 lines
Add extra check to disable ASPM on Intel Alder Lake based systems with problematic generation GFX cards.
… with the problematic Volcanic Islands GFX cards.
Quoted 4 lines
Quoted 3 lines
Loosely related, is there a public (or internal issue) to analyze how to get ASPM working for VI generation devices with Intel Alder Lake?
Quoted 6 lines
Quoted 2 lines
As Alex mentioned, we need support from Intel. We don't have any update on that.
It’d be great to get that fixed properly.
Last thing, please don’t hate me, does Linux log, that ASPM is disabled?
Quoted 8 lines
I'm not sure what gets logged at the platform level with respect to ASPM, but whether or not the driver enables ASPM is tied to whether ASPM is allowed at the platform level or not so if the platform indicates that ASPM is not supported, the driver won't enable it. The driver does not log whether ASPM is enabled or not if that is what you are asking. As to whether or not it should, it comes down to how much stuff is worth indiciating in the log. The driver is already pretty chatty by driver standards.
Quoted 1 line
I specifically mean, Linux should log the quirks it applies. (As a normal user, I’d also expect ASPM to work nowadays, so a message, that it’s disabled would help a lot.)
In general rule we shouldn't generate additional log unless something went wrong with the system.
Quoted 5 lines
Kind regards,
Paul
Dear Richard,
Am 20.04.22 um 22:56 schrieb Gong, Richard:
Quoted 201 lines · Paul Menzel
Quoted 200 lines
Am 20.04.22 um 22:40 schrieb Alex Deucher:
Quoted 197 lines · Paul Menzel
Quoted 181 lines
Am 19.04.22 um 23:46 schrieb Gong, Richard:
Quoted 2 lines · Paul Menzel
Quoted 1 line
[Cc: -kernel test robot <[email protected]>]
[…]
Quoted 6 lines
Quoted 6 lines
Am 13.04.22 um 15:00 schrieb Alex Deucher:
Quoted 5 lines · Paul Menzel
Quoted 4 lines
Thank you for sending out v4.
Am 12.04.22 um 23:50 schrieb Richard Gong:
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14.
There are some AMD GFX cards (such as WX3200 and RX640) that won't work
with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as
video/display output, Intel Alder Lake based systems will hang during suspend/resume.[Your email program wraps lines in cited text for some reason, making the citation harder to read.]
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
I am still not clear, what “hang during suspend/resume” means. I guess suspending works fine? During resume (S3 or S0ix?), where does it hang? The system is functional, but there are only display problems?
System freeze after suspend/resume.
But you see certain messages still? At what point does it freeze exactly? In the bug report you posted Linux messages.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
The issue was initially reported on one system (Dell Precision 3660 with
BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder
Lake based systems.Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Add extra check to disable ASPM on Intel Alder Lake based systems.
Fixes 0064b0ce85bb ("drm/amd/pm: enable ASPM by default")Thank you Microsoft Outlook for keeping us safe. :(
Quoted 11 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Reported-by kernel test robot <[email protected]>This tag is a little confusing. Maybe clarify that it was for an issue in a previous patch iteration?
I did describe in change-list version 3 below, which corrected the build error with W=1 option.
It is not good idea to add the description for that to the commit message, this is why I add descriptions on change-list version 3.
Do as you wish, but the current style is confusing, and readers of the commit are going to think, the kernel test robot reported the problem with AMD VI ASICs and Intel Alder Lake systems.
Quoted 62 lines
Quoted 54 lines
Quoted 54 lines
Quoted 54 lines
Quoted 54 lines
Signed-off-by Richard Gong <[email protected]>---
v4: s/CONFIG_X86_64/CONFIG_X86
enhanced check logic
v3: s/intel_core_asom_chk/aspm_support_quirk_check correct build error with W=1 option
v2: correct commit description
move the check from chip family to problematic platform
---
drivers/gpu/drm/amd/amdgpu/vi.c| 17 ++++++++++++++++-1 file changed, 16 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/vi.c +4
-0@@ -81,6 +81,10 @@ #include "mxgpu_vi.h" #include "amdgpu_dm.h" +#if IS_ENABLED (CONFIG_X86 ) +#include <asm/intel-family.h> +#endif + #define ixPCIE_LC_L1_PM_SUBSTATE 0x100100C6 #define PCIE_LC_L1_PM_SUBSTATE__LC_L1_SUBSTATES_OVERRIDE_EN_MASK
0x00000001L
#definePCIE_LC_L1_PM_SUBSTATE__LC_PCI_PM_L1_2_OVERRIDE_MASK0x00000002Ldrivers/gpu/drm/amd/amdgpu/vi.c +11
-0@@ -1134,13 +1138,24 @@ static void vi_enable_aspm(struct amdgpu_device *adev) WREG32_PCIE(ixPCIE_LC_CNTL, data); } +static bool aspm_support_quirk_check (void ) +{ + if (IS_ENABLED(CONFIG_X86)) { + struct cpuinfo_x86 *c = &cpu_data(0); + + return !(c->x86 == 6 && c->x86_model ==INTEL_FAM6_ALDERLAKE ); + } + + return true; +} + static void vi_program_aspm(struct amdgpu_device *adev) { u32 data, data1, orig; bool bL1SS = false; bool bClkReqSupport = true;Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/vi.c +1
-1- if (!amdgpu_device_should_use_aspm(adev)) + if (!amdgpu_device_should_use_aspm(adev) || !aspm_support_quirk_check ())return;
Can users still forcefully enable ASPM with the parameter
amdgpu.aspm?Quoted 2 lines
As Mario mentioned in a separate reply, we can't forcefully enable ASPM with the parameter 'amdgpu.aspm'.
That would be a regression on systems where ASPM used to work. Hmm. I guess, you could say, there are no such systems.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 2 lines
if (
adev->flags&AMD_IS_APU||If I remember correctly, there were also newer cards, where ASPM worked with Intel Alder Lake, right? Can only the problematic generations for WX3200 and RX640 be excluded from ASPM?
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
This patch only disables it for the generatioaon that was problematic.
Could that please be made clear in the commit message summary, and message?
Are you ok with the commit messages below?
Please change the commit message summary. Maybe:
drm/amdgpu: VI: Disable ASPM on Intel Alder Lake based systems
Quoted 6 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14.
There are some AMD GFX cards (such as WX3200 and RX640) that won't work with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as video/display output, Intel Alder Lake based systems will freeze after suspend/resume.
Something like:
On Intel Alder Lake based systems using ASPM with AMD GFX Volcanic Islands (VI) cards, like WX3200 and RX640, graphics don’t initialize when resuming from S0ix(?).
Quoted 3 lines
The issue was initially reported on one system (Dell Precision 3660 with BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder Lake based systems.
Which ones?
Quoted 2 lines
Add extra check to disable ASPM on Intel Alder Lake based systems with problematic generation GFX cards.
… with the problematic Volcanic Islands GFX cards.
Quoted 4 lines
Quoted 3 lines
Loosely related, is there a public (or internal issue) to analyze how to get ASPM working for VI generation devices with Intel Alder Lake?
Quoted 6 lines
Quoted 2 lines
As Alex mentioned, we need support from Intel. We don't have any update on that.
It’d be great to get that fixed properly.
Last thing, please don’t hate me, does Linux log, that ASPM is disabled?
I'm not sure what gets logged at the platform level with respect to ASPM, but whether or not the driver enables ASPM is tied to whether ASPM is allowed at the platform level or not so if the platform indicates that ASPM is not supported, the driver won't enable it. The driver does not log whether ASPM is enabled or not if that is what you are asking. As to whether or not it should, it comes down to how much stuff is worth indiciating in the log. The driver is already pretty chatty by driver standards.
Quoted 3 lines
Quoted 1 line
I specifically mean, Linux should log the quirks it applies. (As a normal user, I’d also expect ASPM to work nowadays, so a message, that it’s disabled would help a lot.)
In general rule we shouldn't generate additional log unless something went wrong with the system.
Please run dmesg and see that your statement is false. That’s what log levels are for, and in your case, it would be at least error level. Also, I claim, something indeed went wrong, because a quirk had to be applied. So please add a notice log level, that ASPM gets disabled:
Disable ASPM on Alder Lake with Volcanic Islands card due to resume problems. System energy consumption might be higher than expected.
Kind regards,
Paul
Quoted 206 lines · Paul Menzel
Dear Richard,
Am 20.04.22 um 22:56 schrieb Gong, Richard:
Quoted 201 lines · Paul Menzel
Quoted 200 lines
Am 20.04.22 um 22:40 schrieb Alex Deucher:
Quoted 197 lines · Paul Menzel
Quoted 181 lines
Am 19.04.22 um 23:46 schrieb Gong, Richard:
Quoted 2 lines · Paul Menzel
Quoted 1 line
[Cc: -kernel test robot <[email protected]>]
[…]
Quoted 6 lines
Quoted 6 lines
Am 13.04.22 um 15:00 schrieb Alex Deucher:
Quoted 5 lines · Paul Menzel
Quoted 4 lines
Thank you for sending out v4.
Am 12.04.22 um 23:50 schrieb Richard Gong:
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14.
There are some AMD GFX cards (such as WX3200 and RX640) that won't work
with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as
video/display output, Intel Alder Lake based systems will hang during suspend/resume.[Your email program wraps lines in cited text for some reason, making the citation harder to read.]
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
I am still not clear, what “hang during suspend/resume” means. I guess suspending works fine? During resume (S3 or S0ix?), where does it hang? The system is functional, but there are only display problems?
System freeze after suspend/resume.
But you see certain messages still? At what point does it freeze exactly? In the bug report you posted Linux messages.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
The issue was initially reported on one system (Dell Precision 3660 with
BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder
Lake based systems.Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Add extra check to disable ASPM on Intel Alder Lake based systems.
Fixes 0064b0ce85bb ("drm/amd/pm: enable ASPM by default")Thank you Microsoft Outlook for keeping us safe. :(
Quoted 11 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Reported-by kernel test robot <[email protected]>This tag is a little confusing. Maybe clarify that it was for an issue in a previous patch iteration?
I did describe in change-list version 3 below, which corrected the build error with W=1 option.
It is not good idea to add the description for that to the commit message, this is why I add descriptions on change-list version 3.
Do as you wish, but the current style is confusing, and readers of the commit are going to think, the kernel test robot reported the problem with AMD VI ASICs and Intel Alder Lake systems.
Quoted 62 lines
Quoted 54 lines
Quoted 54 lines
Quoted 54 lines
Quoted 54 lines
Signed-off-by Richard Gong <[email protected]>---
v4: s/CONFIG_X86_64/CONFIG_X86
enhanced check logic
v3: s/intel_core_asom_chk/aspm_support_quirk_check correct build error with W=1 option
v2: correct commit description
move the check from chip family to problematic platform
---
drivers/gpu/drm/amd/amdgpu/vi.c| 17 ++++++++++++++++-1 file changed, 16 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/vi.c +4
-0@@ -81,6 +81,10 @@ #include "mxgpu_vi.h" #include "amdgpu_dm.h" +#if IS_ENABLED (CONFIG_X86 ) +#include <asm/intel-family.h> +#endif + #define ixPCIE_LC_L1_PM_SUBSTATE 0x100100C6 #define PCIE_LC_L1_PM_SUBSTATE__LC_L1_SUBSTATES_OVERRIDE_EN_MASK
0x00000001L
#definePCIE_LC_L1_PM_SUBSTATE__LC_PCI_PM_L1_2_OVERRIDE_MASK0x00000002Ldrivers/gpu/drm/amd/amdgpu/vi.c +11
-0@@ -1134,13 +1138,24 @@ static void vi_enable_aspm(struct amdgpu_device *adev) WREG32_PCIE(ixPCIE_LC_CNTL, data); } +static bool aspm_support_quirk_check (void ) +{ + if (IS_ENABLED(CONFIG_X86)) { + struct cpuinfo_x86 *c = &cpu_data(0); + + return !(c->x86 == 6 && c->x86_model ==INTEL_FAM6_ALDERLAKE ); + } + + return true; +} + static void vi_program_aspm(struct amdgpu_device *adev) { u32 data, data1, orig; bool bL1SS = false; bool bClkReqSupport = true;Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/vi.c +1
-1- if (!amdgpu_device_should_use_aspm(adev)) + if (!amdgpu_device_should_use_aspm(adev) || !aspm_support_quirk_check ())return;
Can users still forcefully enable ASPM with the parameter
amdgpu.aspm?Quoted 2 lines
As Mario mentioned in a separate reply, we can't forcefully enable ASPM with the parameter 'amdgpu.aspm'.
That would be a regression on systems where ASPM used to work. Hmm. I guess, you could say, there are no such systems.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 2 lines
if (
adev->flags&AMD_IS_APU||If I remember correctly, there were also newer cards, where ASPM worked with Intel Alder Lake, right? Can only the problematic generations for WX3200 and RX640 be excluded from ASPM?
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
This patch only disables it for the generatioaon that was problematic.
Could that please be made clear in the commit message summary, and message?
Are you ok with the commit messages below?
Please change the commit message summary. Maybe:
drm/amdgpu: VI: Disable ASPM on Intel Alder Lake based systems
Quoted 6 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14.
There are some AMD GFX cards (such as WX3200 and RX640) that won't work with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as video/display output, Intel Alder Lake based systems will freeze after suspend/resume.
Something like:
On Intel Alder Lake based systems using ASPM with AMD GFX Volcanic Islands (VI) cards, like WX3200 and RX640, graphics don’t initialize when resuming from S0ix(?).
Quoted 3 lines
The issue was initially reported on one system (Dell Precision 3660 with BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder Lake based systems.
Which ones?
Quoted 2 lines
Add extra check to disable ASPM on Intel Alder Lake based systems with problematic generation GFX cards.
… with the problematic Volcanic Islands GFX cards.
Quoted 4 lines
Quoted 3 lines
Loosely related, is there a public (or internal issue) to analyze how to get ASPM working for VI generation devices with Intel Alder Lake?
Quoted 6 lines
Quoted 2 lines
As Alex mentioned, we need support from Intel. We don't have any update on that.
It’d be great to get that fixed properly.
Last thing, please don’t hate me, does Linux log, that ASPM is disabled?
I'm not sure what gets logged at the platform level with respect to ASPM, but whether or not the driver enables ASPM is tied to whether ASPM is allowed at the platform level or not so if the platform indicates that ASPM is not supported, the driver won't enable it. The driver does not log whether ASPM is enabled or not if that is what you are asking. As to whether or not it should, it comes down to how much stuff is worth indiciating in the log. The driver is already pretty chatty by driver standards.
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
I specifically mean, Linux should log the quirks it applies. (As a normal user, I’d also expect ASPM to work nowadays, so a message, that it’s disabled would help a lot.)
In general rule we shouldn't generate additional log unless something went wrong with the system.
Please run
dmesgand see that your statement is false. That’s what log levels are for, and in your case, it would be at least error level. Also, I claim, something indeed went wrong, because a quirk had to be applied. So please add a notice log level, that ASPM gets disabled:
From my previous experience with upstream, the maintainers simply don't like adding logs unless absolutely need.
I can add a pr_warn or dev_warn, but I can't guarantee that maintainers will take that in my case.
Quoted 7 lines
Disable ASPM on Alder Lake with Volcanic Islands card due to resume problems. System energy consumption might be higher than expected.
Kind regards,
Paul
Quoted 249 lines · Richard
Quoted 238 lines · Paul Menzel
Dear Richard,
Am 20.04.22 um 22:56 schrieb Gong, Richard:
Quoted 233 lines · Paul Menzel
Quoted 231 lines
Am 20.04.22 um 22:40 schrieb Alex Deucher:
Quoted 217 lines
Quoted 205 lines · Paul Menzel
Am 19.04.22 um 23:46 schrieb Gong, Richard:
Quoted 2 lines · Paul Menzel
Quoted 1 line
[Cc: -kernel test robot <[email protected]>]
[…]
Quoted 6 lines
Quoted 6 lines
Am 13.04.22 um 15:00 schrieb Alex Deucher:
Quoted 5 lines · Paul Menzel
Quoted 4 lines
Thank you for sending out v4.
Am 12.04.22 um 23:50 schrieb Richard Gong:
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14.
There are some AMD GFX cards (such as WX3200 and RX640) that won't
work
with ASPM-enabled Intel Alder Lake based systems. Using these GFX
cards as
video/display output, Intel Alder Lake based systems will hang during
suspend/resume.[Your email program wraps lines in cited text for some reason, making the citation harder to read.]
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
I am still not clear, what “hang during suspend/resume” means. I guess
suspending works fine? During resume (S3 or S0ix?), where does it hang?
The system is functional, but there are only display problems?System freeze after suspend/resume.
But you see certain messages still? At what point does it freeze exactly? In the bug report you posted Linux messages.
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
The issue was initially reported on one system (Dell Precision 3660
with
BIOS version 0.14.81), but was later confirmed to affect at least 4
Alder
Lake based systems.Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Add extra check to disable ASPM on Intel Alder Lake based systems.
Fixes 0064b0ce85bb ("drm/amd/pm: enable ASPM by default")Thank you Microsoft Outlook for keeping us safe. :(
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines
Reported-by kernel test robot <[email protected]>This tag is a little confusing. Maybe clarify that it was for an issue
in a previous patch iteration?Quoted 6 lines
I did describe in change-list version 3 below, which corrected the build
error with W=1 option.It is not good idea to add the description for that to the commit message, this is why I add descriptions on change-list version 3.
Do as you wish, but the current style is confusing, and readers of the
commit are going to think, the kernel test robot reported the problem with AMD VI ASICs and Intel Alder Lake systems.Quoted 63 lines
Quoted 55 lines
Quoted 55 lines
Quoted 55 lines
Quoted 55 lines
Signed-off-by Richard Gong <[email protected]>---
v4: s/CONFIG_X86_64/CONFIG_X86
enhanced check logic
v3: s/intel_core_asom_chk/aspm_support_quirk_check
correct build error with W=1 option
v2: correct commit description
move the check from chip family to problematic platform--- drivers/gpu/drm/amd/amdgpu/vi.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/vi.c +4
-0@@ -81,6 +81,10 @@#include "mxgpu_vi.h" #include "amdgpu_dm.h" +#if IS_ENABLED (CONFIG_X86 ) +#include <asm/intel-family.h> +#endif +#define ixPCIE_LC_L1_PM_SUBSTATE 0x100100C6 #define
PCIE_LC_L1_PM_SUBSTATE__LC_L1_SUBSTATES_OVERRIDE_EN_MASK0x00000001L#define PCIE_LC_L1_PM_SUBSTATE__LC_PCI_PM_L1_2_OVERRIDE_MASK
0x00000002Ldrivers/gpu/drm/amd/amdgpu/vi.c +11
-0@@ -1134,13 +1138,24 @@ static void vi_enable_aspm(struct amdgpu_device *adev)WREG32_PCIE (ixPCIE_LC_CNTL ,data ); } +static bool aspm_support_quirk_check (void ) +{ +if (IS_ENABLED (CONFIG_X86 )) { +struct cpuinfo_x86 *c = &cpu_data (0 ); + +return !(c->x86 ==6 && c->x86_model ==INTEL_FAM6_ALDERLAKE ); + } + +return true; +} +static void vi_program_aspm (struct amdgpu_device *adev) {u32 data, data1, orig;bool bL1SS = false;bool bClkReqSupport = true;Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/vi.c +1
-1-if (!amdgpu_device_should_use_aspm (adev)) +if (!amdgpu_device_should_use_aspm (adev) || !aspm_support_quirk_check ())return;Can users still forcefully enable ASPM with the parameter
amdgpu.aspm?Quoted 3 lines
As Mario mentioned in a separate reply, we can't forcefully enable ASPM
with the parameter 'amdgpu.aspm'.That would be a regression on systems where ASPM used to work. Hmm. I guess, you could say, there are no such systems.
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 2 lines
if (adev->flags & AMD_IS_APU ||If I remember correctly, there were also newer cards, where ASPM worked
with Intel Alder Lake, right? Can only the problematic generations for
WX3200 and RX640 be excluded from ASPM?Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
This patch only disables it for the generatioaon that was problematic.
Could that please be made clear in the commit message summary, and message?
Are you ok with the commit messages below?
Please change the commit message summary. Maybe:
drm/amdgpu: VI: Disable ASPM on Intel Alder Lake based systems
Quoted 10 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14.
There are some AMD GFX cards (such as WX3200 and RX640) that won't work
with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as
video/display output, Intel Alder Lake based systems will freeze after
suspend/resume.Something like:
On Intel Alder Lake based systems using ASPM with AMD GFX Volcanic Islands (VI) cards, like WX3200 and RX640, graphics don’t initialize when resuming from S0ix(?).
Quoted 5 lines
The issue was initially reported on one system (Dell Precision 3660 with
BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder
Lake based systems.Which ones?
Quoted 3 lines
Add extra check to disable ASPM on Intel Alder Lake based systems with
problematic generation GFX cards.… with the problematic Volcanic Islands GFX cards.
Quoted 6 lines
Quoted 5 lines
Loosely related, is there a public (or internal issue) to analyze how
to get ASPM working for VI generation devices with Intel Alder Lake?Quoted 8 lines
Quoted 3 lines
As Alex mentioned, we need support from Intel. We don't have any update
on that.It’d be great to get that fixed properly.
Last thing, please don’t hate me, does Linux log, that ASPM is disabled?
Quoted 8 lines
I'm not sure what gets logged at the platform level with respect to ASPM, but whether or not the driver enables ASPM is tied to whether ASPM is allowed at the platform level or not so if the platform indicates that ASPM is not supported, the driver won't enable it. The driver does not log whether ASPM is enabled or not if that is what you are asking. As to whether or not it should, it comes down to how much stuff is worth indiciating in the log. The driver is already pretty chatty by driver standards.
I specifically mean, Linux should log the quirks it applies. (As a normal user, I’d also expect ASPM to work nowadays, so a message, that it’s disabled would help a lot.)
Quoted 7 lines
Quoted 2 lines
In general rule we shouldn't generate additional log unless something went wrong with the system.
Please run
dmesgand see that your statement is false. That’s what log levels are for, and in your case, it would be at least error level. Also, I claim, something indeed went wrong, because a quirk had to be applied. So please add a notice log level, that ASPM gets disabled:
Quoted 5 lines
From my previous experience with upstream, the maintainers simply don't
like adding logs unless absolutely need.I can add a
pr_warnordev_warn, but I can't guarantee that maintainers will take that in my case.
Certainly don't make it a warning.
Alex
Quoted 9 lines
Quoted 9 lines
Disable ASPM on Alder Lake with Volcanic Islands card due to resume problems. System energy consumption might be higher than expected.
Kind regards,
Paul
Quoted 234 lines · Paul Menzel
Dear Richard,
Am 20.04.22 um 22:56 schrieb Gong, Richard:
Quoted 221 lines · Paul Menzel
Quoted 220 lines
Am 20.04.22 um 22:40 schrieb Alex Deucher:
Quoted 217 lines
Quoted 197 lines · Paul Menzel
Am 19.04.22 um 23:46 schrieb Gong, Richard:
Quoted 2 lines · Paul Menzel
Quoted 1 line
[Cc: -kernel test robot <[email protected]>]
[…]
Quoted 6 lines
Quoted 6 lines
Am 13.04.22 um 15:00 schrieb Alex Deucher:
Quoted 5 lines · Paul Menzel
Quoted 4 lines
Thank you for sending out v4.
Am 12.04.22 um 23:50 schrieb Richard Gong:
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14.
There are some AMD GFX cards (such as WX3200 and RX640) that won't work
with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as
video/display output, Intel Alder Lake based systems will hang during
suspend/resume.[Your email program wraps lines in cited text for some reason, making the citation harder to read.]
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
I am still not clear, what “hang during suspend/resume” means. I guess
suspending works fine? During resume (S3 or S0ix?), where does it hang?
The system is functional, but there are only display problems?System freeze after suspend/resume.
But you see certain messages still? At what point does it freeze exactly? In the bug report you posted Linux messages.
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
The issue was initially reported on one system (Dell Precision 3660
with
BIOS version 0.14.81), but was later confirmed to affect at least 4
Alder
Lake based systems.Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Add extra check to disable ASPM on Intel Alder Lake based systems.
Fixes 0064b0ce85bb ("drm/amd/pm: enable ASPM by default")Thank you Microsoft Outlook for keeping us safe. :(
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines
Reported-by kernel test robot <[email protected]>This tag is a little confusing. Maybe clarify that it was for an issue
in a previous patch iteration?Quoted 6 lines
I did describe in change-list version 3 below, which corrected the build
error with W=1 option.It is not good idea to add the description for that to the commit message, this is why I add descriptions on change-list version 3.
Do as you wish, but the current style is confusing, and readers of the commit are going to think, the kernel test robot reported the problem with AMD VI ASICs and Intel Alder Lake systems.
Quoted 63 lines
Quoted 55 lines
Quoted 55 lines
Quoted 55 lines
Quoted 55 lines
Signed-off-by Richard Gong <[email protected]>---
v4: s/CONFIG_X86_64/CONFIG_X86
enhanced check logic
v3: s/intel_core_asom_chk/aspm_support_quirk_check
correct build error with W=1 option
v2: correct commit description
move the check from chip family to problematic platform--- drivers/gpu/drm/amd/amdgpu/vi.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/vi.c +4
-0@@ -81,6 +81,10 @@#include "mxgpu_vi.h" #include "amdgpu_dm.h" +#if IS_ENABLED (CONFIG_X86 ) +#include <asm/intel-family.h> +#endif +#define ixPCIE_LC_L1_PM_SUBSTATE 0x100100C6 #define
PCIE_LC_L1_PM_SUBSTATE__LC_L1_SUBSTATES_OVERRIDE_EN_MASK0x00000001L#define PCIE_LC_L1_PM_SUBSTATE__LC_PCI_PM_L1_2_OVERRIDE_MASK
0x00000002Ldrivers/gpu/drm/amd/amdgpu/vi.c +11
-0@@ -1134,13 +1138,24 @@ static void vi_enable_aspm(struct amdgpu_device *adev)WREG32_PCIE (ixPCIE_LC_CNTL ,data ); } +static bool aspm_support_quirk_check (void ) +{ +if (IS_ENABLED (CONFIG_X86 )) { +struct cpuinfo_x86 *c = &cpu_data (0 ); + +return !(c->x86 ==6 && c->x86_model ==INTEL_FAM6_ALDERLAKE ); + } + +return true; +} +static void vi_program_aspm (struct amdgpu_device *adev) {u32 data, data1, orig;bool bL1SS = false;bool bClkReqSupport = true;Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/vi.c +1
-1-if (!amdgpu_device_should_use_aspm (adev)) +if (!amdgpu_device_should_use_aspm (adev) || !aspm_support_quirk_check ())return;Can users still forcefully enable ASPM with the parameter
amdgpu.aspm?Quoted 3 lines
As Mario mentioned in a separate reply, we can't forcefully enable ASPM
with the parameter 'amdgpu.aspm'.That would be a regression on systems where ASPM used to work. Hmm. I guess, you could say, there are no such systems.
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 2 lines
if (adev->flags & AMD_IS_APU ||If I remember correctly, there were also newer cards, where ASPM worked
with Intel Alder Lake, right? Can only the problematic generations for
WX3200 and RX640 be excluded from ASPM?Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
This patch only disables it for the generatioaon that was problematic.
Could that please be made clear in the commit message summary, and message?
Are you ok with the commit messages below?
Please change the commit message summary. Maybe:
drm/amdgpu: VI: Disable ASPM on Intel Alder Lake based systems
Quoted 9 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14.
There are some AMD GFX cards (such as WX3200 and RX640) that won't work
with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as
video/display output, Intel Alder Lake based systems will freeze after suspend/resume.Something like:
On Intel Alder Lake based systems using ASPM with AMD GFX Volcanic Islands (VI) cards, like WX3200 and RX640, graphics don’t initialize when resuming from S0ix(?).
Quoted 5 lines
The issue was initially reported on one system (Dell Precision 3660 with
BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder
Lake based systems.Which ones?
Quoted 2 lines
Add extra check to disable ASPM on Intel Alder Lake based systems with problematic generation GFX cards.
… with the problematic Volcanic Islands GFX cards.
Quoted 4 lines
Quoted 3 lines
Loosely related, is there a public (or internal issue) to analyze how to get ASPM working for VI generation devices with Intel Alder Lake?
Quoted 8 lines
Quoted 3 lines
As Alex mentioned, we need support from Intel. We don't have any update
on that.It’d be great to get that fixed properly.
Last thing, please don’t hate me, does Linux log, that ASPM is disabled?
I'm not sure what gets logged at the platform level with respect to ASPM, but whether or not the driver enables ASPM is tied to whether ASPM is allowed at the platform level or not so if the platform indicates that ASPM is not supported, the driver won't enable it. The driver does not log whether ASPM is enabled or not if that is what you are asking. As to whether or not it should, it comes down to how much stuff is worth indiciating in the log. The driver is already pretty chatty by driver standards.
Quoted 6 lines
Quoted 3 lines
I specifically mean, Linux should log the quirks it applies. (As a normal user, I’d also expect ASPM to work nowadays, so a message, that it’s disabled would help a lot.)
In general rule we shouldn't generate additional log unless something went wrong with the system.
Quoted 7 lines
Please run
dmesgand see that your statement is false. That’s what log levels are for, and in your case, it would be at least error level. Also, I claim, something indeed went wrong, because a quirk had to be applied. So please add a notice log level, that ASPM gets disabled:Disable ASPM on Alder Lake with Volcanic Islands card due to resume problems. System energy consumption might be higher than expected.
ASPM does not save that much power. I doubt you could really measure it effectively without dedicated equipment. Adding too many of these types of messages just leads to lots of useless bug reports. Users see the message and file bugs.
Alex
[Public]
Quoted 270 lines
-----Original Message-----
From: Alex Deucher <[email protected]>
Sent: Wednesday, April 20, 2022 16:14
To: Paul Menzel <[email protected]>
Cc: Gong, Richard <[email protected]>; Dave Airlie <[email protected]>; Pan, Xinhui <[email protected]>; LKML <[email protected]>; Maling list - DRI developers <[email protected]>; amd-gfx list <[email protected]>; Daniel Vetter <[email protected]>; Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Limonciello, Mario <[email protected]>
Subject: Re: [PATCHv4] drm/amdgpu: disable ASPM on Intel Alder Lake based systemsQuoted 10 lines · Paul Menzel
Dear Richard,
Am 20.04.22 um 22:56 schrieb Gong, Richard:
Quoted 4 lines · Paul Menzel
Quoted 3 lines
Am 20.04.22 um 22:40 schrieb Alex Deucher:
Quoted 1 line
On Wed, Apr 20, 2022 at 4:29 PM Paul Menzel
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 8 lines · wrote:
Am 19.04.22 um 23:46 schrieb Gong, Richard:
Quoted 2 lines · Paul Menzel
Quoted 1 line
[Cc: -kernel test robot <[email protected]>]
[...]
Quoted 1 line
Quoted 1 line
Am 13.04.22 um 15:00 schrieb Alex Deucher:
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines · Paul Menzel
Quoted 7 lines
Thank you for sending out v4.
Am 12.04.22 um 23:50 schrieb Richard Gong:
Quoted 3 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14.
There are some AMD GFX cards (such as WX3200 and RX640) thatwon't
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
work
with ASPM-enabled Intel Alder Lake based systems. Using theseGFX
Quoted 27 lines
Quoted 27 lines
Quoted 27 lines
Quoted 27 lines
Quoted 27 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
cards as
video/display output, Intel Alder Lake based systems will hang during
suspend/resume.[Your email program wraps lines in cited text for some reason, making the citation harder to read.]
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
I am still not clear, what "hang during suspend/resume" means. I guess
suspending works fine? During resume (S3 or S0ix?), where does it hang?
The system is functional, but there are only display problems?System freeze after suspend/resume.
But you see certain messages still? At what point does it freeze exactly? In the bug report you posted Linux messages.
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
The issue was initially reported on one system (Dell Precision 3660
with
BIOS version 0.14.81), but was later confirmed to affect at least 4
Alder
Lake based systems.Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Add extra check to disable ASPM on Intel Alder Lake based
systems.
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Fixes 0064b0ce85bb ("drm/amd/pm: enable ASPM by default")Link:
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitlab.fr
eedesktop.org%2Fdrm%2Famd%2F- %2Fissues%2F1885&data=05%7C01%7Cmario.limonciello%40amd.com%7 Ce74863210c324bc6fda608da2312b506%7C3dd8961fe4884e608e11a82d994e1 83d%7C0%7C0%7C637860860514174025%7CUnknown%7CTWFpbGZsb3d8eyJ WIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C 3000%7C%7C%7C&sdata=NUGXlybuH3volccVuN%2BGQ0kXwsOfCqM%2F wqHL6%2F%2FGYUc%3D&reserved=0Quoted 44 lines
Quoted 44 lines
Quoted 44 lines
Quoted 44 lines
Quoted 44 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Thank you Microsoft Outlook for keeping us safe. :(
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines
Reported-by kernel test robot <[email protected]>This tag is a little confusing. Maybe clarify that it was for an issue
in a previous patch iteration?Quoted 6 lines
I did describe in change-list version 3 below, which corrected the build
error with W=1 option.It is not good idea to add the description for that to the commit message, this is why I add descriptions on change-list version 3.
Do as you wish, but the current style is confusing, and readers of the commit are going to think, the kernel test robot reported the problem with AMD VI ASICs and Intel Alder Lake systems.
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
Signed-off-by Richard Gong <[email protected]>---
v4: s/CONFIG_X86_64/CONFIG_X86
enhanced check logic
v3: s/intel_core_asom_chk/aspm_support_quirk_check
correct build error with W=1 option
v2: correct commit description
move the check from chip family to problematic platform--- drivers/gpu/drm/amd/amdgpu/vi.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/vi.c +0
-0@@ -81,6 +81,10 @@#include "mxgpu_vi.h" #include "amdgpu_dm.h" Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/vi.c line 90
Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/vi.c +4
-0+#if IS_ENABLED (CONFIG_X86 ) +#include <asm/intel-family.h> +#endif +#define ixPCIE_LC_L1_PM_SUBSTATE 0x100100C6 #define
PCIE_LC_L1_PM_SUBSTATE__LC_L1_SUBSTATES_OVERRIDE_EN_MASKQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
0x00000001L#define
PCIE_LC_L1_PM_SUBSTATE__LC_PCI_PM_L1_2_OVERRIDE_MASKQuoted 32 lines
Quoted 32 lines
Quoted 32 lines
Quoted 32 lines
Quoted 32 lines
Quoted 32 lines
Quoted 32 lines
Quoted 32 lines
Quoted 32 lines
Quoted 27 lines
0x00000002Ldrivers/gpu/drm/amd/amdgpu/vi.c +12
-1@@ -1134,13 +1138,24 @@ static void vi_enable_aspm(struct amdgpu_device *adev)WREG32_PCIE (ixPCIE_LC_CNTL ,data ); } +static bool aspm_support_quirk_check (void ) +{ +if (IS_ENABLED (CONFIG_X86 )) { +struct cpuinfo_x86 *c = &cpu_data (0 ); + +return !(c->x86 ==6 && c->x86_model ==INTEL_FAM6_ALDERLAKE ); + } + +return true; +} +static void vi_program_aspm (struct amdgpu_device *adev) {u32 data, data1, orig;bool bL1SS = false;bool bClkReqSupport = true; -if (!amdgpu_device_should_use_aspm (adev)) +if (!amdgpu_device_should_use_aspm (adev) || !aspm_support_quirk_check ())Quoted 1 line
return;Can users still forcefully enable ASPM with the parameter
amdgpu.aspm?Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
As Mario mentioned in a separate reply, we can't forcefully enable ASPM
with the parameter 'amdgpu.aspm'.That would be a regression on systems where ASPM used to work. Hmm.
I
Quoted 87 lines
Quoted 75 lines
Quoted 75 lines
Quoted 74 lines
Quoted 57 lines
guess, you could say, there are no such systems.
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 2 lines
if (adev->flags & AMD_IS_APU ||If I remember correctly, there were also newer cards, where ASPM worked
with Intel Alder Lake, right? Can only the problematic generations for
WX3200 and RX640 be excluded from ASPM?Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
This patch only disables it for the generatioaon that was problematic.
Could that please be made clear in the commit message summary, and message?
Are you ok with the commit messages below?
Please change the commit message summary. Maybe:
drm/amdgpu: VI: Disable ASPM on Intel Alder Lake based systems
Quoted 9 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14.
There are some AMD GFX cards (such as WX3200 and RX640) that won't work
with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as
video/display output, Intel Alder Lake based systems will freeze after suspend/resume.Something like:
On Intel Alder Lake based systems using ASPM with AMD GFX Volcanic Islands (VI) cards, like WX3200 and RX640, graphics don't initialize when resuming from S0ix(?).
Quoted 5 lines
The issue was initially reported on one system (Dell Precision 3660 with
BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder
Lake based systems.Which ones?
Quoted 2 lines
Add extra check to disable ASPM on Intel Alder Lake based systems with problematic generation GFX cards.
... with the problematic Volcanic Islands GFX cards.
Quoted 4 lines
Quoted 3 lines
Loosely related, is there a public (or internal issue) to analyze how to get ASPM working for VI generation devices with Intel Alder Lake?
Quoted 8 lines
Quoted 3 lines
As Alex mentioned, we need support from Intel. We don't have any update
on that.It'd be great to get that fixed properly.
Last thing, please don't hate me, does Linux log, that ASPM is disabled?
I'm not sure what gets logged at the platform level with respect to ASPM, but whether or not the driver enables ASPM is tied to whether ASPM is allowed at the platform level or not so if the platform indicates that ASPM is not supported, the driver won't enable it. The driver does not log whether ASPM is enabled or not if that is what you are asking. As to whether or not it should, it comes down to how much stuff is worth indiciating in the log. The driver is already pretty chatty by driver standards.
Quoted 6 lines
Quoted 3 lines
I specifically mean, Linux should log the quirks it applies. (As a normal user, I'd also expect ASPM to work nowadays, so a message, that it's disabled would help a lot.)
In general rule we shouldn't generate additional log unless something went wrong with the system.
Please run
dmesgand see that your statement is false. That's what log levels are for, and in your case, it would be at least error level. Also, I claim, something indeed went wrong, because a quirk had to be applied. So please add a notice log level, that ASPM gets disabled:
Quoted 7 lines
Quoted 2 lines
Disable ASPM on Alder Lake with Volcanic Islands card due to resume problems. System energy consumption might be higher than expected.
ASPM does not save that much power. I doubt you could really measure it effectively without dedicated equipment. Adding too many of these types of messages just leads to lots of useless bug reports. Users see the message and file bugs.
IMO warn and error level definitely lead to bug reports. I've seen plenty of these filed even from Paul that the levels are wrong.
*If* there was a message added it should be info or notice.
Hi Paul,
Quoted 15 lines · Paul Menzel
Dear Richard,
Am 19.04.22 um 23:46 schrieb Gong, Richard:
Quoted 2 lines · Paul Menzel
Quoted 1 line
[Cc: -kernel test robot <[email protected]>]
[…]
Quoted 5 lines
Quoted 5 lines
Am 13.04.22 um 15:00 schrieb Alex Deucher:
Quoted 4 lines · Paul Menzel
Quoted 3 lines
Thank you for sending out v4.
Quoted 9 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Am 12.04.22 um 23:50 schrieb Richard Gong:
Quoted 5 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14. There are some AMD GFX cards (such as WX3200 and RX640) that won't work with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as video/display output, Intel Alder Lake based systems will hang during suspend/resume.
[Your email program wraps lines in cited text for some reason, making the citation harder to read.]
Not sure why, I am using Mozila Thunderbird for email. I am not using MS Outlook for upstream email.
Quoted 7 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
I am still not clear, what “hang during suspend/resume” means. I guess suspending works fine? During resume (S3 or S0ix?), where does it hang? The system is functional, but there are only display problems?
System freeze after suspend/resume.
But you see certain messages still? At what point does it freeze exactly? In the bug report you posted Linux messages.
No, the system freeze then users have to recycle power to recover.
Quoted 11 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
The issue was initially reported on one system (Dell Precision 3660 with BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder Lake based systems.
Add extra check to disable ASPM on Intel Alder Lake based systems.
Fixes 0064b0ce85bb ("drm/amd/pm: enable ASPM by default")Thank you Microsoft Outlook for keeping us safe. :(
I am not using MS Outlook for the email exchanges.
Quoted 101 lines
Quoted 10 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Reported-by kernel test robot <[email protected]>This tag is a little confusing. Maybe clarify that it was for an issue in a previous patch iteration?
I did describe in change-list version 3 below, which corrected the build error with W=1 option.
It is not good idea to add the description for that to the commit message, this is why I add descriptions on change-list version 3.
Do as you wish, but the current style is confusing, and readers of the commit are going to think, the kernel test robot reported the problem with AMD VI ASICs and Intel Alder Lake systems.
Quoted 51 lines
Quoted 51 lines
Quoted 51 lines
Quoted 51 lines
Quoted 51 lines
Signed-off-by Richard Gong <[email protected]>---
v4: s/CONFIG_X86_64/CONFIG_X86
enhanced check logic
v3: s/intel_core_asom_chk/aspm_support_quirk_check correct build error with W=1 option
v2: correct commit description
move the check from chip family to problematic platform
---
drivers/gpu/drm/amd/amdgpu/vi.c| 17 ++++++++++++++++-1 file changed, 16 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/vi.c +15
-0@@ -81,6 +81,10 @@ #include "mxgpu_vi.h" #include "amdgpu_dm.h" +#if IS_ENABLED (CONFIG_X86 ) +#include <asm/intel-family.h> +#endif + #define ixPCIE_LC_L1_PM_SUBSTATE 0x100100C6 #define PCIE_LC_L1_PM_SUBSTATE__LC_L1_SUBSTATES_OVERRIDE_EN_MASK 0x00000001L #define PCIE_LC_L1_PM_SUBSTATE__LC_PCI_PM_L1_2_OVERRIDE_MASK 0x00000002L@@ -1134,13 +1138,24 @@ static void vi_enable_aspm(struct amdgpu_device *adev) WREG32_PCIE(ixPCIE_LC_CNTL, data); } +static bool aspm_support_quirk_check (void ) +{ + if (IS_ENABLED(CONFIG_X86)) { + struct cpuinfo_x86 *c = &cpu_data(0); + + return !(c->x86 == 6 && c->x86_model ==INTEL_FAM6_ALDERLAKE ); + } + + return true; +} + static void vi_program_aspm(struct amdgpu_device *adev) { u32 data, data1, orig; bool bL1SS = false; bool bClkReqSupport = true;Quoted 8 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/vi.c +1
-1- if (!amdgpu_device_should_use_aspm(adev)) + if (!amdgpu_device_should_use_aspm(adev) || !aspm_support_quirk_check ())return;
Can users still forcefully enable ASPM with the parameter
amdgpu.aspm?As Mario mentioned in a separate reply, we can't forcefully enable ASPM with the parameter 'amdgpu.aspm'.
That would be a regression on systems where ASPM used to work. Hmm. I guess, you could say, there are no such systems.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 2 lines
if (
adev->flags&AMD_IS_APU||If I remember correctly, there were also newer cards, where ASPM worked with Intel Alder Lake, right? Can only the problematic generations for WX3200 and RX640 be excluded from ASPM?
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
This patch only disables it for the generatioaon that was problematic.
Could that please be made clear in the commit message summary, and message?
Are you ok with the commit messages below?
Please change the commit message summary. Maybe:
drm/amdgpu: VI: Disable ASPM on Intel Alder Lake based systems
Quoted 6 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14.
There are some AMD GFX cards (such as WX3200 and RX640) that won't work with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as video/display output, Intel Alder Lake based systems will freeze after suspend/resume.
Something like:
Quoted 8 lines
On Intel Alder Lake based systems using ASPM with AMD GFX Volcanic Islands (VI) cards, like WX3200 and RX640, graphics don’t initialize when resuming from S0ix(?).
Quoted 3 lines
The issue was initially reported on one system (Dell Precision 3660 with BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder Lake based systems.
Which ones?
those are pre-production Alder Lake based OEM systems
Quoted 19 lines
Quoted 3 lines
Add extra check to disable ASPM on Intel Alder Lake based systems with problematic generation GFX cards.
… with the problematic Volcanic Islands GFX cards.
Quoted 4 lines
Quoted 2 lines
Loosely related, is there a public (or internal issue) to analyze how to get ASPM working for VI generation devices with Intel Alder Lake?
As Alex mentioned, we need support from Intel. We don't have any update on that.
It’d be great to get that fixed properly.
Last thing, please don’t hate me, does Linux log, that ASPM is disabled?
Kind regards,
Paul
Dear Richard,
Am 21.04.22 um 03:12 schrieb Gong, Richard:
Quoted 21 lines · Paul Menzel
Quoted 20 lines
Am 19.04.22 um 23:46 schrieb Gong, Richard:
Quoted 2 lines · Paul Menzel
Quoted 1 line
[Cc: -kernel test robot <[email protected]>]
[…]
Quoted 11 lines
Quoted 11 lines
Am 13.04.22 um 15:00 schrieb Alex Deucher:
Quoted 10 lines · Paul Menzel
Quoted 9 lines
Thank you for sending out v4.
Am 12.04.22 um 23:50 schrieb Richard Gong:
Quoted 5 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14. There are some AMD GFX cards (such as WX3200 and RX640) that won't work with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as video/display output, Intel Alder Lake based systems will hang during suspend/resume.
Quoted 3 lines
Quoted 2 lines
[Your email program wraps lines in cited text for some reason, making the citation harder to read.]
Not sure why, I am using Mozila Thunderbird for email. I am not using MS Outlook for upstream email.
Strange. No idea if there were bugs in Mozilla Thunderbird 91.2.0, released over half year ago. The current version is 91.8.1. [1]
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
I am still not clear, what “hang during suspend/resume” means. I guess suspending works fine? During resume (S3 or S0ix?), where does it hang? The system is functional, but there are only display problems?
System freeze after suspend/resume.
But you see certain messages still? At what point does it freeze exactly? In the bug report you posted Linux messages.
No, the system freeze then users have to recycle power to recover.
Then I misread the issue? Did you capture the messages over serial log then?
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
The issue was initially reported on one system (Dell Precision 3660 with BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder Lake based systems.
Quoted 8 lines
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Add extra check to disable ASPM on Intel Alder Lake based systems.
Fixes 0064b0ce85bb ("drm/amd/pm: enable ASPM by default")Thank you Microsoft Outlook for keeping us safe. :(
I am not using MS Outlook for the email exchanges.
I guess, it’s not the client but the Microsoft email service (Exchange?) no idea adding these protection links. (Making it even harder for users to actually verify domain. No idea who comes up with these ideas, and customers actually accepting those.)
Quoted 103 lines
Quoted 103 lines
Quoted 9 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Reported-by kernel test robot <[email protected]>This tag is a little confusing. Maybe clarify that it was for an issue in a previous patch iteration?
I did describe in change-list version 3 below, which corrected the build error with W=1 option.
It is not good idea to add the description for that to the commit message, this is why I add descriptions on change-list version 3.
Do as you wish, but the current style is confusing, and readers of the commit are going to think, the kernel test robot reported the problem with AMD VI ASICs and Intel Alder Lake systems.
Quoted 51 lines
Quoted 51 lines
Quoted 51 lines
Quoted 51 lines
Quoted 51 lines
Signed-off-by Richard Gong <[email protected]>---
v4: s/CONFIG_X86_64/CONFIG_X86
enhanced check logic
v3: s/intel_core_asom_chk/aspm_support_quirk_check correct build error with W=1 option
v2: correct commit description
move the check from chip family to problematic platform
---
drivers/gpu/drm/amd/amdgpu/vi.c| 17 ++++++++++++++++-1 file changed, 16 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/vi.c +15
-0@@ -81,6 +81,10 @@ #include "mxgpu_vi.h" #include "amdgpu_dm.h" +#if IS_ENABLED (CONFIG_X86 ) +#include <asm/intel-family.h> +#endif + #define ixPCIE_LC_L1_PM_SUBSTATE 0x100100C6 #define PCIE_LC_L1_PM_SUBSTATE__LC_L1_SUBSTATES_OVERRIDE_EN_MASK 0x00000001L #define PCIE_LC_L1_PM_SUBSTATE__LC_PCI_PM_L1_2_OVERRIDE_MASK 0x00000002L@@ -1134,13 +1138,24 @@ static void vi_enable_aspm(struct amdgpu_device *adev) WREG32_PCIE(ixPCIE_LC_CNTL, data); } +static bool aspm_support_quirk_check (void ) +{ + if (IS_ENABLED(CONFIG_X86)) { + struct cpuinfo_x86 *c = &cpu_data(0); + + return !(c->x86 == 6 && c->x86_model ==INTEL_FAM6_ALDERLAKE ); + } + + return true; +} + static void vi_program_aspm(struct amdgpu_device *adev) { u32 data, data1, orig; bool bL1SS = false; bool bClkReqSupport = true;Quoted 8 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/vi.c +1
-1- if (!amdgpu_device_should_use_aspm(adev)) + if (!amdgpu_device_should_use_aspm(adev) || !aspm_support_quirk_check ())return;
Can users still forcefully enable ASPM with the parameter
amdgpu.aspm?As Mario mentioned in a separate reply, we can't forcefully enable ASPM with the parameter 'amdgpu.aspm'.
That would be a regression on systems where ASPM used to work. Hmm. I guess, you could say, there are no such systems.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 2 lines
if (
adev->flags&AMD_IS_APU||If I remember correctly, there were also newer cards, where ASPM worked with Intel Alder Lake, right? Can only the problematic generations for WX3200 and RX640 be excluded from ASPM?
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
This patch only disables it for the generatioaon that was problematic.
Could that please be made clear in the commit message summary, and message?
Are you ok with the commit messages below?
Please change the commit message summary. Maybe:
drm/amdgpu: VI: Disable ASPM on Intel Alder Lake based systems
Quoted 6 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14.
There are some AMD GFX cards (such as WX3200 and RX640) that won't work with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as video/display output, Intel Alder Lake based systems will freeze after suspend/resume.
Something like:
On Intel Alder Lake based systems using ASPM with AMD GFX Volcanic Islands (VI) cards, like WX3200 and RX640, graphics don’t initialize when resuming from S0ix(?).
Quoted 6 lines
Quoted 5 lines
Quoted 3 lines
The issue was initially reported on one system (Dell Precision 3660 with BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder Lake based systems.
Which ones?
those are pre-production Alder Lake based OEM systems
Just write that then: at least four pre-production Alder Lake based systems.
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines
Add extra check to disable ASPM on Intel Alder Lake based systems with problematic generation GFX cards.
… with the problematic Volcanic Islands GFX cards.
Quoted 1 line
Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Loosely related, is there a public (or internal issue) to analyze how to get ASPM working for VI generation devices with Intel Alder Lake?
As Alex mentioned, we need support from Intel. We don't have any update on that.
It’d be great to get that fixed properly.
Last thing, please don’t hate me, does Linux log, that ASPM is disabled?
Kind regards,
Paul
[1]: https://www.thunderbird.net/en-US/thunderbird/releases/
Hi Paul,
Quoted 35 lines · Paul Menzel
Dear Richard,
Am 21.04.22 um 03:12 schrieb Gong, Richard:
Quoted 21 lines · Paul Menzel
Quoted 20 lines
Am 19.04.22 um 23:46 schrieb Gong, Richard:
Quoted 2 lines · Paul Menzel
Quoted 1 line
[Cc: -kernel test robot <[email protected]>]
[…]
Quoted 11 lines
Quoted 11 lines
Am 13.04.22 um 15:00 schrieb Alex Deucher:
Quoted 10 lines · Paul Menzel
Quoted 9 lines
Thank you for sending out v4.
Am 12.04.22 um 23:50 schrieb Richard Gong:
Quoted 5 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14. There are some AMD GFX cards (such as WX3200 and RX640) that won't work with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as video/display output, Intel Alder Lake based systems will hang during suspend/resume.
Quoted 3 lines
Quoted 2 lines
[Your email program wraps lines in cited text for some reason, making the citation harder to read.]
Not sure why, I am using Mozila Thunderbird for email. I am not using MS Outlook for upstream email.
Strange. No idea if there were bugs in Mozilla Thunderbird 91.2.0, released over half year ago. The current version is 91.8.1. [1]
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
I am still not clear, what “hang during suspend/resume” means. I guess suspending works fine? During resume (S3 or S0ix?), where does it hang? The system is functional, but there are only display problems?
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
System freeze after suspend/resume.
But you see certain messages still? At what point does it freeze exactly? In the bug report you posted Linux messages.
No, the system freeze then users have to recycle power to recover.
Then I misread the issue? Did you capture the messages over serial log then?
I think so. We captured dmesg log.
As mentioned early we need support from Intel on how to get ASPM working for VI generation on Intel Alder Lake, but we don't know where things currently stand.
Quoted 149 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
The issue was initially reported on one system (Dell Precision 3660 with BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder Lake based systems.
Quoted 8 lines
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Add extra check to disable ASPM on Intel Alder Lake based systems.
Fixes 0064b0ce85bb ("drm/amd/pm: enable ASPM by default")Thank you Microsoft Outlook for keeping us safe. :(
I am not using MS Outlook for the email exchanges.
I guess, it’s not the client but the Microsoft email service (Exchange?) no idea adding these protection links. (Making it even harder for users to actually verify domain. No idea who comes up with these ideas, and customers actually accepting those.)
Quoted 103 lines
Quoted 103 lines
Quoted 9 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Reported-by kernel test robot <[email protected]>This tag is a little confusing. Maybe clarify that it was for an issue in a previous patch iteration?
I did describe in change-list version 3 below, which corrected the build error with W=1 option.
It is not good idea to add the description for that to the commit message, this is why I add descriptions on change-list version 3.
Do as you wish, but the current style is confusing, and readers of the commit are going to think, the kernel test robot reported the problem with AMD VI ASICs and Intel Alder Lake systems.
Quoted 51 lines
Quoted 51 lines
Quoted 51 lines
Quoted 51 lines
Quoted 51 lines
Signed-off-by Richard Gong <[email protected]>---
v4: s/CONFIG_X86_64/CONFIG_X86
enhanced check logic
v3: s/intel_core_asom_chk/aspm_support_quirk_check correct build error with W=1 option
v2: correct commit description
move the check from chip family to problematic platform
---
drivers/gpu/drm/amd/amdgpu/vi.c| 17 ++++++++++++++++-1 file changed, 16 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/vi.c +15
-0@@ -81,6 +81,10 @@ #include "mxgpu_vi.h" #include "amdgpu_dm.h" +#if IS_ENABLED (CONFIG_X86 ) +#include <asm/intel-family.h> +#endif + #define ixPCIE_LC_L1_PM_SUBSTATE 0x100100C6 #define PCIE_LC_L1_PM_SUBSTATE__LC_L1_SUBSTATES_OVERRIDE_EN_MASK 0x00000001L #define PCIE_LC_L1_PM_SUBSTATE__LC_PCI_PM_L1_2_OVERRIDE_MASK 0x00000002L@@ -1134,13 +1138,24 @@ static void vi_enable_aspm(struct amdgpu_device *adev) WREG32_PCIE(ixPCIE_LC_CNTL, data); } +static bool aspm_support_quirk_check (void ) +{ + if (IS_ENABLED(CONFIG_X86)) { + struct cpuinfo_x86 *c = &cpu_data(0); + + return !(c->x86 == 6 && c->x86_model ==INTEL_FAM6_ALDERLAKE ); + } + + return true; +} + static void vi_program_aspm(struct amdgpu_device *adev) { u32 data, data1, orig; bool bL1SS = false; bool bClkReqSupport = true;Quoted 8 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/vi.c +1
-1- if (!amdgpu_device_should_use_aspm(adev)) + if (!amdgpu_device_should_use_aspm(adev) || !aspm_support_quirk_check ())return;
Can users still forcefully enable ASPM with the parameter
amdgpu.aspm?As Mario mentioned in a separate reply, we can't forcefully enable ASPM with the parameter 'amdgpu.aspm'.
That would be a regression on systems where ASPM used to work. Hmm. I guess, you could say, there are no such systems.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 2 lines
if (
adev->flags&AMD_IS_APU||If I remember correctly, there were also newer cards, where ASPM worked with Intel Alder Lake, right? Can only the problematic generations for WX3200 and RX640 be excluded from ASPM?
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
This patch only disables it for the generatioaon that was problematic.
Could that please be made clear in the commit message summary, and message?
Are you ok with the commit messages below?
Please change the commit message summary. Maybe:
drm/amdgpu: VI: Disable ASPM on Intel Alder Lake based systems
Quoted 6 lines
Active State Power Management (ASPM) feature is enabled since kernel 5.14.
There are some AMD GFX cards (such as WX3200 and RX640) that won't work with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as video/display output, Intel Alder Lake based systems will freeze after suspend/resume.
Something like:
On Intel Alder Lake based systems using ASPM with AMD GFX Volcanic Islands (VI) cards, like WX3200 and RX640, graphics don’t initialize when resuming from S0ix(?).
Quoted 6 lines
Quoted 5 lines
Quoted 3 lines
The issue was initially reported on one system (Dell Precision 3660 with BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder Lake based systems.
Which ones?
those are pre-production Alder Lake based OEM systems
Just write that then: at least four pre-production Alder Lake based systems.
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines
Add extra check to disable ASPM on Intel Alder Lake based systems with problematic generation GFX cards.
… with the problematic Volcanic Islands GFX cards.
Quoted 1 line
Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Loosely related, is there a public (or internal issue) to analyze how to get ASPM working for VI generation devices with Intel Alder Lake?
As Alex mentioned, we need support from Intel. We don't have any update on that.
It’d be great to get that fixed properly.
Last thing, please don’t hate me, does Linux log, that ASPM is disabled?
Kind regards,
Paul
Dear Richard,
Sorry for the late reply.
Am 26.04.22 um 15:53 schrieb Gong, Richard:
Quoted 19 lines · Paul Menzel
Quoted 18 lines
Am 21.04.22 um 03:12 schrieb Gong, Richard:
Quoted 15 lines · Paul Menzel
Quoted 14 lines
Am 19.04.22 um 23:46 schrieb Gong, Richard:
Quoted 2 lines · Paul Menzel
Quoted 1 line
[Cc: -kernel test robot <[email protected]>]
[…]
Quoted 6 lines
Quoted 6 lines
Am 13.04.22 um 15:00 schrieb Alex Deucher:
Quoted 5 lines · Paul Menzel
Quoted 4 lines
Thank you for sending out v4.
Am 12.04.22 um 23:50 schrieb Richard Gong:
[…]
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
I am still not clear, what “hang during suspend/resume” means. I guess suspending works fine? During resume (S3 or S0ix?), where does it hang? The system is functional, but there are only display problems?
System freeze after suspend/resume.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
But you see certain messages still? At what point does it freeze exactly? In the bug report you posted Linux messages.
No, the system freeze then users have to recycle power to recover.
Then I misread the issue? Did you capture the messages over serial log then?
I think so. We captured dmesg log.
Then the (whole) system did *not* freeze, if you could still log in (maybe over network) and execute dmesg. Please also paste the amdgpu(?) error logs in the commit message.
Quoted 1 line
As mentioned early we need support from Intel on how to get ASPM working for VI generation on Intel Alder Lake, but we don't know where things currently stand.
Who is working on this, and knows?
Kind regards,
Paul
Hi Paul,
Quoted 20 lines · Paul Menzel
Dear Richard,
Sorry for the late reply.
Am 26.04.22 um 15:53 schrieb Gong, Richard:
Quoted 13 lines · Paul Menzel
Quoted 12 lines
Am 21.04.22 um 03:12 schrieb Gong, Richard:
Quoted 9 lines · Paul Menzel
Quoted 8 lines
Am 19.04.22 um 23:46 schrieb Gong, Richard:
Quoted 2 lines · Paul Menzel
Quoted 1 line
[Cc: -kernel test robot <[email protected]>]
[…]
Quoted 21 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Am 13.04.22 um 15:00 schrieb Alex Deucher:
Quoted 5 lines · Paul Menzel
Quoted 4 lines
Thank you for sending out v4.
Am 12.04.22 um 23:50 schrieb Richard Gong:
[…]
Quoted 12 lines
Quoted 10 lines
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
I am still not clear, what “hang during suspend/resume” means. I guess suspending works fine? During resume (S3 or S0ix?), where does it hang? The system is functional, but there are only display problems?
System freeze after suspend/resume.
But you see certain messages still? At what point does it freeze exactly? In the bug report you posted Linux messages.
No, the system freeze then users have to recycle power to recover.
Then I misread the issue? Did you capture the messages over serial log then?
I think so. We captured dmesg log.
make a correction, the previous 'dmesg log' description was not accurate.
I referred that to the kernel log captured via 'journalctl' after recycling the power. I should use kernel log rather than 'dmesg log' to avoid the confusion.
Quoted 2 lines
Then the (whole) system did *not* freeze, if you could still log in (maybe over network) and execute
dmesg. Please also paste the amdgpu(?) error logs in the commit message.
As mentioned in my "previous previous" reply, the user have to recycle power to reset the system.
When issue occurred, keyboard/mouse didn't work. 'demsg' and ssh didn't work either.
Quoted 4 lines
Quoted 2 lines
As mentioned early we need support from Intel on how to get ASPM working for VI generation on Intel Alder Lake, but we don't know where things currently stand.
Who is working on this, and knows?
I have no idea.
Quoted 4 lines
Kind regards,
Paul
Regards,
Richard
Quoted 7 lines · Paul Menzel
Am 26.04.22 um 15:53 schrieb Gong, Richard:
Quoted 1 line
I think so. We captured dmesg log.
Then the (whole) system did *not* freeze, if you could still log in (maybe over network) and execute
dmesg. Please also paste the amdgpu(?) error logs in the commit message.
Quoted 5 lines
Quoted 3 lines
As mentioned early we need support from Intel on how to get ASPM working for VI generation on Intel Alder Lake, but we don't know where things currently stand.
Who is working on this, and knows?
This has gone beyond the point of a reasonable request. The amount of detail you're demanding is completely unnecessary.
Dear Daniel,
Am 03.05.22 um 14:25 schrieb Daniel Stone:
Quoted 8 lines · Paul Menzel
Quoted 7 lines
Am 26.04.22 um 15:53 schrieb Gong, Richard:
Quoted 1 line
I think so. We captured dmesg log.
Then the (whole) system did *not* freeze, if you could still log in (maybe over network) and execute
dmesg. Please also paste the amdgpu(?) error logs in the commit message.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
As mentioned early we need support from Intel on how to get ASPM working for VI generation on Intel Alder Lake, but we don't know where things currently stand.
Who is working on this, and knows?
This has gone beyond the point of a reasonable request. The amount of detail you're demanding is completely unnecessary.
If a quirk is introduced possibly leading to higher power consumption, especially on systems nobody has access to yet, then the detail, where the system hangs/freezes is not unreasonable at all.
In the Linux logs from the issue there are messages like
[ 58.101385] Freezing of tasks failed after 20.003 seconds (4
tasks refusing to freeze, wq_busy=0):
[ 78.278403] Freezing of tasks failed after 20.008 seconds (4
tasks refusing to freeze, wq_busy=0):
and it looks like several suspend/resume cycles were done.
I see a lot of commit messages over the whole Linux kernel, where this level of detail is provided (by default), and
The second question was not for the commit message, but just for documentation purpose when the problem is going to be fixed properly. And it looks like (at least publicly) analyzing the root cause is not happening, and once the quirk lands, nobody is going to feel the pressure to work on it, as everyone’s plates are full.
Kind regards,
Paul
Hi Richard,
Quoted 43 lines · Richard Gong
Active State Power Management (ASPM) feature is enabled since kernel 5.14. There are some AMD GFX cards (such as WX3200 and RX640) that won't work with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as video/display output, Intel Alder Lake based systems will hang during suspend/resume.
The issue was initially reported on one system (Dell Precision 3660 with BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder Lake based systems.
Add extra check to disable ASPM on Intel Alder Lake based systems.
Fixes 0064b0ce85bb ("drm/amd/pm: enable ASPM by default")Reported-by kernel test robot <[email protected]>Signed-off-by Richard Gong <[email protected]>---
v4: s/CONFIG_X86_64/CONFIG_X86
enhanced check logic
v3: s/intel_core_asom_chk/aspm_support_quirk_check
correct build error with W=1 option
v2: correct commit description
move the check from chip family to problematic platform--- drivers/gpu/drm/amd/amdgpu/vi.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/vi.c +4
-0@@ -81,6 +81,10 @@#include "mxgpu_vi.h" #include "amdgpu_dm.h" +#if IS_ENABLED (CONFIG_X86 ) +#include <asm/intel-family.h> +#endif +#define ixPCIE_LC_L1_PM_SUBSTATE 0x100100C6#define PCIE_LC_L1_PM_SUBSTATE__LC_L1_SUBSTATES_OVERRIDE_EN_MASK 0x00000001L#define PCIE_LC_L1_PM_SUBSTATE__LC_PCI_PM_L1_2_OVERRIDE_MASK 0x00000002L
drivers/gpu/drm/amd/amdgpu/vi.c static void vi_enable_aspm(struct amdgpu_device *adev) · line 1147
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/vi.c +7
-0@@ -1134,13 +1138,24 @@ static void vi_enable_aspm(struct amdgpu_device *adev)WREG32_PCIE (ixPCIE_LC_CNTL, data); } +static bool aspm_support_quirk_check (void ) +{ +if (IS_ENABLED (CONFIG_X86 )) { +struct cpuinfo_x86 *c = &cpu_data (0 ); + +return !(c->x86 ==6 && c->x86_model ==INTEL_FAM6_ALDERLAKE ); + }
I have not seen this reported by a bot, sorry if it is a duplicate. This breaks non-x86 builds (arm64 allmodconfig for example):
drivers/gpu/drm/amd/amdgpu/vi.c:1144:28: error: implicit declaration of function 'cpu_data' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
struct cpuinfo_x86 *c = &cpu_data(0);
^
drivers/gpu/drm/amd/amdgpu/vi.c:1144:27: error: cannot take the address of an rvalue of type 'int'
struct cpuinfo_x86 *c = &cpu_data(0);
^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/vi.c:1146:13: error: incomplete definition of type 'struct cpuinfo_x86'
return !(c->x86 == 6 && c->x86_model == INTEL_FAM6_ALDERLAKE);
~^
drivers/gpu/drm/amd/amdgpu/vi.c:1144:10: note: forward declaration of 'struct cpuinfo_x86'
struct cpuinfo_x86 *c = &cpu_data(0);
^
drivers/gpu/drm/amd/amdgpu/vi.c:1146:28: error: incomplete definition of type 'struct cpuinfo_x86'
return !(c->x86 == 6 && c->x86_model == INTEL_FAM6_ALDERLAKE);
~^
drivers/gpu/drm/amd/amdgpu/vi.c:1144:10: note: forward declaration of 'struct cpuinfo_x86'
struct cpuinfo_x86 *c = &cpu_data(0);
^
drivers/gpu/drm/amd/amdgpu/vi.c:1146:43: error: use of undeclared identifier 'INTEL_FAM6_ALDERLAKE'
return !(c->x86 == 6 && c->x86_model == INTEL_FAM6_ALDERLAKE);
^5 errors generated.
'struct cpuinfo_x86' is only defined for CONFIG_X86 so this section needs to guarded with the preprocessor, which is how it was done in v2. Please go back to that.
Cheers,
Nathan
Hi Nathan,
Quoted 80 lines · Nathan Chancellor
Hi Richard,
Quoted 43 lines · Richard Gong
Active State Power Management (ASPM) feature is enabled since kernel 5.14. There are some AMD GFX cards (such as WX3200 and RX640) that won't work with ASPM-enabled Intel Alder Lake based systems. Using these GFX cards as video/display output, Intel Alder Lake based systems will hang during suspend/resume.
The issue was initially reported on one system (Dell Precision 3660 with BIOS version 0.14.81), but was later confirmed to affect at least 4 Alder Lake based systems.
Add extra check to disable ASPM on Intel Alder Lake based systems.
Fixes 0064b0ce85bb ("drm/amd/pm: enable ASPM by default")Reported-by kernel test robot <[email protected]>Signed-off-by Richard Gong <[email protected]>---
v4: s/CONFIG_X86_64/CONFIG_X86
enhanced check logic
v3: s/intel_core_asom_chk/aspm_support_quirk_check
correct build error with W=1 option
v2: correct commit description
move the check from chip family to problematic platform--- drivers/gpu/drm/amd/amdgpu/vi.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/vi.c +4
-0@@ -81,6 +81,10 @@#include "mxgpu_vi.h" #include "amdgpu_dm.h" +#if IS_ENABLED (CONFIG_X86 ) +#include <asm/intel-family.h> +#endif +#define ixPCIE_LC_L1_PM_SUBSTATE 0x100100C6#define PCIE_LC_L1_PM_SUBSTATE__LC_L1_SUBSTATES_OVERRIDE_EN_MASK 0x00000001L#define PCIE_LC_L1_PM_SUBSTATE__LC_PCI_PM_L1_2_OVERRIDE_MASK 0x00000002Ldrivers/gpu/drm/amd/amdgpu/vi.c static void vi_enable_aspm(struct amdgpu_device *adev) · line 1147
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/vi.c +7
-0@@ -1134,13 +1138,24 @@ static void vi_enable_aspm(struct amdgpu_device *adev)WREG32_PCIE (ixPCIE_LC_CNTL, data); } +static bool aspm_support_quirk_check (void ) +{ +if (IS_ENABLED (CONFIG_X86 )) { +struct cpuinfo_x86 *c = &cpu_data (0 ); + +return !(c->x86 ==6 && c->x86_model ==INTEL_FAM6_ALDERLAKE ); + }I have not seen this reported by a bot, sorry if it is a duplicate. This breaks non-x86 builds (arm64 allmodconfig for example):
drivers/gpu/drm/amd/amdgpu/vi.c:1144:28: error: implicit declaration of function 'cpu_data' is invalid in C99 [-Werror,-Wimplicit-function-declaration]struct cpuinfo_x86 *c = &cpu_data(0); ^ drivers/gpu/drm/amd/amdgpu/vi.c:1144:27: error: cannot take the address of an rvalue of type 'int' struct cpuinfo_x86 *c = &cpu_data(0); ^~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/vi.c:1146:13: error: incomplete definition of type 'struct cpuinfo_x86' return !(c->x86 == 6 && c->x86_model == INTEL_FAM6_ALDERLAKE); ~^ drivers/gpu/drm/amd/amdgpu/vi.c:1144:10: note: forward declaration of 'struct cpuinfo_x86' struct cpuinfo_x86 *c = &cpu_data(0); ^ drivers/gpu/drm/amd/amdgpu/vi.c:1146:28: error: incomplete definition of type 'struct cpuinfo_x86' return !(c->x86 == 6 && c->x86_model == INTEL_FAM6_ALDERLAKE); ~^ drivers/gpu/drm/amd/amdgpu/vi.c:1144:10: note: forward declaration of 'struct cpuinfo_x86' struct cpuinfo_x86 *c = &cpu_data(0); ^ drivers/gpu/drm/amd/amdgpu/vi.c:1146:43: error: use of undeclared identifier 'INTEL_FAM6_ALDERLAKE' return !(c->x86 == 6 && c->x86_model == INTEL_FAM6_ALDERLAKE); ^
Quoted 5 lines
5 errors generated.
'struct
cpuinfo_x86' is only defined forCONFIG_X86so this section needs to guarded with the preprocessor, which is how it was done in v2. Please go back to that.
Thanks, I will do that.
Regards,
Richard
Quoted 3 lines
Cheers,
Nathan