]> www.infradead.org Git - users/hch/configfs.git/commitdiff
drm/amd/display: Enable FGCG for DCN351
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Mon, 25 Mar 2024 19:52:04 +0000 (13:52 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Apr 2024 02:07:23 +0000 (22:07 -0400)
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Roman Li <roman.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/resource/dcn351/dcn351_resource.c

index 66ab6aba26aad0f6c307edd1d02b2a14982f997e..8a57adb27264a560d84c236af42a730cde34388b 100644 (file)
@@ -1893,6 +1893,8 @@ static bool dcn351_resource_construct(
        if (dc->ctx->dce_environment == DCE_ENV_PRODUCTION_DRV)
                dc->debug = debug_defaults_drv;
 
+       /*HW default is to have all the FGCG enabled, SW no need to program them*/
+       dc->debug.enable_fine_grain_clock_gating.u32All = 0xFFFF;
        // Init the vm_helper
        if (dc->vm_helper)
                vm_helper_init(dc->vm_helper, 16);