Skip to content

gpu: host1x: Add syncpoint base 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. v2 Latest4 patches 2 repliesIn review
  2. v13 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- Reordered various code blocks to improve code consistency
- Functions host1x_syncpt_alloc() and host1x_syncpt_request() take now a single bitfield argument instead of separate boolean arguments
- Added a separate ioctl call for querying the base associated with some syncpoint

[0] https://gitorious.org/linux-host1x/libdrm-host1x

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4gpu: host1x: Add 'flags' field to syncpt requestdrivers/gpu/host1x/drm/gr2d.c drivers/gpu/host1x/syncpt.c drivers/gpu/host1x/syncpt.h+10 -90 replies
2/4gpu: host1x: Add syncpoint base supportdrivers/gpu/host1x/dev.h drivers/gpu/host1x/hw/channel_hw.c drivers/gpu/host1x/hw/hw_host1x01_uclass.h +2 more+76 -20 replies
3/4drm/tegra: Deliver syncpoint base to user spacedrivers/gpu/host1x/drm/drm.c include/uapi/drm/tegra_drm.h+42 -90 replies
4/4drm/tegra: Reserve base for gr2ddrivers/gpu/host1x/drm/gr2d.c+1 -10 replies

Reviews trailers per patch

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

PatchTerje Bergstrom
SeriesR-b
1/4
2/4
3/4
4/4

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

Read the v2 thread

Cover letter [PATCHv2 0/4] gpu: host1x: Add syncpoint base support

The host1x driver uses currently syncpoints statically from host1x point of view. If we do a wait inside a job, it always has a constant value to wait. host1x supports also doing relative syncpoint waits with respect to syncpoint bases. This allows doing multiple operations inside a single submit and waiting an operation to complete before moving to next one.

This set of patches adds support for syncpoint bases to host1x driver and enables the support for gr2d client.

I have tested the series using the host1x test application (available at [0], function test_wait_base() in tests/tegra/host1x/tegra_host1x_test.c) on cardhu. I would appreciate help in reviewing the series and testing the patches on other boards.

Changes in v2:
- Reordered various code blocks to improve code consistency
- Functions host1x_syncpt_alloc() and host1x_syncpt_request() take now a single bitfield argument instead of separate boolean arguments
- Added a separate ioctl call for querying the base associated with some syncpoint

[0] https://gitorious.org/linux-host1x/libdrm-host1x

Arto Merilainen (4):
gpu: host1x: Add 'flags' field to syncpt request
gpu: host1x: Add syncpoint base support drm/tegra: Deliver syncpoint base to user space drm/tegra: Reserve base for gr2d

 drivers/gpu/host1x/dev.h                   |  2 ++
 drivers/gpu/host1x/drm/drm.c               | 25 +++++++++++++
 drivers/gpu/host1x/drm/gr2d.c              |  2 +-
 drivers/gpu/host1x/hw/channel_hw.c         | 19 ++++++++++
 drivers/gpu/host1x/hw/hw_host1x01_uclass.h |  6 ++++
 drivers/gpu/host1x/syncpt.c                | 58 +++++++++++++++++++++++++-----
 drivers/gpu/host1x/syncpt.h                | 10 +++++-
 include/uapi/drm/tegra_drm.h               | 26 +++++++++-----
 8 files changed, 128 insertions(+), 20 deletions(-)
Signature · 1 line
1.8.1.5