]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: Fix to dump devlog, even if FW is crashed
authorHariprasad Shenai <hariprasad@chelsio.com>
Wed, 1 Apr 2015 16:11:16 +0000 (21:41 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Apr 2015 18:47:20 +0000 (14:47 -0400)
commita6dd80d66256a29e175d1edc106625d646bb6a5a
tree3d0fb3e2945446990f51a14117633829fb8f31d9
parent2d3a74f710297a9f93314b87a6791e0c30e17d22
cxgb4: Fix to dump devlog, even if FW is crashed

Add new Common Code routines to retrieve Firmware Device Log
parameters from PCIE_FW_PF[7]. The firmware initializes its Device Log very
early on and stores the parameters for its location/size in that register.
Using the parameters from the register allows us to access the Firmware
Device Log even when the firmware crashes very early on or we're not
attached to the firmware

Based on original work by Casey Leedom <leedom@chelsio.com>

Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
drivers/net/ethernet/chelsio/cxgb4/t4_regs.h