aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
diff options
context:
space:
mode:
authorChunming Zhou <[email protected]>2018-04-17 03:52:53 +0000
committerAlex Deucher <[email protected]>2018-05-15 18:43:31 +0000
commitaa2b2e2822831d78a283edb12cf8b7da21bdd0ed (patch)
tree745a77d0e92a3e04254a8b0bb2c4dfc113afebcf /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
parentdrm/amdgpu: limit reg_write_reg_wait workaround to SRIOV v2 (diff)
downloadkernel-aa2b2e2822831d78a283edb12cf8b7da21bdd0ed.tar.gz
kernel-aa2b2e2822831d78a283edb12cf8b7da21bdd0ed.zip
drm/amdgpu: set preferred_domain independent of fallback handling
When GEM needs to fallback to GTT for VRAM BOs we still want the preferred domain to be untouched so that the BO has a cance to move back to VRAM in the future. Signed-off-by: Chunming Zhou <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_object.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
index e9a21d991e77..540e03fa159f 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
@@ -37,6 +37,7 @@ struct amdgpu_bo_param {
unsigned long size;
int byte_align;
u32 domain;
+ u32 preferred_domain;
u64 flags;
enum ttm_bo_type type;
struct reservation_object *resv;