]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/amdgpu: Introduce functions for vram physical addr calculation
authorOak Zeng <Oak.Zeng@amd.com>
Thu, 1 Apr 2021 19:36:40 +0000 (14:36 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Apr 2021 20:02:54 +0000 (16:02 -0400)
commitdead5e421ac437deb94ea18c423e898c70a807a5
tree83dfea209d49e697ff42797cde912a878bbabb07
parent651a03212178e4004370b07344827d62e122b534
drm/amdgpu: Introduce functions for vram physical addr calculation

Add one function to calculate BO's GPU physical address.
And another function to calculate BO's CPU physical address.

v2: Use functions vs macros (Christian)
    Use more proper function names (Christian)

Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Suggested-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h