]> git.itanic.dy.fi Git - linux-stable/commit
drm/amdgpu: Don't enable LTR if not supported
authorLijo Lazar <lijo.lazar@amd.com>
Thu, 8 Sep 2022 02:58:57 +0000 (08:28 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Sep 2022 18:25:39 +0000 (14:25 -0400)
commit6c20490663553cd7e07d8de8af482012329ab9d6
treef4b9246e525568d9e56d3ccd14a0ce94a3916ac4
parent7c6fb61a400bf3218c6504cb2d48858f98822c9d
drm/amdgpu: Don't enable LTR if not supported

As per PCIE Base Spec r4.0 Section 6.18
'Software must not enable LTR in an Endpoint unless the Root Complex
and all intermediate Switches indicate support for LTR.'

This fixes the Unsupported Request error reported through AER during
ASPM enablement.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=216455
The error was unnoticed before and got visible because of the commit
referenced below. This doesn't fix anything in the commit below, rather
fixes the issue in amdgpu exposed by the commit. The reference is only
to associate this commit with below one so that both go together.

Fixes: 8795e182b02d ("PCI/portdrv: Don't disable AER reporting in get_port_device_capability()")
Reported-by: Gustaw Smolarczyk <wielkiegie@gmail.com>
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nbio_v2_3.c
drivers/gpu/drm/amd/amdgpu/nbio_v6_1.c
drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c