Skip to content

gpu: host1x: Add runtime pm support

Arto Merilainen dri-devel linux-tegra lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 2 repliesIn review
  2. v34 patches 4 repliesSuperseded

Changes in v4 from the cover letter

- Fixed initialisation clean up in host1x and gr2d drivers
- Runtime pm support removal follows now the same convention as other Tegra drivers
- Code shuffling to prevent unnecessary function prototypes
- Removed unnecessary NULL pointer checks.
- Rebased on top of 3.12-rc4

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5drm/tegra: Fix gr2d initialisation clean updrivers/gpu/host1x/drm/gr2d.c+16 -50 replies
2/5gpu: host1x: shuffle job APIsdrivers/gpu/host1x/cdma.c drivers/gpu/host1x/channel.c drivers/gpu/host1x/channel.h +2 more+17 -90 replies
3/5drm/tegra: Add runtime pm support for gr2ddrivers/gpu/host1x/drm/gr2d.c drivers/gpu/host1x/job.c+48 -90 replies
4/5drm/tegra: Add runtime pm support for dcdrivers/gpu/host1x/drm/dc.c+51 -80 replies
5/5gpu: host1x: Add runtime pm support for host1xdrivers/gpu/host1x/dev.c+48 -80 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchStephen WarrenTerje Bergstrom
SeriesR-b A-b
1/5
2/5
3/5
4/5
5/5

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

Read the v4 thread

Cover letter [PATCHv4 0/5] gpu: host1x: Add runtime pm support

This series adds runtime pm support for host1x, gr2d and dc. It retains the current behaviour if CONFIG_PM_RUNTIME is not enabled.

The gr2d clock is enabled when a new job is submitted and disabled when the work is done. Due to parent->child relations between host1x->gr2d, this scheme enables and disables host1x clock.

For dc, the clocks are enabled in .probe and disabled in .remove via runtime pm instead of direct clock APIs.

Mayuresh is unfortunately not available to continue with the series and hence I will continue working on the patches.

Changes in v4:
- Fixed initialisation clean up in host1x and gr2d drivers
- Runtime pm support removal follows now the same convention as other Tegra drivers
- Code shuffling to prevent unnecessary function prototypes
- Removed unnecessary NULL pointer checks.
- Rebased on top of 3.12-rc4

Changes in v3:
- Rebased patches on top of 3.12-rc2
- Removed unnecessary #ifdefs
- Added descriptions to commit messages
- If runtime pm is disabled, the code calls suspend/resume functions for enabling/disabling the clocks instead of repeating the functions

Arto Merilainen (1):
drm/tegra: Fix gr2d initialisation clean up

Mayuresh Kulkarni (4):
gpu: host1x: shuffle job APIs
drm/tegra: Add runtime pm support for gr2d
drm/tegra: Add runtime pm support for dc
gpu: host1x: Add runtime pm support for host1x

 drivers/gpu/host1x/cdma.c     |  2 ++
 drivers/gpu/host1x/channel.c  |  8 -----
 drivers/gpu/host1x/channel.h  |  1 -
 drivers/gpu/host1x/dev.c      | 56 +++++++++++++++++++++++++++++-----
 drivers/gpu/host1x/drm/dc.c   | 59 ++++++++++++++++++++++++++++++-----
 drivers/gpu/host1x/drm/gr2d.c | 71 ++++++++++++++++++++++++++++++++++++-------
 drivers/gpu/host1x/job.c      | 13 ++++++++
 drivers/gpu/host1x/job.h      |  3 ++
 8 files changed, 177 insertions(+), 36 deletions(-)
Signature · 1 line
1.8.1.5