From 8e626879ddddbea7a68c4b9c9750a178f8b8c006 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Thu, 30 Jul 2020 12:36:30 +0200 Subject: [PATCH] freedreno/a6xx: Fix CP_BIN_SIZE_ADDRESS name Also document some other registers gleaned from looking at the context switch save/restore routines and fix CP_SDS_REM_SIZE, and make the names line up with the CP perfcntr names. Note that the CP reads the draw stream size in CP_SET_BIN_DATA5 using MEM_READ_ADDR, which is probably why this was mistaken for the draw stream size address. Part-of: --- src/freedreno/.gitlab-ci/reference/crash.log | 18 ++++++++-------- src/freedreno/registers/adreno/a6xx.xml | 22 +++++++++++++++----- 2 files changed, 26 insertions(+), 14 deletions(-) diff --git a/src/freedreno/.gitlab-ci/reference/crash.log b/src/freedreno/.gitlab-ci/reference/crash.log index b1a79865cf3..7f17459bf63 100644 --- a/src/freedreno/.gitlab-ci/reference/crash.log +++ b/src/freedreno/.gitlab-ci/reference/crash.log @@ -743,12 +743,12 @@ registers: 00000000 CP_IB2_REM_SIZE: 0 00000000 CP_SDS_BASE: 0 00000000 CP_SDS_BASE_HI: 0 - 00000000 0x930: 00000000 - 0000c600 CP_BIN_SIZE_ADDRESS: 0xc600 - 00010000 CP_BIN_SIZE_ADDRESS_HI: 0x10000 - 00000000 0x933: 00000000 - 00000000 CP_BIN_DATA_ADDR: 0 - 00000000 CP_BIN_DATA_ADDR_HI: 0 + 00000000 CP_SDS_REM_SIZE: 0 + 0000c600 CP_MRB_BASE: 0xc600 + 00010000 CP_MRB_BASE_HI: 0x10000 + 00000000 CP_MRB_REM_SIZE: 0 + 00000000 CP_VSD_BASE: 0 + 00000000 CP_VSD_BASE_HI: 0 00000000 0x936: 00000000 00800000 0x937: 00800000 00000000 0x938: 00000000 @@ -762,13 +762,13 @@ registers: 0000000c 0x943: 0000000c 00000000 0x944: 00000000 00000000 0x945: 00000000 - 00000000 0x946: 00000000 - 00000000 0x947: 00000000 + 00000000 CP_MRB_DWORDS: 0 + 00000000 CP_VSD_DWORDS: 0 000f0004 0x948: 000f0004 00060002 CP_CSQ_IB1_STAT: { REM = 0x6 | 0x2 } 00000000 CP_CSQ_IB2_STAT: { REM = 0 } 00000000 0x94b: 00000000 - 00000000 0x94c: 00000000 + 00000000 CP_MRQ_MRB_STAT: { REM = 0 } 00000000 0x94d: 00000000 00305efe CP_ALWAYS_ON_COUNTER_LO: 0x305efe 00000000 CP_ALWAYS_ON_COUNTER_HI: 0 diff --git a/src/freedreno/registers/adreno/a6xx.xml b/src/freedreno/registers/adreno/a6xx.xml index 1e7eefb1bef..559f253f3a0 100644 --- a/src/freedreno/registers/adreno/a6xx.xml +++ b/src/freedreno/registers/adreno/a6xx.xml @@ -1073,11 +1073,19 @@ to upconvert to 32b float internally? - - - - - + + + + + + + + + +