drm/amdkfd: Fix SDMA queue init. in non-HWS mode
authorBen Goz <ben.goz@amd.com>
Tue, 10 Mar 2015 12:02:25 +0000 (14:02 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Mon, 16 Mar 2015 21:36:58 +0000 (23:36 +0200)
commit4fadf6b6570edc40c01eb7760055f9adc19971a5
treea78d8ea92bfe39aa5f01ac05224646dc05e9b9ad
parentaaad2d8c7b62489f03ceac4fa3c9ebb17ccc7860
drm/amdkfd: Fix SDMA queue init. in non-HWS mode

This patch fixes the SDMA queue initialization, when running in non-HWS mode.

The first fix is to move the initialization of SDMA VM parameters before the
initialization of the SDMA MQD.

The second fix is to load the MQD to an HQD after the initialization of the MQD.

Signed-off-by: Ben Goz <ben.goz@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c