dump.c (71af75b6929458d85f63c0649dc26d6f4c19729e) dump.c (595c230b95130b2bdb1e210f1c4e70faf796764c)
1// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2/*
3 * Copyright (C) 2012-2014, 2018-2021 Intel Corporation
4 * Copyright (C) 2013-2014 Intel Mobile Communications GmbH
5 * Copyright (C) 2015-2017 Intel Deutschland GmbH
6 */
7#include <linux/devcoredump.h>
8#include "iwl-drv.h"

--- 314 unchanged lines hidden (view full) ---

323 IWL_ERR(fwrt, "0x%08X | tcm msg ID\n", table.msgid);
324 IWL_ERR(fwrt, "0x%08X | tcm ISR status\n", table.isr);
325 for (i = 0; i < ARRAY_SIZE(table.hw_status); i++)
326 IWL_ERR(fwrt, "0x%08X | tcm HW status[%d]\n",
327 table.hw_status[i], i);
328 for (i = 0; i < ARRAY_SIZE(table.sw_status); i++)
329 IWL_ERR(fwrt, "0x%08X | tcm SW status[%d]\n",
330 table.sw_status[i], i);
1// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2/*
3 * Copyright (C) 2012-2014, 2018-2021 Intel Corporation
4 * Copyright (C) 2013-2014 Intel Mobile Communications GmbH
5 * Copyright (C) 2015-2017 Intel Deutschland GmbH
6 */
7#include <linux/devcoredump.h>
8#include "iwl-drv.h"

--- 314 unchanged lines hidden (view full) ---

323 IWL_ERR(fwrt, "0x%08X | tcm msg ID\n", table.msgid);
324 IWL_ERR(fwrt, "0x%08X | tcm ISR status\n", table.isr);
325 for (i = 0; i < ARRAY_SIZE(table.hw_status); i++)
326 IWL_ERR(fwrt, "0x%08X | tcm HW status[%d]\n",
327 table.hw_status[i], i);
328 for (i = 0; i < ARRAY_SIZE(table.sw_status); i++)
329 IWL_ERR(fwrt, "0x%08X | tcm SW status[%d]\n",
330 table.sw_status[i], i);
331
332 if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_BZ) {
333 u32 scratch = iwl_read32(trans, CSR_FUNC_SCRATCH);
334
335 IWL_ERR(fwrt, "Function Scratch status:\n");
336 IWL_ERR(fwrt, "0x%08X | Func Scratch\n", scratch);
337 }
331}
332
333static void iwl_fwrt_dump_iml_error_log(struct iwl_fw_runtime *fwrt)
334{
335 struct iwl_trans *trans = fwrt->trans;
336 u32 error, data1;
337
338 if (fwrt->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22000) {

--- 80 unchanged lines hidden ---
338}
339
340static void iwl_fwrt_dump_iml_error_log(struct iwl_fw_runtime *fwrt)
341{
342 struct iwl_trans *trans = fwrt->trans;
343 u32 error, data1;
344
345 if (fwrt->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22000) {

--- 80 unchanged lines hidden ---