• Dmitry Osipenko's avatar
    PM / devfreq: tegra: Reconfigure hardware on governor's restart · 546ff093
    Dmitry Osipenko authored
    Move hardware configuration to governor's start/resume methods.
    This allows to re-initialize hardware counters and reconfigure
    cleanly if governor was stopped/paused. That is needed because we
    are not aware of all hardware changes that happened while governor
    was stopped and the paused state may get out of sync with reality,
    hence it's better to start with a clean slate after the pause. In
    a result there is no memory bandwidth starvation after resume from
    suspend-to-ram that results in display controller underflowing that
    happens on resume because of improper decision made by devfreq about
    the required memory frequency. This change also cleans up code a tad
    by moving hardware-configuration code into a single location.
    Reviewed-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
    Signed-off-by: default avatarDmitry Osipenko <digetx@gmail.com>
    Acked-by: default avatarThierry Reding <treding@nvidia.com>
    Signed-off-by: default avatarMyungJoo Ham <myungjoo.ham@samsung.com>
    546ff093
tegra-devfreq.c 19 KB