Halow driver running but throw stacktrace repeatly

Hi,

I am using SDX35 (ARM base) module with a Halow chip running with FGH100 (built from fgh100m-master). Although the interface is set up and enabled, we repeatedly got stack-trace from the log. Please let me know if you have any help with this.

For more details

#./create_ap_halow.sh

#iw dev

phy#1
        Interface wlan0
                ifindex 11
                wdev 0x100000001
                addr 90:03:71:52:9e:6a
                ssid Quectel-halow-100h
                type AP
                channel 149 (5745 MHz), width: 80 MHz, center1: 5775 MHz
                txpower 21.00 dBm

#hostapd_cli_s1g -i wlan0 status

RX ctrl_iface - hexdump_ascii(len=6):
     53 54 41 54 55 53                                 STATUS
s1g_freq=922000
s1g_bw=4
s1g_prim_chwidth=2
s1g_prim_1mhz_chan_index=0
state=ENABLED
phy=phy1
freq=5745
num_sta_non_erp=0
num_sta_no_short_slot_time=0
num_sta_no_short_preamble=0
olbc=0
num_sta_ht_no_gf=0
num_sta_no_ht=0
num_sta_ht_20_mhz=0
num_sta_ht40_intolerant=0
olbc_ht=0
ht_op_mode=0x0
hw_mode=a
country_code=ZZ
country3=0x20
cac_time_seconds=0
cac_time_left_seconds=N/A
channel=149
edmg_enable=0
edmg_channel=0
secondary_channel=1
ieee80211n=1
ieee80211ac=1
ieee80211ax=0
ieee80211be=0
beacon_int=100
dtim_period=1
vht_oper_chwidth=1
vht_oper_centr_freq_seg0_idx=155
vht_oper_centr_freq_seg1_idx=0
vht_caps_info=00000020
rx_vht_mcs_map=fffd
tx_vht_mcs_map=fffd
ht_caps_info=006e
ht_mcs_bitmask=ff030000000000000000
supported_rates=01 02 03 04 05 06 07 08 09 0b 0c 0d 0e 11 12 16 18 19 1b 1e 24 30
max_txpower=0
bss[0]=wlan0
bssid[0]=90:03:71:52:9e:6a
ssid[0]=Quectel-halow-100h
num_sta[0]=0

BUT, the stack trace below happens all the time after configured.

[ 2652.644658] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:209
[ 2652.653623] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 13, name: ksoftirqd/0
[ 2652.661956] CPU: 0 PID: 13 Comm: ksoftirqd/0 Tainted: G        W  OE     5.15.144-debug #1
[ 2652.670271] Hardware name: Generic DT based system
[ 2652.675267] [<c010c443>] (unwind_backtrace) from [<c0109b17>] (show_stack+0x19/0x1a)
[ 2652.683217] [<c0109b17>] (show_stack) from [<c013c53b>] (___might_sleep+0x127/0x138)
[ 2652.691213] [<c013c53b>] (___might_sleep) from [<c021c24f>] (kmem_cache_alloc_trace+0x49/0x1d2)
[ 2652.700061] [<c021c24f>] (kmem_cache_alloc_trace) from [<bfeb33e1>] (morse_beacon_tasklet+0xbf/0x47a [morse])
[ 2652.710972] [<bfeb33e1>] (morse_beacon_tasklet [morse]) from [<c011c1ef>] (tasklet_action_common+0x169/0x1e0)
[ 2652.721555] [<c011c1ef>] (tasklet_action_common) from [<c010148d>] (__do_softirq+0x115/0x2c0)
[ 2652.730217] [<c010148d>] (__do_softirq) from [<c011bb8d>] (irq_exit+0x4d/0x94)
[ 2652.737626] [<c011bb8d>] (irq_exit) from [<c014cd7b>] (handle_domain_irq+0x69/0x7a)
[ 2652.745537] [<c014cd7b>] (handle_domain_irq) from [<c0101363>] (gic_handle_irq+0x6d/0x80)
[ 2652.753962] [<c0101363>] (gic_handle_irq) from [<c0100b57>] (__irq_svc+0x57/0x98)
[ 2652.761702] Exception stack(0xc2d33e88 to 0xc2d33ed0)
[ 2652.766860] 3e80:                   00000001 c2d32004 00000000 c0102c7d 00000001 00000000
[ 2652.775195] 3ea0: c2d2b200 c2d33f00 c87752c0 c09376a9 c1014940 c2d2b5b0 c2d32038 c2d33ed8
[ 2652.783575] 3ec0: c013a1cb c013a1fc 20000073 ffffffff
[ 2652.788721] [<c0100b57>] (__irq_svc) from [<c013a1fc>] (finish_task_switch+0xf8/0x18a)
[ 2652.796819] [<c013a1fc>] (finish_task_switch) from [<c09376a9>] (__schedule+0x4a9/0x564)
[ 2652.805166] [<c09376a9>] (__schedule) from [<c09377db>] (schedule+0x77/0xa0)
[ 2652.812461] [<c09377db>] (schedule) from [<c0135e53>] (smpboot_thread_fn+0x177/0x1ec)
[ 2652.820525] [<c0135e53>] (smpboot_thread_fn) from [<c01330e7>] (kthread+0x13b/0x160)
[ 2652.828471] [<c01330e7>] (kthread) from [<c010013d>] (ret_from_fork+0x13/0x36)
[ 2652.835871] Exception stack(0xc2d33fb0 to 0xc2d33ff8)
[ 2652.841418] 3fa0:                                     00000000 00000000 00000000 00000000
[ 2652.849646] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2652.857979] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000

BR
MEQ

Please help to confirm these issues as below:

  1. Which module do you use? FGH100MAAMD or FGH100MABMD.
  2. Please provide the driver loading kernel logs: (dmesg >dmesg.txt) and driver *.ko files: dot11ah.ko, morse.ko, frimware files:bcf_default.bin、mm6108.bin

We will have a check. Thanks.