From: Ping-Ke Shih <pkshih@realtek.com>
To: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Cc: "Lukas F. Hartmann" <lukas@mntre.com>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"jernej.skrabec@gmail.com" <jernej.skrabec@gmail.com>,
"ulf.hansson@linaro.org" <ulf.hansson@linaro.org>,
"kvalo@kernel.org" <kvalo@kernel.org>,
"tony0620emma@gmail.com" <tony0620emma@gmail.com>
Subject: RE: [PATCH] wifi: rtw88: sdio: Honor the host max_req_size in the RX path
Date: Thu, 27 Jul 2023 01:44:00 +0000 [thread overview]
Message-ID: <7738fcc180e6403ba4d0def0ae7ca31a@realtek.com> (raw)
In-Reply-To: <CAFBinCDRWJGr1F0vLj_=k7TYQmGOQRWS=3n1DDQwpxr5AYtt9Q@mail.gmail.com>
> -----Original Message-----
> From: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
> Sent: Thursday, July 27, 2023 1:38 AM
> To: Ping-Ke Shih <pkshih@realtek.com>
> Cc: Lukas F. Hartmann <lukas@mntre.com>; linux-wireless@vger.kernel.org; linux-kernel@vger.kernel.org;
> jernej.skrabec@gmail.com; ulf.hansson@linaro.org; kvalo@kernel.org; tony0620emma@gmail.com
> Subject: Re: [PATCH] wifi: rtw88: sdio: Honor the host max_req_size in the RX path
>
> Hello Ping-Ke,
>
> On Fri, Jul 14, 2023 at 2:34 AM Ping-Ke Shih <pkshih@realtek.com> wrote:
> [...]
> > > Here are the errors that lead up to this:
> > > http://dump.mntmn.com/rtw88-failure-1h-dmesg.txt
> >
> > Hi Martin,
> >
> > The dmesg shows that
> > "rtw_8822cs mmc2:0001:1: Failed to read 1536 byte(s) from SDIO port 0x000000d1"
> >
> > Shouldn't we return an error code (with proper error handling) instead of
> > just break the loop? Because 'buf' content isn't usable.
> In my opinion we are properly breaking the loop:
> "ret" will be non-zero so the error code is returned from
> rtw_sdio_read_port() to the caller.
> The (only) caller is rtw_sdio_rxfifo_recv() which sees the non-zero
> return code and aborts processing.
> What do you think?
You are correct.
I check the kernel log again. It might try to read two times for a large packet.
First read is 1536 bytes, but it failed:
[ 4002.096664] rtw_8822cs mmc2:0001:1: Failed to read 1536 byte(s) from SDIO port 0x000000d1
Second read is less byte, and it succeed, but skb->data content is incorrect. Then,
[ 4002.100140] rtw_8822cs mmc2:0001:1: unused phy status page (3)
[ 4002.105065] rtw_8822cs mmc2:0001:1: unused phy status page (2)
[ 4002.110862] ------------[ cut here ]------------
[ 4002.110868] Rate marked as a VHT rate but data is invalid: MCS: 0, NSS: 0
So, showing total size ('count' argument) might help to find the cause
or a workaround.
Ping-Ke
next prev parent reply other threads:[~2023-07-27 1:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-09 19:57 [PATCH] wifi: rtw88: sdio: Honor the host max_req_size in the RX path Martin Blumenstingl
2023-07-10 0:36 ` Ping-Ke Shih
[not found] ` <87pm4w3rjp.fsf@mntre.com>
2023-07-14 0:34 ` Ping-Ke Shih
2023-07-26 17:37 ` Martin Blumenstingl
2023-07-27 1:44 ` Ping-Ke Shih [this message]
2023-08-01 14:11 ` Kalle Valo
2023-08-02 0:27 ` Ping-Ke Shih
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=7738fcc180e6403ba4d0def0ae7ca31a@realtek.com \
--to=pkshih@realtek.com \
--cc=jernej.skrabec@gmail.com \
--cc=kvalo@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=lukas@mntre.com \
--cc=martin.blumenstingl@googlemail.com \
--cc=tony0620emma@gmail.com \
--cc=ulf.hansson@linaro.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