freedreno/a2xx: fix/add RBBM perfcounter

Xenos driver read two perf counters and their order is also different.

v2: fix typo in register address

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7666>
This commit is contained in:
Joel Linn 2020-11-18 00:41:10 +01:00 committed by Marge Bot
parent a0f4affcf6
commit 040ffee71f
2 changed files with 7 additions and 3 deletions

View File

@ -947,6 +947,7 @@ static const struct fd_perfcntr_counter mh_counters[] = {
};
static const struct fd_perfcntr_counter rbbm_counters[] = {
COUNTER(RBBM_PERFCOUNTER0_SELECT, RBBM_PERFCOUNTER0_LO, RBBM_PERFCOUNTER0_HI),
COUNTER(RBBM_PERFCOUNTER1_SELECT, RBBM_PERFCOUNTER1_LO, RBBM_PERFCOUNTER1_HI),
};

View File

@ -1075,9 +1075,12 @@ xsi:schemaLocation="http://nouveau.freedesktop.org/ rules-ng.xsd">
<reg32 offset="0x0047" name="MH_MMU_MPU_END"/>
<reg32 offset="0x0394" name="NQWAIT_UNTIL"/>
<reg32 offset="0x0395" name="RBBM_PERFCOUNTER1_SELECT"/>
<reg32 offset="0x0397" name="RBBM_PERFCOUNTER1_LO"/>
<reg32 offset="0x0398" name="RBBM_PERFCOUNTER1_HI"/>
<reg32 offset="0x0395" name="RBBM_PERFCOUNTER0_SELECT"/>
<reg32 offset="0x0396" name="RBBM_PERFCOUNTER1_SELECT"/>
<reg32 offset="0x0397" name="RBBM_PERFCOUNTER0_LO"/>
<reg32 offset="0x0398" name="RBBM_PERFCOUNTER0_HI"/>
<reg32 offset="0x0399" name="RBBM_PERFCOUNTER1_LO"/>
<reg32 offset="0x039a" name="RBBM_PERFCOUNTER1_HI"/>
<reg32 offset="0x039b" name="RBBM_DEBUG"/>
<reg32 offset="0x039c" name="RBBM_PM_OVERRIDE1">
<bitfield name="RBBM_AHBCLK_PM_OVERRIDE" pos="0" type="boolean"/>