]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:24:37 +0000 (10:24 +0100)
commit5143d5a30f6d787139066f05084bc7fba711bbb5
treed49a9a39437586930ed4b15291b548e2c149f5bb
parent6eb202a4c97daad15002fb3496d53c9a852ae9cb
drm/amdgpu: limit visible vram if it's smaller than the BAR

BugLink: http://bugs.launchpad.net/bugs/1546572
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>
(cherry picked from commit a1493cd575678910f90d488069a8a2c41a144fda)
Signed-off-by: Alberto Milone <alberto.milone@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c