drm/amdgpu/sdma4: specify vega12 firmware
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 1 Sep 2017 20:41:07 +0000 (16:41 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Mar 2018 19:36:47 +0000 (14:36 -0500)
Declare the firmware and fetch the proper file.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c

index 9448c45d1b6019e739385ccdf688c03734788dd0..e00b6ff566f6ce80cf72f7ed07d17bfccedb5b82 100644 (file)
@@ -40,6 +40,8 @@
 
 MODULE_FIRMWARE("amdgpu/vega10_sdma.bin");
 MODULE_FIRMWARE("amdgpu/vega10_sdma1.bin");
+MODULE_FIRMWARE("amdgpu/vega12_sdma.bin");
+MODULE_FIRMWARE("amdgpu/vega12_sdma1.bin");
 MODULE_FIRMWARE("amdgpu/raven_sdma.bin");
 
 #define SDMA0_POWER_CNTL__ON_OFF_CONDITION_HOLD_TIME_MASK  0x000000F8L
@@ -162,6 +164,9 @@ static int sdma_v4_0_init_microcode(struct amdgpu_device *adev)
        case CHIP_VEGA10:
                chip_name = "vega10";
                break;
+       case CHIP_VEGA12:
+               chip_name = "vega12";
+               break;
        case CHIP_RAVEN:
                chip_name = "raven";
                break;