]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amd/amdgpu: add common support for beige_goby
authorChengming Gui <Jack.Gui@amd.com>
Tue, 13 Oct 2020 08:09:55 +0000 (16:09 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 May 2021 02:40:06 +0000 (22:40 -0400)
Add external id and set clock gating for beige_goby

Signed-off-by: Chengming Gui <Jack.Gui@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nv.c

index 32c34470404cb0a1beeabc3232aa8e2e4612e811..2688d8b09041d25f853a4540b37ca03ebbfa95ca 100644 (file)
@@ -1255,6 +1255,11 @@ static int nv_common_early_init(void *handle)
                        AMD_PG_SUPPORT_MMHUB;
                adev->external_rev_id = adev->rev_id + 0x3c;
                break;
+       case CHIP_BEIGE_GOBY:
+               adev->cg_flags = 0;
+               adev->pg_flags = 0;
+               adev->external_rev_id = adev->rev_id + 0x46;
+               break;
        default:
                /* FIXME: not supported yet */
                return -EINVAL;
@@ -1378,6 +1383,7 @@ static int nv_common_set_clockgating_state(void *handle,
        case CHIP_SIENNA_CICHLID:
        case CHIP_NAVY_FLOUNDER:
        case CHIP_DIMGREY_CAVEFISH:
+       case CHIP_BEIGE_GOBY:
                adev->nbio.funcs->update_medium_grain_clock_gating(adev,
                                state == AMD_CG_STATE_GATE);
                adev->nbio.funcs->update_medium_grain_light_sleep(adev,