Skip to content

drm/msm: Improved devfreq tuning

Rob Clark dri-devel linux-arm-msm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesIn review
  2. v13 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/msm: Split out devfreq handlingdrivers/gpu/drm/msm/Makefile drivers/gpu/drm/msm/adreno/a6xx_gpu.c drivers/gpu/drm/msm/msm_gpu.c +2 more+165 -1211 reply
2/3drm/msm: Split out get_freq() helperdrivers/gpu/drm/msm/msm_gpu_devfreq.c+10 -111 reply
3/3drm/msm: Devfreq tuningdrivers/gpu/drm/msm/msm_gpu.c drivers/gpu/drm/msm/msm_gpu.h drivers/gpu/drm/msm/msm_gpu_devfreq.c+117 -10 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchDmitry Baryshkov
1/3R-b
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] drm/msm: Improved devfreq tuning

From: Rob Clark <[email protected]>

This is the outcome of trying to fix some bad gpu freq behavior seen in some use-cases, in particular mobile games that throttle themselves to 30fps. With the existing tuning, we'd end up spending most of the time that we should be running fast at a low freq, and most of the idle time at a high freq.

First two patches are prep, 3/3 is the interesting bit. See the patch description in 3/3 for more details.

v2: struct_mutex serializes the submit path, but not the retire path,

    so add a dedicated lock to serialize active<->idle transitions.

Rob Clark (3):
drm/msm: Split out devfreq handling
drm/msm: Split out get_freq() helper
drm/msm: Devfreq tuning

 drivers/gpu/drm/msm/Makefile          |   1 +
 drivers/gpu/drm/msm/adreno/a6xx_gpu.c |   4 +-
 drivers/gpu/drm/msm/msm_gpu.c         | 132 +++--------------
 drivers/gpu/drm/msm/msm_gpu.h         |  61 +++++++-
 drivers/gpu/drm/msm/msm_gpu_devfreq.c | 203 ++++++++++++++++++++++++++
 5 files changed, 280 insertions(+), 121 deletions(-)
 create mode 100644 drivers/gpu/drm/msm/msm_gpu_devfreq.c
Signature · 1 line
2.31.1