drm/amdgpu: Add function to allocate and fill PDB0
authorOak Zeng <Oak.Zeng@amd.com>
Fri, 18 Sep 2020 03:53:54 +0000 (22:53 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 02:58:44 +0000 (22:58 -0400)
commita2902c09c51db02eeffd77485c1340fdf4536af5
tree99ad3e0317710426fb73d72913d799502914d20f
parent7b454b3a34335381cb660864eb1e11077847c5db
drm/amdgpu: Add function to allocate and fill PDB0

Add functions to allocate PDB0, map it for CPU access,
and fill it.

Those functions are only used for 2-level vmid0 page
table construction

Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@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