drm/amdkfd: Add sysfs bitfields and enums to uAPI
authorFelix Kuehling <Felix.Kuehling@amd.com>
Fri, 10 Sep 2021 19:18:20 +0000 (15:18 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Nov 2021 21:58:03 +0000 (16:58 -0500)
commitb5f57384805a34f497edb8b04d694a8a1b3d81d4
tree35a69d3354562a7c775ec0cdd1e7c17878fb63eb
parent087451f372bf76d971184caa258807b7c35aac8f
drm/amdkfd: Add sysfs bitfields and enums to uAPI

These bits are de-facto part of the uAPI, so declare them in a uAPI header.

The corresponding bit-fields and enums in user mode are defined in
https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/blob/master/include/hsakmttypes.h

HSA_CAP_...           -> HSA_CAPABILITY
HSA_MEM_HEAP_TYPE_... -> HSA_HEAPTYPE
HSA_MEM_FLAGS_...     -> HSA_MEMORYPROPERTY
HSA_CACHE_TYPE_...    -> HsaCacheType
HSA_IOLINK_TYPE_...   -> HSA_IOLINKTYPE
HSA_IOLINK_FLAGS_...  -> HSA_LINKPROPERTY

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Jonathan Kim <jonathan.kim@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
MAINTAINERS
drivers/gpu/drm/amd/amdkfd/kfd_topology.h
include/uapi/linux/kfd_sysfs.h [new file with mode: 0644]