On Wed, Feb 3, 2021 at 3:26 AM Xiaomeng Hou <Xiaomeng.Hou@xxxxxxx> wrote: > > Add PP messages for reading/setting Fast PPT and Slow PPT limit. > > Signed-off-by: Xiaomeng Hou <Xiaomeng.Hou@xxxxxxx> Reviewed-by: Alex Deucher <alexander.deucher@xxxxxxx> > --- > drivers/gpu/drm/amd/pm/inc/smu_types.h | 4 ++++ > drivers/gpu/drm/amd/pm/inc/smu_v11_5_ppsmc.h | 6 +++++- > 2 files changed, 9 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/pm/inc/smu_types.h b/drivers/gpu/drm/amd/pm/inc/smu_types.h > index 68c87d4b1ce3..aa4822202587 100644 > --- a/drivers/gpu/drm/amd/pm/inc/smu_types.h > +++ b/drivers/gpu/drm/amd/pm/inc/smu_types.h > @@ -210,6 +210,10 @@ > __SMU_DUMMY_MAP(DisallowGpo), \ > __SMU_DUMMY_MAP(Enable2ndUSB20Port), \ > __SMU_DUMMY_MAP(RequestActiveWgp), \ > + __SMU_DUMMY_MAP(SetFastPPTLimit), \ > + __SMU_DUMMY_MAP(SetSlowPPTLimit), \ > + __SMU_DUMMY_MAP(GetFastPPTLimit), \ > + __SMU_DUMMY_MAP(GetSlowPPTLimit), \ > > #undef __SMU_DUMMY_MAP > #define __SMU_DUMMY_MAP(type) SMU_MSG_##type > diff --git a/drivers/gpu/drm/amd/pm/inc/smu_v11_5_ppsmc.h b/drivers/gpu/drm/amd/pm/inc/smu_v11_5_ppsmc.h > index 55d7892e4e0e..fe130a497d6c 100644 > --- a/drivers/gpu/drm/amd/pm/inc/smu_v11_5_ppsmc.h > +++ b/drivers/gpu/drm/amd/pm/inc/smu_v11_5_ppsmc.h > @@ -104,7 +104,11 @@ > #define PPSMC_MSG_DramLogSetDramBufferSize 0x46 > #define PPSMC_MSG_RequestActiveWgp 0x47 > #define PPSMC_MSG_QueryActiveWgp 0x48 > -#define PPSMC_Message_Count 0x49 > +#define PPSMC_MSG_SetFastPPTLimit 0x49 > +#define PPSMC_MSG_SetSlowPPTLimit 0x4A > +#define PPSMC_MSG_GetFastPPTLimit 0x4B > +#define PPSMC_MSG_GetSlowPPTLimit 0x4C > +#define PPSMC_Message_Count 0x4D > > //Argument for PPSMC_MSG_GfxDeviceDriverReset > enum { > -- > 2.17.1 > > _______________________________________________ > amd-gfx mailing list > amd-gfx@xxxxxxxxxxxxxxxxxxxxx > https://lists.freedesktop.org/mailman/listinfo/amd-gfx _______________________________________________ amd-gfx mailing list amd-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/amd-gfx