public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] drm/panfrost: Wire cycle counters and timestamp info to userspace
@ 2024-08-19  8:02 Mary Guillemard
  2024-08-19  8:02 ` [PATCH v3 1/2] drm/panfrost: Add SYSTEM_TIMESTAMP and SYSTEM_TIMESTAMP_FREQUENCY parameters Mary Guillemard
  2024-08-19  8:02 ` [PATCH v3 2/2] drm/panfrost: Add cycle counter job requirement Mary Guillemard
  0 siblings, 2 replies; 6+ messages in thread
From: Mary Guillemard @ 2024-08-19  8:02 UTC (permalink / raw)
  To: linux-kernel; +Cc: dri-devel, kernel, Mary Guillemard

Mali has hardware cycle counters and GPU timestamps available for
profiling.

This patch series adds support for cycle counters propagation and
also new timestamp info parameters.

Those new changes to the uAPI will be used in Mesa to implement
timestamp queries for OpenGL and Vulkan.

The Mesa MR using this series is available here [1].

v2:
- Rewrote to use GPU timestamp register
- Add missing include for arch_timer_get_cntfrq
- Squash job requirement uAPI changes and implementation in one patch
- Simplify changes based on Steven Price comments

v3:
- Address Steven Price comments in the first patch
- Fix a codestyle issue in the second patch and add Steven Price r-b

[1]https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30553

Mary Guillemard (2):
  drm/panfrost: Add SYSTEM_TIMESTAMP and SYSTEM_TIMESTAMP_FREQUENCY
    parameters
  drm/panfrost: Add cycle counter job requirement

 drivers/gpu/drm/panfrost/panfrost_drv.c  | 45 ++++++++++++++++++++++--
 drivers/gpu/drm/panfrost/panfrost_gpu.c  | 12 +++++++
 drivers/gpu/drm/panfrost/panfrost_gpu.h  |  1 +
 drivers/gpu/drm/panfrost/panfrost_job.c  | 28 +++++++++------
 drivers/gpu/drm/panfrost/panfrost_regs.h |  2 ++
 include/uapi/drm/panfrost_drm.h          |  3 ++
 6 files changed, 78 insertions(+), 13 deletions(-)


base-commit: 3e828c670b0ac8a9564c69f5c5ecf637b22a58d6
-- 
2.46.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-09-02  9:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-19  8:02 [PATCH v3 0/2] drm/panfrost: Wire cycle counters and timestamp info to userspace Mary Guillemard
2024-08-19  8:02 ` [PATCH v3 1/2] drm/panfrost: Add SYSTEM_TIMESTAMP and SYSTEM_TIMESTAMP_FREQUENCY parameters Mary Guillemard
2024-08-20 10:01   ` Heiko Stübner
2024-09-02  9:11   ` Steven Price
2024-08-19  8:02 ` [PATCH v3 2/2] drm/panfrost: Add cycle counter job requirement Mary Guillemard
2024-08-20 11:24   ` Heiko Stübner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox