public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: qianfan <qianfanguijin@163.com>,
	Heinrich Schuchardt <xypron.glpk@gmx.de>,
	u-boot@lists.denx.de
Subject: Re: data abort when run 'dhcp'
Date: Thu, 20 Jul 2023 14:34:52 -0400	[thread overview]
Message-ID: <20230720183452.GM1670569@bill-the-cat> (raw)
In-Reply-To: <20230720183917.74e1a46c@xps-13>

[-- Attachment #1: Type: text/plain, Size: 1724 bytes --]

On Thu, Jul 20, 2023 at 06:39:17PM +0200, Miquel Raynal wrote:
> 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
> :-)

What happens if you increase the malloc pool from say 32MB (current
value, 0x2000000) to 64MB (so 0x4000000) ?

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

  parent reply	other threads:[~2023-07-20 18:35 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 [this message]
2023-07-21 11:55                     ` Miquel Raynal
2023-07-21  0:31                   ` qianfan
2023-07-21 22:26                     ` Miquel Raynal
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=20230720183452.GM1670569@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=miquel.raynal@bootlin.com \
    --cc=qianfanguijin@163.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