Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: fix bug when amdkfd destroys hqd

The wrong define was used to check if the hqd is still active

v2: Don't use SHIFT as the MASK is already shifted

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c
··· 450 450 451 451 while (true) { 452 452 temp = RREG32(mmCP_HQD_ACTIVE); 453 - if (temp & CP_HQD_ACTIVE__ACTIVE__SHIFT) 453 + if (temp & CP_HQD_ACTIVE__ACTIVE_MASK) 454 454 break; 455 455 if (timeout == 0) { 456 456 pr_err("kfd: cp queue preemption time out (%dms)\n",