drm/amd: Update kgd_kfd interface for resuming SDMA queues
authorFelix Kuehling <Felix.Kuehling@amd.com>
Wed, 1 Nov 2017 23:21:58 +0000 (19:21 -0400)
committerOded Gabbay <oded.gabbay@gmail.com>
Wed, 1 Nov 2017 23:21:58 +0000 (19:21 -0400)
commit7ce66118aaca8c9ed23cd44d629b8037a4117c11
tree6f7c8505f186a9864f3449d9ed4be7004c898f85
parentdf2869abd92b740af141ee2eb081bfc69bd80877
drm/amd: Update kgd_kfd interface for resuming SDMA queues

Add wptr and mm parameters to hqd_sdma_load and pass these parameters
from device_queue_manager through the mqd_manager.

SDMA doesn't support polling while the engine believes it's idle. The
driver must update the wptr. The new parameters will be used for looking
up the updated value from the specified mm when SDMA queues are resumed
after being disabled.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c
drivers/gpu/drm/amd/include/kgd_kfd_interface.h