All of lore.kernel.org
 help / color / mirror / Atom feed
* [BUG] mwifiex sdio wifi crashes on samsung peach pi chromebook
@ 2021-10-22 10:50 Milan P. Stanić
  2021-10-26 20:55 ` Brian Norris
  0 siblings, 1 reply; 6+ messages in thread
From: Milan P. Stanić @ 2021-10-22 10:50 UTC (permalink / raw)
  To: linux-wireless
  Cc: Amitkumar Karwar, Ganapathi Bhat, Sharvari Harisangam, Xinming Hu

Hi,

[ sorry if I send this to wrong address but you are listed as
  maintainers for MARVELL MWIFIEX WIRELESS DRIVER ]

On my chromebook samsung peach pi (exynos-5800) wifi driver stops to
work at random time, sometimes after few hours and sometimes after day
or two.

dmesg shows this (and repeating till reboot):
----------------------------------------------
[ 3718.465572] mwifiex_sdio mmc1:0001:1: host_to_card, write iomem      (1) failed: -110
[ 3718.465925] mwifiex_sdio mmc1:0001:1: host_to_card, write iomem      (2) failed: -110
[ 3718.466262] mwifiex_sdio mmc1:0001:1: host_to_card, write iomem      (3) failed: -110
[ 3718.466340] mwifiex_sdio mmc1:0001:1: mwifiex_write_data_async failed: 0xFFFFFFFF
[ 3718.916823] mwifiex_sdio mmc1:0001:1: read mp_regs failed
[ 3718.917338] mwifiex_sdio mmc1:0001:1: host_to_card, write iomem      (1) failed: -110
[ 3718.917522] mwifiex_sdio mmc1:0001:1: host_to_card, write iomem      (2) failed: -110
[ 3718.917689] mwifiex_sdio mmc1:0001:1: host_to_card, write iomem      (3) failed: -110
[ 3718.917804] mwifiex_sdio mmc1:0001:1: mwifiex_write_data_async failed: 0xFFFFFFFF
[ 3718.918096] mwifiex_sdio mmc1:0001:1: host_to_card, write iomem      (1) failed: -110
[ 3718.918371] mwifiex_sdio mmc1:0001:1: host_to_card, write iomem      (2) failed: -110
[ 3718.918501] mwifiex_sdio mmc1:0001:1: host_to_card, write iomem      (3) failed: -110
[ 3718.918546] mwifiex_sdio mmc1:0001:1: mwifiex_11n_aggregate_pkt: host_to_card failed: 0xffffffff
[ 3719.245817] mwifiex_sdio mmc1:0001:1: host_to_card, write iomem      (1) failed: -110
[ 3719.246101] mwifiex_sdio mmc1:0001:1: host_to_card, write iomem      (2) failed: -110
[ 3719.246381] mwifiex_sdio mmc1:0001:1: host_to_card, write iomem      (3) failed: -110
[ 3719.246449] mwifiex_sdio mmc1:0001:1: mwifiex_write_data_async failed: 0xFFFFFFFF
[ 3719.437566] mwifiex_sdio mmc1:0001:1: host_to_card, write iomem      (1) failed: -110
[ 3719.437842] mwifiex_sdio mmc1:0001:1: host_to_card, write iomem      (2) failed: -110
[ 3719.438119] mwifiex_sdio mmc1:0001:1: host_to_card, write iomem      (3) failed: -110
[ 3719.438184] mwifiex_sdio mmc1:0001:1: mwifiex_write_data_async failed: 0xFFFFFFFF
[ 3719.935954] mwifiex_sdio mmc1:0001:1: host_to_card, write iomem      (1) failed: -110
[ 3719.936173] mwifiex_sdio mmc1:0001:1: host_to_card, write iomem      (2) failed: -110
[ 3719.936301] mwifiex_sdio mmc1:0001:1: host_to_card, write iomem      (3) failed: -110
[ 3719.936348] mwifiex_sdio mmc1:0001:1: mwifiex_write_data_async failed: 0xFFFFFFFF
[ 3720.149548] mwifiex_sdio mmc1:0001:1: host_to_card, write iomem      (1) failed: -110
[ 3720.149870] mwifiex_sdio mmc1:0001:1: host_to_card, write iomem      (2) failed: -110
[ 3720.150212] mwifiex_sdio mmc1:0001:1: host_to_card, write iomem      (3) failed: -110
[ 3720.150477] mwifiex_sdio mmc1:0001:1: mwifiex_write_data_async failed: 0xFFFFFFFF
[ 3720.269532] mwifiex_sdio mmc1:0001:1: host_to_card, write iomem      (1) failed: -110
[ 3720.269754] mwifiex_sdio mmc1:0001:1: host_to_card, write iomem      (2) failed: -110
[ 3720.269937] mwifiex_sdio mmc1:0001:1: host_to_card, write iomem      (3) failed: -110
[ 3720.269988] mwifiex_sdio mmc1:0001:1: mwifiex_write_data_async failed: 0xFFFFFFFF
[ 3720.358851] mwifiex_sdio mmc1:0001:1: host_to_card, write iomem      (1) failed: -110
----------------------------------------------

kernel is mainline 5.14.4 without patches, but I recall that I noticed
this crashes on older ones but can't remember exact version.

I don't have idea how I could trigger this bug to appear because I din't
find anything related which could trigger it.

I'm ready to test patches if anyone made them but I don't have
experience in kernel drivers programming so can't make fix.

Thanks in advance

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

* Re: [BUG] mwifiex sdio wifi crashes on samsung peach pi chromebook
  2021-10-22 10:50 [BUG] mwifiex sdio wifi crashes on samsung peach pi chromebook Milan P. Stanić
@ 2021-10-26 20:55 ` Brian Norris
  2021-10-26 21:19   ` Milan P. Stanić
  0 siblings, 1 reply; 6+ messages in thread
From: Brian Norris @ 2021-10-26 20:55 UTC (permalink / raw)
  To: Milan P. Stanić
  Cc: linux-wireless, Amitkumar Karwar, Ganapathi Bhat,
	Sharvari Harisangam, Xinming Hu

Hi,

On Fri, Oct 22, 2021 at 4:20 AM Milan P. Stanić <mps@arvanta.net> wrote:
> On my chromebook samsung peach pi (exynos-5800) wifi driver stops to
> work at random time, sometimes after few hours and sometimes after day
> or two.

I don't have official recommendations, nor HW to test at the moment,
but for the record, Peach Pi should have Marvell SD 8797. You can see
what firmware Chrome OS used to ship for those devices here:

https://chromium.googlesource.com/chromiumos/third_party/marvell/+/HEAD/sd8797_uapsta.bin
https://chromium.googlesource.com/chromiumos/third_party/marvell/+log/HEAD/sd8797_uapsta.bin

Notably, the versioning there (e.g., W14-66-27-p18) suggests it's a
different branch (?) than what's currently provided in the main
linux-firmware (W14.68.29.p59). So you might give a try at replacing
the file in /lib/firmware/mrvl/. No guarantees though.

> kernel is mainline 5.14.4 without patches, but I recall that I noticed
> this crashes on older ones but can't remember exact version.

Did it ever work well? I'm curious if this was a kernel regression, or
perhaps just a long-standing firmware issue.

Brian

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

* Re: [BUG] mwifiex sdio wifi crashes on samsung peach pi chromebook
  2021-10-26 20:55 ` Brian Norris
@ 2021-10-26 21:19   ` Milan P. Stanić
  2021-10-26 21:29     ` Brian Norris
  0 siblings, 1 reply; 6+ messages in thread
From: Milan P. Stanić @ 2021-10-26 21:19 UTC (permalink / raw)
  To: Brian Norris
  Cc: linux-wireless, Amitkumar Karwar, Ganapathi Bhat,
	Sharvari Harisangam, Xinming Hu

Hi,

On Tue, 2021-10-26 at 13:55, Brian Norris wrote:
> Hi,
> 
> On Fri, Oct 22, 2021 at 4:20 AM Milan P. Stanić <mps@arvanta.net> wrote:
> > On my chromebook samsung peach pi (exynos-5800) wifi driver stops to
> > work at random time, sometimes after few hours and sometimes after day
> > or two.
> 
> I don't have official recommendations, nor HW to test at the moment,
> but for the record, Peach Pi should have Marvell SD 8797. You can see
> what firmware Chrome OS used to ship for those devices here:
> 
> https://chromium.googlesource.com/chromiumos/third_party/marvell/+/HEAD/sd8797_uapsta.bin
> https://chromium.googlesource.com/chromiumos/third_party/marvell/+log/HEAD/sd8797_uapsta.bin

On these urls I can't find actual file to download, or I'm blind (or
don't understand how this site 'works').
Whatever I click I get new url and not binary file to download.

Could you give url for binary file that I could download, please?

> Notably, the versioning there (e.g., W14-66-27-p18) suggests it's a
> different branch (?) than what's currently provided in the main
> linux-firmware (W14.68.29.p59). So you might give a try at replacing
> the file in /lib/firmware/mrvl/. No guarantees though.
> 
> > kernel is mainline 5.14.4 without patches, but I recall that I noticed
> > this crashes on older ones but can't remember exact version.
> 
> Did it ever work well? I'm curious if this was a kernel regression, or
> perhaps just a long-standing firmware issue.

Yes, it worked for few years but started to crash about few months ago
and that happened when I upgraded complete root filesystem, so it could
be related to upgraded firmware. Thank you for hint what to try to test.
 
> Brian

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

* Re: [BUG] mwifiex sdio wifi crashes on samsung peach pi chromebook
  2021-10-26 21:19   ` Milan P. Stanić
@ 2021-10-26 21:29     ` Brian Norris
  2021-10-27 20:00       ` Milan P. Stanić
  0 siblings, 1 reply; 6+ messages in thread
From: Brian Norris @ 2021-10-26 21:29 UTC (permalink / raw)
  To: Milan P. Stanić
  Cc: linux-wireless, Amitkumar Karwar, Ganapathi Bhat,
	Sharvari Harisangam, Xinming Hu

On Tue, Oct 26, 2021 at 2:20 PM Milan P. Stanić <mps@arvanta.net> wrote:
> On Tue, 2021-10-26 at 13:55, Brian Norris wrote:
> > On Fri, Oct 22, 2021 at 4:20 AM Milan P. Stanić <mps@arvanta.net> wrote:
> > > On my chromebook samsung peach pi (exynos-5800) wifi driver stops to
> > > work at random time, sometimes after few hours and sometimes after day
> > > or two.
> >
> > I don't have official recommendations, nor HW to test at the moment,
> > but for the record, Peach Pi should have Marvell SD 8797. You can see
> > what firmware Chrome OS used to ship for those devices here:
> >
> > https://chromium.googlesource.com/chromiumos/third_party/marvell/+/HEAD/sd8797_uapsta.bin
> > https://chromium.googlesource.com/chromiumos/third_party/marvell/+log/HEAD/sd8797_uapsta.bin
>
> On these urls I can't find actual file to download, or I'm blind (or
> don't understand how this site 'works').
> Whatever I click I get new url and not binary file to download.

Ack, I forgot Gitiles is not super friendly for downloading binaries directly:

https://github.com/google/gitiles/issues/106

> Could you give url for binary file that I could download, please?

This should do it:

curl https://chromium.googlesource.com/chromiumos/third_party/marvell/+/HEAD/sd8797_uapsta.bin?format=TEXT
| base64 -d > sd8797_uapsta.bin

Or some similar invocation if you have to use the browser (click on
the "txt" link, then base64-decode the result).

> > > kernel is mainline 5.14.4 without patches, but I recall that I noticed
> > > this crashes on older ones but can't remember exact version.
> >
> > Did it ever work well? I'm curious if this was a kernel regression, or
> > perhaps just a long-standing firmware issue.
>
> Yes, it worked for few years but started to crash about few months ago
> and that happened when I upgraded complete root filesystem, so it could
> be related to upgraded firmware. Thank you for hint what to try to test.

Could be. It does look like mainline linux-firmware got an update for
this file in 2019, so it's possible your distro (or whatever provides
your rootfs) only semi-recently got the update.

Brian

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

* Re: [BUG] mwifiex sdio wifi crashes on samsung peach pi chromebook
  2021-10-26 21:29     ` Brian Norris
@ 2021-10-27 20:00       ` Milan P. Stanić
  2021-12-27 16:34         ` Milan P. Stanić
  0 siblings, 1 reply; 6+ messages in thread
From: Milan P. Stanić @ 2021-10-27 20:00 UTC (permalink / raw)
  To: Brian Norris
  Cc: linux-wireless, Amitkumar Karwar, Ganapathi Bhat,
	Sharvari Harisangam, Xinming Hu

On Tue, 2021-10-26 at 14:29, Brian Norris wrote:
> On Tue, Oct 26, 2021 at 2:20 PM Milan P. Stanić <mps@arvanta.net> wrote:
> > On Tue, 2021-10-26 at 13:55, Brian Norris wrote:
> > > On Fri, Oct 22, 2021 at 4:20 AM Milan P. Stanić <mps@arvanta.net> wrote:
> > > > On my chromebook samsung peach pi (exynos-5800) wifi driver stops to
> > > > work at random time, sometimes after few hours and sometimes after day
> > > > or two.
> > >
> > > I don't have official recommendations, nor HW to test at the moment,
> > > but for the record, Peach Pi should have Marvell SD 8797. You can see
> > > what firmware Chrome OS used to ship for those devices here:
> > >
> > > https://chromium.googlesource.com/chromiumos/third_party/marvell/+/HEAD/sd8797_uapsta.bin
> > > https://chromium.googlesource.com/chromiumos/third_party/marvell/+log/HEAD/sd8797_uapsta.bin
> >
> > On these urls I can't find actual file to download, or I'm blind (or
> > don't understand how this site 'works').
> > Whatever I click I get new url and not binary file to download.
> 
> Ack, I forgot Gitiles is not super friendly for downloading binaries directly:
> 
> https://github.com/google/gitiles/issues/106
> 
> > Could you give url for binary file that I could download, please?
> 
> This should do it:
> 
> curl https://chromium.googlesource.com/chromiumos/third_party/marvell/+/HEAD/sd8797_uapsta.bin?format=TEXT
> | base64 -d > sd8797_uapsta.bin

This works, thanks.

With this firmware it crashed after 8 hours, and I rebooted machine to
see how long it will work on second try.

> Or some similar invocation if you have to use the browser (click on
> the "txt" link, then base64-decode the result).
> 
> > > > kernel is mainline 5.14.4 without patches, but I recall that I noticed
> > > > this crashes on older ones but can't remember exact version.
> > >
> > > Did it ever work well? I'm curious if this was a kernel regression, or
> > > perhaps just a long-standing firmware issue.
> >
> > Yes, it worked for few years but started to crash about few months ago
> > and that happened when I upgraded complete root filesystem, so it could
> > be related to upgraded firmware. Thank you for hint what to try to test.
> 
> Could be. It does look like mainline linux-firmware got an update for
> this file in 2019, so it's possible your distro (or whatever provides
> your rootfs) only semi-recently got the update.

I use linux-firmware-mrvl-20210919 release but this also happened with
some earlier versions released this year.

I use Alpine linux (https://alpinelinux.org/, I'm alpine linux developer
and maintainer of latest stable kernels on it).

In meantime I found that Arch linux for ARM (alarm) have older firmware
for peach chromebook here (probably copied from chromeos):
https://archlinuxarm.org/builder/src/sd8787_uapsta_cros.bin
https://archlinuxarm.org/builder/src/sd8797_uapsta_cros.bin
https://archlinuxarm.org/builder/src/sd8897_uapsta_cros.bin

They even have patched kernel for this here:
https://archlinuxarm.org/packages/armv7h/linux-peach/files/0002-use-chromiumos-mwifiex-drivers.patch
but this is for old 3.8.11 kernel.

I will try with them and see how it would work.
Also I will try to find if I have old root FS which worked few years on
it (if I have it archived somewhere).

Also, I will report back results.

Kind regards
 
> Brian

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

* Re: [BUG] mwifiex sdio wifi crashes on samsung peach pi chromebook
  2021-10-27 20:00       ` Milan P. Stanić
@ 2021-12-27 16:34         ` Milan P. Stanić
  0 siblings, 0 replies; 6+ messages in thread
From: Milan P. Stanić @ 2021-12-27 16:34 UTC (permalink / raw)
  To: Brian Norris
  Cc: linux-wireless, Amitkumar Karwar, Ganapathi Bhat,
	Sharvari Harisangam, Xinming Hu

Hi all,

On Wed, 2021-10-27 at 22:00, Milan P. Stanić wrote:
> On Tue, 2021-10-26 at 14:29, Brian Norris wrote:
> > On Tue, Oct 26, 2021 at 2:20 PM Milan P. Stanić <mps@arvanta.net> wrote:
> > > On Tue, 2021-10-26 at 13:55, Brian Norris wrote:
> > > > On Fri, Oct 22, 2021 at 4:20 AM Milan P. Stanić <mps@arvanta.net> wrote:
> > > > > On my chromebook samsung peach pi (exynos-5800) wifi driver stops to
> > > > > work at random time, sometimes after few hours and sometimes after day
> > > > > or two.
> > > >
> > > > I don't have official recommendations, nor HW to test at the moment,
> > > > but for the record, Peach Pi should have Marvell SD 8797. You can see
> > > > what firmware Chrome OS used to ship for those devices here:
> > > >
> > > > https://chromium.googlesource.com/chromiumos/third_party/marvell/+/HEAD/sd8797_uapsta.bin
> > > > https://chromium.googlesource.com/chromiumos/third_party/marvell/+log/HEAD/sd8797_uapsta.bin
> > >
> > > On these urls I can't find actual file to download, or I'm blind (or
> > > don't understand how this site 'works').
> > > Whatever I click I get new url and not binary file to download.
> > 
> > Ack, I forgot Gitiles is not super friendly for downloading binaries directly:
> > 
> > https://github.com/google/gitiles/issues/106
> > 
> > > Could you give url for binary file that I could download, please?
> > 
> > This should do it:
> > 
> > curl https://chromium.googlesource.com/chromiumos/third_party/marvell/+/HEAD/sd8797_uapsta.bin?format=TEXT
> > | base64 -d > sd8797_uapsta.bin
> 
> This works, thanks.
> 
> With this firmware it crashed after 8 hours, and I rebooted machine to
> see how long it will work on second try.
> 
> > Or some similar invocation if you have to use the browser (click on
> > the "txt" link, then base64-decode the result).
> > 
> > > > > kernel is mainline 5.14.4 without patches, but I recall that I noticed
> > > > > this crashes on older ones but can't remember exact version.
> > > >
> > > > Did it ever work well? I'm curious if this was a kernel regression, or
> > > > perhaps just a long-standing firmware issue.
> > >
> > > Yes, it worked for few years but started to crash about few months ago
> > > and that happened when I upgraded complete root filesystem, so it could
> > > be related to upgraded firmware. Thank you for hint what to try to test.
> > 
> > Could be. It does look like mainline linux-firmware got an update for
> > this file in 2019, so it's possible your distro (or whatever provides
> > your rootfs) only semi-recently got the update.
> 
> I use linux-firmware-mrvl-20210919 release but this also happened with
> some earlier versions released this year.
> 
> I use Alpine linux (https://alpinelinux.org/, I'm alpine linux developer
> and maintainer of latest stable kernels on it).
> 
> In meantime I found that Arch linux for ARM (alarm) have older firmware
> for peach chromebook here (probably copied from chromeos):
> https://archlinuxarm.org/builder/src/sd8787_uapsta_cros.bin
> https://archlinuxarm.org/builder/src/sd8797_uapsta_cros.bin
> https://archlinuxarm.org/builder/src/sd8897_uapsta_cros.bin
> 
> They even have patched kernel for this here:
> https://archlinuxarm.org/packages/armv7h/linux-peach/files/0002-use-chromiumos-mwifiex-drivers.patch
> but this is for old 3.8.11 kernel.
> 
> I will try with them and see how it would work.
> Also I will try to find if I have old root FS which worked few years on
> it (if I have it archived somewhere).
> 
> Also, I will report back results.

After two months of testing with above firmware it works better but
still crashes, sometimes after 4-12 days but more times it works about
7-8 days.

So, not sure is worth to debug this problem more for me but maybe
it is worth someone who need it to run without reboot for long periods
to find firmware which is stable.

Thank you all for help and best wishes for new year.

-- 
Kind regards

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

end of thread, other threads:[~2021-12-27 17:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-22 10:50 [BUG] mwifiex sdio wifi crashes on samsung peach pi chromebook Milan P. Stanić
2021-10-26 20:55 ` Brian Norris
2021-10-26 21:19   ` Milan P. Stanić
2021-10-26 21:29     ` Brian Norris
2021-10-27 20:00       ` Milan P. Stanić
2021-12-27 16:34         ` Milan P. Stanić

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.