linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Milan P. Stanić" <mps@arvanta.net>
To: Brian Norris <briannorris@chromium.org>
Cc: linux-wireless <linux-wireless@vger.kernel.org>,
	Amitkumar Karwar <amitkarwar@gmail.com>,
	Ganapathi Bhat <ganapathi017@gmail.com>,
	Sharvari Harisangam <sharvari.harisangam@nxp.com>,
	Xinming Hu <huxinming820@gmail.com>
Subject: Re: [BUG] mwifiex sdio wifi crashes on samsung peach pi chromebook
Date: Mon, 27 Dec 2021 17:34:38 +0100	[thread overview]
Message-ID: <YcnrHl5rY+7YUlp+@m1> (raw)
In-Reply-To: <YXmv0XkBUj/oQGva@elm.arvanta.net>

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

      reply	other threads:[~2021-12-27 17:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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=YcnrHl5rY+7YUlp+@m1 \
    --to=mps@arvanta.net \
    --cc=amitkarwar@gmail.com \
    --cc=briannorris@chromium.org \
    --cc=ganapathi017@gmail.com \
    --cc=huxinming820@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=sharvari.harisangam@nxp.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;
as well as URLs for NNTP newsgroup(s).