drm/amdgpu: Add GFX Fine Grain Clock Gating flag
authorJinzhou.Su <Jinzhou.Su@amd.com>
Tue, 3 Nov 2020 03:39:39 +0000 (11:39 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Nov 2020 22:08:08 +0000 (17:08 -0500)
Add AMD_CG_SUPPORT_GFX_FGCG for FGCG

Signed-off-by: Jinzhou.Su <Jinzhou.Su@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/include/amd_shared.h
drivers/gpu/drm/amd/pm/amdgpu_pm.c

index 412602d..9676016 100644 (file)
@@ -144,6 +144,7 @@ enum amd_powergating_state {
 #define AMD_CG_SUPPORT_ATHUB_LS                        (1 << 28)
 #define AMD_CG_SUPPORT_ATHUB_MGCG              (1 << 29)
 #define AMD_CG_SUPPORT_JPEG_MGCG               (1 << 30)
+#define AMD_CG_SUPPORT_GFX_FGCG                        (1 << 31)
 /* PG flags */
 #define AMD_PG_SUPPORT_GFX_PG                  (1 << 0)
 #define AMD_PG_SUPPORT_GFX_SMG                 (1 << 1)
index 080af05..e57153d 100644 (file)
@@ -39,6 +39,7 @@
 #include "hwmgr.h"
 
 static const struct cg_flag_name clocks[] = {
+       {AMD_CG_SUPPORT_GFX_FGCG, "Graphics Fine Grain Clock Gating"},
        {AMD_CG_SUPPORT_GFX_MGCG, "Graphics Medium Grain Clock Gating"},
        {AMD_CG_SUPPORT_GFX_MGLS, "Graphics Medium Grain memory Light Sleep"},
        {AMD_CG_SUPPORT_GFX_CGCG, "Graphics Coarse Grain Clock Gating"},