aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorAmber Lin <[email protected]>2018-02-27 15:01:59 +0000
committerAlex Deucher <[email protected]>2018-02-28 20:38:46 +0000
commitf8f4b9a679e52298b14358db22c37a135e7086ec (patch)
treed832f1bc6717908756b81280b48d1c00e2b3f8b1 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentdrm/amd/display: check for ipp before calling cursor operations (diff)
downloadkernel-f8f4b9a679e52298b14358db22c37a135e7086ec.tar.gz
kernel-f8f4b9a679e52298b14358db22c37a135e7086ec.zip
drm/amdgpu: Map all visible VRAM at startup
When using CPU to update page table, we need to kmap all the PDs/PTs after they are allocated and that requires a TLB shot down on each CPU, which is quite heavy. Instead, we map the whole visible VRAM to a kernel address at once. Pages can be obtained from the offset. v2: move the mapping base from gmc to amdgpu_mman structure, and the implementation in amdgpu_ttm_* functions Signed-off-by: Amber Lin <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions