I have enabled the MHI kmods and I can see that the modem is recognized and I get a /dev/wwan0at0 port along with the /dev/wwan0mbim0 and /dev/wwan0qdcm0 ports. If I configure the modem with the MBIM protocol, I can get it online.
I would like to use it in QMI mode for efficiency but I’m not getting the /dev/wwan0qmi0 port. Can anyone assist in understanding what do I need to do to get it working?
The channel config for PCIe is statically defined in the driver IIUC.
mhi_quectel_em1xx_channels is referenced by modem_quectel_em1xx_config, which again is referenced by both mhi_quectel_em1xx_info and mhi_quectel_rm5xx_info. The RM520N-GL entry in the pci_device_id table points to mhi_quectel_rm5xx_info.
So you end up with this channel map:
Why do you think QMI is better? I assume this modem supports the QMI MBIM service, so that all the requests are available? Are there any measurements comparing QMI and MBIM framing on the PCIe bus?
Since I patched the vendor/subvendor of my specific SKU of modem in the code, I might as well try to patch the channels but - to answer your question, no, I don't have -any comparison between the two.
I was trying to replicate the setup I had with USB - that used QMI - in PCIe. The curious thing is that the usbnet setting of the modem is set to QMI/RMNET, not MBIM. That's why I get confused on why it works with MBIM.