diff options
author | Chunming Zhou <David1.Zhou@amd.com> | 2016-04-01 17:05:30 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-04-05 15:23:31 -0400 |
commit | 7c0ecda15b01bc88d762d9263d2cf0f69ffd4c23 (patch) | |
tree | d1e79e0d54a90e8a7df7a326726de630195cddb4 /drivers/gpu/drm/amd | |
parent | 9162823145208b3ce1b9531639e4641d5d22bd3f (diff) | |
download | op-kernel-dev-7c0ecda15b01bc88d762d9263d2cf0f69ffd4c23.zip op-kernel-dev-7c0ecda15b01bc88d762d9263d2cf0f69ffd4c23.tar.gz |
drm/amdgpu: total vram size also reduces pin size
Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c index 7805a87..598eb0c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c @@ -382,6 +382,7 @@ static int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file struct drm_amdgpu_info_vram_gtt vram_gtt; vram_gtt.vram_size = adev->mc.real_vram_size; + vram_gtt.vram_size -= adev->vram_pin_size; vram_gtt.vram_cpu_accessible_size = adev->mc.visible_vram_size; vram_gtt.vram_cpu_accessible_size -= adev->vram_pin_size; vram_gtt.gtt_size = adev->mc.gtt_size; |