OSDN Git Service

drm/amdkfd: Reduce priority of context-saving waves before spin-wait
authorJay Cornwall <Jay.Cornwall@amd.com>
Tue, 1 May 2018 21:56:02 +0000 (17:56 -0400)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 1 May 2018 21:56:02 +0000 (17:56 -0400)
commit87e6d4e0777daf774ed9aa59ed25b6ebaaad7052
tree1062fa04a237eef7021afd3401bea92ddb5015f3
parent24f48a42038f5baaae49b181b64782ecfb703a9c
drm/amdkfd: Reduce priority of context-saving waves before spin-wait

Synchronization between context-saving wavefronts is achieved by
sending a SAVEWAVE message to the SPI and then spin-waiting for a
response. These spin-waiting wavefronts may inhibit the progress
of other wavefronts in the context save handler, leading to the
synchronization condition never being achieved.

Before spin-waiting reduce the priority of each wavefront to
guarantee foward progress in the others.

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>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdkfd/cwsr_trap_handler_gfx8.asm
drivers/gpu/drm/amd/amdkfd/cwsr_trap_handler_gfx9.asm