OSDN Git Service

drm/amdkfd: display debug capabilities
authorJonathan Kim <jonathan.kim@amd.com>
Fri, 25 Mar 2022 16:39:06 +0000 (12:39 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 16:34:45 +0000 (12:34 -0400)
commitd230f1bfe7a1977565ce1e2804ddb7b7a3d911ff
tree54735cd457ce564d87cd532f3e69bcd427f6c3f5
parent4f98cf2baf9faee5b6f2f7889dad7c0f7686a787
drm/amdkfd: display debug capabilities

Expose debug capabilities in the KFD topology node's HSA capabilities and
debug properties flags.

Ensure correct capabilities are exposed based on firmware support.

Flag definitions can be referenced in uapi/linux/kfd_sysfs.h.

Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_topology.c
drivers/gpu/drm/amd/amdkfd/kfd_topology.h
include/uapi/linux/kfd_sysfs.h