From 2c5d9c967571d073451045c57fa5148de7d88b03 Mon Sep 17 00:00:00 2001 From: Danylo Piliaiev Date: Wed, 19 Jun 2024 14:51:41 +0200 Subject: [PATCH] freedreno/devices: Fix magic regs for Adreno A32 Now that I got a hands on access to this GPU and could run deqp-vk, it uses blob v676.0 and the values are different from v744.19. Not only they are different, with the values from v744 there are CTS test faulures. Fixes at least ASTC tests. Signed-off-by: Danylo Piliaiev Part-of: --- src/freedreno/common/freedreno_devices.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/freedreno/common/freedreno_devices.py b/src/freedreno/common/freedreno_devices.py index 74e7a56e3dc..a6713ea56f2 100644 --- a/src/freedreno/common/freedreno_devices.py +++ b/src/freedreno/common/freedreno_devices.py @@ -1037,7 +1037,7 @@ add_gpus([ ], )) -# Values from blob v744.19 +# Values from blob v676.0 add_gpus([ GPUId(chip_id=0x43050a00, name="FDA32"), # Adreno A32 (G3x Gen 2) GPUId(chip_id=0xffff43050a00, name="FDA32"), @@ -1053,7 +1053,7 @@ add_gpus([ fibers_per_sp = 128 * 2 * 16, magic_regs = dict( # PC_POWER_CNTL = 7, - TPL1_DBG_ECO_CNTL = 0x13100000, + TPL1_DBG_ECO_CNTL = 0x11100000, GRAS_DBG_ECO_CNTL = 0x00004800, SP_CHICKEN_BITS = 0x10001400, UCHE_CLIENT_PF = 0x00000084, @@ -1064,17 +1064,17 @@ add_gpus([ RB_DBG_ECO_CNTL = 0x00000000, RB_DBG_ECO_CNTL_blit = 0x00000000, # is it even needed? # HLSQ_DBG_ECO_CNTL = 0x0, - RB_UNKNOWN_8E01 = 0x0, + RB_UNKNOWN_8E01 = 0x00000000, VPC_DBG_ECO_CNTL = 0x02000000, - UCHE_UNKNOWN_0E12 = 0x40000000, + UCHE_UNKNOWN_0E12 = 0x00000000, RB_UNKNOWN_8E06 = 0x02080000, ), raw_magic_regs = [ [A6XXRegs.REG_A6XX_UCHE_CACHE_WAYS, 0x00040004], - [A6XXRegs.REG_A6XX_TPL1_DBG_ECO_CNTL1, 0x00040700], + [A6XXRegs.REG_A6XX_TPL1_DBG_ECO_CNTL1, 0x00000700], - [A6XXRegs.REG_A7XX_SP_UNKNOWN_AE08, 0x00400400], + [A6XXRegs.REG_A7XX_SP_UNKNOWN_AE08, 0x00000400], [A6XXRegs.REG_A7XX_SP_UNKNOWN_AE09, 0x00430820], [A6XXRegs.REG_A7XX_SP_UNKNOWN_AE0A, 0x00000000], [A6XXRegs.REG_A7XX_UCHE_UNKNOWN_0E10, 0x00000000],