Skip to content

Commit b5bad77

Browse files
author
Rob Clark
committed
drm/msm/registers: Sync GPU registers from mesa
In particular, to pull in a SP_READ_SEL_LOCATION bitfield size fix to fix a7xx GPU snapshot. Sync from mesa commit 15ee3873aa4d ("freedreno/registers: Update GMU register xml"). Cc: Karmjit Mahil <[email protected]> Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/673558/
1 parent 60e9f77 commit b5bad77

File tree

6 files changed

+508
-475
lines changed

6 files changed

+508
-475
lines changed

drivers/gpu/drm/msm/adreno/a6xx_gpu.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ static void a6xx_set_pagetable(struct a6xx_gpu *a6xx_gpu,
264264
* Needed for preemption
265265
*/
266266
OUT_PKT7(ring, CP_MEM_WRITE, 5);
267-
OUT_RING(ring, CP_MEM_WRITE_0_ADDR_LO(lower_32_bits(memptr)));
268-
OUT_RING(ring, CP_MEM_WRITE_1_ADDR_HI(upper_32_bits(memptr)));
267+
OUT_RING(ring, A5XX_CP_MEM_WRITE_ADDR_LO(lower_32_bits(memptr)));
268+
OUT_RING(ring, A5XX_CP_MEM_WRITE_ADDR_HI(upper_32_bits(memptr)));
269269
OUT_RING(ring, lower_32_bits(ttbr));
270270
OUT_RING(ring, upper_32_bits(ttbr));
271271
OUT_RING(ring, ctx->seqno);
@@ -295,9 +295,9 @@ static void a6xx_set_pagetable(struct a6xx_gpu *a6xx_gpu,
295295
*/
296296
OUT_PKT7(ring, CP_WAIT_REG_MEM, 6);
297297
OUT_RING(ring, CP_WAIT_REG_MEM_0_FUNCTION(WRITE_EQ));
298-
OUT_RING(ring, CP_WAIT_REG_MEM_1_POLL_ADDR_LO(
298+
OUT_RING(ring, CP_WAIT_REG_MEM_POLL_ADDR_LO(
299299
REG_A6XX_RBBM_PERFCTR_SRAM_INIT_STATUS));
300-
OUT_RING(ring, CP_WAIT_REG_MEM_2_POLL_ADDR_HI(0));
300+
OUT_RING(ring, CP_WAIT_REG_MEM_POLL_ADDR_HI(0));
301301
OUT_RING(ring, CP_WAIT_REG_MEM_3_REF(0x1));
302302
OUT_RING(ring, CP_WAIT_REG_MEM_4_MASK(0x1));
303303
OUT_RING(ring, CP_WAIT_REG_MEM_5_DELAY_LOOP_CYCLES(0));

drivers/gpu/drm/msm/adreno/a6xx_preempt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ static void preempt_prepare_postamble(struct a6xx_gpu *a6xx_gpu)
111111

112112
postamble[count++] = PKT7(CP_WAIT_REG_MEM, 6);
113113
postamble[count++] = CP_WAIT_REG_MEM_0_FUNCTION(WRITE_EQ);
114-
postamble[count++] = CP_WAIT_REG_MEM_1_POLL_ADDR_LO(
114+
postamble[count++] = CP_WAIT_REG_MEM_POLL_ADDR_LO(
115115
REG_A6XX_RBBM_PERFCTR_SRAM_INIT_STATUS);
116-
postamble[count++] = CP_WAIT_REG_MEM_2_POLL_ADDR_HI(0);
116+
postamble[count++] = CP_WAIT_REG_MEM_POLL_ADDR_HI(0);
117117
postamble[count++] = CP_WAIT_REG_MEM_3_REF(0x1);
118118
postamble[count++] = CP_WAIT_REG_MEM_4_MASK(0x1);
119119
postamble[count++] = CP_WAIT_REG_MEM_5_DELAY_LOOP_CYCLES(0);

0 commit comments

Comments
 (0)