From: Aleksander Morgado <aleksander@aleksander.es>
To: Jakub Kicinski <kuba@kernel.org>
Cc: Loic Poulain <loic.poulain@linaro.org>,
Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>,
Greg KH <gregkh@linuxfoundation.org>,
David Miller <davem@davemloft.net>,
linux-arm-msm <linux-arm-msm@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>,
Jeffrey Hugo <jhugo@codeaurora.org>,
Bhaumik Bhatt <bbhatt@codeaurora.org>,
Network Development <netdev@vger.kernel.org>
Subject: Re: [RESEND PATCH v18 0/3] userspace MHI client interface driver
Date: Tue, 9 Feb 2021 17:49:50 +0100 [thread overview]
Message-ID: <CAAP7ucLVVTUqMX4_jFvvYNXALHgHZmcvX4WQei8cPubfUgXKGQ@mail.gmail.com> (raw)
In-Reply-To: <20210209081744.43eea7b5@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Hey,
> On Tue, 9 Feb 2021 10:20:30 +0100 Aleksander Morgado wrote:
> > This may be a stupid suggestion, but would the integration look less a
> > backdoor if it would have been named "mhi_wwan" and it exposed already
> > all the AT+DIAG+QMI+MBIM+NMEA possible channels as chardevs, not just
> > QMI?
>
> What's DIAG?
DIAG/QCDM is an older protocol in Qualcomm based modems; in USB based
devices we would get a TTY that speaks this protocol. In legacy CDMA
modems this was required for actual device control (and ModemManager
has a libqcdm for that
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/tree/master/libqcdm)
but in all newest modems I'd say this is exclusively used for modem
trace retrieval (e.g. asking the modem to enable some internal traces
of the LTE stack which are downloaded in the host via this port). When
debugging issues with manufacturers, this is what they would ask you
to do, use this port to retrieve these traces (e.g. Quectel's QLog
program does that, each manufacturer keeps its own).
> Who's going to remember that this is a backdoor driver
> a year from now when Qualcomm sends a one liner patches which just
> adds a single ID to open another channel?
I'm obviously not going to argue about that possibility; although,
wouldn't it make more sense to discuss that whenever that happens?
This work is implemented in a very generic way probably, but it
focuses on WWAN control ports, which is what we need in userspace.
Right now this mhi_uci integration can be used for QMI control of the
modems, and I assume once that gets merged (if ever!), more patches
would arrive to enable AT, DIAG and MBIM control ports. The channels
associated to these WWAN control protocols have clearly defined
channel ids, and I believe the device itself chooses which channels
are exposed, so a device may e.g. say that it's going to expose only
the MBIM control port. This is also very manufacturer dependent I
think; I know for example that WWAN modules for laptops will probably
want to expose the MBIM channel instead of QMI, so that the same HW
integration is used in both Linux and Windows easily. The single and
generic mhi_uci integration for all these different WWAN control ports
would allow any of those combinations, very much like with USB devices
and different USB configurations.
Userspace is also ready for this integration, btw; at least libmbim
and libqmi don't have any problem with these chardevs, and
ModemManager has a branch ready to land to support this new
integration. A lot of new laptops that are already being sold since
last year come now with PCIe-only WWAN modules, and unfortunately I've
also seen different manufacturers pushing their own out-of-tree
variants of this same mhi_uci idea with better or worse luck. I
personally was very glad to see this work moving forward.
--
Aleksander
next prev parent reply other threads:[~2021-02-09 16:52 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-06 18:44 [RESEND PATCH v18 0/3] userspace MHI client interface driver Hemant Kumar
2021-01-06 18:44 ` [RESEND PATCH v18 1/3] bus: mhi: core: Move MHI_MAX_MTU to external header file Hemant Kumar
2021-01-06 18:44 ` [RESEND PATCH v18 2/3] docs: Add documentation for userspace client interface Hemant Kumar
2021-01-06 18:44 ` [RESEND PATCH v18 3/3] bus: mhi: Add userspace client interface driver Hemant Kumar
2021-01-13 15:26 ` [RESEND PATCH v18 0/3] userspace MHI " Manivannan Sadhasivam
2021-01-19 9:42 ` Manivannan Sadhasivam
2021-01-19 10:28 ` Greg KH
2021-01-27 15:15 ` Greg KH
2021-01-27 16:24 ` Bjorn Andersson
2021-02-01 10:55 ` Manivannan Sadhasivam
2021-02-01 11:15 ` Greg KH
2021-02-01 12:13 ` Manivannan Sadhasivam
2021-02-02 4:22 ` Manivannan Sadhasivam
2021-02-03 4:10 ` Jakub Kicinski
2021-02-03 4:15 ` Manivannan Sadhasivam
2021-02-03 18:05 ` Jakub Kicinski
2021-02-03 18:28 ` Loic Poulain
2021-02-03 18:40 ` Jakub Kicinski
2021-02-04 4:07 ` Manivannan Sadhasivam
2021-02-04 5:53 ` Bjorn Andersson
2021-02-09 9:20 ` Aleksander Morgado
2021-02-09 16:17 ` Jakub Kicinski
2021-02-09 16:49 ` Aleksander Morgado [this message]
2021-02-10 6:25 ` Manivannan Sadhasivam
2021-02-10 18:41 ` Jakub Kicinski
2021-02-10 19:18 ` Jeffrey Hugo
2021-02-10 22:08 ` Bjorn Andersson
2021-02-11 9:26 ` Aleksander Morgado
2021-02-28 14:12 ` Aleksander Morgado
2021-02-28 15:52 ` Manivannan Sadhasivam
2021-02-03 18:34 ` Bjorn Andersson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAAP7ucLVVTUqMX4_jFvvYNXALHgHZmcvX4WQei8cPubfUgXKGQ@mail.gmail.com \
--to=aleksander@aleksander.es \
--cc=bbhatt@codeaurora.org \
--cc=davem@davemloft.net \
--cc=gregkh@linuxfoundation.org \
--cc=jhugo@codeaurora.org \
--cc=kuba@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=loic.poulain@linaro.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).