Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu/gfx9: fix typo in mpd init

Using the wrong macro for soc15 register access.

Reviewed-by: monk liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

+2 -2
+2 -2
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
··· 1989 1989 1990 1990 /* reset read and write pointers, similar to CP_RB0_WPTR/_RPTR */ 1991 1991 ring->wptr = 0; 1992 - mqd->cp_hqd_pq_rptr = RREG32(mmCP_HQD_PQ_RPTR); 1992 + mqd->cp_hqd_pq_rptr = RREG32_SOC15(GC, 0, mmCP_HQD_PQ_RPTR); 1993 1993 1994 1994 /* set the vmid for the queue */ 1995 1995 mqd->cp_hqd_vmid = 0; 1996 1996 1997 - tmp = RREG32(mmCP_HQD_PERSISTENT_STATE); 1997 + tmp = RREG32_SOC15(GC, 0, mmCP_HQD_PERSISTENT_STATE); 1998 1998 tmp = REG_SET_FIELD(tmp, CP_HQD_PERSISTENT_STATE, PRELOAD_SIZE, 0x53); 1999 1999 mqd->cp_hqd_persistent_state = tmp; 2000 2000