diff options
author | Amber Lin <Amber.Lin@amd.com> | 2018-02-27 10:01:59 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-02-28 15:38:46 -0500 |
commit | f8f4b9a679e52298b14358db22c37a135e7086ec (patch) | |
tree | d832f1bc6717908756b81280b48d1c00e2b3f8b1 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
parent | 5d447f09b8d8346c64f4c952a67c61f7ce88d3c1 (diff) | |
download | linux-f8f4b9a679e52298b14358db22c37a135e7086ec.tar.bz2 |
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 <Amber.Lin@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions