aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
diff options
context:
space:
mode:
authorNirmoy Das <[email protected]>2021-03-08 13:00:06 +0000
committerAlex Deucher <[email protected]>2021-04-09 20:45:12 +0000
commit9fd5543e9552acff859af7f154bd3402b7983dc5 (patch)
tree91a97299d90c85cb85cc538018ea8d376df0b3b2 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
parentdrm/amdgpu: load balance VCN3 decode as well v8 (diff)
downloadkernel-9fd5543e9552acff859af7f154bd3402b7983dc5.tar.gz
kernel-9fd5543e9552acff859af7f154bd3402b7983dc5.zip
drm/amdgpu: allow variable BO struct creation
Allow allocating BO structures with different structure size than struct amdgpu_bo. v2: Check bo_ptr_size in all amdgpu_bo_create() caller. Signed-off-by: Nirmoy Das <[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 54ceb065e546..8e2b556f0b7b 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
@@ -40,6 +40,7 @@
struct amdgpu_bo_param {
unsigned long size;
int byte_align;
+ u32 bo_ptr_size;
u32 domain;
u32 preferred_domain;
u64 flags;