diff options
| author | Evan Quan <[email protected]> | 2021-05-25 06:36:29 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-06-30 04:18:14 +0000 |
| commit | adcf949e664a8b04df2fb8aa916892e58561653c (patch) | |
| tree | 33f040226fc98b168c33a42f751f14baf1d371c1 /drivers/gpu/drm/amd/amdgpu/nv.c | |
| parent | drm/amdgpu: fix NAK-G generation during PCI-e link width switch (diff) | |
| download | kernel-adcf949e664a8b04df2fb8aa916892e58561653c.tar.gz kernel-adcf949e664a8b04df2fb8aa916892e58561653c.zip | |
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 <[email protected]>
Reviewed-by: Lijo Lazar <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Cc: [email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/nv.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/nv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c index 63c96ca8d2a2..5231b3402990 100644 --- a/drivers/gpu/drm/amd/amdgpu/nv.c +++ b/drivers/gpu/drm/amd/amdgpu/nv.c @@ -1414,6 +1414,9 @@ static int nv_common_hw_init(void *handle) if (adev->nbio.funcs->apply_lc_spc_mode_wa) adev->nbio.funcs->apply_lc_spc_mode_wa(adev); + if (adev->nbio.funcs->apply_l1_link_width_reconfig_wa) + adev->nbio.funcs->apply_l1_link_width_reconfig_wa(adev); + /* enable pcie gen2/3 link */ nv_pcie_gen3_enable(adev); /* enable aspm */ |
