]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amdgpu: limit visible vram if it's smaller than the BAR
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Dec 2015 20:36:40 +0000 (15:36 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Dec 2015 16:56:41 +0000 (11:56 -0500)
commita1493cd575678910f90d488069a8a2c41a144fda
tree548acec1eb9a959f95a361dc644069290d427b71
parentb70f014d58b976930b9e8337980954a958c01d7f
drm/amdgpu: limit visible vram if it's smaller than the BAR

In some cases the amount of vram may be less than the BAR size,
if so, limit visible vram to the amount of actual vram, not the
BAR size.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c