net/qede/base: retrieve FW crash dump info
authorRasesh Mody <rasesh.mody@cavium.com>
Thu, 5 Jan 2017 07:03:59 +0000 (23:03 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 17 Jan 2017 18:40:53 +0000 (19:40 +0100)
commitf8da0cd69bb0dfa00a3e733da795c4629ed846bb
treeeb7041ec02fdb443f30694b29e26eb494ae55b1c
parentdb288034eaa55890fa6b996dd1aac44c214a8bec
net/qede/base: retrieve FW crash dump info

As part of device probe, check if management FW crash dump logs are
available. If available, then log an warning message and update the
epoch value too. A new struct ecore_mdump_info is added to populate
dump info including the new "reason" field by reading shared memory
region.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/qede/base/ecore_dev.c
drivers/net/qede/base/ecore_dev_api.h
drivers/net/qede/base/ecore_mcp.c
drivers/net/qede/base/ecore_mcp.h
drivers/net/qede/base/ecore_mcp_api.h
drivers/net/qede/qede_main.c