]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Use different gart table parameters for 2-level gart table
authorOak Zeng <Oak.Zeng@amd.com>
Fri, 18 Sep 2020 01:32:56 +0000 (20:32 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 02:58:42 +0000 (22:58 -0400)
commita9a1c383f97c80b0b5b3e182dabbc0621bc3c9c8
treed275a67ac03951aed050587738314be111e8e67c
parentcc563af82d5a99f83c37ee41eb73d773fb3381d5
drm/amdgpu: Use different gart table parameters for 2-level gart table

If use gart for FB translation, we will squeeze vram into
sysvm aperture. This requires 2 level gart table. Add
page table depth and page table block size parameters
to gmc. This is prepare work to 2-level gart table
construction

Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Reviewed-by: Christian Konig <christian.koenig@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.h
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c