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 Signed-off-by: Oak Zeng <Oak.Zeng@amd.com> Reviewed-by: Felix Kuehling <felix.kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -174,6 +174,7 @@ struct tile_config {
|
||||
#define ALLOC_MEM_FLAGS_GTT (1 << 1)
|
||||
#define ALLOC_MEM_FLAGS_USERPTR (1 << 2)
|
||||
#define ALLOC_MEM_FLAGS_DOORBELL (1 << 3)
|
||||
#define ALLOC_MEM_FLAGS_MMIO_REMAP (1 << 4)
|
||||
|
||||
/*
|
||||
* Allocation flags attributes/access options.
|
||||
|
Reference in New Issue
Block a user