mirror of https://lore.kernel.org/linux-amlogic/
 help / color / mirror / Atom feed
* VIM1's wifi doesn't work after update to Linux 6.1
@ 2022-12-08 13:02 Zhang Ning
  2022-12-08 21:40 ` Martin Blumenstingl
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Zhang Ning @ 2022-12-08 13:02 UTC (permalink / raw)
  To: linux-amlogic

Hi,

After update khadas VIM1's kernel to 6.1-rc7, WIFI stop working, with
below log:

[  363.591315] INFO: task kworker/0:2:157 blocked for more than 120 seconds.
[  363.598130]       Tainted: G         C         6.1.0-0-arm64 #1 Debian 6.1~rc7-2~exp1
[  363.605870] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  363.613682] task:kworker/0:2     state:D stack:0     pid:157   ppid:2      flags:0x00000008
[  363.621938] Workqueue: events sdio_irq_work
[  363.625989] Call trace:
[  363.628294]  __switch_to+0xe4/0x160
[  363.631812]  __schedule+0x340/0x970
[  363.635300]  schedule+0x58/0xf0
[  363.638351]  __mmc_claim_host+0x104/0x290
[  363.642371]  sdio_irq_work+0x2c/0x90
[  363.645861]  process_one_work+0x1f4/0x460
[  363.649879]  worker_thread+0x188/0x4d0
[  363.653547]  kthread+0xe0/0xe4
[  363.656523]  ret_from_fork+0x10/0x20
[  363.661253] INFO: task ksdioirqd/mmc2:408 blocked for more than 121 seconds.
[  363.668216]       Tainted: G         C         6.1.0-0-arm64 #1 Debian 6.1~rc7-2~exp1
[  363.674977] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  363.682750] task:ksdioirqd/mmc2  state:D stack:0     pid:408   ppid:2      flags:0x00000008
[  363.690961] Call trace:
[  363.693272]  __switch_to+0xe4/0x160
[  363.696715]  __schedule+0x340/0x970
[  363.700154]  schedule+0x58/0xf0
[  363.703285]  __mmc_claim_host+0x104/0x290
[  363.707243]  sdio_irq_thread+0x84/0x204
[  363.711000]  kthread+0xe0/0xe4
[  363.714056]  ret_from_fork+0x10/0x20

I searched linux-wireless and linux-amlogic maillist no similar issue
reported.

I applied "WIP-arm64-dts-meson-set-p212-p23x-q20x-SDIO-to-100MH.patch"
to VIM1's kernel 6.1.0-rc7, is it related?

thanks.
Ning.

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: VIM1's wifi doesn't work after update to Linux 6.1
  2022-12-08 13:02 VIM1's wifi doesn't work after update to Linux 6.1 Zhang Ning
@ 2022-12-08 21:40 ` Martin Blumenstingl
  2022-12-08 23:32   ` Zhang Ning
                     ` (2 more replies)
  2022-12-18  2:00 ` Zhang Ning
  2022-12-25  1:14 ` Update: " Zhang Ning
  2 siblings, 3 replies; 8+ messages in thread
From: Martin Blumenstingl @ 2022-12-08 21:40 UTC (permalink / raw)
  To: Zhang Ning; +Cc: linux-amlogic

Hello Ning,

On Thu, Dec 8, 2022 at 2:02 PM Zhang Ning <zhangn1985@outlook.com> wrote:
> After update khadas VIM1's kernel to 6.1-rc7, WIFI stop working, with
> below log:
[...]
That's unfortunate. Have you tried reverting commit 066ecde6d826b4
"mmc: meson-gx: add SDIO interrupt support"? I'm not saying that
reverting that patch is the correct way to fix this issue. It's one of
the few recent driver changes though, so at least it's a starting
point.

> I applied "WIP-arm64-dts-meson-set-p212-p23x-q20x-SDIO-to-100MH.patch"
> to VIM1's kernel 6.1.0-rc7, is it related?
Have you tried without that patch as well?


Best regards,
Martin

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: VIM1's wifi doesn't work after update to Linux 6.1
  2022-12-08 21:40 ` Martin Blumenstingl
@ 2022-12-08 23:32   ` Zhang Ning
  2022-12-09  0:26   ` Zhang Ning
       [not found]   ` <Y5KAxhvFzvoNYL2j@orangepipc>
  2 siblings, 0 replies; 8+ messages in thread
From: Zhang Ning @ 2022-12-08 23:32 UTC (permalink / raw)
  To: Martin Blumenstingl; +Cc: linux-amlogic

On Thu, Dec 08, 2022 at 10:40:26PM +0100, Martin Blumenstingl wrote:
> Hello Ning,
> 
> On Thu, Dec 8, 2022 at 2:02 PM Zhang Ning <zhangn1985@outlook.com> wrote:
> > After update khadas VIM1's kernel to 6.1-rc7, WIFI stop working, with
> > below log:
> [...]
> That's unfortunate. Have you tried reverting commit 066ecde6d826b4
> "mmc: meson-gx: add SDIO interrupt support"? I'm not saying that

yes, I will try revert this patch.

> reverting that patch is the correct way to fix this issue. It's one of
> the few recent driver changes though, so at least it's a starting
> point.
> 
> > I applied "WIP-arm64-dts-meson-set-p212-p23x-q20x-SDIO-to-100MH.patch"
> > to VIM1's kernel 6.1.0-rc7, is it related?
> Have you tried without that patch as well?
> 
just tried without this patch, still timeout.
> 
> Best regards,
> Martin

thank you.
Ning.

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: VIM1's wifi doesn't work after update to Linux 6.1
  2022-12-08 21:40 ` Martin Blumenstingl
  2022-12-08 23:32   ` Zhang Ning
@ 2022-12-09  0:26   ` Zhang Ning
       [not found]   ` <Y5KAxhvFzvoNYL2j@orangepipc>
  2 siblings, 0 replies; 8+ messages in thread
From: Zhang Ning @ 2022-12-09  0:26 UTC (permalink / raw)
  To: Martin Blumenstingl; +Cc: linux-amlogic

On Thu, Dec 08, 2022 at 10:40:26PM +0100, Martin Blumenstingl wrote:
> Hello Ning,
> 
> On Thu, Dec 8, 2022 at 2:02 PM Zhang Ning <zhangn1985@outlook.com> wrote:
> > After update khadas VIM1's kernel to 6.1-rc7, WIFI stop working, with
> > below log:
> [...]
> That's unfortunate. Have you tried reverting commit 066ecde6d826b4
> "mmc: meson-gx: add SDIO interrupt support"? I'm not saying that
> reverting that patch is the correct way to fix this issue. It's one of
> the few recent driver changes though, so at least it's a starting
> point.
> 
> > I applied "WIP-arm64-dts-meson-set-p212-p23x-q20x-SDIO-to-100MH.patch"
> > to VIM1's kernel 6.1.0-rc7, is it related?
> Have you tried without that patch as well?

I have tried revert 066ecde6d826b4, and remove SDIO-to-100MH.patch,
rebuild meson_gx_mmc and dtb, replace original, this issue still
happens.

BR.
Ning.
> 
> 
> Best regards,
> Martin

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: VIM1's wifi doesn't work after update to Linux 6.1
       [not found]   ` <Y5KAxhvFzvoNYL2j@orangepipc>
@ 2022-12-09  0:45     ` Zhang Ning
  0 siblings, 0 replies; 8+ messages in thread
From: Zhang Ning @ 2022-12-09  0:45 UTC (permalink / raw)
  To: Martin Blumenstingl, nick; +Cc: linux-amlogic

I find a issue in linux-wireless:
https://www.spinics.net/lists/linux-wireless/msg229742.html
same timeout, but it says brcm firmware crash.

but I don't see any firmware crash log, (I don't know whether crash log
would goto linux console)

@Nick, do you have time to try this issue in your side, and is it
possible to ask your supplier for newer firmware?

BR.
Ning.

On Fri, Dec 09, 2022 at 08:26:51AM +0800, Zhang Ning wrote:
> On Thu, Dec 08, 2022 at 10:40:26PM +0100, Martin Blumenstingl wrote:
> > Hello Ning,
> > 
> > On Thu, Dec 8, 2022 at 2:02 PM Zhang Ning <zhangn1985@outlook.com> wrote:
> > > After update khadas VIM1's kernel to 6.1-rc7, WIFI stop working, with
> > > below log:
> > [...]
> > That's unfortunate. Have you tried reverting commit 066ecde6d826b4
> > "mmc: meson-gx: add SDIO interrupt support"? I'm not saying that
> > reverting that patch is the correct way to fix this issue. It's one of
> > the few recent driver changes though, so at least it's a starting
> > point.
> > 
> > > I applied "WIP-arm64-dts-meson-set-p212-p23x-q20x-SDIO-to-100MH.patch"
> > > to VIM1's kernel 6.1.0-rc7, is it related?
> > Have you tried without that patch as well?
> 
> I have tried revert 066ecde6d826b4, and remove SDIO-to-100MH.patch,
> rebuild meson_gx_mmc and dtb, replace original, this issue still
> happens.
> 
> BR.
> Ning.
> > 
> > 
> > Best regards,
> > Martin

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: VIM1's wifi doesn't work after update to Linux 6.1
  2022-12-08 13:02 VIM1's wifi doesn't work after update to Linux 6.1 Zhang Ning
  2022-12-08 21:40 ` Martin Blumenstingl
@ 2022-12-18  2:00 ` Zhang Ning
  2022-12-25  1:14 ` Update: " Zhang Ning
  2 siblings, 0 replies; 8+ messages in thread
From: Zhang Ning @ 2022-12-18  2:00 UTC (permalink / raw)
  To: linux-amlogic

My VIM3 also meet same problem.


On Thu, Dec 08, 2022 at 09:02:00PM +0800, Zhang Ning wrote:
> Hi,
> 
> After update khadas VIM1's kernel to 6.1-rc7, WIFI stop working, with
> below log:
> 
> [  363.591315] INFO: task kworker/0:2:157 blocked for more than 120 seconds.
> [  363.598130]       Tainted: G         C         6.1.0-0-arm64 #1 Debian 6.1~rc7-2~exp1
> [  363.605870] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
> [  363.613682] task:kworker/0:2     state:D stack:0     pid:157   ppid:2      flags:0x00000008
> [  363.621938] Workqueue: events sdio_irq_work
> [  363.625989] Call trace:
> [  363.628294]  __switch_to+0xe4/0x160
> [  363.631812]  __schedule+0x340/0x970
> [  363.635300]  schedule+0x58/0xf0
> [  363.638351]  __mmc_claim_host+0x104/0x290
> [  363.642371]  sdio_irq_work+0x2c/0x90
> [  363.645861]  process_one_work+0x1f4/0x460
> [  363.649879]  worker_thread+0x188/0x4d0
> [  363.653547]  kthread+0xe0/0xe4
> [  363.656523]  ret_from_fork+0x10/0x20
> [  363.661253] INFO: task ksdioirqd/mmc2:408 blocked for more than 121 seconds.
> [  363.668216]       Tainted: G         C         6.1.0-0-arm64 #1 Debian 6.1~rc7-2~exp1
> [  363.674977] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
> [  363.682750] task:ksdioirqd/mmc2  state:D stack:0     pid:408   ppid:2      flags:0x00000008
> [  363.690961] Call trace:
> [  363.693272]  __switch_to+0xe4/0x160
> [  363.696715]  __schedule+0x340/0x970
> [  363.700154]  schedule+0x58/0xf0
> [  363.703285]  __mmc_claim_host+0x104/0x290
> [  363.707243]  sdio_irq_thread+0x84/0x204
> [  363.711000]  kthread+0xe0/0xe4
> [  363.714056]  ret_from_fork+0x10/0x20
> 
> I searched linux-wireless and linux-amlogic maillist no similar issue
> reported.
> 
> I applied "WIP-arm64-dts-meson-set-p212-p23x-q20x-SDIO-to-100MH.patch"
> to VIM1's kernel 6.1.0-rc7, is it related?
> 
> thanks.
> Ning.

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Update: Re: VIM1's wifi doesn't work after update to Linux 6.1
  2022-12-08 13:02 VIM1's wifi doesn't work after update to Linux 6.1 Zhang Ning
  2022-12-08 21:40 ` Martin Blumenstingl
  2022-12-18  2:00 ` Zhang Ning
@ 2022-12-25  1:14 ` Zhang Ning
  2022-12-25  2:42   ` Zhang Ning
  2 siblings, 1 reply; 8+ messages in thread
From: Zhang Ning @ 2022-12-25  1:14 UTC (permalink / raw)
  To: linux-amlogic; +Cc: martin.blumenstingl, nick

Hi, All

In previous emails, I heard WIFI works fine.

I asked Nick for their tree for linux-6.1.
(due to their tree have some package patches, which make fail to build
deb, I picked other patches)
here is my tree: https://github.com/zhangn1985/linux-stable.git

I build it in an arm64 chroot env (faster than real arm64 board), with below commands:
```
make kvims_defconfig
make bindeb-pkg -j`nproc`
```

install to my VIM1, connect it to WIFI router and run:
```
while true; do curl www.baidu.com; done
```

it stucks after 3mins, same logs shown in previous email.

here is my brcm firmware md5:
501ca4e8307ad8e71c32f0d24369bada  brcmfmac43455-sdio.bin
d3ad92472ef030c3897062ff809a9083  brcmfmac43455-sdio.txt

BR.
Ning.



On Thu, Dec 08, 2022 at 09:02:00PM +0800, Zhang Ning wrote:
> Hi,
> 
> After update khadas VIM1's kernel to 6.1-rc7, WIFI stop working, with
> below log:
> 
> [  363.591315] INFO: task kworker/0:2:157 blocked for more than 120 seconds.
> [  363.598130]       Tainted: G         C         6.1.0-0-arm64 #1 Debian 6.1~rc7-2~exp1
> [  363.605870] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
> [  363.613682] task:kworker/0:2     state:D stack:0     pid:157   ppid:2      flags:0x00000008
> [  363.621938] Workqueue: events sdio_irq_work
> [  363.625989] Call trace:
> [  363.628294]  __switch_to+0xe4/0x160
> [  363.631812]  __schedule+0x340/0x970
> [  363.635300]  schedule+0x58/0xf0
> [  363.638351]  __mmc_claim_host+0x104/0x290
> [  363.642371]  sdio_irq_work+0x2c/0x90
> [  363.645861]  process_one_work+0x1f4/0x460
> [  363.649879]  worker_thread+0x188/0x4d0
> [  363.653547]  kthread+0xe0/0xe4
> [  363.656523]  ret_from_fork+0x10/0x20
> [  363.661253] INFO: task ksdioirqd/mmc2:408 blocked for more than 121 seconds.
> [  363.668216]       Tainted: G         C         6.1.0-0-arm64 #1 Debian 6.1~rc7-2~exp1
> [  363.674977] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
> [  363.682750] task:ksdioirqd/mmc2  state:D stack:0     pid:408   ppid:2      flags:0x00000008
> [  363.690961] Call trace:
> [  363.693272]  __switch_to+0xe4/0x160
> [  363.696715]  __schedule+0x340/0x970
> [  363.700154]  schedule+0x58/0xf0
> [  363.703285]  __mmc_claim_host+0x104/0x290
> [  363.707243]  sdio_irq_thread+0x84/0x204
> [  363.711000]  kthread+0xe0/0xe4
> [  363.714056]  ret_from_fork+0x10/0x20
> 
> I searched linux-wireless and linux-amlogic maillist no similar issue
> reported.
> 
> I applied "WIP-arm64-dts-meson-set-p212-p23x-q20x-SDIO-to-100MH.patch"
> to VIM1's kernel 6.1.0-rc7, is it related?
> 
> thanks.
> Ning.

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Update: Re: VIM1's wifi doesn't work after update to Linux 6.1
  2022-12-25  1:14 ` Update: " Zhang Ning
@ 2022-12-25  2:42   ` Zhang Ning
  0 siblings, 0 replies; 8+ messages in thread
From: Zhang Ning @ 2022-12-25  2:42 UTC (permalink / raw)
  To: linux-amlogic; +Cc: martin.blumenstingl, nick

On Sun, Dec 25, 2022 at 09:14:56AM +0800, Zhang Ning wrote:
> Hi, All
> 
> In previous emails, I heard WIFI works fine.
> 
> I asked Nick for their tree for linux-6.1.
> (due to their tree have some package patches, which make fail to build
> deb, I picked other patches)
> here is my tree: https://github.com/zhangn1985/linux-stable.git

bisected: "mmc: meson-gx: add SDIO interrupt support", which is pointed
out by Martin, I don't know why I'm wrong in first try.

> 
> I build it in an arm64 chroot env (faster than real arm64 board), with below commands:
> ```
> make kvims_defconfig
> make bindeb-pkg -j`nproc`
> ```
> 
> install to my VIM1, connect it to WIFI router and run:
> ```
> while true; do curl www.baidu.com; done
> ```
> 
> it stucks after 3mins, same logs shown in previous email.
> 
> here is my brcm firmware md5:
> 501ca4e8307ad8e71c32f0d24369bada  brcmfmac43455-sdio.bin
> d3ad92472ef030c3897062ff809a9083  brcmfmac43455-sdio.txt
> 
> BR.
> Ning.
> 

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-12-25  3:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-08 13:02 VIM1's wifi doesn't work after update to Linux 6.1 Zhang Ning
2022-12-08 21:40 ` Martin Blumenstingl
2022-12-08 23:32   ` Zhang Ning
2022-12-09  0:26   ` Zhang Ning
     [not found]   ` <Y5KAxhvFzvoNYL2j@orangepipc>
2022-12-09  0:45     ` Zhang Ning
2022-12-18  2:00 ` Zhang Ning
2022-12-25  1:14 ` Update: " Zhang Ning
2022-12-25  2:42   ` Zhang Ning

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®