drm/amdgpu: update Vega20 SDMA golden setting
Subsystems (2)
PATCH 1/3 drm/amdgpu: update Vega20 SDMA golden setting
Update SDMA golden settings.
--- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +2 -0
@@ -148,6 +148,7 @@ static const struct soc15_reg_golden golden_settings_sdma0_4_2[] =SOC15_REG_GOLDEN_VALUE (SDMA0 ,0 , mmSDMA0_RLC7_RB_RPTR_ADDR_LO,0xfffffffd ,0x00000001 ),SOC15_REG_GOLDEN_VALUE (SDMA0 ,0 , mmSDMA0_RLC7_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ),SOC15_REG_GOLDEN_VALUE (SDMA0 ,0 , mmSDMA0_UTCL1_PAGE,0x000003ff ,0x000003c0 ), + SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_UTCL1_WATERMK, 0xFE000000, 0x00000000), }; static const struct soc15_reg_golden golden_settings_sdma1_4_2[] = {
@@ -177,6 +178,7 @@ static const struct soc15_reg_golden golden_settings_sdma1_4_2[] = {SOC15_REG_GOLDEN_VALUE (SDMA1 ,0 , mmSDMA1_RLC7_RB_RPTR_ADDR_LO,0xfffffffd ,0x00000001 ),SOC15_REG_GOLDEN_VALUE (SDMA1 ,0 , mmSDMA1_RLC7_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ),SOC15_REG_GOLDEN_VALUE (SDMA1 ,0 , mmSDMA1_UTCL1_PAGE,0x000003ff ,0x000003c0 ), + SOC15_REG_GOLDEN_VALUE(SDMA1, 0, mmSDMA1_UTCL1_WATERMK, 0xFE000000, 0x00000000), }; static const struct soc15_reg_golden golden_settings_sdma_rv1[] =
Signature · 6 lines
2.19.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 2/3 drm/amd/powerplay: added I2C controller configuration
PPTABLE structure is stretched to add I2C controller configuration. Hold on the PPTABLE_V20_SMU_VERSION bump until the VBIOS is ready.
--- drivers/gpu/drm/amd/include/atomfirmware.h | 88 ++++++++++++++ .../powerplay/hwmgr/vega20_processpptables.c | 94 +++++++++------ .../drm/amd/powerplay/inc/smu11_driver_if.h | 108 +++++++++++++----- 3 files changed, 227 insertions(+), 63 deletions(-)
drivers/gpu/drm/amd/include/atomfirmware.h +88 -0
@@ -1532,6 +1532,94 @@ struct atom_smc_dpm_info_v4_3uint32_t boardreserved[10 ]; }; +struct smudpm_i2ccontrollerconfig_t { +uint32_t enabled; +uint32_t slaveaddress; +uint32_t controllerport; +uint32_t controllername; +uint32_t thermalthrottler; +uint32_t i2cprotocol; +uint32_t i2cspeed; +}; + +struct atom_smc_dpm_info_v4_4 +{ +struct atom_common_table_header table_header; +uint32_t i2c_padding[3 ]; + +uint16_t maxvoltagestepgfx; +uint16_t maxvoltagestepsoc; + +uint8_t vddgfxvrmapping; +uint8_t vddsocvrmapping; +uint8_t vddmem0vrmapping; +uint8_t vddmem1vrmapping; + +uint8_t gfxulvphasesheddingmask; +uint8_t soculvphasesheddingmask; +uint8_t externalsensorpresent; +uint8_t padding8_v; + +uint16_t gfxmaxcurrent; +uint8_t gfxoffset; +uint8_t padding_telemetrygfx; + +uint16_t socmaxcurrent; +uint8_t socoffset; +uint8_t padding_telemetrysoc; + +uint16_t mem0maxcurrent; +uint8_t mem0offset; +uint8_t padding_telemetrymem0; + +uint16_t mem1maxcurrent; +uint8_t mem1offset; +uint8_t padding_telemetrymem1; + + +uint8_t acdcgpio; +uint8_t acdcpolarity; +uint8_t vr0hotgpio; +uint8_t vr0hotpolarity; + +uint8_t vr1hotgpio; +uint8_t vr1hotpolarity; +uint8_t padding1; +uint8_t padding2; + + +uint8_t ledpin0; +uint8_t ledpin1; +uint8_t ledpin2; +uint8_t padding8_4; + + +uint8_t pllgfxclkspreadenabled; +uint8_t pllgfxclkspreadpercent; +uint16_t pllgfxclkspreadfreq; + + +uint8_t uclkspreadenabled; +uint8_t uclkspreadpercent; +uint16_t uclkspreadfreq; + + +uint8_t fclkspreadenabled; +uint8_t fclkspreadpercent; +uint16_t fclkspreadfreq; + + +uint8_t fllgfxclkspreadenabled; +uint8_t fllgfxclkspreadpercent; +uint16_t fllgfxclkspreadfreq; + + +struct smudpm_i2ccontrollerconfig_t i2ccontrollers[7 ]; + + +uint32_t boardreserved[10 ]; +}; +/* *************************************************************************** Data Table asic_profiling_info structure
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_processpptables.c +61 -33
140 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if.h +78 -30
157 lines not on this page · raw message
Signature · 6 lines
2.19.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 3/3 drm/amd/powerplay: update PPtable with DC BTC and Tvr SocLimit fields
In reply to a message not in the archiveUpdate the PPtable structure to fit the latest SMC firmware.
--- .../amd/powerplay/hwmgr/vega20_processpptables.c | 10 ++++++---- drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if.h | 13 ++++++++----- 2 files changed, 14 insertions(+), 9 deletions(-)
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_processpptables.c +6 -4
@@ -100,9 +100,8 @@ static void dump_pptable(PPTable_t *pptable)pr_info ("PpmTemperatureThreshold = %d\n" , pptable->PpmTemperatureThreshold);pr_info ("MemoryOnPackage = 0x%02x\n" , pptable->MemoryOnPackage); -pr_info ("padding8_limits[0] = 0x%02x\n" , pptable->padding8_limits[0 ]); -pr_info ("padding8_limits[1] = 0x%02x\n" , pptable->padding8_limits[1 ]); -pr_info ("padding8_limits[2] = 0x%02x\n" , pptable->padding8_limits[2 ]); +pr_info ("padding8_limits = 0x%02x\n" , pptable->padding8_limits); +pr_info ("Tvr_SocLimit = %d\n" , pptable->Tvr_SocLimit);pr_info ("UlvVoltageOffsetSoc = %d\n" , pptable->UlvVoltageOffsetSoc);pr_info ("UlvVoltageOffsetGfx = %d\n" , pptable->UlvVoltageOffsetGfx);
@@ -539,7 +538,10 @@ static void dump_pptable(PPTable_t *pptable)pr_info ("FanGainVrMem0 = %d\n" , pptable->FanGainVrMem0);pr_info ("FanGainVrMem0 = %d\n" , pptable->FanGainVrMem0); -for (i =0 ; i <12 ; i++) +pr_info ("DcBtcGb[AVFS_VOLTAGE_GFX] = 0x%x\n" , pptable->DcBtcGb[AVFS_VOLTAGE_GFX ]); +pr_info ("DcBtcGb[AVFS_VOLTAGE_SOC] = 0x%x\n" , pptable->DcBtcGb[AVFS_VOLTAGE_SOC ]); + +for (i =0 ; i <11 ; i++)pr_info ("Reserved[%d] = 0x%x\n" , i, pptable->Reserved[i]);for (i =0 ; i <3 ; i++)
drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if.h +8 -5
@@ -165,7 +165,7 @@#define FEATURE_DS_FCLK_MASK (1 << FEATURE_DS_FCLK_BIT )#define FEATURE_DS_MP1CLK_MASK (1 << FEATURE_DS_MP1CLK_BIT )#define FEATURE_DS_MP0CLK_MASK (1 << FEATURE_DS_MP0CLK_BIT ) - +#define FEATURE_XGMI_MASK (1 << FEATURE_XGMI_BIT )#define DPM_OVERRIDE_DISABLE_SOCCLK_PID 0x00000001#define DPM_OVERRIDE_DISABLE_UCLK_PID 0x00000002
@@ -391,8 +391,8 @@ typedef struct {uint16_t PpmTemperatureThreshold;uint8_t MemoryOnPackage; -uint8_t padding8_limits[3 ]; - +uint8_t padding8_limits; +uint16_t Tvr_SocLimit;uint16_t UlvVoltageOffsetSoc;uint16_t UlvVoltageOffsetGfx;
@@ -501,7 +501,7 @@ typedef struct {uint8_t DcBtcEnabled[AVFS_VOLTAGE_COUNT ];uint8_t Padding8_GfxBtc[2 ]; -uint16_t DcBtcMin[AVFS_VOLTAGE_COUNT ]; +int16_t DcBtcMin[AVFS_VOLTAGE_COUNT ];uint16_t DcBtcMax[AVFS_VOLTAGE_COUNT ];
@@ -526,7 +526,10 @@ typedef struct {uint16_t FanGainVrMem0;uint16_t FanGainVrMem1; -uint32_t Reserved[12 ]; + +uint16_t DcBtcGb[AVFS_VOLTAGE_COUNT ]; + +uint32_t Reserved[11 ];uint32_t Padding32[3 ];
Signature · 6 lines
2.19.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): [email protected]
RE: [PATCH 3/3] drm/amd/powerplay: update PPtable with DC BTC and Tvr SocLimit fields
Series reviewed by: Feifei Xu <[email protected]>
Regards,
Feifei
-----Original Message-----
From: Evan Quan <[email protected]>
Sent: 2018年10月16日 10:52
To: [email protected]
Cc: Xu, Feifei <[email protected]>; Deucher, Alexander <[email protected]>; Quan, Evan <[email protected]>
Subject: [PATCH 3/3] drm/amd/powerplay: update PPtable with DC BTC and Tvr SocLimit fields
Update the PPtable structure to fit the latest SMC firmware.
--- .../amd/powerplay/hwmgr/vega20_processpptables.c | 10 ++++++---- drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if.h | 13 ++++++++----- 2 files changed, 14 insertions(+), 9 deletions(-)
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_processpptables.c +2 -3
@@ -100,9 +100,8 @@ static void dump_pptable(PPTable_t *pptable)pr_info ("PpmTemperatureThreshold = %d\n" , pptable->PpmTemperatureThreshold);pr_info ("MemoryOnPackage = 0x%02x\n" , pptable->MemoryOnPackage); -pr_info ("padding8_limits[0] = 0x%02x\n" , pptable->padding8_limits[0 ]); -pr_info ("padding8_limits[1] = 0x%02x\n" , pptable->padding8_limits[1 ]); -pr_info ("padding8_limits[2] = 0x%02x\n" , pptable->padding8_limits[2 ]); +pr_info ("padding8_limits = 0x%02x\n" , pptable->padding8_limits); +pr_info ("Tvr_SocLimit = %d\n" , pptable->Tvr_SocLimit);pr_info ("UlvVoltageOffsetSoc = %d\n" , pptable->UlvVoltageOffsetSoc); pr_info("UlvVoltageOffsetGfx = %d\n", pptable->UlvVoltageOffsetGfx); @@ -539,7 +538,10 @@ static void dump_pptable(PPTable_t *pptable)
pr_info("FanGainVrMem0 = %d\n", pptable->FanGainVrMem0); pr_info("FanGainVrMem0 = %d\n", pptable->FanGainVrMem0);
- for (i = 0; i < 12; i++)
+ pr_info("DcBtcGb[AVFS_VOLTAGE_GFX] = 0x%x\n", pptable->DcBtcGb[AVFS_VOLTAGE_GFX]);
+ pr_info("DcBtcGb[AVFS_VOLTAGE_SOC] = 0x%x\n",
+pptable->DcBtcGb[AVFS_VOLTAGE_SOC]);
+
+ for (i = 0; i < 11; i++)
pr_info("Reserved[%d] = 0x%x\n", i, pptable->Reserved[i]);
for (i = 0; i < 3; i++)
drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if.h +8 -5
@@ -165,7 +165,7 @@#define FEATURE_DS_FCLK_MASK (1 << FEATURE_DS_FCLK_BIT )#define FEATURE_DS_MP1CLK_MASK (1 << FEATURE_DS_MP1CLK_BIT )#define FEATURE_DS_MP0CLK_MASK (1 << FEATURE_DS_MP0CLK_BIT ) - +#define FEATURE_XGMI_MASK (1 << FEATURE_XGMI_BIT )#define DPM_OVERRIDE_DISABLE_SOCCLK_PID 0x00000001#define DPM_OVERRIDE_DISABLE_UCLK_PID 0x00000002
@@ -391,8 +391,8 @@ typedef struct {uint16_t PpmTemperatureThreshold;uint8_t MemoryOnPackage; -uint8_t padding8_limits[3 ]; - +uint8_t padding8_limits; +uint16_t Tvr_SocLimit;uint16_t UlvVoltageOffsetSoc;uint16_t UlvVoltageOffsetGfx;
@@ -501,7 +501,7 @@ typedef struct {uint8_t DcBtcEnabled[AVFS_VOLTAGE_COUNT ];uint8_t Padding8_GfxBtc[2 ]; -uint16_t DcBtcMin[AVFS_VOLTAGE_COUNT ]; +int16_t DcBtcMin[AVFS_VOLTAGE_COUNT ];uint16_t DcBtcMax[AVFS_VOLTAGE_COUNT ];
@@ -526,7 +526,10 @@ typedef struct {uint16_t FanGainVrMem0;uint16_t FanGainVrMem1; -uint32_t Reserved[12 ]; + +uint16_t DcBtcGb[AVFS_VOLTAGE_COUNT ]; + +uint32_t Reserved[11 ];uint32_t Padding32[3 ];
--
2.19.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx