Introduce a new memory type (KFD_IOC_ALLOC_MEM_FLAGS_MMIO_REMAP) and expose mmio page of HDP registers to user space through this new memory type. v2: moved remapped hdp regs to adev struct v3: rename the new memory type to ALLOC_MEM_FLAGS_MMIO_REMAP v4: use more generic function name v5: Fail remapped mmio allocation for asics before gfx9
Showing the changes to include/uapi/linux (1 of 6 files). Show all
Unified · Split
| @@ -338,6 +338,7 @@ struct kfd_ioctl_acquire_vm_args { · 337 unmodified lines | |||
| 338 | #define KFD_IOC_ALLOC_MEM_FLAGS_GTT (1 << 1) | 338 | #define KFD_IOC_ALLOC_MEM_FLAGS_GTT (1 << 1) |
| 339 | #define KFD_IOC_ALLOC_MEM_FLAGS_USERPTR (1 << 2) | 339 | #define KFD_IOC_ALLOC_MEM_FLAGS_USERPTR (1 << 2) |
| 340 | #define KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL (1 << 3) | 340 | #define KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL (1 << 3) |
| 341 | #define KFD_IOC_ALLOC_MEM_FLAGS_MMIO_REMAP (1 << 4) | ||
| 341 | /* Allocation flags: attributes/access options */ | 342 | /* Allocation flags: attributes/access options */ |
| 342 | #define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE (1 << 31) | 343 | #define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE (1 << 31) |
| 343 | #define KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE (1 << 30) | 344 | #define KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE (1 << 30) |