]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Replace bitmask with event idx in SMI event msg
authorMukul Joshi <mukul.joshi@amd.com>
Thu, 30 Jul 2020 22:04:33 +0000 (18:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Aug 2020 21:13:07 +0000 (17:13 -0400)
commitf46393f2de020c3e63f64332c475b5af4c8450c2
tree09bd197b8e11f9758ee09587b581d4fe0bdf0615
parent647fd80cf35f98efe8f2f8e46321687713705e71
drm/amdkfd: Replace bitmask with event idx in SMI event msg

Event bitmask is a 64-bit mask with only 1 bit set. Sending this
event bitmask in KFD SMI event message is both wasteful of memory
and potentially limiting to only 64 events. Instead send event
index in SMI event message.
Please note this change does not break the ABI for the two event
types defined so far. The new index is identical to the mask used
before.

Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Suggested-by: Felix Kuehling <Felix.Kuehling@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_smi_events.c
include/uapi/linux/kfd_ioctl.h