]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit690e33cb93eeb4f60f5452598673e9205b67e586
tree99ad3e0317710426fb73d72913d799502914d20f
parenta9a1c383f97c80b0b5b3e182dabbc0621bc3c9c8
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