Add gputop support for sysfs profiling knob
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest2 patches 2 repliesIn review
- v52 patches 5 repliesSuperseded
- v42 patches 2 repliesSuperseded
Earlier versions · 4
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 posting 2/2 | 2 patches | 5 replies | Superseded | |
| v3 posting 1/2 | 1 of 2 patches | 3 replies | Superseded | |
| v2 | 2 patches | 7 replies | Superseded | |
| v1 | 2 patches | 4 replies | Superseded |
Changes in v6 from the cover letter
- Deleted spurious line
- Changed license identifier comment style in header file
- Added some ack tags to th commits
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | lib: Add DRM driver sysfs profiling knob toggling functionslib/ lib/ lib/ | +219 | 0 replies | |
| 2/2 | tools/gputop: toggle sysfs profiling knob if available for devicetools/ tools/ | +32 | 0 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Zbigniew Kempczyński | Kamil Konieczny |
|---|---|---|
| 1/2 | A-b | A-b |
| 2/2 | A-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v6 0/2] Add gputop support for sysfs profiling knob
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:
v6:
- Deleted spurious line
- Changed license identifier comment style in header file
- Added some ack tags to th commits
v5:
- Deleted unnecesary blank line and added Ack tags
v4:
- Improve error handling *igt_devices_profiled
- Changed name of some symbols to better reflect their semantics
- Changed header with copyright notice
- Added documentation for public functions in igt_profiling.c
v3:
- Created separate lib_igt_profiling to avoid dynamic linking of gputop with igt_lib, which also meant isolating the functions therein from the rest of igt_lib.
- Make gputop check the sysfs knob state at the end of every period in case other instances of itself or other profilers might have changed it, so that the knob can be returned to its original state.
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_profiling.c | 189 ++++++++++++++++++++++++++++++++++++++++++++ lib/igt_profiling.h | 22 ++++++ lib/meson.build | 8 ++ tools/gputop.c | 32 +++++++- tools/meson.build | 2 +- 5 files changed, 251 insertions(+), 2 deletions(-) create mode 100644 lib/igt_profiling.c create mode 100644 lib/igt_profiling.h
base-commit: a2ab0ec12ef447c96c67dc539813462b6b39f857
Signature · 1 line
2.45.1