drm/amd/amdgpu: Add pcie indirect support to amdgpu_mm_wreg_mmio_rlc()
authorTom St Denis <tom.stdenis@amd.com>
Fri, 7 Jan 2022 11:57:41 +0000 (06:57 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Jan 2022 20:44:26 +0000 (15:44 -0500)
commit4cc9f86f851847e5ebfb56212d81f1a30b9d392b
treec0720d355285113d3d595260af8807bc3d834cc2
parent575e55ee4fbc2c641a29b0054b3473e9fa81ae76
drm/amd/amdgpu: Add pcie indirect support to amdgpu_mm_wreg_mmio_rlc()

The function amdgpu_mm_wreg_mmio_rlc() is used by debugfs to write to
MMIO registers.  It didn't support registers beyond the BAR mapped MMIO
space.  This adds pcie indirect write support.

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c