History

drm/amdgpu: add UAPI for allocating doorbell memory

This patch adds flags for a new gem domain AMDGPU_GEM_DOMAIN_DOORBELL in the UAPI layer. V2: Drop 'memory' from description (Christian)

Alex Deucher committed 4 years ago

Commit 89927231 parent 794c33c1 file · +6 −1Browse files

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

Unified · Split

include/uapi/drm/amdgpu_drm.h+6−1
@@ -94,6 +94,9 @@ extern "C" { · 93 unmodified lines
9494 *
9595 * %AMDGPU_GEM_DOMAIN_OA Ordered append, used by 3D or Compute engines
9696 * for appending data.
97+ *
98+ * %AMDGPU_GEM_DOMAIN_DOORBELL Doorbell. It is an MMIO region for
99+ * signalling user mode queues.
97100 */
98101 #define AMDGPU_GEM_DOMAIN_CPU 0x1
99102 #define AMDGPU_GEM_DOMAIN_GTT 0x2
@@ -101,12 +104,14 @@ extern "C" { · 1 unmodified line
101104 #define AMDGPU_GEM_DOMAIN_GDS 0x8
102105 #define AMDGPU_GEM_DOMAIN_GWS 0x10
103106 #define AMDGPU_GEM_DOMAIN_OA 0x20
107+#define AMDGPU_GEM_DOMAIN_DOORBELL 0x40
104108 #define AMDGPU_GEM_DOMAIN_MASK (AMDGPU_GEM_DOMAIN_CPU | \
105109 AMDGPU_GEM_DOMAIN_GTT | \
106110 AMDGPU_GEM_DOMAIN_VRAM | \
107111 AMDGPU_GEM_DOMAIN_GDS | \
108112 AMDGPU_GEM_DOMAIN_GWS | \
109− AMDGPU_GEM_DOMAIN_OA)
113+ AMDGPU_GEM_DOMAIN_OA | \
114+ AMDGPU_GEM_DOMAIN_DOORBELL)
110115
111116 /* Flag that CPU access will be required for the case of VRAM domain */
112117 #define AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED (1 << 0)

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