MA-19319-1 put gpufreq cooling device register in gpu driver
in current implementation, bind every thermal zone registered in dts
with one cooling device "thermal-devfreq-%d", and add
notifier_call_chain when register cooling device, use step_wise
governor, step_wise_throttle compute state based on the temp trend,
and if need to throttle, do process step_wise_throttle ->
thermal_cdev_update ->thermal_cdev_set_cur_state -> set_cur_state
-> devfreq_cooling_notifier_call_chain(state) ->
gpu driver receive state notifier, and change gpu freq.
Issue of current implementation: in current implementation,
whatever the thermal sensor is, always trigger gpu freq change,
this is not proper, cpu thermal sensor and drc thermal sensor
should not bind with gpu cooling device.
Solution: this patch change to put the bind in dts, make it more clear.
register the gpu cooling device for node "devfreq", thermal policy
thermal_of_populate_bind_params in thermal_of.c will bind the cooling
device and trip point from the map.
this patch put gpufreq cooling device register in gpu driver, thermal
driver can use devfreq_cooling_handle_event_change to handle gpufreq
adjustment according to the temp change.
Change-Id: I563b8d7669d915a6dce24ce8621a1bd3f64abc4d
Signed-off-by:
Dandan Sun <dandan.sun@nxp.com>
Loading
Please register or sign in to comment