two mt7915e cards and irq 149: nobody cared dump

Janusz Dziedzic janusz.dziedzic at gmail.com
Thu Jan 5 11:24:26 PST 2023


czw., 5 sty 2023 o 16:41 Janusz Dziedzic <janusz.dziedzic at gmail.com> napisał(a):
>
> Hello,
>
> Have two mt7915e cards in my banana PI R64 (latest master).
> After do ifconfig wlan1 up - dump.
> While ifconfig wlan2 up works correctly.
>
> [    7.093206] mt7915e 0000:01:00.0: assign IRQ: got 148
> [    7.098405] mt7915e 0000:01:00.0: enabling device (0000 -> 0002)
> [    7.104537] mt7915e 0000:01:00.0: enabling bus mastering
> [    7.181837] mt7622-wmac 18000000.wmac: N9 Firmware Version:
> _reserved_, Build Time: 20220630094834
> [    7.193914] Bluetooth: hci0: Device setup in 243529 usecs
> [    7.233531] mtk-pcie 1a143000.pcie: msi#0 address_hi 0x0 address_lo
> 0x44e050c0
> [    7.291849] mt7915e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build
> Time: 20220929104113a
> [    7.291849]
> [    7.435118] mt7915e 0000:01:00.0: WM Firmware Version: ____000000,
> Build Time: 20220929104145
> [    7.492309] mt7915e 0000:01:00.0: WA Firmware Version: DEV_000000,
> Build Time: 20220929104205
> [    7.655412] mt7915e 0001:01:00.0: assign IRQ: got 149
> [    7.660552] mt7915e 0001:01:00.0: enabling device (0000 -> 0002)
> [    7.666722] mt7915e 0001:01:00.0: enabling bus mastering
> [    7.783768] mtk-pcie 1a145000.pcie: msi#0 address_hi 0x0 address_lo
> 0x44e150c0
> [    7.803991] mt7915e 0001:01:00.0: HW/SW Version: 0x8a108a10, Build
> Time: 20220929104113a
> [    7.803991]
> [    7.822350] mt7915e 0001:01:00.0: WM Firmware Version: ____000000,
> Build Time: 20220929104145
> [    7.846429] mt7915e 0001:01:00.0: WA Firmware Version: DEV_000000,
> Build Time: 20220929104205
>
>
>
> # ifconfig wlan1 up
>
> Creating netns for phy2 on port 2302
> [  379.207067] irq 149: nobody cared (try booting with the "irqpoll" option)
> [  379.213884] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G S
>   5.15.86 #0
> [  379.221291] Hardware name: Bananapi BPI-R64 (DT)
> [  379.225909] Call trace:
> [  379.228352]  dump_backtrace+0x0/0x15c
> [  379.232035]  show_stack+0x14/0x30
> [  379.235359]  dump_stack_lvl+0x64/0x7c
> [  379.239030]  dump_stack+0x14/0x2c
> [  379.242351]  __report_bad_irq+0x48/0x128
> [  379.246280]  note_interrupt+0x2e4/0x340
> [  379.250124]  handle_irq_event+0xb8/0xe0
> [  379.253965]  handle_simple_irq+0xb0/0x10c
> [  379.257980]  generic_handle_domain_irq+0x28/0x3c
> [  379.262610]  mtk_pcie_intr_handler+0x144/0x19c
> [  379.267064]  handle_domain_irq+0x5c/0x8c
> [  379.270999]  gic_handle_irq+0x64/0x8c
> [  379.274668]  do_interrupt_handler+0x30/0x54
> [  379.278859]  el1_interrupt+0x2c/0x4c
> [  379.282446]  el1h_64_irq_handler+0x14/0x20
> [  379.286547]  el1h_64_irq+0x74/0x78
> [  379.289953]  _stext+0xa0/0x294
> [  379.293012]  __irq_exit_rcu+0xdc/0xfc
> [  379.296680]  irq_exit+0xc/0x1c
> [  379.299738]  handle_domain_irq+0x60/0x8c
> [  379.303673]  gic_handle_irq+0x64/0x8c
> [  379.307340]  call_on_irq_stack+0x28/0x44
> [  379.311269]  do_interrupt_handler+0x4c/0x54
> [  379.315460]  el1_interrupt+0x2c/0x4c
> [  379.319045]  el1h_64_irq_handler+0x14/0x20
> [  379.323145]  el1h_64_irq+0x74/0x78
> [  379.326550]  arch_cpu_idle+0x14/0x20
> [  379.330131]  do_idle+0xc0/0x140
> [  379.333284]  cpu_startup_entry+0x24/0x50
> [  379.337218]  rest_init+0xc4/0xd0
> [  379.340451]  arch_call_rest_init+0xc/0x14
> [  379.344471]  start_kernel+0x5b4/0x5d4
> [  379.348144]  __primary_switched+0xa0/0xa8
> [  379.352163] handlers:
> [  379.354433] [<00000000dd1abdd2>] pcie_pme_irq
> [  379.358808] Disabling IRQ #149
>

And lspci:
root at OpenWrt:~# lspci
0000:00:00.0 PCI bridge: MEDIATEK Corp. Device 3258
0000:01:00.0 Unclassified device [0002]: MEDIATEK Corp. MT7915E
802.11ax PCI Express Wireless Network Adapter
0001:00:01.0 PCI bridge: MEDIATEK Corp. Device 3258
0001:01:00.0 Unclassified device [0002]: MEDIATEK Corp. MT7915E
802.11ax PCI Express Wireless Network Adapter
root at OpenWrt:~#
root at OpenWrt:~#
root at OpenWrt:~# lspci -tv
-+-[0000:00]---00.0-[01]----00.0  MEDIATEK Corp. MT7915E 802.11ax PCI
Express Wireless Network Adapter
 \-[0001:00]---01.0-[01]----00.0  MEDIATEK Corp. MT7915E 802.11ax PCI
Express Wireless Network Adapter
root at OpenWrt:~#
root at OpenWrt:~#
root at OpenWrt:~# lspci -v
0000:00:00.0 PCI bridge: MEDIATEK Corp. Device 3258 (prog-if 00 [Normal decode])
Device tree node: /sys/firmware/devicetree/base/pcie at 1a143000/pcie at 0,0
Flags: bus master, fast devsel, latency 0, IRQ 148
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
Memory behind bridge: 20000000-201fffff [size=2M] [32-bit]
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Power Management version 3
Capabilities: [80] Express Root Port (Slot+), MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [400] L1 PM Substates
Capabilities: [600] Latency Tolerance Reporting
Kernel driver in use: pcieport
lspci: Unable to load libkmod resources: error -12

0000:01:00.0 Unclassified device [0002]: MEDIATEK Corp. MT7915E
802.11ax PCI Express Wireless Network Adapter (prog-if 80)
Subsystem: MEDIATEK Corp. MT7915E 802.11ax PCI Express Wireless Network Adapter
Flags: bus master, fast devsel, latency 0, IRQ 155
Memory at 20000000 (64-bit, prefetchable) [size=1M]
Memory at 20100000 (64-bit, prefetchable) [size=16K]
Memory at 20104000 (64-bit, prefetchable) [size=4K]
Capabilities: [80] Express Endpoint, MSI 00
Capabilities: [e0] MSI: Enable+ Count=1/32 Maskable+ 64bit+
Capabilities: [f8] Power Management version 3
Capabilities: [100] Vendor Specific Information: ID=1556 Rev=1 Len=008 <?>
Capabilities: [108] Latency Tolerance Reporting
Capabilities: [110] L1 PM Substates
Capabilities: [200] Advanced Error Reporting
Kernel driver in use: mt7915e

0001:00:01.0 PCI bridge: MEDIATEK Corp. Device 3258 (prog-if 00 [Normal decode])
Device tree node: /sys/firmware/devicetree/base/pcie at 1a145000/pcie at 1,0
Flags: bus master, fast devsel, latency 0, IRQ 149
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
Memory behind bridge: 28000000-281fffff [size=2M] [32-bit]
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Power Management version 3
Capabilities: [80] Express Root Port (Slot+), MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [400] L1 PM Substates
Capabilities: [600] Latency Tolerance Reporting
Kernel driver in use: pcieport

0001:01:00.0 Unclassified device [0002]: MEDIATEK Corp. MT7915E
802.11ax PCI Express Wireless Network Adapter (prog-if 80)
Subsystem: MEDIATEK Corp. MT7915E 802.11ax PCI Express Wireless Network Adapter
Flags: bus master, fast devsel, latency 0, IRQ 156
Memory at 28000000 (64-bit, prefetchable) [size=1M]
Memory at 28100000 (64-bit, prefetchable) [size=16K]
Memory at 28104000 (64-bit, prefetchable) [size=4K]
Capabilities: [80] Express Endpoint, MSI 00
Capabilities: [e0] MSI: Enable+ Count=1/32 Maskable+ 64bit+
Capabilities: [f8] Power Management version 3
Capabilities: [100] Vendor Specific Information: ID=1556 Rev=1 Len=008 <?>
Capabilities: [108] Latency Tolerance Reporting
Capabilities: [110] L1 PM Substates
Capabilities: [200] Advanced Error Reporting
Kernel driver in use: mt7915e

root at OpenWrt:~#

So any idea? Is it a mt7915e driver issue or pci controller problem?

BR
Janusz



More information about the openwrt-devel mailing list