All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] drm/panfrost: Expose perf counters to userspace
@ 2019-05-29  9:52 Boris Brezillon
  2019-05-29  9:52 ` [PATCH v3 1/4] drm/panfrost: Move gpu_{write, read}() macros to panfrost_regs.h Boris Brezillon
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Boris Brezillon @ 2019-05-29  9:52 UTC (permalink / raw)
  To: Rob Herring, Tomeu Vizoso
  Cc: dri-devel, Steven Price, Boris Brezillon, kernel,
	Alyssa Rosenzweig, Emil Velikov

Hello,

This a new version of the panfrost perfcnt series, this time exposing
this functionality through 2 ioctls instead of the debugfs approach
used in v2.

I also went for Emil's suggestion to expose those ioctls only when
the unstable_iocts unsafe param is set to true. This way, I hope we'll
be able to deprecate those ioctls when the generic solution to expose
global perf counters is out.

Also addressed the problems reported by Rob and Steven.

Regards,

Boris

Changes in v3:
* Expose things through ioctls instead of debugfs (needed for
  per-FD address space that is being worked on by Rob)

Changes in v2:
* Complete rewrite to expose things through debugfs

Boris Brezillon (4):
  drm/panfrost: Move gpu_{write,read}() macros to panfrost_regs.h
  drm/panfrost: Add a module parameter to expose unstable ioctls
  drm/panfrost: Add an helper to check the GPU generation
  drm/panfrost: Expose performance counters through unstable ioctls

 drivers/gpu/drm/panfrost/Makefile           |   3 +-
 drivers/gpu/drm/panfrost/panfrost_device.c  |   8 +
 drivers/gpu/drm/panfrost/panfrost_device.h  |  10 +
 drivers/gpu/drm/panfrost/panfrost_drv.c     |  15 +
 drivers/gpu/drm/panfrost/panfrost_gpu.c     |  10 +-
 drivers/gpu/drm/panfrost/panfrost_perfcnt.c | 329 ++++++++++++++++++++
 drivers/gpu/drm/panfrost/panfrost_perfcnt.h |  18 ++
 drivers/gpu/drm/panfrost/panfrost_regs.h    |  22 ++
 include/uapi/drm/panfrost_drm.h             |  24 ++
 9 files changed, 435 insertions(+), 4 deletions(-)
 create mode 100644 drivers/gpu/drm/panfrost/panfrost_perfcnt.c
 create mode 100644 drivers/gpu/drm/panfrost/panfrost_perfcnt.h

-- 
2.20.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2019-06-14 16:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-29  9:52 [PATCH v3 0/4] drm/panfrost: Expose perf counters to userspace Boris Brezillon
2019-05-29  9:52 ` [PATCH v3 1/4] drm/panfrost: Move gpu_{write, read}() macros to panfrost_regs.h Boris Brezillon
2019-05-29  9:52 ` [PATCH v3 2/4] drm/panfrost: Add a module parameter to expose unstable ioctls Boris Brezillon
2019-06-10 14:08   ` Rob Herring
2019-05-29  9:52 ` [PATCH v3 3/4] drm/panfrost: Add an helper to check the GPU generation Boris Brezillon
2019-05-29  9:52 ` [PATCH v3 4/4] drm/panfrost: Expose performance counters through unstable ioctls Boris Brezillon
2019-05-30 22:45   ` kbuild test robot
2019-05-29 15:16 ` [PATCH v3 0/4] drm/panfrost: Expose perf counters to userspace Alyssa Rosenzweig
2019-06-14 15:12   ` Rob Herring
2019-06-14 16:23     ` Boris Brezillon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.