linux/drivers/gpu/drm/amd
Mario Limonciello 7294863a6f drm/amd: Check if ASPM is enabled from PCIe subsystem
commit 0064b0ce85 ("drm/amd/pm: enable ASPM by default") enabled ASPM
by default but a variety of hardware configurations it turns out that this
caused a regression.

* PPC64LE hardware does not support ASPM at a hardware level.
  CONFIG_PCIEASPM is often disabled on these architectures.
* Some dGPUs on ALD platforms don't work with ASPM enabled and PCIe subsystem
  disables it

Check with the PCIe subsystem to see that ASPM has been enabled
or not.

Fixes: 0064b0ce85 ("drm/amd/pm: enable ASPM by default")
Link: https://wiki.raptorcs.com/w/images/a/ad/P9_PHB_version1.0_27July2018_pub.pdf
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/1723
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/1739
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/1885
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/1907
Tested-by: koba.ko@canonical.com
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
2022-02-23 16:31:06 -05:00
..
acp
amdgpu drm/amd: Check if ASPM is enabled from PCIe subsystem 2022-02-23 16:31:06 -05:00
amdkfd drm/amdkfd: Fix ASIC name typos 2022-01-11 15:44:28 -05:00
display drm/amd/display: For vblank_disable_immediate, check PSR is really used 2022-02-21 17:55:17 -05:00
include drm/amdgpu: add support for IP discovery gc_info table v2 2021-12-17 12:47:29 -05:00
pm drm/amd/pm: fix some OEM SKU specific stability issues 2022-02-21 17:55:17 -05:00