drm/amdgpu: fix NAK-G generation during PCI-e link width switch
authorEvan Quan <evan.quan@amd.com>
Tue, 25 May 2021 04:08:53 +0000 (12:08 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Jun 2021 04:17:56 +0000 (00:17 -0400)
commit5a5da8ae9546031e43efd4fa5aa8baa481e83dfb
tree7f953a5704eaab74db6d9f73d9262cae00bf7faa
parent9c26ddb1c5b6e30c6bca48b8ad9205d96efe93d0
drm/amdgpu: fix NAK-G generation during PCI-e link width switch

A lot of NAK-G being generated when link widht switching is happening.
WA for this issue is to program the SPC to 4 symbols per clock during
bootup when the native PCIE width is x4.

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