summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
diff options
context:
space:
mode:
authorJay Cornwall <Jay.Cornwall@amd.com>2018-07-11 22:32:46 -0400
committerOded Gabbay <oded.gabbay@gmail.com>2018-07-11 22:32:46 -0400
commita60d811b2bf45f2e776e00d71f0dc3c5043245d9 (patch)
treea0739b3ed0961b6918f63c873c2e7f725aa9c732 /drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
parent1cd106ecfc1f048db3795cc6aed8acb156ba6d4d (diff)
drm/amdkfd: Fix race between scheduler and context restore
The scheduler may raise SQ_WAVE_STATUS.SPI_PRIO via SQ_CMD before context restore has completed. Restoring SPI_PRIO=0 after this point may cause context save to fail as the lower priority wavefronts are not selected for execution among spin-waiting wavefronts. Leave SPI_PRIO at its SPI-initialized or scheduler-raised value. v2: Also fix race with exception handler Signed-off-by: Jay Cornwall <Jay.Cornwall@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c')
0 files changed, 0 insertions, 0 deletions