]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amdkfd: range check cp bad op exception interrupts
authorJonathan Kim <Jonathan.Kim@amd.com>
Fri, 1 Mar 2024 17:25:17 +0000 (12:25 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 22 Mar 2024 19:54:42 +0000 (15:54 -0400)
commitfb880635e08f28e18cba28db1f6e11bd4bb8828e
treed3921f8420cb434f880c3a2052c134f3210590d6
parent5daa29473cf63aa973aa3fcaf8c9a50ada359a45
drm/amdkfd: range check cp bad op exception interrupts

Due to a CP interrupt bug, bad packet garbage exception codes are raised.
Do a range check so that the debugger and runtime do not receive garbage
codes.
Update the user api to guard exception code type checking as well.

Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Tested-by: Jesse Zhang <jesse.zhang@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_int_process_v10.c
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v11.c
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c
include/uapi/linux/kfd_ioctl.h