drm/amdkfd: fix and enable ttmp setup for gfx11
The MES cached process context must be cleared on adding any queue for the first time. For proper debug support, the MES will clear it's cached process context on the first call to SET_SHADER_DEBUGGER. This allows TTMPs to be pesistently enabled in a safe manner. Signed-off-by: Jonathan Kim <jonathan.kim@amd.com> Reviewed-by: Eric Huang <jinhuieric@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
f9acfafc34
commit
fc7f1d9697
@@ -228,6 +228,8 @@ static int add_queue_mes(struct device_queue_manager *dqm, struct queue *q,
|
||||
queue_input.tma_addr = qpd->tma_addr;
|
||||
queue_input.trap_en = !kfd_dbg_has_cwsr_workaround(q->device);
|
||||
queue_input.skip_process_ctx_clear = qpd->pqm->process->debug_trap_enabled;
|
||||
queue_input.skip_process_ctx_clear = qpd->pqm->process->debug_trap_enabled ||
|
||||
kfd_dbg_has_ttmps_always_setup(q->device);
|
||||
|
||||
queue_type = convert_to_mes_queue_type(q->properties.type);
|
||||
if (queue_type < 0) {
|
||||
|
||||
Reference in New Issue
Block a user