Skip to content

Commit

Permalink
qlcnic: Use firmware recommended dump capture mask as default
Browse files Browse the repository at this point in the history
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Shahed Shaikh authored and David S. Miller committed Sep 1, 2013
1 parent 60dcbcb commit 7010bb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion drivers/net/ethernet/qlogic/qlcnic/qlcnic.h
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,6 @@ struct qlcnic_esw_statistics {
struct __qlcnic_esw_statistics tx;
};

#define QLCNIC_DUMP_MASK_DEF 0x1f
#define QLCNIC_FORCE_FW_DUMP_KEY 0xdeadfeed
#define QLCNIC_ENABLE_FW_DUMP 0xaddfeed
#define QLCNIC_DISABLE_FW_DUMP 0xbadfeed
Expand Down
5 changes: 4 additions & 1 deletion drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,10 @@ int qlcnic_fw_cmd_get_minidump_temp(struct qlcnic_adapter *adapter)
}

tmpl_hdr = ahw->fw_dump.tmpl_hdr;
tmpl_hdr->drv_cap_mask = QLCNIC_DUMP_MASK_DEF;
tmpl_hdr->drv_cap_mask = tmpl_hdr->cap_mask;
dev_info(&adapter->pdev->dev,
"Default minidump capture mask 0x%x\n",
tmpl_hdr->cap_mask);

if ((tmpl_hdr->version & 0xfffff) >= 0x20001)
ahw->fw_dump.use_pex_dma = true;
Expand Down

0 comments on commit 7010bb6

Please sign in to comment.