]> git.ipfire.org Git - thirdparty/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>
Wed, 27 Mar 2024 12:53:02 +0000 (08:53 -0400)
commit0cac183b98d8a8c692c98e8dba37df15a9e9210d
tree0a1b7017d8773f05d21aedd1f9b2cb24d210c5d9
parent78aca9ee5e012e130dbfbd7191bc2302b0cf3b37
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