drm/amdgpu: Remove ATC L2 access for MMHUB 2.1.x
authorLijo Lazar <lijo.lazar@amd.com>
Fri, 30 Sep 2022 05:13:08 +0000 (10:43 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 24 Oct 2022 18:34:26 +0000 (14:34 -0400)
commit20293269d81779a0d0c0865f5877b240c3335c97
tree210bc5a11221cd7404d63d2ad63ada8d7c5c6354
parentbb3c846ad26e1c8551f68078278cbd437a20fb64
drm/amdgpu: Remove ATC L2 access for MMHUB 2.1.x

MMHUB 2.1.x versions don't have ATCL2. Remove accesses to ATCL2 registers.

Since they are non-existing registers, read access will cause a
'Completer Abort' and gets reported when AER is enabled with the below patch.
Tagging with the patch so that this is backported along with it.

v2: squash in uninitialized warning fix (Nathan Chancellor)

Fixes: 8795e182b02d ("PCI/portdrv: Don't disable AER reporting in get_port_device_capability()")
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c