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

drm/amdgpu/gfx9: add additional MQD initialization

Need to properly set the ROQ space setting.

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

+5
+5
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
··· 1998 1998 tmp = REG_SET_FIELD(tmp, CP_HQD_PERSISTENT_STATE, PRELOAD_SIZE, 0x53); 1999 1999 mqd->cp_hqd_persistent_state = tmp; 2000 2000 2001 + /* set MIN_IB_AVAIL_SIZE */ 2002 + tmp = RREG32_SOC15(GC, 0, mmCP_HQD_IB_CONTROL); 2003 + tmp = REG_SET_FIELD(tmp, CP_HQD_IB_CONTROL, MIN_IB_AVAIL_SIZE, 3); 2004 + mqd->cp_hqd_ib_control = tmp; 2005 + 2001 2006 /* activate the queue */ 2002 2007 mqd->cp_hqd_active = 1; 2003 2008