drm/radeon: Modify kgd_engine_type enum to match CZ
authorOded Gabbay <oded.gabbay@gmail.com>
Mon, 19 Jan 2015 14:20:21 +0000 (16:20 +0200)
committerOded Gabbay <oded.gabbay@gmail.com>
Mon, 20 Jul 2015 06:16:47 +0000 (09:16 +0300)
This patch splits the KGD_ENGINE_SDMA to KGD_ENGINE_SDMA1 and
KGD_ENGINE_SDMA2 to match CZ definitions.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/include/kgd_kfd_interface.h
drivers/gpu/drm/radeon/radeon_kfd.c

index 9080daa116b60031e156f0d10e200d2017c2950e..888250b33ea8993683538abed3de77bda023e5a4 100644 (file)
@@ -52,7 +52,8 @@ enum kgd_engine_type {
        KGD_ENGINE_MEC1,
        KGD_ENGINE_MEC2,
        KGD_ENGINE_RLC,
-       KGD_ENGINE_SDMA,
+       KGD_ENGINE_SDMA1,
+       KGD_ENGINE_SDMA2,
        KGD_ENGINE_MAX
 };
 
index e476c331f3fa6e3c91d4a5203f0aab8829028dfa..9a4d69e59401509b0d7be27b31332ed2b43b72b7 100644 (file)
@@ -845,7 +845,8 @@ static uint16_t get_fw_version(struct kgd_dev *kgd, enum kgd_engine_type type)
                hdr = (const union radeon_firmware_header *) rdev->rlc_fw->data;
                break;
 
-       case KGD_ENGINE_SDMA:
+       case KGD_ENGINE_SDMA1:
+       case KGD_ENGINE_SDMA2:
                hdr = (const union radeon_firmware_header *)
                                                        rdev->sdma_fw->data;
                break;