drm/amdkfd: Document and define SVM events message macro
authorPhilip Yang <Philip.Yang@amd.com>
Fri, 16 Feb 2024 16:00:10 +0000 (11:00 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Sep 2024 21:55:05 +0000 (17:55 -0400)
commit663b0f1e141dc60ce6c09ae6afc5f213b22d13ca
tree5408a8a56bebb3c08479dc481d310421e74846a7
parent7eafe7a730bad6f0efb62b2d260f1ae3f2d09b95
drm/amdkfd: Document and define SVM events message macro

Document how to use SMI system management interface to enable and
receive SVM events. Document SVM event triggers.

Define SVM events message string format macro that could be used by user
mode for sscanf to parse the event. Add it to uAPI header file to make
it obvious that is changing uAPI in future.

No functional changes.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: James Zhu <James.Zhu@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