OSDN Git Service

drm/amdgpu: reserve at least 4MB of VRAM for page tables v2
authorChristian König <christian.koenig@amd.com>
Fri, 30 Aug 2019 12:38:37 +0000 (14:38 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Sep 2019 22:38:47 +0000 (17:38 -0500)
commit9d1b3c78052e87fbb1beb7912bf5b2d5b19f2c2c
tree97e0eecfc0208ade51ca59fcf1a6317b9de79d16
parent629be2039532b61907829f89446445dded1daa0a
drm/amdgpu: reserve at least 4MB of VRAM for page tables v2

This hopefully helps reduce the contention for page tables.

v2: adjust maximum reported VRAM size as well

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c