mirror of
https://github.com/torvalds/linux.git
synced 2026-04-25 01:52:32 -04:00
Currently device dump generated in the driver is retrieved
using ethtool set/get dump commands. We will get rid of
ethtool approach and use devcoredump framework.
Device dump can be trigger by
cat /debugfs/mwifiex/mlanX/device_dump
and when the dump operation is completed, data can be read by
cat /sys/class/devcoredump/devcdX/data
We have prepared following script to split device dump data
into multiple files.
[root]# cat mwifiex_split_dump_data.sh
#!/bin/bash
# usage: ./mwifiex_split_dump_data.sh dump_data
fw_dump_data=$1
mem_type="driverinfo ITCM DTCM SQRAM APU CIU ICU MAC"
for name in ${mem_type[@]}
do
sed -n "/Start dump $name/,/End dump/p" $fw_dump_data > tmp.$name.log
if [ ! -s tmp.$name.log ]
then
rm -rf tmp.$name.log
else
#Remove the describle info "Start dump" and "End dump"
sed '1d' tmp.$name.log | sed '$d' > /data/$name.log
if [ -s /data/$name.log ]
then
echo "generate /data/$name.log"
else
sed '1d' tmp.$name.log | sed '$d' > /var/$name.log
echo "generate /var/$name.log"
fi
rm -rf tmp.$name.log
fi
done
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
config MWIFIEX
|
|
tristate "Marvell WiFi-Ex Driver"
|
|
depends on CFG80211
|
|
---help---
|
|
This adds support for wireless adapters based on Marvell
|
|
802.11n/ac chipsets.
|
|
|
|
If you choose to build it as a module, it will be called
|
|
mwifiex.
|
|
|
|
config MWIFIEX_SDIO
|
|
tristate "Marvell WiFi-Ex Driver for SD8786/SD8787/SD8797/SD8887/SD8897"
|
|
depends on MWIFIEX && MMC
|
|
select FW_LOADER
|
|
select WANT_DEV_COREDUMP
|
|
---help---
|
|
This adds support for wireless adapters based on Marvell
|
|
8786/8787/8797/8887/8897 chipsets with SDIO interface.
|
|
|
|
If you choose to build it as a module, it will be called
|
|
mwifiex_sdio.
|
|
|
|
config MWIFIEX_PCIE
|
|
tristate "Marvell WiFi-Ex Driver for PCIE 8766/8897"
|
|
depends on MWIFIEX && PCI
|
|
select FW_LOADER
|
|
select WANT_DEV_COREDUMP
|
|
---help---
|
|
This adds support for wireless adapters based on Marvell
|
|
8766/8897 chipsets with PCIe interface.
|
|
|
|
If you choose to build it as a module, it will be called
|
|
mwifiex_pcie.
|
|
|
|
config MWIFIEX_USB
|
|
tristate "Marvell WiFi-Ex Driver for USB8766/8797/8897"
|
|
depends on MWIFIEX && USB
|
|
select FW_LOADER
|
|
---help---
|
|
This adds support for wireless adapters based on Marvell
|
|
8797/8897 chipset with USB interface.
|
|
|
|
If you choose to build it as a module, it will be called
|
|
mwifiex_usb.
|