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

drm/amd/powerplay:add hwmgr callback to update nbpstate on Carrizo

Add hwmgr callback "update_nbdpm_pstate".This will use to access
"cz_nbdpm_pstate_enable_disable" function to enable/disable low
memory pstate.

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

authored by

Guttula, Suresh and committed by
Alex Deucher
e5bbf0e9 00fedbe6

+4
+1
drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c
··· 1992 1992 .power_state_set = smu8_set_power_state_tasks, 1993 1993 .dynamic_state_management_disable = smu8_disable_dpm_tasks, 1994 1994 .notify_cac_buffer_info = smu8_notify_cac_buffer_info, 1995 + .update_nbdpm_pstate = smu8_nbdpm_pstate_enable_disable, 1995 1996 .get_thermal_temperature_range = smu8_get_thermal_temperature_range, 1996 1997 }; 1997 1998
+3
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
··· 317 317 uint32_t mc_addr_low, 318 318 uint32_t mc_addr_hi, 319 319 uint32_t size); 320 + int (*update_nbdpm_pstate)(struct pp_hwmgr *hwmgr, 321 + bool enable, 322 + bool lock); 320 323 int (*get_thermal_temperature_range)(struct pp_hwmgr *hwmgr, 321 324 struct PP_TemperatureRange *range); 322 325 int (*get_power_profile_mode)(struct pp_hwmgr *hwmgr, char *buf);