drm/amdgpu: modify a pair of functions for the pcie port wreg/rreg
authorXiaojian Du <Xiaojian.Du@amd.com>
Tue, 18 Jan 2022 09:18:13 +0000 (17:18 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 Jan 2022 03:32:11 +0000 (22:32 -0500)
commit86700a402694db56030a74481d09f35520332736
tree94d00df62d01715e74ab230c689cd7493e5d0eb8
parent479e3b02b73a2de2b19df2950863149c59d57bfe
drm/amdgpu: modify a pair of functions for the pcie port wreg/rreg

This patch will modify a pair of functions for pcie port wreg/rreg.
AMD GPU have had an independent NBIO block from SOC15 arch.
If the dirver wants to read/write the address space of the pcie devices,
it has to go through the NBIO block.
This patch will move the pcie port wreg/rreg functions to
"amdgpu_device.c", so that to reuse the functions on the
future GPU ASICs.

Signed-off-by: Xiaojian Du <Xiaojian.Du@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/nv.c