summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2020-07-29 19:53:56 +0300
committerAlex Deucher <alexander.deucher@amd.com>2020-08-05 00:29:29 +0300
commitcacbbe7c00655985aec37e5e4d02c66d7a1732c9 (patch)
treef5ef4a96459d95faf74e63fc47936f0f2b69a380 /drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h
parent7438ae6e522f1c4df5f067fd82aaa4e82917b7a8 (diff)
downloadlinux-cacbbe7c00655985aec37e5e4d02c66d7a1732c9.tar.xz
drm/amdgpu: move stolen memory from gmc to mman
It's more related to memory management than memory controller. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h
index 17c8d0d7bcc3..98af87f38f3e 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h
@@ -59,6 +59,12 @@ struct amdgpu_mman {
struct mutex gtt_window_lock;
/* Scheduler entity for buffer moves */
struct drm_sched_entity entity;
+
+ uint64_t stolen_vga_size;
+ struct amdgpu_bo *stolen_vga_memory;
+ uint64_t stolen_extended_size;
+ struct amdgpu_bo *stolen_extended_memory;
+ bool keep_stolen_vga_memory;
};
struct amdgpu_copy_mem {