aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
diff options
context:
space:
mode:
authorHawking Zhang <[email protected]>2020-09-17 11:32:34 +0000
committerAlex Deucher <[email protected]>2020-10-01 14:42:13 +0000
commit1bba36834c3bc317d8a30dd5d0cc3e59d64dbfb3 (patch)
treedc4cc06565422509ff5064a6e0d6bbb5c1cebe12 /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
parentdrm/amd/amdkfd: Surface files in Sysfs to allow users to get number of (diff)
downloadkernel-1bba36834c3bc317d8a30dd5d0cc3e59d64dbfb3.tar.gz
kernel-1bba36834c3bc317d8a30dd5d0cc3e59d64dbfb3.zip
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 <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Reviewed-by: Christian König <[email protected]> Reviewed-by: Guchun Chen <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions