Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add gputop support for sysfs profiling knob
@ 2024-04-02 22:27 Adrián Larumbe
  2024-04-02 22:27 ` [PATCH v2 1/2] lib: Add DRM driver sysfs profiling knob toggling functions Adrián Larumbe
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Adrián Larumbe @ 2024-04-02 22:27 UTC (permalink / raw)
  To: tursulin, daniel, boris.brezillon, kamil.konieczny,
	zbigniew.kempczynski, igt-dev, healych
  Cc: adrian.larumbe, kernel

Some GPUs like Panfrost need a sysfs file to be toggled before the HW can
initiate the job accounting necessary to feed fdinfo with engine and
cycle data. This sysfs knob has to be disabled when the profiler is
done, to save power.

Changelog:

v2:
        - Added header file guards around igt_profiling.h
        - Modified licensing information to comply with SPDX format
        - Sorted included header files in alphabetic order
        - Added volatile qualifier to gputop stop variable

Adrián Larumbe (2):
  lib: Add DRM driver sysfs profiling knob toggling functions
  tools/gputop: toggle sysfs profiling knob if available for device

 lib/igt_device_scan.c | 45 +++++++++++++++++++++++++++++++++++++++++++
 lib/igt_device_scan.h |  7 +++++++
 lib/igt_profiling.c   | 28 +++++++++++++++++++++++++++
 lib/igt_profiling.h   | 17 ++++++++++++++++
 lib/meson.build       |  1 +
 tools/gputop.c        | 30 ++++++++++++++++++++++++++++-
 tools/meson.build     |  2 +-
 7 files changed, 128 insertions(+), 2 deletions(-)
 create mode 100644 lib/igt_profiling.c
 create mode 100644 lib/igt_profiling.h

-- 
2.44.0


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

end of thread, other threads:[~2024-04-16 14:02 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-02 22:27 [PATCH v2 0/2] Add gputop support for sysfs profiling knob Adrián Larumbe
2024-04-02 22:27 ` [PATCH v2 1/2] lib: Add DRM driver sysfs profiling knob toggling functions Adrián Larumbe
2024-04-02 22:27 ` [PATCH v2 2/2] tools/gputop: toggle sysfs profiling knob if available for device Adrián Larumbe
2024-04-03 17:22   ` Kamil Konieczny
2024-04-15 19:35     ` Adrián Larumbe
2024-04-16  7:49       ` Tvrtko Ursulin
2024-04-16 14:02         ` Lucas De Marchi
2024-04-03 20:46   ` Lucas De Marchi
2024-04-15 19:31     ` Adrián Larumbe
2024-04-16  8:07       ` Tvrtko Ursulin
2024-04-03  0:24 ` ✓ Fi.CI.BAT: success for Add gputop support for sysfs profiling knob Patchwork
2024-04-03  0:42 ` ✓ CI.xeBAT: " Patchwork
2024-04-03  9:11 ` ✗ Fi.CI.IGT: failure " Patchwork

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