[ltp] RE: Verifying Linux compatibiliy for the LTE modems in the 2nd gen X1 Carbon

Peter FP Zhang linux-thinkpad@linux-thinkpad.org
Thu, 6 Mar 2014 01:59:10 -0800 (PST)


------=_Part_53282_32340118.1394099950458
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi Bj=C3=B8rn,

You answered my question too. :)
Long time ago I was ever eager to know why PC Linux can not recompile Andri=
od drivers of 3G/LTE directly. Thanks for your details about the interface =
difference.

From: Bj=C3=B8rn Mork [via Linux Thinkpad] [mailto:ml-node+s10952n21035h71@=
n7.nabble.com]
Sent: Wednesday, March 05, 2014 10:33 PM
To: Peter FP1 Zhang
Subject: Re: Verifying Linux compatibiliy for the LTE modems in the 2nd gen=
 X1 Carbon

James Knott <[hidden email]</user/SendEmail.jtp?type=3Dnode&node=3D21035&i=
=3D0>> writes:

> Bj=C3=B8rn Mork wrote:
>> Perfectly understandable. I'm not going to claim that there are many
>> Linux users who care about 3G & LTE, so I'm not surprised that no big
>> customers require it. Just judging by looking at my co-workers, who
>> mostly use Thinkpads with 3G modules and have free mobile broadband, I
>> do not see many real users. But there are some, including some Linux
>> users.
>
> One thing to bear in mind is that Android tablets & phones support 3G &
> LTE and Android is built on Linux, so the drivers are out there, somewher=
e.

Well, although both chips and the kernel is mostly the same, the
interfaces between them are actually quite different.  Laptop modems
interface to the host via USB (even if the physical slot is m.2 or
mini-PCIe), while the Android devices usually have a shared memory
interface between modem and host.  This makes the drivers pretty
different.  So you can't just take an Android driver and use it on a
laptop, even if the LTE chip is e.g. a Qualcomm MDM9200 or Intel XMM7160
in both systems.

But mobile broadband USB modems designed for Windows8 systems have to
support the CDC MBIM class.  And we do have a class driver for that in
Linux.  So in theory, the modems should all just work out of the box.

In practice we may have to change a few minor things though.  For
example, to support the MDM9200 based Sierra Wireless MC7710 we had to
allow a CDC MBIM function with no CDC Union descriptor (required by the
spec, but obviously not by Microsoft and therefore "forgotten" by
Sierra).  And we also had to make the driver terminate all transfers
with a short packet, even though the spec allows dropping the Zero
Length Packet on maximum length transfers.



Bj=C3=B8rn
--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad

________________________________
If you reply to this email, your message will be added to the discussion be=
low:
http://linux-thinkpad.10952.n7.nabble.com/Verifying-Linux-compatibiliy-for-=
the-LTE-modems-in-the-2nd-gen-X1-Carbon-tp21023p21035.html
To unsubscribe from Verifying Linux compatibiliy for the LTE modems in the =
2nd gen X1 Carbon, click here<http://linux-thinkpad.10952.n7.nabble.com/tem=
plate/NamlServlet.jtp?macro=3Dunsubscribe_by_code&node=3D21023&code=3Demhhb=
mdmcDFAbGVub3ZvLmNvbXwyMTAyM3wyMTEwNDQzMTg1>.
NAML<http://linux-thinkpad.10952.n7.nabble.com/template/NamlServlet.jtp?mac=
ro=3Dmacro_viewer&id=3Dinstant_html%21nabble%3Aemail.naml&base=3Dnabble.nam=
l.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble=
.view.web.template.NodeNamespace&breadcrumbs=3Dnotify_subscribers%21nabble%=
3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabb=
le%3Aemail.naml>




-----
If you meet any Linux compatibility issues on ThinkPads, please try to ping=
 me, I will check if there is anything I can help.
--
View this message in context: http://linux-thinkpad.10952.n7.nabble.com/Ver=
ifying-Linux-compatibiliy-for-the-LTE-modems-in-the-2nd-gen-X1-Carbon-tp210=
23p21044.html
Sent from the Linux Thinkpad mailing list archive at Nabble.com.
------=_Part_53282_32340118.1394099950458
Content-Type: text/html; charset=UTF8
Content-Transfer-Encoding: quoted-printable



<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8">
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->


<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span lang=3D"EN-US">Hi Bj=C3=B8rn,<o:p></o:p></span=
></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.5pt;font-=
family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp=
;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.5pt;font-=
family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">You answer=
ed my question too. :)<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.5pt;font-=
family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Long time =
ago I was ever eager to know why PC Linux can not recompile Andriod drivers=
 of 3G/LTE directly. Thanks for your details about the interface
 difference.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.5pt;font-=
family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp=
;</o:p></span></p>
<p class=3D"MsoNormal"><b><span lang=3D"EN-US" style=3D"font-size:10.0pt;fo=
nt-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span =
lang=3D"EN-US" style=3D"font-size:10.0pt;font-family:&quot;Tahoma&quot;,&qu=
ot;sans-serif&quot;"> Bj=C3=B8rn Mork [via Linux Thinkpad] [mailto:ml-node&=
#43;<a href=3D"/user/SendEmail.jtp?type=3Dnode&node=3D21044&i=3D0" target=
=3D"_top" rel=3D"nofollow" link=3D"external">[hidden email]</a>]
<br>
<b>Sent:</b> Wednesday, March 05, 2014 10:33 PM<br>
<b>To:</b> Peter FP1 Zhang<br>
<b>Subject:</b> Re: Verifying Linux compatibiliy for the LTE modems in the =
2nd gen X1 Carbon<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">James Knott &lt;<a href=3D"/use=
r/SendEmail.jtp?type=3Dnode&amp;node=3D21035&amp;i=3D0" target=3D"_top" rel=
=3D"nofollow" link=3D"external">[hidden email]</a>&gt; writes:
<o:p></o:p></span></p>
<div>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><br>
&gt; Bj=C3=B8rn Mork wrote: <br>
&gt;&gt; Perfectly understandable. I'm not going to claim that there are ma=
ny <br>
&gt;&gt; Linux users who care about 3G &amp; LTE, so I'm not surprised that=
 no big <br>
&gt;&gt; customers require it. Just judging by looking at my co-workers, wh=
o <br>
&gt;&gt; mostly use Thinkpads with 3G modules and have free mobile broadban=
d, I <br>
&gt;&gt; do not see many real users. But there are some, including some Lin=
ux <br>
&gt;&gt; users. <br>
&gt; <br>
&gt; One thing to bear in mind is that Android tablets &amp; phones support=
 3G &amp; <br>
&gt; LTE and Android is built on Linux, so the drivers are out there, somew=
here. <o:p>
</o:p></span></p>
</div>
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><span lang=3D"EN-US">=
<br>
Well, although both chips and the kernel is mostly the same, the <br>
interfaces between them are actually quite different. &nbsp;Laptop modems <=
br>
interface to the host via USB (even if the physical slot is m.2 or <br>
mini-PCIe), while the Android devices usually have a shared memory <br>
interface between modem and host. &nbsp;This makes the drivers pretty <br>
different. &nbsp;So you can't just take an Android driver and use it on a <=
br>
laptop, even if the LTE chip is e.g. a Qualcomm MDM9200 or Intel XMM7160 <b=
r>
in both systems. <br>
<br>
But mobile broadband USB modems designed for Windows8 systems have to <br>
support the CDC MBIM class. &nbsp;And we do have a class driver for that in=
 <br>
Linux. &nbsp;So in theory, the modems should all just work out of the box. =
<br>
<br>
In practice we may have to change a few minor things though. &nbsp;For <br>
example, to support the MDM9200 based Sierra Wireless MC7710 we had to <br>
allow a CDC MBIM function with no CDC Union descriptor (required by the <br=
>
spec, but obviously not by Microsoft and therefore &quot;forgotten&quot; by=
 <br>
Sierra). &nbsp;And we also had to make the driver terminate all transfers <=
br>
with a short packet, even though the spec allows dropping the Zero <br>
Length Packet on maximum length transfers. <br>
<br>
<br>
<br>
Bj=C3=B8rn <br>
-- <br>
The linux-thinkpad mailing list home page is at: <br>
<a href=3D"http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpa=
d" target=3D"_top" rel=3D"nofollow" link=3D"external">http://mailman.linux-=
thinkpad.org/mailman/listinfo/linux-thinkpad</a><br>
<br>
<o:p></o:p></span></p>
<div class=3D"MsoNormal" align=3D"center" style=3D"text-align:center"><span=
 lang=3D"EN-US">
<hr size=3D"1" width=3D"100%" noshade=3D"" style=3D"color:#CCCCCC" align=3D=
"center">
</span></div>
<div>
<div>
<p class=3D"MsoNormal"><b><span lang=3D"EN-US" style=3D"font-size:9.0pt;fon=
t-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#444444">If you re=
ply to this email, your message will be added to the discussion below:<o:p>=
</o:p></span></b></p>
</div>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:9.0pt;font-f=
amily:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#444444"><a href=3D"h=
ttp://linux-thinkpad.10952.n7.nabble.com/Verifying-Linux-compatibiliy-for-t=
he-LTE-modems-in-the-2nd-gen-X1-Carbon-tp21023p21035.html" target=3D"_top" =
rel=3D"nofollow" link=3D"external">http://linux-thinkpad.10952.n7.nabble.co=
m/Verifying-Linux-compatibiliy-for-the-LTE-modems-in-the-2nd-gen-X1-Carbon-=
tp21023p21035.html</a>
<o:p></o:p></span></p>
</div>
<div style=3D"margin-top:4.8pt">
<p class=3D"MsoNormal" style=3D"line-height:18.0pt"><span lang=3D"EN-US" st=
yle=3D"font-size:8.5pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot=
;;color:#666666">To unsubscribe from Verifying Linux compatibiliy for the L=
TE modems in the 2nd gen X1 Carbon,
<a href=3D"" target=3D"_top" rel=3D"nofollow" link=3D"external">
click here</a>.<br>
<a href=3D"http://linux-thinkpad.10952.n7.nabble.com/template/NamlServlet.j=
tp?macro=3Dmacro_viewer&amp;id=3Dinstant_html%21nabble%3Aemail.naml&amp;bas=
e=3Dnabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNa=
mespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs=3Dnotify_sub=
scribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_in=
stant_email%21nabble%3Aemail.naml" target=3D"_top" rel=3D"nofollow" link=3D=
"external"><span style=3D"font-size:7.0pt;font-family:&quot;Times New Roman=
&quot;,&quot;serif&quot;">NAML</span></a>
<o:p></o:p></span></p>
</div>
</div>




=09
=09
=09<div class=3D"signature" style=3D"margin-top:1em;color:#666666;font-size=
:11px;">
=09=09=09=09If you meet any Linux compatibility issues on ThinkPads, please=
 try to ping me, I will check if there is anything I can help.
=09=09=09</div>
<br/><hr align=3D"left" width=3D"300" />
View this message in context: <a href=3D"http://linux-thinkpad.10952.n7.nab=
ble.com/Verifying-Linux-compatibiliy-for-the-LTE-modems-in-the-2nd-gen-X1-C=
arbon-tp21023p21044.html">RE: Verifying Linux compatibiliy for the LTE mode=
ms in the 2nd gen X1 Carbon</a><br/>
Sent from the <a href=3D"http://linux-thinkpad.10952.n7.nabble.com/">Linux =
Thinkpad mailing list archive</a> at Nabble.com.<br/>
------=_Part_53282_32340118.1394099950458--