diff options
| author | Alex Sierra <[email protected]> | 2020-07-28 18:38:29 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-04-21 01:49:31 +0000 |
| commit | f04c79cfba7e01db060d17c8d46f23cf8e02845a (patch) | |
| tree | 33e8cd2fca92056bc8778f36cee644900f562852 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
| parent | drm/amdkfd: add svm_bo reference for eviction fence (diff) | |
| download | kernel-f04c79cfba7e01db060d17c8d46f23cf8e02845a.tar.gz kernel-f04c79cfba7e01db060d17c8d46f23cf8e02845a.zip | |
drm/amdgpu: add param bit flag to create SVM BOs
Add CREATE_SVM_BO define bit for SVM BOs.
Another define flag was moved to concentrate these
KFD type flags in one include file.
Signed-off-by: Alex Sierra <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Signed-off-by: Felix Kuehling <[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.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h index 2d1fefbe1e99..973c88bdf37b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h @@ -37,6 +37,10 @@ #define AMDGPU_BO_INVALID_OFFSET LONG_MAX #define AMDGPU_BO_MAX_PLACEMENTS 3 +/* BO flag to indicate a KFD userptr BO */ +#define AMDGPU_AMDKFD_CREATE_USERPTR_BO (1ULL << 63) +#define AMDGPU_AMDKFD_CREATE_SVM_BO (1ULL << 62) + #define to_amdgpu_bo_user(abo) container_of((abo), struct amdgpu_bo_user, bo) struct amdgpu_bo_param { |
