Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: add new HDP CG flags

HDP 5.0 supports SRAM power gating. all the LS (Light Sleep)/
DS (Deep Sleep)/SD (Shut Down) modes are supported. However,
only one of these modes can be enabled at one time.

There is no dynamic power mode switch support. clock/power gating
has to be disabled before making any power mode change.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Hawking Zhang and committed by
Alex Deucher
714ff852 54fc4472

+2
+2
drivers/gpu/drm/amd/include/amd_shared.h
··· 93 93 #define AMD_CG_SUPPORT_DRM_MGCG (1 << 22) 94 94 #define AMD_CG_SUPPORT_DF_MGCG (1 << 23) 95 95 #define AMD_CG_SUPPORT_VCN_MGCG (1 << 24) 96 + #define AMD_CG_SUPPORT_HDP_DS (1 << 25) 97 + #define AMD_CG_SUPPORT_HDP_SD (1 << 26) 96 98 /* PG flags */ 97 99 #define AMD_PG_SUPPORT_GFX_PG (1 << 0) 98 100 #define AMD_PG_SUPPORT_GFX_SMG (1 << 1)