History

drm/amdkfd: Expose HDP registers to user space

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

Oak Zeng committed 7 years ago

Commit d8e408a1 parent 88807dc6 files · +20 −3Browse files

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

Unified · Split

include/uapi/linux/kfd_ioctl.h+1−0
@@ -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)