mirror_ubuntu-kernels/drivers/gpu/drm/amd
Hawking Zhang 1bba36834c drm/amdgpu: add helper function for indirect reg access (v3)
Add helper function in order to remove RREG32/WREG32
in current pcie_rreg/wreg function for soc15 and
onwards adapters.
PCIE_INDEX/DATA pairs are used to access regsiters
outside of mmio bar in the helper functions.
The new helper functions help remove the recursion
of amdgpu_mm_rreg/wreg from pcie_rreg/wreg and
provide the oppotunity to centralize direct and
indirect access in a single function.

v2: Fixed typo and refine the comments

v3: Remove unnecessary volatile local variable

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-10-01 10:42:13 -04:00
..
acp drm: amd/acp: fix broken menu structure 2020-03-13 11:52:35 -04:00
amdgpu drm/amdgpu: add helper function for indirect reg access (v3) 2020-10-01 10:42:13 -04:00
amdkfd drm/amd/amdkfd: Surface files in Sysfs to allow users to get number of 2020-09-30 15:26:27 -04:00
display drm/amd/display: add pipe reassignment prevention code to dcn3 2020-09-30 13:50:22 -04:00
include drm/amd/amdgpu: Define and implement a function that collects number of 2020-09-30 15:26:27 -04:00
pm drm/amdgpu/swsmu/smu12: fix force clock handling for mclk 2020-09-29 16:14:03 -04:00