|
@@ -88,7 +88,7 @@
|
|
#define IWL_FW_MEM_EXTENDED_START 0x40000
|
|
#define IWL_FW_MEM_EXTENDED_START 0x40000
|
|
#define IWL_FW_MEM_EXTENDED_END 0x57FFF
|
|
#define IWL_FW_MEM_EXTENDED_END 0x57FFF
|
|
|
|
|
|
-static void iwl_trans_pcie_err_dump(struct iwl_trans *trans)
|
|
|
|
|
|
+static void iwl_trans_pcie_dump_regs(struct iwl_trans *trans)
|
|
{
|
|
{
|
|
#define PCI_DUMP_SIZE 64
|
|
#define PCI_DUMP_SIZE 64
|
|
#define PREFIX_LEN 32
|
|
#define PREFIX_LEN 32
|
|
@@ -736,7 +736,7 @@ static int iwl_pcie_load_firmware_chunk(struct iwl_trans *trans,
|
|
trans_pcie->ucode_write_complete, 5 * HZ);
|
|
trans_pcie->ucode_write_complete, 5 * HZ);
|
|
if (!ret) {
|
|
if (!ret) {
|
|
IWL_ERR(trans, "Failed to load firmware chunk!\n");
|
|
IWL_ERR(trans, "Failed to load firmware chunk!\n");
|
|
- iwl_trans_pcie_err_dump(trans);
|
|
|
|
|
|
+ iwl_trans_pcie_dump_regs(trans);
|
|
return -ETIMEDOUT;
|
|
return -ETIMEDOUT;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1956,7 +1956,7 @@ static bool iwl_trans_pcie_grab_nic_access(struct iwl_trans *trans,
|
|
(CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY |
|
|
(CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY |
|
|
CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP), 15000);
|
|
CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP), 15000);
|
|
if (unlikely(ret < 0)) {
|
|
if (unlikely(ret < 0)) {
|
|
- iwl_trans_pcie_err_dump(trans);
|
|
|
|
|
|
+ iwl_trans_pcie_dump_regs(trans);
|
|
iwl_write32(trans, CSR_RESET, CSR_RESET_REG_FLAG_FORCE_NMI);
|
|
iwl_write32(trans, CSR_RESET, CSR_RESET_REG_FLAG_FORCE_NMI);
|
|
WARN_ONCE(1,
|
|
WARN_ONCE(1,
|
|
"Timeout waiting for hardware access (CSR_GP_CNTRL 0x%08x)\n",
|
|
"Timeout waiting for hardware access (CSR_GP_CNTRL 0x%08x)\n",
|
|
@@ -3021,6 +3021,7 @@ static void iwl_trans_pcie_resume(struct iwl_trans *trans)
|
|
.ref = iwl_trans_pcie_ref, \
|
|
.ref = iwl_trans_pcie_ref, \
|
|
.unref = iwl_trans_pcie_unref, \
|
|
.unref = iwl_trans_pcie_unref, \
|
|
.dump_data = iwl_trans_pcie_dump_data, \
|
|
.dump_data = iwl_trans_pcie_dump_data, \
|
|
|
|
+ .dump_regs = iwl_trans_pcie_dump_regs, \
|
|
.d3_suspend = iwl_trans_pcie_d3_suspend, \
|
|
.d3_suspend = iwl_trans_pcie_d3_suspend, \
|
|
.d3_resume = iwl_trans_pcie_d3_resume
|
|
.d3_resume = iwl_trans_pcie_d3_resume
|
|
|
|
|