]> Gentwo Git Trees - linux/.git/commit
drm/amdkfd: Allow device error to be logged
authorSunday Clement <Sunday.Clement@amd.com>
Fri, 30 May 2025 14:58:08 +0000 (10:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 Aug 2025 17:57:48 +0000 (13:57 -0400)
commit7bbfa1b1fa7b91cb805563ebffd1d55df192df05
tree796888ad98d1572920827373c496036add7d17d4
parentcbf3a5d67a5bcae620b5315e4891f8c3e939bc79
drm/amdkfd: Allow device error to be logged

The addition of a WARN_ON() check in order to return early in the
kq_initialize function retroactively causes the default case in the
following switch statement to never be executed, preventing dev_err
from logging device errors in the kernel. Both logs are now checked
in the default case.

Signed-off-by: Sunday Clement <Sunday.Clement@amd.com>
Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c