drm/amdgpu: support indirect access reg outside of mmio bar (v2)
authorHawking Zhang <Hawking.Zhang@amd.com>
Fri, 18 Sep 2020 12:32:25 +0000 (20:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Oct 2020 14:42:55 +0000 (10:42 -0400)
commitf7ee1874b06cfda6295ef236116ef189fdb9bd06
treed3df229f1ade6864b080acb53e08682d97aab693
parent705a2b5ba0635c2fa3e5b6a830a6b4fe178de699
drm/amdgpu: support indirect access reg outside of mmio bar (v2)

support both direct and indirect accessor in unified
helper functions.

v2: Retire indirect mmio access via mm_index/data

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h