<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}
@font-face
{font-family:"\@DengXian";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:10.0pt;
font-family:"Aptos",sans-serif;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks for the response!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Not having much insight of the PCIe driver, but it looks like it exposed different port for qmi.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">It’s /dev/</span> <span style="font-size:11.0pt">
mhi_0308_01.01.00_pipe_14 instead of /dev/wwan0qmi0. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I think the driver is mhi_netdev.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">This is the output of lspci of the device:<br>
0001:01:00.0 Unassigned class [ff00]: Qualcomm Technologies, Inc Device 0308<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> Subsystem: Device 18d7:0301<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> Flags: bus master, fast devsel, latency 0, IRQ 57<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> Memory at e0100000 (64-bit, non-prefetchable) [size=4K]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> Memory at e0101000 (64-bit, non-prefetchable) [size=4K]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> Capabilities: [40] Power Management version 3<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> Capabilities: [50] MSI: Enable+ Count=4/32 Maskable+ 64bit+<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> Capabilities: [70] Express Endpoint, MSI 00<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> Capabilities: [100] Advanced Error Reporting<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> Capabilities: [148] Secondary PCI Express<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> Capabilities: [168] Physical Layer 16.0 GT/s <?><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> Capabilities: [18c] Lane Margining at the Receiver <?><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> Capabilities: [19c] Transaction Processing Hints<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> Capabilities: [228] Latency Tolerance Reporting<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> Capabilities: [230] L1 PM Substates<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> Capabilities: [240] Data Link Feature <?><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> Kernel driver in use: mhictrl<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> Kernel modules: mhi_pci_generic, mhictrl<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">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:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt">Getting expected data format with 'qmicli --device-open-qmi -d /dev/mhi_0308_01.01.00_pipe_14 --get-expected-data-format'...</span></b><span style="font-size:11.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt">[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</span></b><span style="font-size:11.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt">[01 May 2024, 00:59:10] -Warning ** [/dev/mhi_0308_01.01.00_pipe_14] requested QMI mode but unexpected transport type found</span></b><span style="font-size:11.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt">error: cannot get expected data format: Setting expected data format management is unsupported by the driver</span></b><span style="font-size:11.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt">Expected link layer protocol not retrieved: kernel unsupported<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Subsequently, the command to start the network, wds-start-network, failed.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Any thoughts?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Leo<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div><br>
<p style="font-family:Calibri;font-size:7pt;color:#000000;margin:5pt;font-style:normal;font-weight:normal;text-decoration:none;" align="Center">
Juniper Business Use Only<br>
</p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Aleksander Morgado <aleksandermj@chromium.org><br>
<b>Date: </b>Tuesday, October 1, 2024 at 2:26</span><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:black"> </span><span style="font-size:12.0pt;color:black">PM<br>
<b>To: </b>Leo Liu <lliu@juniper.net><br>
<b>Cc: </b>libqmi-devel@lists.freedesktop.org <libqmi-devel@lists.freedesktop.org><br>
<b>Subject: </b>Re: Pci-e device support<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">[External Email. Be cautious of content]<br>
<br>
<br>
Hey,<br>
<br>
><br>
> 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.<br>
><br>
><br>
><br>
> 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.<br>
><br>
><br>
><br>
> Is this true?<br>
><br>
<br>
There is nothing in libqmi that prevents it from being used with PCI<br>
devices, as long as the device is correctly managed by the kernel<br>
drivers. E.g. For the EM9293 in PCIe mode, I would assume the<br>
corresponding support needs to exist in the mhi kernel driver, and if<br>
that's the case, then we would expect to see a /dev/wwan0qmi0 port<br>
exposed. This port can be used with libqmi/qmicli without issues.<br>
<br>
How is it not working properly in your case?<br>
<br>
<br>
--<br>
Aleksander<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>