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

drm/amdgpu/gfx12: 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_v12_0.c
··· 3013 3013 #ifdef __BIG_ENDIAN 3014 3014 tmp = REG_SET_FIELD(tmp, CP_GFX_HQD_CNTL, BUF_SWAP, 1); 3015 3015 #endif 3016 + if (prop->tmz_queue) 3017 + tmp = REG_SET_FIELD(tmp, CP_GFX_HQD_CNTL, TMZ_MATCH, 1); 3016 3018 mqd->cp_gfx_hqd_cntl = tmp; 3017 3019 3018 3020 /* set up cp_doorbell_control */ ··· 3166 3164 tmp = REG_SET_FIELD(tmp, CP_HQD_PQ_CONTROL, TUNNEL_DISPATCH, 0); 3167 3165 tmp = REG_SET_FIELD(tmp, CP_HQD_PQ_CONTROL, PRIV_STATE, 1); 3168 3166 tmp = REG_SET_FIELD(tmp, CP_HQD_PQ_CONTROL, KMD_QUEUE, 1); 3167 + if (prop->tmz_queue) 3168 + tmp = REG_SET_FIELD(tmp, CP_HQD_PQ_CONTROL, TMZ, 1); 3169 3169 mqd->cp_hqd_pq_control = tmp; 3170 3170 3171 3171 /* set the wb address whether it's enabled or not */