freedreno/a6xx: Add CP_ROQ_*_STAT
authorConnor Abbott <cwabbott0@gmail.com>
Mon, 17 Oct 2022 14:38:57 +0000 (16:38 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 23 Feb 2023 20:02:26 +0000 (20:02 +0000)
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19551>

src/freedreno/.gitlab-ci/reference/crash.log
src/freedreno/registers/adreno/a6xx.xml

index 5a37ab0..4c6deca 100644 (file)
@@ -739,12 +739,12 @@ registers:
        00000000        0x936: 00000000
        00800000        0x937: 00800000
        00000000        0x938: 00000000
-       00400031        0x939: 00400031
-       010c0107        0x93a: 010c0107
-       02000200        0x93b: 02000200
-       03000300        0x93c: 03000300
-       00b000b0        0x93d: 00b000b0
-       00d800d8        0x93e: 00d800d8
+       00400031        CP_ROQ_RB_STAT: { RPTR = 0x31 | WPTR = 0x40 }
+       010c0107        CP_ROQ_IB1_STAT: { RPTR = 0x107 | WPTR = 0x10c }
+       02000200        CP_ROQ_IB2_STAT: { RPTR = 0x200 | WPTR = 0x200 }
+       03000300        CP_ROQ_SDS_STAT: { RPTR = 0x300 | WPTR = 0x300 }
+       00b000b0        CP_ROQ_MRB_STAT: { RPTR = 0xb0 | WPTR = 0xb0 }
+       00d800d8        CP_ROQ_VSD_STAT: { RPTR = 0xd8 | WPTR = 0xd8 }
        0000007f        0x942: 0000007f
        0000000c        0x943: 0000000c
        00000000        0x944: 00000000
index 6a30c70..3af922d 100644 (file)
@@ -1092,6 +1092,18 @@ to upconvert to 32b float internally?
        This is used by CP to read the draw stream and skip empty draws
        -->
        <reg64 offset="0x0934" name="CP_VSD_BASE"/>
+
+       <bitset name="a6xx_roq_stat" inline="yes">
+               <bitfield name="RPTR" low="0" high="9"/>
+               <bitfield name="WPTR" low="16" high="25"/>
+       </bitset>
+       <reg32 offset="0x0939" name="CP_ROQ_RB_STAT" type="a6xx_roq_stat"/>
+       <reg32 offset="0x093a" name="CP_ROQ_IB1_STAT" type="a6xx_roq_stat"/>
+       <reg32 offset="0x093b" name="CP_ROQ_IB2_STAT" type="a6xx_roq_stat"/>
+       <reg32 offset="0x093c" name="CP_ROQ_SDS_STAT" type="a6xx_roq_stat"/>
+       <reg32 offset="0x093d" name="CP_ROQ_MRB_STAT" type="a6xx_roq_stat"/>
+       <reg32 offset="0x093e" name="CP_ROQ_VSD_STAT" type="a6xx_roq_stat"/>
+
        <reg32 offset="0x0946" name="CP_MRB_DWORDS"/>
        <reg32 offset="0x0947" name="CP_VSD_DWORDS"/>
        <!--