Skip to content

Commit e698127

Browse files
jokim-amdalexdeucher
authored andcommitted
drm/amdkfd: add extended capabilities to device snapshot
Add additional capabilities reporting. Signed-off-by: Jonathan Kim <jonathan.kim@amd.com> Reviewed-by: James Zhu <james.zhu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent e0d11bd commit e698127

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/gpu/drm/amd/amdkfd/kfd_debug.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,6 +1108,7 @@ int kfd_dbg_trap_device_snapshot(struct kfd_process *target,
11081108
device_info.num_xcc = NUM_XCC(pdd->dev->xcc_mask);
11091109
device_info.capability = topo_dev->node_props.capability;
11101110
device_info.debug_prop = topo_dev->node_props.debug_prop;
1111+
device_info.capability2 = topo_dev->node_props.capability2;
11111112

11121113
if (exception_clear_mask)
11131114
pdd->exception_status &= ~exception_clear_mask;

include/uapi/linux/kfd_ioctl.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ struct kfd_dbg_device_info_entry {
149149
__u32 num_xcc;
150150
__u32 capability;
151151
__u32 debug_prop;
152+
__u32 capability2;
153+
__u32 pad;
152154
};
153155

154156
/* For kfd_ioctl_set_memory_policy_args.default_policy and alternate_policy */

0 commit comments

Comments
 (0)