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
Showing the changes to include/uapi (1 of 5 files). Show all
Unified · Split
| @@ -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 | ||
| 91 | struct drm_amdgpu_gem_create_in { | 93 | struct drm_amdgpu_gem_create_in { |
| 92 | /** the requested memory size */ | 94 | /** the requested memory size */ |