Mesa (main): pan/perf: Fix performance counters on G57

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 8 14:10:05 UTC 2022


Module: Mesa
Branch: main
Commit: 10a2406232ef782790de01c24844adb0d573a6e4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=10a2406232ef782790de01c24844adb0d573a6e4

Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date:   Mon Jun  6 13:56:50 2022 -0400

pan/perf: Fix performance counters on G57

The performance counter layout depends on the number of L2 blocks and the number
of shader cores. It doesn't make a ton of sense to hardcode these into the XML
files. Instead, let's make the coutner offsets in the XML files relative to the
categories (blocks), so we can calculate the offsets of the categories
themselves at runtime based on the computed layout. This fixes performance
counters on Mali-G57 as implemented on MT8192.

There is little code change here, mainly churn from changing the XML definition.
Postprocessing for the XML to make it suitable for Mesa uses Antonio Caggiano's
https://gitlab.freedesktop.org/panfrost/hwc-helper tool.

Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Reviewed-by: Antonio Caggiano <antonio.caggiano at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16803>

---

 src/panfrost/perf/G31.xml         | 292 ++++++++++++++++++-------------------
 src/panfrost/perf/G51.xml         | 292 ++++++++++++++++++-------------------
 src/panfrost/perf/G52.xml         | 296 +++++++++++++++++++-------------------
 src/panfrost/perf/G57.xml         | 296 +++++++++++++++++++-------------------
 src/panfrost/perf/G68.xml         | 296 +++++++++++++++++++-------------------
 src/panfrost/perf/G71.xml         | 292 ++++++++++++++++++-------------------
 src/panfrost/perf/G72.xml         | 292 ++++++++++++++++++-------------------
 src/panfrost/perf/G76.xml         | 296 +++++++++++++++++++-------------------
 src/panfrost/perf/G77.xml         | 296 +++++++++++++++++++-------------------
 src/panfrost/perf/G78.xml         | 296 +++++++++++++++++++-------------------
 src/panfrost/perf/T72x.xml        | 128 ++++++++---------
 src/panfrost/perf/T76x.xml        | 158 ++++++++++----------
 src/panfrost/perf/T82x.xml        | 142 +++++++++---------
 src/panfrost/perf/T83x.xml        | 142 +++++++++---------
 src/panfrost/perf/T86x.xml        | 158 ++++++++++----------
 src/panfrost/perf/T88x.xml        | 158 ++++++++++----------
 src/panfrost/perf/pan_gen_perf.py |   2 +-
 src/panfrost/perf/pan_perf.c      |  24 +++-
 src/panfrost/perf/pan_perf.h      |  11 +-
 19 files changed, 1941 insertions(+), 1926 deletions(-)

Diff:   http://cgit.freedesktop.org/mesa/mesa/diff/?id=10a2406232ef782790de01c24844adb0d573a6e4


More information about the mesa-commit mailing list