netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Daniele Palmas <dnlplm@gmail.com>
To: Loic Poulain <loic.poulain@oss.qualcomm.com>
Cc: Slark Xiao <slark_xiao@163.com>,
	Sergey Ryazanov <ryazanov.s.a@gmail.com>,
	 Muhammad Nuzaihan <zaihan@unrealasia.net>,
	Johannes Berg <johannes@sipsolutions.net>,
	 Andrew Lunn <andrew+netdev@lunn.ch>,
	Eric Dumazet <edumazet@google.com>,
	 "David S . Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	 netdev@vger.kernel.org, Qiang Yu <quic_qianyu@quicinc.com>,
	 Manivannan Sadhasivam <mani@kernel.org>,
	Johan Hovold <johan@kernel.org>
Subject: Re: Re: [RFC PATCH v2 0/6] net: wwan: add NMEA port type support
Date: Tue, 30 Sep 2025 09:10:28 +0200	[thread overview]
Message-ID: <CAGRyCJE28yf-rrfkFbzu44ygLEvoUM7fecK1vnrghjG_e9UaRA@mail.gmail.com> (raw)
In-Reply-To: <CAGRyCJG-JvPu5Gizn8qEZy0QNYgw6yVxz6_KW0K0HUfhZsrmbw@mail.gmail.com>

Hi Loic and Sergey,

Il giorno lun 22 set 2025 alle ore 22:19 Daniele Palmas
<dnlplm@gmail.com> ha scritto:
>
> Hi Loic,
>
> Il giorno lun 22 set 2025 alle ore 10:03 Loic Poulain
> <loic.poulain@oss.qualcomm.com> ha scritto:
> >
> > Adding Daniele,
> >
> > On Tue, Sep 16, 2025 at 9:23 AM Slark Xiao <slark_xiao@163.com> wrote:
> > >
> > >
> > > At 2025-09-15 00:43:05, "Sergey Ryazanov" <ryazanov.s.a@gmail.com> wrote:
> > > >Hi Slark,
> > > >
> > > >On 9/11/25 05:42, Slark Xiao wrote:
> > > >> At 2025-06-30 15:30:14, "Loic Poulain" <loic.poulain@oss.qualcomm.com> wrote:
> > > >>> On Sun, Jun 29, 2025 at 12:07 PM Sergey Ryazanov <ryazanov.s.a@gmail.com> wrote:
> > > >>>> On 6/29/25 05:50, Loic Poulain wrote:
> > > >>>>> On Tue, Jun 24, 2025 at 11:39 PM Sergey Ryazanov <ryazanov.s.a@gmail.com> wrote:
> > > >>>>>> The series introduces a long discussed NMEA port type support for the
> > > >>>>>> WWAN subsystem. There are two goals. From the WWAN driver perspective,
> > > >>>>>> NMEA exported as any other port type (e.g. AT, MBIM, QMI, etc.). From
> > > >>>>>> user space software perspective, the exported chardev belongs to the
> > > >>>>>> GNSS class what makes it easy to distinguish desired port and the WWAN
> > > >>>>>> device common to both NMEA and control (AT, MBIM, etc.) ports makes it
> > > >>>>>> easy to locate a control port for the GNSS receiver activation.
> > > >>>>>>
> > > >>>>>> Done by exporting the NMEA port via the GNSS subsystem with the WWAN
> > > >>>>>> core acting as proxy between the WWAN modem driver and the GNSS
> > > >>>>>> subsystem.
> > > >>>>>>
> > > >>>>>> The series starts from a cleanup patch. Then two patches prepares the
> > > >>>>>> WWAN core for the proxy style operation. Followed by a patch introding a
> > > >>>>>> new WWNA port type, integration with the GNSS subsystem and demux. The
> > > >>>>>> series ends with a couple of patches that introduce emulated EMEA port
> > > >>>>>> to the WWAN HW simulator.
> > > >>>>>>
> > > >>>>>> The series is the product of the discussion with Loic about the pros and
> > > >>>>>> cons of possible models and implementation. Also Muhammad and Slark did
> > > >>>>>> a great job defining the problem, sharing the code and pushing me to
> > > >>>>>> finish the implementation. Many thanks.
> > > >>>>>>
> > > >>>>>> Comments are welcomed.
> >
> > Daniele, do you think this feature could be relevant for Telit
> > modules, assuming any of them expose an NMEA channel?
> > Is that something you could test?
> >
>
> yeah, I think this is something I can test, not completely sure about when.
>
> But I'll try to have a look at this at worst in the next week.
>

I've finally found the time to have a try and after adding basic
support for the NMEA channels to mhi_pci_generic and mhi_wwan_ctrl,
besides a small build problem when applying the patches to net-next,
solved by changing:

diff --git a/drivers/net/wwan/wwan_hwsim.c b/drivers/net/wwan/wwan_hwsim.c
index a748b3ea1602..e4b1bbff9af2 100644
--- a/drivers/net/wwan/wwan_hwsim.c
+++ b/drivers/net/wwan/wwan_hwsim.c
@@ -236,7 +236,7 @@ static void wwan_hwsim_nmea_emul_timer(struct timer_list *t)
        /* 43.74754722298909 N 11.25759835922875 E in DMM format */
        static const unsigned int coord[4 * 2] = { 43, 44, 8528, 0,
                                                   11, 15, 4559, 0 };
-       struct wwan_hwsim_port *port = from_timer(port, t, nmea_emul.timer);
+       struct wwan_hwsim_port *port = timer_container_of(port, t,
nmea_emul.timer);

it's basically working fine in operative mode though there's an issue
at the host shutdown, not able to properly terminate.

Unfortunately I was not able to gather useful text logs besides the picture at

https://drive.google.com/file/d/13ObWikuiMMUENl2aZerzxFBg57OB1KNj/view?usp=sharing

showing an oops with the following call stack:

__simple_recursive_removal
preempt_count_add
__pfx_remove_one
wwan_remove_port
mhi_wwan_ctrl_remove
mhi_driver_remove
device_remove
device_del

but the issue is systematic. Any idea?

At the moment I don't have the time to debug this deeper, I don't even
exclude the chance that it could be somehow related to the modem. I
would like to further look at this, but I'm not sure exactly when I
can....

Thanks,
Daniele

> Regards,
> Daniele
>
> > Regards,
> > Loic

  reply	other threads:[~2025-09-30  7:22 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-24 21:37 [RFC PATCH v2 0/6] net: wwan: add NMEA port type support Sergey Ryazanov
2025-06-24 21:37 ` [RFC PATCH v2 1/6] net: wwan: core: remove unused port_id field Sergey Ryazanov
2025-06-24 21:37 ` [RFC PATCH v2 2/6] net: wwan: core: split port creation and registration Sergey Ryazanov
2025-06-24 21:37 ` [RFC PATCH v2 3/6] net: wwan: core: split port unregister and stop Sergey Ryazanov
2025-06-24 21:37 ` [RFC PATCH v2 4/6] net: wwan: add NMEA port support Sergey Ryazanov
2025-06-24 21:38 ` [RFC PATCH v2 5/6] net: wwan: hwsim: refactor to support more port types Sergey Ryazanov
2025-06-24 21:38 ` [RFC PATCH v2 6/6] net: wwan: hwsim: support NMEA port emulation Sergey Ryazanov
2025-06-29  2:50 ` [RFC PATCH v2 0/6] net: wwan: add NMEA port type support Loic Poulain
2025-06-29 10:07   ` Sergey Ryazanov
2025-06-30  7:30     ` Loic Poulain
2025-09-11  2:42       ` Slark Xiao
2025-09-14 16:43         ` Sergey Ryazanov
2025-09-16  7:23           ` Slark Xiao
2025-09-22  8:03             ` Loic Poulain
2025-09-22 20:19               ` Daniele Palmas
2025-09-30  7:10                 ` Daniele Palmas [this message]
2025-10-02 15:44                   ` Loic Poulain
2025-10-08 21:01                     ` Sergey Ryazanov
2025-10-10 13:47                       ` Daniele Palmas
2025-10-12 22:55                         ` Sergey Ryazanov
2025-11-14  7:08                           ` Slark Xiao
2025-11-19 11:27                             ` Loic Poulain
2025-11-24  6:57                               ` Slark Xiao

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=CAGRyCJE28yf-rrfkFbzu44ygLEvoUM7fecK1vnrghjG_e9UaRA@mail.gmail.com \
    --to=dnlplm@gmail.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=johan@kernel.org \
    --cc=johannes@sipsolutions.net \
    --cc=kuba@kernel.org \
    --cc=loic.poulain@oss.qualcomm.com \
    --cc=mani@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=quic_qianyu@quicinc.com \
    --cc=ryazanov.s.a@gmail.com \
    --cc=slark_xiao@163.com \
    --cc=zaihan@unrealasia.net \
    /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).