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

drm/amdgpu/gfx11: add support for TMZ queues to mqd_init

Set up TMZ for queues.

Reviewed-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Jesse.Zhang <Jesse.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

+4
+4
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
··· 4142 4142 #ifdef __BIG_ENDIAN 4143 4143 tmp = REG_SET_FIELD(tmp, CP_GFX_HQD_CNTL, BUF_SWAP, 1); 4144 4144 #endif 4145 + if (prop->tmz_queue) 4146 + tmp = REG_SET_FIELD(tmp, CP_GFX_HQD_CNTL, TMZ_MATCH, 1); 4145 4147 mqd->cp_gfx_hqd_cntl = tmp; 4146 4148 4147 4149 /* set up cp_doorbell_control */ ··· 4298 4296 prop->allow_tunneling); 4299 4297 tmp = REG_SET_FIELD(tmp, CP_HQD_PQ_CONTROL, PRIV_STATE, 1); 4300 4298 tmp = REG_SET_FIELD(tmp, CP_HQD_PQ_CONTROL, KMD_QUEUE, 1); 4299 + if (prop->tmz_queue) 4300 + tmp = REG_SET_FIELD(tmp, CP_HQD_PQ_CONTROL, TMZ, 1); 4301 4301 mqd->cp_hqd_pq_control = tmp; 4302 4302 4303 4303 /* set the wb address whether it's enabled or not */