OSDN Git Service

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)
commitadcf949e664a8b04df2fb8aa916892e58561653c
tree33f040226fc98b168c33a42f751f14baf1d371c1
parent5a5da8ae9546031e43efd4fa5aa8baa481e83dfb
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