drm/amdgpu: HW setup of 2-level vmid0 page table
authorOak Zeng <Oak.Zeng@amd.com>
Fri, 18 Sep 2020 04:12:56 +0000 (23:12 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 02:58:49 +0000 (22:58 -0400)
commit0c19cab5557202ba301190dc4772996daec537aa
tree670dc9d5553dd6468deadc2f86cc48d26e7362c9
parent522510a677953bbb37916b2090a604beb0fd063b
drm/amdgpu: HW setup of 2-level vmid0 page table

Set up HW for 2-level vmid0 page table: 1. Set up
PAGE_TABLE_START/END registers. Currently only plan
to do 2-level page table for ALDEBARAN, so only gfxhub1.0
and mmhub1.7 is changed. 2. Set page table base register.
For 2-level page table, the page table base should point
to PDB0. 3. Disable AGP and FB aperture as they are not
used.

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/gfxhub_v1_0.c
drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c