Lines Matching defs:context_id0
40 * The 44-bit packet is mapped as {context_id1[7:0],context_id0[31:0]} plus
46 * - context_id0[26]
49 * - context_id0[24:0]
51 * Auto - only context_id0[8:0] is used, which reports various interrupts
53 * Wave - user data sent from m0 via S_SENDMSG (context_id0[23:0])
54 * Error - Error Type (context_id0[24:21]), Error Details (context_id0[20:0])
151 static void print_sq_intr_info_auto(uint32_t context_id0, uint32_t context_id1)
155 REG_GET_FIELD(context_id0, SQ_INTERRUPT_WORD_AUTO_CTXID0, THREAD_TRACE),
156 REG_GET_FIELD(context_id0, SQ_INTERRUPT_WORD_AUTO_CTXID0, WLT),
157 REG_GET_FIELD(context_id0, SQ_INTERRUPT_WORD_AUTO_CTXID0, THREAD_TRACE_BUF_FULL),
158 REG_GET_FIELD(context_id0, SQ_INTERRUPT_WORD_AUTO_CTXID0, REG_TIMESTAMP),
159 REG_GET_FIELD(context_id0, SQ_INTERRUPT_WORD_AUTO_CTXID0, CMD_TIMESTAMP),
160 REG_GET_FIELD(context_id0, SQ_INTERRUPT_WORD_AUTO_CTXID0, HOST_CMD_OVERFLOW),
161 REG_GET_FIELD(context_id0, SQ_INTERRUPT_WORD_AUTO_CTXID0, HOST_REG_OVERFLOW),
162 REG_GET_FIELD(context_id0, SQ_INTERRUPT_WORD_AUTO_CTXID0, IMMED_OVERFLOW),
163 REG_GET_FIELD(context_id0, SQ_INTERRUPT_WORD_AUTO_CTXID0, THREAD_TRACE_UTC_ERROR));
166 static void print_sq_intr_info_inst(uint32_t context_id0, uint32_t context_id1)
170 REG_GET_FIELD(context_id0, SQ_INTERRUPT_WORD_WAVE_CTXID0, DATA),
171 REG_GET_FIELD(context_id0, SQ_INTERRUPT_WORD_WAVE_CTXID0, SH_ID),
172 REG_GET_FIELD(context_id0, SQ_INTERRUPT_WORD_WAVE_CTXID0, PRIV),
173 REG_GET_FIELD(context_id0, SQ_INTERRUPT_WORD_WAVE_CTXID0, WAVE_ID),
178 static void print_sq_intr_info_error(uint32_t context_id0, uint32_t context_id1)
182 REG_GET_FIELD(context_id0, SQ_INTERRUPT_WORD_ERROR_CTXID0, DETAIL),
183 REG_GET_FIELD(context_id0, SQ_INTERRUPT_WORD_ERROR_CTXID0, TYPE),
184 REG_GET_FIELD(context_id0, SQ_INTERRUPT_WORD_ERROR_CTXID0, SH_ID),
185 REG_GET_FIELD(context_id0, SQ_INTERRUPT_WORD_ERROR_CTXID0, PRIV),
186 REG_GET_FIELD(context_id0, SQ_INTERRUPT_WORD_ERROR_CTXID0, WAVE_ID),
187 REG_GET_FIELD(context_id0, SQ_INTERRUPT_WORD_ERROR_CTXID1, SIMD_ID),
188 REG_GET_FIELD(context_id0, SQ_INTERRUPT_WORD_ERROR_CTXID1, WGP_ID));
236 uint32_t context_id0;
248 context_id0 = SOC15_CONTEXT_ID0_FROM_IH_ENTRY(ih_ring_entry);
251 (context_id0 & AMDGPU_FENCE_MES_QUEUE_FLAG))
282 uint32_t context_id0, context_id1;
292 context_id0 = SOC15_CONTEXT_ID0_FROM_IH_ENTRY(ih_ring_entry);
327 kfd_signal_event_interrupt(pasid, context_id0, 32);
329 KFD_DBG_EC_TYPE_IS_PACKET(KFD_CTXID0_CP_BAD_OP_ECODE(context_id0)))
331 KFD_CTXID0_DOORBELL_ID(context_id0),
332 KFD_EC_MASK(KFD_CTXID0_CP_BAD_OP_ECODE(context_id0)),
337 kfd_signal_event_interrupt(pasid, context_id0 & 0xfffffff, 28);
349 print_sq_intr_info_auto(context_id0, context_id1);
352 print_sq_intr_info_inst(context_id0, context_id1);
353 sq_int_priv = REG_GET_FIELD(context_id0,
356 KFD_CTXID0_DOORBELL_ID(context_id0),
357 KFD_CTXID0_TRAP_CODE(context_id0),
362 print_sq_intr_info_error(context_id0, context_id1);
363 sq_int_errtype = REG_GET_FIELD(context_id0,
375 kfd_signal_event_interrupt(pasid, context_id0 & 0xffffff, 24);