History

drm/amdgpu: add IOCTL interface for per VM BOs v3

Add the IOCTL interface so that applications can allocate per VM BOs. Still WIP since not all corner cases are tested yet, but this reduces average CS overhead for 10K BOs from 21ms down to 48us. v2: add some extra checks, remove the WIP tag v3: rename new flag to AMDGPU_GEM_CREATE_VM_ALWAYS_VALID

Christian König committed 9 years ago

Commit e1eb8991 parent 73fb16e5 files · +55 −22Browse files

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

Unified · Split

include/uapi/drm/amdgpu_drm.h+2−0
@@ -87,6 +87,8 @@ extern "C" { · 86 unmodified lines
87#define AMDGPU_GEM_CREATE_SHADOW (1 << 4)87#define AMDGPU_GEM_CREATE_SHADOW (1 << 4)
88/* Flag that allocating the BO should use linear VRAM */88/* Flag that allocating the BO should use linear VRAM */
89#define AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS (1 << 5)89#define AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS (1 << 5)
90/* Flag that BO is always valid in this VM */
91#define AMDGPU_GEM_CREATE_VM_ALWAYS_VALID (1 << 6)
90 92
91struct drm_amdgpu_gem_create_in {93struct drm_amdgpu_gem_create_in {
92 /** the requested memory size */94 /** 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