]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix the hang caused by PCIe link width switch
authorEvan Quan <evan.quan@amd.com>
Tue, 25 May 2021 06:36:29 +0000 (14:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Jun 2021 04:18:14 +0000 (00:18 -0400)
commit0e9dde247688fd311b228a2350197e42276f270e
tree33f040226fc98b168c33a42f751f14baf1d371c1
parent8b7914c85e470f7fb5f765aa1e36e00ad19fd4fd
drm/amdgpu: fix the hang caused by PCIe link width switch

SMU had set all the necessary fields for a link width switch
but the width switch wasn't occurring because the link was idle
in the L1 state. Setting LC_L1_RECONFIG_EN=0x1 will allow width
switches to also be initiated while in L1 instead of waiting until
the link is back in L0.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h
drivers/gpu/drm/amd/amdgpu/nbio_v2_3.c
drivers/gpu/drm/amd/amdgpu/nv.c