Closed bat-bold closed 3 years ago
Can you check if there is any memory leak on your system?
CONFIG_HAVE_DEBUG_KMEMLEAK=y CONFIG_DEBUG_KMEMLEAK=y CONFIG_DEBUG_KMEMLEAK_MEM_POOL_SIZE=16000
Check dmesg for kmemleak messages. You will see memleak: Kernel memory leak detector initialized (mem pool available: 15526) kmemleak: Automatic memory scanning thread started
Then, cat /sys/kernel/debug/kmemleak
I think there is no memory leak.
[ 3.650467] kmemleak: Kernel memory leak detector initialized (mem pool available: 15503) [ 3.650468] kmemleak: Automatic memory scanning thread started
Server listening on 5201 ----------------------------------------------------------- Accepted connection from 192.168.1.43, port 61740 [ 5] local 192.168.1.100 port 5201 connected to 192.168.1.43 port 61742 [ ID] Interval Transfer Bitrate [ 5] 0.00-1.04 sec 28.7 MBytes 28109 KBytes/sec [ 5] 1.04-2.00 sec 21.5 MBytes 22961 KBytes/sec [ 5] 2.00-3.00 sec 8.71 MBytes 8959 KBytes/sec [ 5] 3.00-4.00 sec 0.00 Bytes 0.00 KBytes/sec [ 5] 4.00-5.00 sec 0.00 Bytes 0.00 KBytes/sec [ 5] 5.00-6.00 sec 0.00 Bytes 0.00 KBytes/sec [ 5] 6.00-7.00 sec 0.00 Bytes 0.00 KBytes/sec [ 5] 7.00-8.00 sec 0.00 Bytes 0.00 KBytes/sec [ 5] 8.00-9.00 sec 0.00 Bytes 0.00 KBytes/sec [ 5] 9.00-10.00 sec 0.00 Bytes 0.00 KBytes/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate [ 5] 0.00-10.05 sec 58.9 MBytes 6005 KBytes/sec sender WARNING: Size of data read does not correspond to offered length iperf3: error - unable to receive results: Bad file descriptor
After the crash, detailed in first post, cat /sys/kernel/debug/kmemleak shows empty result.
drwx------ 25 root root 0 Feb 2 03:37 . drwxr-xr-x 10 root root 0 Feb 2 03:37 .. drwxr-xr-x 2 root root 0 Feb 2 03:37 acpi drwxr-xr-x 12 root root 0 Feb 2 03:37 bdi drwxr-xr-x 2 root root 0 Feb 2 03:37 block drwxr-xr-x 2 root root 0 Feb 2 03:37 btt --w------- 1 root root 0 Feb 2 03:37 clear_warn_once drwxr-xr-x 2 root root 0 Feb 2 03:37 clk drwxr-xr-x 2 root root 0 Feb 2 03:37 device_component -r--r--r-- 1 root root 0 Feb 2 03:37 devices_deferred drwxr-xr-x 2 root root 0 Feb 2 03:37 dma_buf drwxr-xr-x 4 root root 0 Feb 2 03:37 dri drwxr-xr-x 2 root root 0 Feb 2 03:37 extfrag drwxr-xr-x 2 root root 0 Feb 2 03:37 f2fs -rw-r--r-- 1 root root 0 Feb 2 03:37 fault_around_bytes -r--r--r-- 1 root root 0 Feb 2 03:37 gpio drwxr-xr-x 7 root root 0 Feb 2 03:37 hid drwxr-xr-x 3 root root 0 Feb 2 03:37 ieee80211 drwxr-xr-x 2 root root 0 Feb 2 03:37 ixgbe -rw-r--r-- 1 root root 0 Feb 2 03:37 kmemleak drwxr-xr-x 2 root root 0 Feb 2 03:37 mce drwxr-xr-x 2 root root 0 Feb 2 03:37 pinctrl drwxr-xr-x 2 root root 0 Feb 2 03:37 pkg_temp_thermal drwxr-xr-x 2 root root 0 Feb 2 03:37 pm_qos drwxr-xr-x 2 root root 0 Feb 2 03:37 ras -r--r--r-- 1 root root 0 Feb 2 03:37 sleep_time -r--r--r-- 1 root root 0 Feb 2 03:37 suspend_stats drwxr-xr-x 2 root root 0 Feb 2 03:37 swiotlb drwxr-xr-x 4 root root 0 Feb 2 03:37 usb drwxr-xr-x 2 root root 0 Feb 2 03:37 virtio-ports -r--r--r-- 1 root root 0 Feb 2 03:37 wakeup_sources drwxr-xr-x 2 root root 0 Feb 2 03:37 x86 drwxr-xr-x 3 root root 0 Feb 2 03:37 xen
can you try the latest mt76?
Fixed in 09a1befde4b729814ddaa3aa3de0ed0db7d4e1a8
Hello.
Build: OpenWrt SNAPSHOT, r15655-ddab795b37
Wifi card: BPI-MT7615 (http://wiki.banana-pi.org/BPI-R64_%2B_MT7615_function_test). Connected via mini-pci.
uname -a:
Linux OpenWrt 5.4.93 #0 SMP Sat Jan 30 22:21:58 2021 x86_64 GNU/Linux
cat /etc/config/wireless:
dmesg | grep 7615:
lspci | grep 7615:
01:00.0 Unclassified device [0002]: MEDIATEK Corp. Device 7615
iw phy
dmesg
Crash log
At first, when web browsing etc... works fine. When downloading file or performing iperf3 test, it crashes.