On Mon, Oct 9, 2017 at 12:42 AM, Rex Zhu <Rex.Zhu at amd.com> wrote: > Change-Id: I4d50bf04ba6f5caf6919b6177517c7b38b9a606a > Signed-off-by: Rex Zhu <Rex.Zhu at amd.com> Reviewed-by: Alex Deucher <alexander.deucher at amd.com> > --- > drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 28 ++++++++++++++++++++++ > 1 file changed, 28 insertions(+) > > diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c > index 48de45e..ebaea5c 100644 > --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c > +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c > @@ -4994,6 +4994,33 @@ static int vega10_set_mclk_od(struct pp_hwmgr *hwmgr, uint32_t value) > return 0; > } > > +static int vega10_notify_cac_buffer_info(struct pp_hwmgr *hwmgr, > + uint32_t virtual_addr_low, > + uint32_t virtual_addr_hi, > + uint32_t mc_addr_low, > + uint32_t mc_addr_hi, > + uint32_t size) > +{ > + smum_send_msg_to_smc_with_parameter(hwmgr, > + PPSMC_MSG_SetSystemVirtualDramAddrHigh, > + virtual_addr_hi); > + smum_send_msg_to_smc_with_parameter(hwmgr, > + PPSMC_MSG_SetSystemVirtualDramAddrLow, > + virtual_addr_low); > + smum_send_msg_to_smc_with_parameter(hwmgr, > + PPSMC_MSG_DramLogSetDramAddrHigh, > + mc_addr_hi); > + > + smum_send_msg_to_smc_with_parameter(hwmgr, > + PPSMC_MSG_DramLogSetDramAddrLow, > + mc_addr_low); > + > + smum_send_msg_to_smc_with_parameter(hwmgr, > + PPSMC_MSG_DramLogSetDramSize, > + size); > + return 0; > +} > + > static int vega10_register_thermal_interrupt(struct pp_hwmgr *hwmgr, > const void *info) > { > @@ -5079,6 +5106,7 @@ static int vega10_register_thermal_interrupt(struct pp_hwmgr *hwmgr, > .get_mclk_od = vega10_get_mclk_od, > .set_mclk_od = vega10_set_mclk_od, > .avfs_control = vega10_avfs_enable, > + .notify_cac_buffer_info = vega10_notify_cac_buffer_info, > .register_internal_thermal_interrupt = vega10_register_thermal_interrupt, > }; > > -- > 1.9.1 > > _______________________________________________ > amd-gfx mailing list > amd-gfx at lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx