History

drm/amdgpu: add new bo flag that indicates BOs don't need fallback (v2)

user cases: 1. KFD wraps amdgpu_bo_create, they have no fallback case which is different with amdgpu_gem_object_create. since upstream branch has no amdgpu_amdkfd_gpuvm.c, which need KFD guys add this flag to __alloc_memory_of_gpu: + flags |= AMDGPU_GEM_CREATE_NO_FALLBACK; 2. UMD can specify this flag for their allocation as well if they like. v2: squash in merge conflict fix (Chunming)

Chunming Zhou committed 8 years ago

Commit 552825b1 parent 5a8c1023 files · +8 −2Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/drm/amdgpu_drm.h+2−0
@@ -95,6 +95,8 @@ extern "C" { · 94 unmodified lines
9595 #define AMDGPU_GEM_CREATE_VM_ALWAYS_VALID (1 << 6)
9696 /* Flag that BO sharing will be explicitly synchronized */
9797 #define AMDGPU_GEM_CREATE_EXPLICIT_SYNC (1 << 7)
98+/* Flag that BO doesn't need fallback */
99+#define AMDGPU_GEM_CREATE_NO_FALLBACK (1 << 8)
98100
99101 struct drm_amdgpu_gem_create_in {
100102 /** the requested memory size */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t