]> git.baikalelectronics.ru Git - kernel.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)
commit820a3f3832de429098be5633c7c34ba89081e0f4
tree548acec1eb9a959f95a361dc644069290d427b71
parentde4028bb78d3585f900590ea14df78580b0f5f26
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