1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
3 * Copyright (C) 2012-2014, 2018-2023 Intel Corporation
4 * Copyright (C) 2013-2014 Intel Mobile Communications GmbH
5 * Copyright (C) 2015-2017 Intel Deutschland GmbH
7 #include <linux/devcoredump.h>
17 #define FW_ASSERT_LMAC_FATAL 0x70
18 #define FW_ASSERT_LMAC2_FATAL 0x72
19 #define FW_ASSERT_UMAC_FATAL 0x71
20 #define UMAC_RT_NMI_LMAC2_FATAL 0x72
21 #define RT_NMI_INTERRUPT_OTHER_LMAC_FATAL 0x73
22 #define FW_ASSERT_NMI_UNKNOWN 0x84
25 * Note: This structure is read from the device with IO accesses,
26 * and the reading already does the endian conversion. As it is
27 * read with u32-sized accesses, any members with a different size
28 * need to be ordered correctly though!
30 struct iwl_error_event_table {
31 u32 valid; /* (nonzero) valid, (0) log is empty */
32 u32 error_id; /* type of error */
33 u32 trm_hw_status0; /* TRM HW status */
34 u32 trm_hw_status1; /* TRM HW status */
35 u32 blink2; /* branch link */
36 u32 ilink1; /* interrupt link */
37 u32 ilink2; /* interrupt link */
38 u32 data1; /* error-specific data */
39 u32 data2; /* error-specific data */
40 u32 data3; /* error-specific data */
41 u32 bcon_time; /* beacon timer */
42 u32 tsf_low; /* network timestamp function timer */
43 u32 tsf_hi; /* network timestamp function timer */
44 u32 gp1; /* GP1 timer register */
45 u32 gp2; /* GP2 timer register */
46 u32 fw_rev_type; /* firmware revision type */
47 u32 major; /* uCode version major */
48 u32 minor; /* uCode version minor */
49 u32 hw_ver; /* HW Silicon version */
50 u32 brd_ver; /* HW board version */
51 u32 log_pc; /* log program counter */
52 u32 frame_ptr; /* frame pointer */
53 u32 stack_ptr; /* stack pointer */
54 u32 hcmd; /* last host command header */
55 u32 isr0; /* isr status register LMPM_NIC_ISR0:
57 u32 isr1; /* isr status register LMPM_NIC_ISR1:
59 u32 isr2; /* isr status register LMPM_NIC_ISR2:
61 u32 isr3; /* isr status register LMPM_NIC_ISR3:
63 u32 isr4; /* isr status register LMPM_NIC_ISR4:
65 u32 last_cmd_id; /* last HCMD id handled by the firmware */
66 u32 wait_event; /* wait event() caller address */
67 u32 l2p_control; /* L2pControlField */
68 u32 l2p_duration; /* L2pDurationField */
69 u32 l2p_mhvalid; /* L2pMhValidBits */
70 u32 l2p_addr_match; /* L2pAddrMatchStat */
71 u32 lmpm_pmg_sel; /* indicate which clocks are turned on
73 u32 u_timestamp; /* indicate when the date and time of the
75 u32 flow_handler; /* FH read/write pointers, RX credit */
76 } __packed /* LOG_ERROR_TABLE_API_S_VER_3 */;
79 * UMAC error struct - relevant starting from family 8000 chip.
80 * Note: This structure is read from the device with IO accesses,
81 * and the reading already does the endian conversion. As it is
82 * read with u32-sized accesses, any members with a different size
83 * need to be ordered correctly though!
85 struct iwl_umac_error_event_table {
86 u32 valid; /* (nonzero) valid, (0) log is empty */
87 u32 error_id; /* type of error */
88 u32 blink1; /* branch link */
89 u32 blink2; /* branch link */
90 u32 ilink1; /* interrupt link */
91 u32 ilink2; /* interrupt link */
92 u32 data1; /* error-specific data */
93 u32 data2; /* error-specific data */
94 u32 data3; /* error-specific data */
97 u32 frame_pointer; /* core register 27*/
98 u32 stack_pointer; /* core register 28 */
99 u32 cmd_header; /* latest host cmd sent to UMAC */
100 u32 nic_isr_pref; /* ISR status register */
103 #define ERROR_START_OFFSET (1 * sizeof(u32))
104 #define ERROR_ELEM_SIZE (7 * sizeof(u32))
106 static bool iwl_fwrt_if_errorid_other_cpu(u32 err_id)
110 if ((err_id >= FW_ASSERT_LMAC_FATAL &&
111 err_id <= RT_NMI_INTERRUPT_OTHER_LMAC_FATAL) ||
112 err_id == FW_ASSERT_NMI_UNKNOWN)
117 static void iwl_fwrt_dump_umac_error_log(struct iwl_fw_runtime *fwrt)
119 struct iwl_trans *trans = fwrt->trans;
120 struct iwl_umac_error_event_table table = {};
121 u32 base = fwrt->trans->dbg.umac_error_event_table;
122 char pnvm_name[MAX_PNVM_NAME];
125 !(fwrt->trans->dbg.error_event_table_tlv_status &
126 IWL_ERROR_EVENT_TABLE_UMAC))
129 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table));
132 fwrt->dump.umac_err_id = table.error_id;
134 if (!iwl_fwrt_if_errorid_other_cpu(fwrt->dump.umac_err_id) &&
135 !fwrt->trans->dbg.dump_file_name_ext_valid) {
136 fwrt->trans->dbg.dump_file_name_ext_valid = true;
137 snprintf(fwrt->trans->dbg.dump_file_name_ext, IWL_FW_INI_MAX_NAME,
138 "0x%x", fwrt->dump.umac_err_id);
141 if (ERROR_START_OFFSET <= table.valid * ERROR_ELEM_SIZE) {
142 IWL_ERR(trans, "Start IWL Error Log Dump:\n");
143 IWL_ERR(trans, "Transport status: 0x%08lX, valid: %d\n",
144 fwrt->trans->status, table.valid);
147 if ((table.error_id & ~FW_SYSASSERT_CPU_MASK) ==
148 FW_SYSASSERT_PNVM_MISSING) {
149 iwl_pnvm_get_fs_name(trans, pnvm_name, sizeof(pnvm_name));
150 IWL_ERR(fwrt, "PNVM data is missing, please install %s\n",
154 IWL_ERR(fwrt, "0x%08X | %s\n", table.error_id,
155 iwl_fw_lookup_assert_desc(table.error_id));
156 IWL_ERR(fwrt, "0x%08X | umac branchlink1\n", table.blink1);
157 IWL_ERR(fwrt, "0x%08X | umac branchlink2\n", table.blink2);
158 IWL_ERR(fwrt, "0x%08X | umac interruptlink1\n", table.ilink1);
159 IWL_ERR(fwrt, "0x%08X | umac interruptlink2\n", table.ilink2);
160 IWL_ERR(fwrt, "0x%08X | umac data1\n", table.data1);
161 IWL_ERR(fwrt, "0x%08X | umac data2\n", table.data2);
162 IWL_ERR(fwrt, "0x%08X | umac data3\n", table.data3);
163 IWL_ERR(fwrt, "0x%08X | umac major\n", table.umac_major);
164 IWL_ERR(fwrt, "0x%08X | umac minor\n", table.umac_minor);
165 IWL_ERR(fwrt, "0x%08X | frame pointer\n", table.frame_pointer);
166 IWL_ERR(fwrt, "0x%08X | stack pointer\n", table.stack_pointer);
167 IWL_ERR(fwrt, "0x%08X | last host cmd\n", table.cmd_header);
168 IWL_ERR(fwrt, "0x%08X | isr status reg\n", table.nic_isr_pref);
171 static void iwl_fwrt_dump_lmac_error_log(struct iwl_fw_runtime *fwrt, u8 lmac_num)
173 struct iwl_trans *trans = fwrt->trans;
174 struct iwl_error_event_table table = {};
175 u32 val, base = fwrt->trans->dbg.lmac_error_event_table[lmac_num];
177 if (fwrt->cur_fw_img == IWL_UCODE_INIT) {
179 base = fwrt->fw->init_errlog_ptr;
182 base = fwrt->fw->inst_errlog_ptr;
185 if ((fwrt->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_BZ && !base) ||
186 (fwrt->trans->trans_cfg->device_family < IWL_DEVICE_FAMILY_BZ && base < 0x400000)) {
188 "Not valid error log pointer 0x%08X for %s uCode\n",
190 (fwrt->cur_fw_img == IWL_UCODE_INIT)
195 /* check if there is a HW error */
196 val = iwl_trans_read_mem32(trans, base);
197 if (iwl_trans_is_hw_error_value(val)) {
200 IWL_ERR(trans, "HW error, resetting before reading\n");
202 /* reset the device */
203 err = iwl_trans_sw_reset(trans, true);
207 err = iwl_finish_nic_init(trans);
212 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table));
215 fwrt->dump.lmac_err_id[lmac_num] = table.error_id;
217 if (!iwl_fwrt_if_errorid_other_cpu(fwrt->dump.lmac_err_id[lmac_num]) &&
218 !fwrt->trans->dbg.dump_file_name_ext_valid) {
219 fwrt->trans->dbg.dump_file_name_ext_valid = true;
220 snprintf(fwrt->trans->dbg.dump_file_name_ext, IWL_FW_INI_MAX_NAME,
221 "0x%x", fwrt->dump.lmac_err_id[lmac_num]);
224 if (ERROR_START_OFFSET <= table.valid * ERROR_ELEM_SIZE) {
225 IWL_ERR(trans, "Start IWL Error Log Dump:\n");
226 IWL_ERR(trans, "Transport status: 0x%08lX, valid: %d\n",
227 fwrt->trans->status, table.valid);
230 /* Do not change this output - scripts rely on it */
232 IWL_ERR(fwrt, "Loaded firmware version: %s\n", fwrt->fw->fw_version);
234 IWL_ERR(fwrt, "0x%08X | %-28s\n", table.error_id,
235 iwl_fw_lookup_assert_desc(table.error_id));
236 IWL_ERR(fwrt, "0x%08X | trm_hw_status0\n", table.trm_hw_status0);
237 IWL_ERR(fwrt, "0x%08X | trm_hw_status1\n", table.trm_hw_status1);
238 IWL_ERR(fwrt, "0x%08X | branchlink2\n", table.blink2);
239 IWL_ERR(fwrt, "0x%08X | interruptlink1\n", table.ilink1);
240 IWL_ERR(fwrt, "0x%08X | interruptlink2\n", table.ilink2);
241 IWL_ERR(fwrt, "0x%08X | data1\n", table.data1);
242 IWL_ERR(fwrt, "0x%08X | data2\n", table.data2);
243 IWL_ERR(fwrt, "0x%08X | data3\n", table.data3);
244 IWL_ERR(fwrt, "0x%08X | beacon time\n", table.bcon_time);
245 IWL_ERR(fwrt, "0x%08X | tsf low\n", table.tsf_low);
246 IWL_ERR(fwrt, "0x%08X | tsf hi\n", table.tsf_hi);
247 IWL_ERR(fwrt, "0x%08X | time gp1\n", table.gp1);
248 IWL_ERR(fwrt, "0x%08X | time gp2\n", table.gp2);
249 IWL_ERR(fwrt, "0x%08X | uCode revision type\n", table.fw_rev_type);
250 IWL_ERR(fwrt, "0x%08X | uCode version major\n", table.major);
251 IWL_ERR(fwrt, "0x%08X | uCode version minor\n", table.minor);
252 IWL_ERR(fwrt, "0x%08X | hw version\n", table.hw_ver);
253 IWL_ERR(fwrt, "0x%08X | board version\n", table.brd_ver);
254 IWL_ERR(fwrt, "0x%08X | hcmd\n", table.hcmd);
255 IWL_ERR(fwrt, "0x%08X | isr0\n", table.isr0);
256 IWL_ERR(fwrt, "0x%08X | isr1\n", table.isr1);
257 IWL_ERR(fwrt, "0x%08X | isr2\n", table.isr2);
258 IWL_ERR(fwrt, "0x%08X | isr3\n", table.isr3);
259 IWL_ERR(fwrt, "0x%08X | isr4\n", table.isr4);
260 IWL_ERR(fwrt, "0x%08X | last cmd Id\n", table.last_cmd_id);
261 IWL_ERR(fwrt, "0x%08X | wait_event\n", table.wait_event);
262 IWL_ERR(fwrt, "0x%08X | l2p_control\n", table.l2p_control);
263 IWL_ERR(fwrt, "0x%08X | l2p_duration\n", table.l2p_duration);
264 IWL_ERR(fwrt, "0x%08X | l2p_mhvalid\n", table.l2p_mhvalid);
265 IWL_ERR(fwrt, "0x%08X | l2p_addr_match\n", table.l2p_addr_match);
266 IWL_ERR(fwrt, "0x%08X | lmpm_pmg_sel\n", table.lmpm_pmg_sel);
267 IWL_ERR(fwrt, "0x%08X | timestamp\n", table.u_timestamp);
268 IWL_ERR(fwrt, "0x%08X | flow_handler\n", table.flow_handler);
273 * Note: This structure is read from the device with IO accesses,
274 * and the reading already does the endian conversion. As it is
275 * read with u32-sized accesses, any members with a different size
276 * need to be ordered correctly though!
278 struct iwl_tcm_error_event_table {
284 u32 data1, data2, data3;
293 } __packed; /* TCM_LOG_ERROR_TABLE_API_S_VER_1 */
295 static void iwl_fwrt_dump_tcm_error_log(struct iwl_fw_runtime *fwrt, int idx)
297 struct iwl_trans *trans = fwrt->trans;
298 struct iwl_tcm_error_event_table table = {};
299 u32 base = fwrt->trans->dbg.tcm_error_event_table[idx];
301 u32 flag = idx ? IWL_ERROR_EVENT_TABLE_TCM2 :
302 IWL_ERROR_EVENT_TABLE_TCM1;
304 if (!base || !(fwrt->trans->dbg.error_event_table_tlv_status & flag))
307 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table));
310 fwrt->dump.tcm_err_id[idx] = table.error_id;
312 if (!iwl_fwrt_if_errorid_other_cpu(fwrt->dump.tcm_err_id[idx]) &&
313 !fwrt->trans->dbg.dump_file_name_ext_valid) {
314 fwrt->trans->dbg.dump_file_name_ext_valid = true;
315 snprintf(fwrt->trans->dbg.dump_file_name_ext, IWL_FW_INI_MAX_NAME,
316 "0x%x", fwrt->dump.tcm_err_id[idx]);
319 IWL_ERR(fwrt, "TCM%d status:\n", idx + 1);
320 IWL_ERR(fwrt, "0x%08X | error ID\n", table.error_id);
321 IWL_ERR(fwrt, "0x%08X | tcm branchlink2\n", table.blink2);
322 IWL_ERR(fwrt, "0x%08X | tcm interruptlink1\n", table.ilink1);
323 IWL_ERR(fwrt, "0x%08X | tcm interruptlink2\n", table.ilink2);
324 IWL_ERR(fwrt, "0x%08X | tcm data1\n", table.data1);
325 IWL_ERR(fwrt, "0x%08X | tcm data2\n", table.data2);
326 IWL_ERR(fwrt, "0x%08X | tcm data3\n", table.data3);
327 IWL_ERR(fwrt, "0x%08X | tcm log PC\n", table.logpc);
328 IWL_ERR(fwrt, "0x%08X | tcm frame pointer\n", table.frame_pointer);
329 IWL_ERR(fwrt, "0x%08X | tcm stack pointer\n", table.stack_pointer);
330 IWL_ERR(fwrt, "0x%08X | tcm msg ID\n", table.msgid);
331 IWL_ERR(fwrt, "0x%08X | tcm ISR status\n", table.isr);
332 for (i = 0; i < ARRAY_SIZE(table.hw_status); i++)
333 IWL_ERR(fwrt, "0x%08X | tcm HW status[%d]\n",
334 table.hw_status[i], i);
335 for (i = 0; i < ARRAY_SIZE(table.sw_status); i++)
336 IWL_ERR(fwrt, "0x%08X | tcm SW status[%d]\n",
337 table.sw_status[i], i);
342 * Note: This structure is read from the device with IO accesses,
343 * and the reading already does the endian conversion. As it is
344 * read with u32-sized accesses, any members with a different size
345 * need to be ordered correctly though!
347 struct iwl_rcm_error_event_table {
353 u32 data1, data2, data3;
360 u32 mbx_lmac_to_rcm_req;
361 u32 mbx_rcm_to_lmac_req;
367 } __packed; /* RCM_LOG_ERROR_TABLE_API_S_VER_1 */
369 static void iwl_fwrt_dump_rcm_error_log(struct iwl_fw_runtime *fwrt, int idx)
371 struct iwl_trans *trans = fwrt->trans;
372 struct iwl_rcm_error_event_table table = {};
373 u32 base = fwrt->trans->dbg.rcm_error_event_table[idx];
374 u32 flag = idx ? IWL_ERROR_EVENT_TABLE_RCM2 :
375 IWL_ERROR_EVENT_TABLE_RCM1;
377 if (!base || !(fwrt->trans->dbg.error_event_table_tlv_status & flag))
380 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table));
383 fwrt->dump.rcm_err_id[idx] = table.error_id;
385 if (!iwl_fwrt_if_errorid_other_cpu(fwrt->dump.rcm_err_id[idx]) &&
386 !fwrt->trans->dbg.dump_file_name_ext_valid) {
387 fwrt->trans->dbg.dump_file_name_ext_valid = true;
388 snprintf(fwrt->trans->dbg.dump_file_name_ext, IWL_FW_INI_MAX_NAME,
389 "0x%x", fwrt->dump.rcm_err_id[idx]);
392 IWL_ERR(fwrt, "RCM%d status:\n", idx + 1);
393 IWL_ERR(fwrt, "0x%08X | error ID\n", table.error_id);
394 IWL_ERR(fwrt, "0x%08X | rcm branchlink2\n", table.blink2);
395 IWL_ERR(fwrt, "0x%08X | rcm interruptlink1\n", table.ilink1);
396 IWL_ERR(fwrt, "0x%08X | rcm interruptlink2\n", table.ilink2);
397 IWL_ERR(fwrt, "0x%08X | rcm data1\n", table.data1);
398 IWL_ERR(fwrt, "0x%08X | rcm data2\n", table.data2);
399 IWL_ERR(fwrt, "0x%08X | rcm data3\n", table.data3);
400 IWL_ERR(fwrt, "0x%08X | rcm log PC\n", table.logpc);
401 IWL_ERR(fwrt, "0x%08X | rcm frame pointer\n", table.frame_pointer);
402 IWL_ERR(fwrt, "0x%08X | rcm stack pointer\n", table.stack_pointer);
403 IWL_ERR(fwrt, "0x%08X | rcm msg ID\n", table.msgid);
404 IWL_ERR(fwrt, "0x%08X | rcm ISR status\n", table.isr);
405 IWL_ERR(fwrt, "0x%08X | frame HW status\n", table.frame_hw_status);
406 IWL_ERR(fwrt, "0x%08X | LMAC-to-RCM request mbox\n",
407 table.mbx_lmac_to_rcm_req);
408 IWL_ERR(fwrt, "0x%08X | RCM-to-LMAC request mbox\n",
409 table.mbx_rcm_to_lmac_req);
410 IWL_ERR(fwrt, "0x%08X | MAC header control\n", table.mh_ctl);
411 IWL_ERR(fwrt, "0x%08X | MAC header addr1 low\n", table.mh_addr1_lo);
412 IWL_ERR(fwrt, "0x%08X | MAC header info\n", table.mh_info);
413 IWL_ERR(fwrt, "0x%08X | MAC header error\n", table.mh_err);
416 static void iwl_fwrt_dump_iml_error_log(struct iwl_fw_runtime *fwrt)
418 struct iwl_trans *trans = fwrt->trans;
421 if (fwrt->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22000) {
422 error = UMAG_SB_CPU_2_STATUS;
423 data1 = UMAG_SB_CPU_1_STATUS;
424 } else if (fwrt->trans->trans_cfg->device_family >=
425 IWL_DEVICE_FAMILY_8000) {
426 error = SB_CPU_2_STATUS;
427 data1 = SB_CPU_1_STATUS;
432 error = iwl_read_umac_prph(trans, error);
434 IWL_ERR(trans, "IML/ROM dump:\n");
436 if (error & 0xFFFF0000)
437 IWL_ERR(trans, "0x%04X | IML/ROM SYSASSERT\n", error >> 16);
439 IWL_ERR(fwrt, "0x%08X | IML/ROM error/state\n", error);
440 IWL_ERR(fwrt, "0x%08X | IML/ROM data1\n",
441 iwl_read_umac_prph(trans, data1));
443 if (fwrt->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22000)
444 IWL_ERR(fwrt, "0x%08X | IML/ROM WFPM_AUTH_KEY_0\n",
445 iwl_read_umac_prph(trans, SB_MODIFY_CFG_FLAG));
448 #define FSEQ_REG(x) { .addr = (x), .str = #x, }
450 static void iwl_fwrt_dump_fseq_regs(struct iwl_fw_runtime *fwrt)
452 struct iwl_trans *trans = fwrt->trans;
458 FSEQ_REG(FSEQ_ERROR_CODE),
459 FSEQ_REG(FSEQ_TOP_INIT_VERSION),
460 FSEQ_REG(FSEQ_CNVIO_INIT_VERSION),
461 FSEQ_REG(FSEQ_OTP_VERSION),
462 FSEQ_REG(FSEQ_TOP_CONTENT_VERSION),
463 FSEQ_REG(FSEQ_ALIVE_TOKEN),
464 FSEQ_REG(FSEQ_CNVI_ID),
465 FSEQ_REG(FSEQ_CNVR_ID),
466 FSEQ_REG(CNVI_AUX_MISC_CHIP),
467 FSEQ_REG(CNVR_AUX_MISC_CHIP),
468 FSEQ_REG(CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM),
469 FSEQ_REG(CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR),
470 FSEQ_REG(FSEQ_PREV_CNVIO_INIT_VERSION),
471 FSEQ_REG(FSEQ_WIFI_FSEQ_VERSION),
472 FSEQ_REG(FSEQ_BT_FSEQ_VERSION),
473 FSEQ_REG(FSEQ_CLASS_TP_VERSION),
476 if (!iwl_trans_grab_nic_access(trans))
479 IWL_ERR(fwrt, "Fseq Registers:\n");
481 for (i = 0; i < ARRAY_SIZE(fseq_regs); i++)
482 IWL_ERR(fwrt, "0x%08X | %s\n",
483 iwl_read_prph_no_grab(trans, fseq_regs[i].addr),
486 iwl_trans_release_nic_access(trans);
489 void iwl_fwrt_dump_error_logs(struct iwl_fw_runtime *fwrt)
491 struct iwl_pc_data *pc_data;
494 if (!test_bit(STATUS_DEVICE_ENABLED, &fwrt->trans->status)) {
496 "DEVICE_ENABLED bit is not set. Aborting dump.\n");
500 iwl_fwrt_dump_lmac_error_log(fwrt, 0);
501 if (fwrt->trans->dbg.lmac_error_event_table[1])
502 iwl_fwrt_dump_lmac_error_log(fwrt, 1);
503 iwl_fwrt_dump_umac_error_log(fwrt);
504 iwl_fwrt_dump_tcm_error_log(fwrt, 0);
505 iwl_fwrt_dump_rcm_error_log(fwrt, 0);
506 if (fwrt->trans->dbg.tcm_error_event_table[1])
507 iwl_fwrt_dump_tcm_error_log(fwrt, 1);
508 if (fwrt->trans->dbg.rcm_error_event_table[1])
509 iwl_fwrt_dump_rcm_error_log(fwrt, 1);
510 iwl_fwrt_dump_iml_error_log(fwrt);
511 iwl_fwrt_dump_fseq_regs(fwrt);
512 if (fwrt->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22000) {
513 pc_data = fwrt->trans->dbg.pc_data;
515 if (!iwl_trans_grab_nic_access(fwrt->trans))
517 for (count = 0; count < fwrt->trans->dbg.num_pc;
519 IWL_ERR(fwrt, "%s: 0x%x\n",
521 iwl_read_prph_no_grab(fwrt->trans,
522 pc_data->pc_address));
523 iwl_trans_release_nic_access(fwrt->trans);
526 if (fwrt->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_BZ) {
527 u32 scratch = iwl_read32(fwrt->trans, CSR_FUNC_SCRATCH);
529 IWL_ERR(fwrt, "Function Scratch status:\n");
530 IWL_ERR(fwrt, "0x%08X | Func Scratch\n", scratch);
533 IWL_EXPORT_SYMBOL(iwl_fwrt_dump_error_logs);