public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: qianfan <qianfanguijin@163.com>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>,
	u-boot@lists.denx.de, Tom Rini <trini@konsulko.com>
Subject: Re: data abort when run 'dhcp'
Date: Sat, 22 Jul 2023 00:26:52 +0200	[thread overview]
Message-ID: <20230722002652.220ae94d@xps-13> (raw)
In-Reply-To: <c853be15-acde-78e0-c5ee-cd230d39d74f@163.com>

Hi qianfan,

qianfanguijin@163.com wrote on Fri, 21 Jul 2023 08:31:17 +0800:

> 在 2023/7/21 0:39, Miquel Raynal 写道:
> > Hello,
> >
> > qianfanguijin@163.com wrote on Fri, 25 Mar 2022 18:04:46 +0800:
> >  
> >> It's very strange. And I can't detect it's a bug of usb or dlmalloc.
> >>
> >> 1. Starting u-boot and dhcp via am335x's ethernet(cpsw driver), it's ok.
> >>
> >> 2. Starting u-boot and dhcp via am335x's usb net, data abort.
> >>
> >> 3. start fastboot, and CTRL C right now, dhcp via am335x's usb net, it's ok.  
> > I am sorry to re-open a thread that is one year old but this is
> > still an open bug. The BBB is affected. In particular the BBBW
> > because there is no Ethernet connector, which makes the Eth-over-USB
> > emulation even more important. All U-Boots since 2021 are affected:
> > spurious data aborts, usually at the end of network interactions (tftp,
> > ping). I could not bisect it because the boot was deeply broken as
> > well on a significant range of commits :-/.
> >
> > On my side I narrowed it down to an env update which fails in malloc as
> > well. If I comment the env update, it fails a bit later. It really
> > looks like a stack corruption which is either related to the Ethernet
> > USB gadget or the USB controller driver itself. Network transfers on
> > the BBBW using regular Ethernet does not trigger any error.
> >
> > I also observe the very strange "fix" mentioned above: starting and
> > killing fastboot makes all tftp pass... If anyone has more details to
> > share, or perhaps a subsequent thread giving more details, I would
> > really like to see this fixed upstream, I suppose I am not the only one
> > :-)  
> Hi:
> 
> Could you please try this two patches?
> 
> http://patchwork.ozlabs.org/project/uboot/patch/20220402025836.19374-1-qianfanguijin@163.com/
> 
> http://patchwork.ozlabs.org/project/uboot/patch/20220402025836.19374-2-qianfanguijin@163.com/

Indeed these patches work. I ended up rewriting one of them to propose
a different approach. I also found two other proposals for the same
issue which are still pending around. I hope this submission will make
it to avoid more time to be spent on this :-)

Thanks a lot for the pointers, I've Cc'ed you on the submissions.

Kind regards,
Miquèl

  reply	other threads:[~2023-07-21 22:27 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-23  2:28 How to debug u-boot data abort qianfan
2022-03-23  7:45 ` qianfan
2022-03-23  8:02   ` data abort when run 'dhcp' qianfan
2022-03-23  9:13     ` qianfan
2022-03-23  9:51       ` Heinrich Schuchardt
2022-03-23 10:07         ` qianfan
2022-03-23 10:12           ` Heinrich Schuchardt
2022-03-23 11:54             ` qianfanguijin
2022-03-24  1:23             ` qianfan
2022-03-24  9:33             ` qianfan
2022-03-25 10:04               ` qianfan
2023-07-20 16:39                 ` Miquel Raynal
2023-07-20 17:55                   ` Heinrich Schuchardt
2023-07-21 11:54                     ` Miquel Raynal
2023-07-20 18:34                   ` Tom Rini
2023-07-21 11:55                     ` Miquel Raynal
2023-07-21  0:31                   ` qianfan
2023-07-21 22:26                     ` Miquel Raynal [this message]
2022-03-23  8:27   ` How to debug u-boot data abort Heinrich Schuchardt
2022-03-24  3:18     ` AKASHI Takahiro
2022-03-24  7:38       ` qianfan
2022-03-23  7:51 ` Abder
2022-03-23  7:59   ` qianfan

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=20230722002652.220ae94d@xps-13 \
    --to=miquel.raynal@bootlin.com \
    --cc=qianfanguijin@163.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    /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