I am using Verdin IMX8MM/P on a custom carrier board.
I have however also tried on the Mallow Carrier Board and obtain the same results leading me to believe this is solely a Software related issue not hardware related.
I have an issue that i have been working over.
I have a requirement to use the Sierra Wireless EM9291. The modem is detected through PCI. however is not attaching to ModemManager.
It is detected with lspsci:
01:00.0 Unassigned class [ff00]: Qualcomm Technologies, Inc Device 0308 Subsystem: Qualcomm Technologies, Inc Device 0308 Flags: fast devsel, IRQ 216 Memory at 18100000 (64-bit, non-prefetchable) [disabled] [size=4K] Memory at 18101000 (64-bit, non-prefetchable) [disabled] [size=4K] Capabilities: [40] Power Management version 3 Capabilities: [50] MSI: Enable- Count=1/32 Maskable+ 64bit+ Capabilities: [70] Express Endpoint, IntMsgNum 0 Capabilities: [100] Advanced Error Reporting Capabilities: [148] Secondary PCI Express Capabilities: [168] Physical Layer 16.0 GT/s <?> Capabilities: [18c] Lane Margining at the Receiver Capabilities: [19c] Transaction Processing Hints Capabilities: [228] Latency Tolerance Reporting Capabilities: [230] L1 PM Substates Capabilities: [240] Data Link Feature <?> Kernel driver in use: mhi-pci-generic
seen with dmesg
[ 8.154971] imx6q-pcie 33800000.pcie: host bridge /soc@0/pcie@33800000 ranges:
[ 8.155029] imx6q-pcie 33800000.pcie: IO 0x001ff80000..0x001ff8ffff -> 0x0000000000
[ 8.155047] imx6q-pcie 33800000.pcie: MEM 0x0018000000..0x001fefffff -> 0x0018000000
[ 8.401750] imx6q-pcie 33800000.pcie: iATU: unroll T, 4 ob, 4 ib, align 64K, limit 4G
[ 8.501587] imx6q-pcie 33800000.pcie: PCIe Gen.1 x1 link up
[ 8.601557] imx6q-pcie 33800000.pcie: PCIe Gen.2 x1 link up
[ 8.601585] imx6q-pcie 33800000.pcie: Link up, Gen2
[ 8.601592] imx6q-pcie 33800000.pcie: PCIe Gen.2 x1 link up
[ 8.602092] imx6q-pcie 33800000.pcie: PCI host bridge to bus 0000:00
[ 8.602106] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 8.602115] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 8.602121] pci_bus 0000:00: root bus resource [mem 0x18000000-0x1fefffff]
[ 8.602150] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400
[ 8.602165] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[ 8.602176] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[ 8.602226] pci 0000:00:00.0: supports D1
[ 8.602231] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold
[ 8.604082] pci 0000:01:00.0: [17cb:0308] type 00 class 0xff0000
[ 8.604148] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[ 8.604190] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x00000fff 64bit]
[ 8.604548] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[ 8.604857] pci 0000:01:00.0: 4.000 Gb/s available PCIe bandwidth, limited by 5.0 GT/s PCIe x1 link at 0000:00:00.0 (capable of 15.752 Gb/s with 8.0 GT/s PCIe x2 link)
[ 8.641599] pci 0000:00:00.0: BAR 0: assigned [mem 0x18000000-0x180fffff]
[ 8.641630] pci 0000:00:00.0: BAR 14: assigned [mem 0x18100000-0x181fffff]
[ 8.641639] pci 0000:00:00.0: BAR 6: assigned [mem 0x18200000-0x1820ffff pref]
[ 8.641650] pci 0000:01:00.0: BAR 0: assigned [mem 0x18100000-0x18100fff 64bit]
[ 8.641685] pci 0000:01:00.0: BAR 2: assigned [mem 0x18101000-0x18101fff 64bit]
[ 8.641719] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[ 8.641728] pci 0000:00:00.0: bridge window [mem 0x18100000-0x181fffff]
[ 8.642348] pcieport 0000:00:00.0: PME: Signaling with IRQ 215
[ 8.643423] pcieport 0000:00:00.0: AER: enabled with IRQ 215
[ 8.643784] mhi-pci-generic 0000:01:00.0: MHI PCI device found: sierra-em919x
[ 8.643801] mhi-pci-generic 0000:01:00.0: BAR 0: assigned [mem 0x18100000-0x18100fff 64bit]
[ 8.643852] mhi-pci-generic 0000:01:00.0: enabling device (0000 -> 0002)
[ 8.653929] mhi mhi0: Requested to power ON
[ 12.371812] mhi mhi0: Power on setup success
[ 12.372032] mhi mhi0: Wait for device to enter SBL or Mission mode
[ 12.428819] wwan wwan0: port wwan0qcdm0 attached
[ 12.429128] wwan wwan0: port wwan0mbim0 attached
[ 12.429333] wwan wwan0: port wwan0qmi0 attached
[ 12.437112] wwan wwan0: port wwan0at0 attached
[ 326.577371] mhi-pci-generic 0000:01:00.0: Unable to change power state from D3hot to D0, device inaccessible
[ 326.587291] mhi mhi0: Resuming from non M3 state (SYS ERROR)
[ 326.587300] mhi-pci-generic 0000:01:00.0: failed to resume device: -22
[ 326.593847] mhi-pci-generic 0000:01:00.0: device recovery started
[ 326.593987] wwan wwan0: port wwan0qcdm0 disconnected
[ 326.595469] mhi_wwan_ctrl mhi0_MBIM: Failed to queue buffer
[ 326.601097] mhi_wwan_ctrl mhi0_MBIM: Failed to queue buffer
[ 326.610828] wwan wwan0: port wwan0mbim0 disconnected
[ 326.611344] wwan wwan0: port wwan0qmi0 disconnected
[ 326.612393] wwan wwan0: port wwan0at0 disconnected
[ 326.627567] mhi mhi0: Requested to power ON
[ 326.627615] mhi mhi0: Power on setup success
[ 350.805467] mhi-pci-generic 0000:01:00.0: reset
[ 353.037937] mhi mhi0: Requested to power ON
[ 355.045424] mhi mhi0: Power on setup success
[ 355.045514] mhi mhi0: Wait for device to enter SBL or Mission mode
but not with ModemManager. I have enabled debug mode on ModemManager and see the following output:
Dec 17 12:54:10 06944405 ModemManager[454]: <dbg> [1765976050.311931] [plugin/generic] probes required for port wwan0qmi0: 'at, qcdm, qmi, mbim'
Dec 17 12:54:10 06944405 ModemManager[454]: <dbg> [1765976050.311960] [wwan0qmi0/probe] no AT/QCDM/MBIM probing in possible QMI port
Dec 17 12:54:10 06944405 ModemManager[454]: <dbg> [1765976050.311979] [wwan0qmi0/probe] port is not AT-capable
Dec 17 12:54:10 06944405 ModemManager[454]: <dbg> [1765976050.311997] [wwan0qmi0/probe] port is not QCDM-capable
Dec 17 12:54:10 06944405 ModemManager[454]: <dbg> [1765976050.312014] [wwan0qmi0/probe] port is not MBIM-capable
Dec 17 12:54:10 06944405 ModemManager[454]: <dbg> [1765976050.312032] [wwan0qmi0/probe] port probing finished: no more probings needed
Dec 17 12:54:10 06944405 ModemManager[454]: <dbg> [1765976050.312082] [plugin-manager] task 1,wwan0qmi0: found best plugin for port (generic)
Dec 17 12:54:10 06944405 ModemManager[454]: <dbg> [1765976050.312105] [plugin-manager] task 1,wwan0qmi0: finished in '48.350582' seconds
Dec 17 12:54:10 06944405 ModemManager[454]: <dbg> [1765976050.312145] [plugin-manager] task 1,wwan0qmi0: best plugin matches device reported one: generic
Dec 17 12:54:10 06944405 ModemManager[454]: <dbg> [1765976050.312167] [plugin-manager] task 1: no more ports to probe
Dec 17 12:54:10 06944405 ModemManager[454]: <dbg> [1765976050.312186] [plugin-manager] task 1: finished in '48.377354' seconds
Dec 17 12:54:10 06944405 ModemManager[454]: <msg> [1765976050.312247] [device /sys/devices/platform/soc@0/33800000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0] creating modem with plugin 'generic' and '4' ports
Dec 17 12:54:10 06944405 ModemManager[454]: <dbg> [1765976050.312283] [plugin/generic] (generic) MBIM-powered generic modem found...
Dec 17 12:54:10 06944405 ModemManager[454]: <wrn> [1765976050.324987] [plugin/generic] could not grab port wwan0at0: Cannot add port 'wwan/wwan0at0', unhandled port type
Dec 17 12:54:10 06944405 ModemManager[454]: <wrn> [1765976050.325100] [plugin/generic] could not grab port wwan0qmi0: Cannot add port 'wwan/wwan0qmi0', unhandled port type
Dec 17 12:54:10 06944405 ModemManager[454]: <dbg> [1765976050.325173] [wwan0mbim0/mbim] port monitoring enabled in MBIM port
Dec 17 12:54:10 06944405 ModemManager[454]: <dbg> [1765976050.325240] [modem0] port 'wwan/wwan0mbim0' grabbed
Dec 17 12:54:10 06944405 ModemManager[454]: <dbg> [1765976050.325270] [plugin/generic] port wwan0qcdm0 is explicitly ignored
Dec 17 12:54:10 06944405 ModemManager[454]: <dbg> [1765976050.325312] [modem0] port 'wwan/wwan0qcdm0' grabbed
Dec 17 12:54:10 06944405 ModemManager[454]: <dbg> [1765976050.325351] [modem0] supported notifications: signal (no), registration (no), sms (no), connect (no), subscriber (no), packet (no), pco (no), ussd (no), lte attach info (no), provisioned contexts (no), slot_info_status (no)
Dec 17 12:54:10 06944405 ModemManager[454]: <dbg> [1765976050.325418] [modem0] cleaning up port 'unknown/wwan0qcdm0'...
Dec 17 12:54:10 06944405 ModemManager[454]: <dbg> [1765976050.325445] [modem0] cleaning up port 'wwan/wwan0mbim0'...
Dec 17 12:54:10 06944405 ModemManager[454]: <dbg> [1765976050.325529] [modem0] completely disposed
Dec 17 12:54:10 06944405 ModemManager[454]: <wrn> [1765976050.325562] [base-manager] couldn't create modem for device '/sys/devices/platform/soc@0/33800000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0': Failed to find a net port in the MBIM modem
Any Guidence on having ModemManager be able to work alongside the Modem would be appreciated.