Pci-e device support
Leo Liu
lliu at juniper.net
Tue Oct 1 20:23:15 UTC 2024
Thanks for the response!
Not having much insight of the PCIe driver, but it looks like it exposed different port for qmi.
It’s /dev/ mhi_0308_01.01.00_pipe_14 instead of /dev/wwan0qmi0.
I think the driver is mhi_netdev.
This is the output of lspci of the device:
0001:01:00.0 Unassigned class [ff00]: Qualcomm Technologies, Inc Device 0308
Subsystem: Device 18d7:0301
Flags: bus master, fast devsel, latency 0, IRQ 57
Memory at e0100000 (64-bit, non-prefetchable) [size=4K]
Memory at e0101000 (64-bit, non-prefetchable) [size=4K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable+ Count=4/32 Maskable+ 64bit+
Capabilities: [70] Express Endpoint, MSI 00
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: mhictrl
Kernel modules: mhi_pci_generic, mhictrl
My experience of using libqmi with the current qmi port of EM9293, is that most of the qmicli command works properly, except during `qmi-network start` command, it failed with:
Getting expected data format with 'qmicli --device-open-qmi -d /dev/mhi_0308_01.01.00_pipe_14 --get-expected-data-format'...
[01 May 2024, 00:59:10] -Warning ** [/dev/mhi_0308_01.01.00_pipe_14] couldn't detect transport type of port: unexpected port subsm
[01 May 2024, 00:59:10] -Warning ** [/dev/mhi_0308_01.01.00_pipe_14] requested QMI mode but unexpected transport type found
error: cannot get expected data format: Setting expected data format management is unsupported by the driver
Expected link layer protocol not retrieved: kernel unsupported
Subsequently, the command to start the network, wds-start-network, failed.
Any thoughts?
Best regards,
Leo
Juniper Business Use Only
From: Aleksander Morgado <aleksandermj at chromium.org>
Date: Tuesday, October 1, 2024 at 2:26 PM
To: Leo Liu <lliu at juniper.net>
Cc: libqmi-devel at lists.freedesktop.org <libqmi-devel at lists.freedesktop.org>
Subject: Re: Pci-e device support
[External Email. Be cautious of content]
Hey,
>
> I have another question. What is the status of libqmi supporting pci-e device? The reason I ask is that we have a EM9293 Sierra modem with pcie connection type.
>
>
>
> Using libqmi-1.32.2 on el9, it doesn’t seem to work properly. From the source codes of (1.30.8), it seems a lot of the codes are expecting USB type of driver/device.
>
>
>
> Is this true?
>
There is nothing in libqmi that prevents it from being used with PCI
devices, as long as the device is correctly managed by the kernel
drivers. E.g. For the EM9293 in PCIe mode, I would assume the
corresponding support needs to exist in the mhi kernel driver, and if
that's the case, then we would expect to see a /dev/wwan0qmi0 port
exposed. This port can be used with libqmi/qmicli without issues.
How is it not working properly in your case?
--
Aleksander
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20241001/d09559a9/attachment-0001.htm>
More information about the libqmi-devel
mailing list