From: "Jernej Škrabec" <jernej.skrabec@gmail.com>
To: Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
Larry Finger <Larry.Finger@lwfinger.net>
Cc: linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: Driver for rtw8723ds
Date: Sat, 13 May 2023 12:23:17 +0200 [thread overview]
Message-ID: <13262218.uLZWGnKmhe@jernej-laptop> (raw)
In-Reply-To: <880bb4ed-f3a5-2d7f-db10-fec65087dd05@lwfinger.net>
Larry,
Dne sreda, 10. maj 2023 ob 23:47:24 CEST je Larry Finger napisal(a):
> On 5/10/23 16:07, Martin Blumenstingl wrote:
> > On Wed, May 10, 2023 at 12:02 AM Larry Finger <Larry.Finger@lwfinger.net> wrote:
> > [...]
> >> I added that patch to the driver. The user reports that he was able to do a ping
> >> and an nslookup before it crashed with the following in the log:
> > That's some positive news alongside the crash log: it seems that a
> > part of the driver works! :-)
> >
> >> [ 8.700626] skbuff: skb_over_panic: text:ffff8000011924ac len:3341 put:3341
> >> head:ffff000003b3c000 data:ffff000003b3c040 tail:0xd4d end:0x2c0 dev:<NULL>
> > [...]
> >> Somehow skb->tail was greater than skb->end. Unfortunately I do not have access
> >> to gdb to tell you what line corresponds to rtw_sdio_rx_skb+0x50 on the MangoPi
> >> MQ Quad.
> > I need to have a closer look at the pkg_offset and struct
> > rtw_rx_pkt_stat which we receive.
> > Recently my own MangoPI MQ-Quad arrived but I did not have the time to
> > set it up yet. I'll try to do so during the weekend so I can debug
> > this on my own.
> >
> > Please ping me next week in case I haven't provided any update until then.
>
> I have some test prints in to check for skb overrun. My initial indication is
> that the problem was in the c2h branch of rtw_sdio_rx_skb(), but my next run
> should verify that. My changes will do a pr_warn_once() when the problem
> happens, and then drop the skb.
>
> My contact reported that he had one run of 3 minutes before the problem
> happened, which is good news for most of the driver.
I may have discovered something interesting. rtl8723ds vendor driver has
following checks in RX data parsing code:
https://github.com/lwfinger/rtl8723ds/blob/master/hal/rtl8723d/sdio/rtl8723ds_recv.c#L83-L99
Those checks are absent in rtl8822bs vendor driver, which was my original
development platform for SDIO. This may indicate some kind of bug in FW
and/or HW.
I think that at least second check, which checks for exactly the case your
client experience, can be easily added and tested.
Best regards,
Jernej
next prev parent reply other threads:[~2023-05-13 10:23 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-30 16:51 Driver for rtw8723ds Larry Finger
2023-05-02 19:27 ` Jernej Škrabec
2023-05-04 19:25 ` Larry Finger
2023-05-04 19:45 ` Martin Blumenstingl
2023-05-04 20:13 ` Jernej Škrabec
2023-05-04 20:53 ` Larry Finger
2023-05-08 18:55 ` Larry Finger
2023-05-08 20:16 ` Martin Blumenstingl
2023-05-09 22:02 ` Larry Finger
2023-05-10 21:07 ` Martin Blumenstingl
2023-05-10 21:47 ` Larry Finger
2023-05-13 10:23 ` Jernej Škrabec [this message]
2023-05-13 19:55 ` Larry Finger
2023-05-13 20:13 ` Jernej Škrabec
2023-05-13 21:21 ` Larry Finger
2023-05-15 16:43 ` Jernej Škrabec
2023-05-15 20:23 ` Larry Finger
2023-05-15 20:37 ` Jernej Škrabec
2023-05-15 21:11 ` Martin Blumenstingl
2023-05-16 10:22 ` Martin Blumenstingl
2023-05-16 18:31 ` Larry Finger
2023-05-16 18:48 ` Martin Blumenstingl
2023-05-16 23:41 ` Larry Finger
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=13262218.uLZWGnKmhe@jernej-laptop \
--to=jernej.skrabec@gmail.com \
--cc=Larry.Finger@lwfinger.net \
--cc=linux-wireless@vger.kernel.org \
--cc=martin.blumenstingl@googlemail.com \
/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