Files
linux-cryptodev-2.6/drivers/gpu/drm
Martin Blumenstingl 1996970773 drm/lima: Add optional devfreq and cooling device support
Most platforms with a Mali-400 or Mali-450 GPU also have support for
changing the GPU clock frequency. Add devfreq support so the GPU clock
rate is updated based on the actual GPU usage when the
"operating-points-v2" property is present in the board.dts.

The actual devfreq code is taken from panfrost_devfreq.c and modified so
it matches what the lima hardware needs:
- a call to dev_pm_opp_set_clkname() during initialization because there
  are two clocks on Mali-4x0 IPs. "core" is the one that actually clocks
  the GPU so we need to control it using devfreq.
- locking when reading or writing the devfreq statistics because (unlike
  than panfrost) we have multiple PP and GP IRQs which may finish jobs
  concurrently.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200319203427.2259891-3-martin.blumenstingl@googlemail.com
2020-03-28 16:29:46 +08:00
..
2020-03-02 09:22:43 +01:00
2020-03-26 15:48:34 +01:00
2020-03-26 15:45:36 +01:00
2020-03-26 16:05:12 +01:00
2020-03-02 09:22:49 +01:00
2020-03-26 14:50:05 +01:00
2020-03-26 16:09:40 +01:00
2020-03-26 15:18:11 +01:00
2020-03-26 15:45:36 +01:00
2020-03-26 15:45:36 +01:00
2020-03-26 15:45:36 +01:00
2020-03-16 09:26:18 +01:00
2020-03-26 16:09:48 +01:00
2020-03-26 15:38:09 +01:00
2020-03-16 09:27:09 +01:00
2020-03-09 09:22:50 +00:00
2020-03-18 14:48:34 +01:00