drm/amdkfd: queue kfd interrupt work to different CPU
authorPhilip Yang <Philip.Yang@amd.com>
Wed, 30 Jan 2019 20:29:34 +0000 (15:29 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Dec 2019 21:09:05 +0000 (16:09 -0500)
commitb3eca59d998587b1930cb846910ec9824b9c2122
treea9855d7e15d9b0ac15d2bdf25e7f378599fc1328
parent7a8a3430be15e4e6b3455f71853e7db765323889
drm/amdkfd: queue kfd interrupt work to different CPU

Because queue_work schedule the work on the same CPU the interrupt
handler is running, if there are many interrupts pending, it takes
longer time for work queue to start, or even worse system will hang.

v2: queue work to same NUMA node for better cache locality
v3: handle cpumask_next wraparound case

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Eric Huang <JinhuiEric.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device.c