diff options
| author | Amber Lin <[email protected]> | 2018-02-27 15:01:59 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2018-02-28 20:38:46 +0000 |
| commit | f8f4b9a679e52298b14358db22c37a135e7086ec (patch) | |
| tree | d832f1bc6717908756b81280b48d1c00e2b3f8b1 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
| parent | drm/amd/display: check for ipp before calling cursor operations (diff) | |
| download | kernel-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
