drm/amd/amdgpu: enable powerplay and smc firmware loading for Fiji.
authorEric Huang <JinHuiEric.Huang@amd.com>
Tue, 29 Sep 2015 18:58:53 +0000 (14:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Dec 2015 21:42:18 +0000 (16:42 -0500)
Switch over to handling in the powerplay module.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
drivers/gpu/drm/amd/amdgpu/vi.c

index 8f758eaeef9f17416599dbea6437e3be36dfd892..a611401a29d5bd9aa5c57ef0d979d415a14e1263 100644 (file)
@@ -703,6 +703,9 @@ static int amdgpu_cgs_get_firmware_info(void *cgs_device,
                case CHIP_TONGA:
                        strcpy(fw_name, "amdgpu/tonga_smc.bin");
                        break;
+               case CHIP_FIJI:
+                       strcpy(fw_name, "amdgpu/fiji_smc.bin");
+                       break;
                default:
                        DRM_ERROR("SMC firmware not supported\n");
                        return -EINVAL;
index 5dd2a4c1a70d14b7df48c648d39e9d88297250e4..1a824f05a28b0f9fe006d62715b6fd6a67a22bd0 100644 (file)
@@ -77,6 +77,9 @@ static int amdgpu_powerplay_init(struct amdgpu_device *adev)
                case CHIP_TONGA:
                        amd_pp->ip_funcs = &tonga_dpm_ip_funcs;
                        break;
+               case CHIP_FIJI:
+                       amd_pp->ip_funcs = &fiji_dpm_ip_funcs;
+                       break;
                case CHIP_CARRIZO:
                        amd_pp->ip_funcs = &cz_dpm_ip_funcs;
                        break;
index 8e4c026824d13576076699e5346d8e808a6bdb8a..e51070e9697a99e8bbc94ae2ce70841f1fd23291 100644 (file)
@@ -1246,7 +1246,7 @@ static const struct amdgpu_ip_block_version fiji_ip_blocks[] =
                .major = 7,
                .minor = 1,
                .rev = 0,
-               .funcs = &fiji_dpm_ip_funcs,
+               .funcs = &amdgpu_pp_ip_funcs,
        },
        {
                .type = AMD_IP_BLOCK_TYPE_DCE,