Skip to content

Commit 99e6900

Browse files
Junwei Zhanggregkh
authored andcommitted
drm/amdgpu: update mc firmware image for polaris12 variants
commit d7fd676 upstream. Some new variants require updated firmware. Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com> Reviewed-by: Evan Quan <evan.quan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent c33e7a5 commit 99e6900

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ MODULE_FIRMWARE("amdgpu/tonga_mc.bin");
5252
MODULE_FIRMWARE("amdgpu/polaris11_mc.bin");
5353
MODULE_FIRMWARE("amdgpu/polaris10_mc.bin");
5454
MODULE_FIRMWARE("amdgpu/polaris12_mc.bin");
55+
MODULE_FIRMWARE("amdgpu/polaris12_k_mc.bin");
5556

5657
static const u32 golden_settings_tonga_a11[] =
5758
{
@@ -226,6 +227,15 @@ static int gmc_v8_0_init_microcode(struct amdgpu_device *adev)
226227
break;
227228
case CHIP_POLARIS12:
228229
chip_name = "polaris12";
230+
if (((adev->pdev->device == 0x6987) &&
231+
((adev->pdev->revision == 0xc0) ||
232+
(adev->pdev->revision == 0xc3))) ||
233+
((adev->pdev->device == 0x6981) &&
234+
((adev->pdev->revision == 0x00) ||
235+
(adev->pdev->revision == 0x01) ||
236+
(adev->pdev->revision == 0x10)))) {
237+
chip_name = "polaris12_k";
238+
}
229239
break;
230240
case CHIP_FIJI:
231241
case CHIP_CARRIZO:

0 commit comments

Comments
 (0)