Series is reviewed-by: Evan Quan <evan.quan@xxxxxxx> > -----Original Message----- > From: amd-gfx <amd-gfx-bounces@xxxxxxxxxxxxxxxxxxxxx> On Behalf Of Alex > Deucher > Sent: Saturday, December 21, 2019 4:14 AM > To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx > Cc: Deucher, Alexander <Alexander.Deucher@xxxxxxx> > Subject: [PATCH 2/2] drm/amdgpu/smu: add peak profile support for navi12 > > Add defined peak sclk for navi12 peak profile mode. > > Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx> > --- > drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 3 +++ > drivers/gpu/drm/amd/powerplay/navi10_ppt.h | 2 ++ > 2 files changed, 5 insertions(+) > > diff --git a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c > b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c > index c33744a0d46b..106434689ec5 100644 > --- a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c > +++ b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c > @@ -1628,6 +1628,9 @@ static int navi10_set_peak_clock_by_device(struct > smu_context *smu) > break; > } > break; > + case CHIP_NAVI12: > + sclk_freq = NAVI12_UMD_PSTATE_PEAK_GFXCLK; > + break; > default: > ret = smu_get_dpm_level_count(smu, SMU_SCLK, &sclk_level); > if (ret) > diff --git a/drivers/gpu/drm/amd/powerplay/navi10_ppt.h > b/drivers/gpu/drm/amd/powerplay/navi10_ppt.h > index ec03c7992f6d..f109401c2ee8 100644 > --- a/drivers/gpu/drm/amd/powerplay/navi10_ppt.h > +++ b/drivers/gpu/drm/amd/powerplay/navi10_ppt.h > @@ -33,6 +33,8 @@ > #define NAVI14_UMD_PSTATE_PEAK_XTX_GFXCLK (1717) > #define NAVI14_UMD_PSTATE_PEAK_XL_GFXCLK (1448) > > +#define NAVI12_UMD_PSTATE_PEAK_GFXCLK (1100) > + > #define NAVI10_VOLTAGE_SCALE (4) > > #define smnPCIE_LC_SPEED_CNTL 0x11140290 > -- > 2.24.1 > > _______________________________________________ > amd-gfx mailing list > amd-gfx@xxxxxxxxxxxxxxxxxxxxx > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.free > desktop.org%2Fmailman%2Flistinfo%2Famd- > gfx&data=02%7C01%7Cevan.quan%40amd.com%7Ccc05f630ed9a4f84c64 > f08d785892013%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C6371 > 24696390890745&sdata=S1dNXVIhtpYQLPueYCHg8oGowg464P%2FlFDlmU > f8UVLY%3D&reserved=0 _______________________________________________ amd-gfx mailing list amd-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/amd-gfx