All of lore.kernel.org
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PULL] Please pull u-boot-imx
Date: Mon, 19 Nov 2018 09:44:09 +0200	[thread overview]
Message-ID: <20181119074409.mxxpaq52wqxm3kqz@sapphire.tkos.co.il> (raw)
In-Reply-To: <CAHYQr0oZNV9rYoJ6bLC9o1o++dfvusofqB23V=r+OS_GMDM1og@mail.gmail.com>

Hi Ricardo,

On Sun, Nov 18, 2018 at 05:43:02PM -0200, Ricardo Salveti wrote:
> On Sun, Nov 18, 2018 at 7:51 AM Baruch Siach <baruch@tkos.co.il> wrote:
> > Peter Robinson writes:
> > > On Fri, Nov 16, 2018 at 1:06 AM Ricardo Salveti <rsalveti@rsalveti.net> wrote:
> > >> On Wed, Nov 14, 2018 at 5:07 AM Baruch Siach <baruch@tkos.co.il> wrote:
> > >> > On Tue, Nov 13, 2018 at 11:42:44AM -0200, Ricardo Salveti wrote:
> > >> > > On Thu, Sep 6, 2018 at 12:52 PM Fabio Estevam <festevam@gmail.com> wrote:
> > >> > > > On Thu, Sep 6, 2018 at 12:42 PM, Baruch Siach <baruch@tkos.co.il> wrote:
> > >> > > >
> > >> > > > > I tested current master successfully on Hummingboard2 with i.MX6 Solo
> > >> > > > > (SOM rev 1.5):
> > >> > > >
> > >> > > > Thanks for testing.
> > >> > > >
> > >> > > > It seems we need more information from Peter about the regression he reported.
> > >> > > >
> > >> > > > It would be helpful if Peter could run a bisect so that we could
> > >> > > > understand where the regression is coming from.
> > >> > >
> > >> > > Finally got the time to test u-boot 2018.09 on my hummingboard 2 and I
> > >> > > can also confirm the boot issue with imx6q (Hummingboard 2 MicroSOM
> > >> > > i2eX iMX6D - rev 1.3).
> > >> > >
> > >> > > The patch set that introduced this regression was part of another pull
> > >> > > request, the one that introduces eMMC booting support (from Jon
> > >> > > Nettleton, e.g. 86e5a7fc13 and 19ed6063a5). After doing some more
> > >> > > testing it seems that the hang happens when trying to verify if the
> > >> > > board has eMMC during runtime (has_emmc -> mmc_get_op_cond(mmc)),
> > >> > > which is not the case for this SOM in particular (and probably why it
> > >> > > works fine on most rev 1.5-based SOMs, as eMMC is usually available
> > >> > > there).
> > >> > >
> > >> > > Tested with current u-boot master and the issue is still valid.
> > >> > >
> > >> > > Jon, did you have any issue when testing that patch set on SOMs
> > >> > > without eMMC support?
> > >> >
> > >> > I tested U-Boot successfully with SOM rev 1.3 (no eMMC) on Hummingboard2, as
> > >> > shown in my previous message on this thread.
> > >>
> > >> Indeed, you tested with i.MX6Q, only difference is that mine is iMX6D,
> > >> but both without eMMC.
> > >
> > > I see the issue with a .IMX6Q wirth SOM rev 1.5 (TI wifi, no EMMC) on
> > > a hummingboard2
> >
> > I could not reproduce with SOM rev 1.3 (no eMMC) on Hummingboard2.
> >
> > >> > What toolchain are you using?
> > >>
> > >> Using GCC 8.2 from latest OpenEmbedded. Will try building with the
> > >> version you used to see if I get any different behavior.
> > >
> > > gcc 8.2.x from Fedora 29
> >
> > I am using the ARM (Ltd) provided GNU toolchain version 8.2:
> >
> > => version
> > U-Boot 2018.11 (Nov 18 2018 - 11:22:16 +0200)
> >
> > arm-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 8.2-2018-08 (arm-rel-8.23)) 8.2.1 20180802
> > GNU ld (GNU Toolchain for the A-profile Architecture 8.2-2018-08 (arm-rel-8.23)) 2.30.0.20180625
> >
> > >> > What do you see on the serial console?
> > >>
> > >> It boots up to the point when it tries to find the emmc, and then it
> > >> basically hangs completely (tested with current master):
> > >>
> > >> U-Boot SPL 2018.11+gf6206f8587 (Nov 16 2018 - 00:56:34 +0000)
> > >> Trying to boot from MMC1
> > >>
> > >> U-Boot 2018.11+gf6206f8587 (Nov 16 2018 - 00:56:34 +0000)
> > >>
> > >> CPU:   Freescale i.MX6D rev1.5 996 MHz (running at 792 MHz)
> > >> CPU:   Extended Commercial temperature grade (-20C to 105C) at 33C
> > >> Reset cause: POR
> > >> Board: MX6 HummingBoard2
> > >> DRAM:  1 GiB
> > >> MMC:   FSL_SDHC: 0, FSL_SDHC: 1
> > >> Loading Environment from MMC... *** Warning - bad CRC, using default environment
> > >>
> > >> No panel detected: default to HDMI
> > >> Display: HDMI (1024x768)
> > >> In:    serial
> > >> Out:   serial
> > >> Err:   serial
> > >> ---> hangs
> > >
> > > Exactly the same as I saw.
> >
> > Here is what I get at this point:
> >
> > In:    serial
> > Out:   serial
> > Err:   serial
> > Card did not respond to voltage select!
> > Net:   FEC
> > ...
> >
> > The error message is from drivers/mmc/mmc.c:mmc_get_op_cond(). The code
> > around this point might be the source of your issue. Can you add a few
> > prints in mmc_get_op_cond() to pinpoint the call that hangs the code?
> 
> Also tried with ARM's pre-built toolchain (same version), and got the
> same hang. Looking a bit further, it basically looks up while waiting
> the first mmc command to complete:
> 
> has_emmc -> mmc_get_op_cond -> mmc_send_if_cond (testing for SD
> version 2) -> mmc_send_cmd -> esdhc_send_cmd_common -> while
> (!(esdhc_read32(&regs->irqstat) & flags))
> 
> And the boot log with MMC_TRACE:
> 
> No panel detected: default to HDMI
> Display: HDMI (1024x768)
> In:    serial
> Out:   serial
> Err:   serial
> CMD_SEND:0
>                 ARG                      0x00000000
>                 MMC_RSP_NONE
> CMD_SEND:8
>                 ARG                      0x000001AA
> 
> The line where it locks up waiting for the command to complete:
> http://git.denx.de/?p=u-boot.git;a=blob;f=drivers/mmc/fsl_esdhc.c;h=3cdfa7f5a689789ea2f24da867d7c947ab78c002;hb=HEAD#l455
> 
> Unclear why this only happens with this som/soc, maybe hardware/errata
> differences?

Here's what I get after adding irqstat print:

CMD_SEND:0
		ARG			 0x00000000
		MMC_RSP_NONE
CMD_SEND:8
		ARG			 0x000001AA
esdhc_send_cmd_common: irqstat: 10000
		RET			 -110

The irqstat register has the DTOE (Data Timeout Error) bit enabled right after 
the irqstat wait loop that hangs in your setup.

I guess Fabio's patch would fix the issue for you. Indefinite loops are not a 
good idea in general, I think.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

  parent reply	other threads:[~2018-11-19  7:44 UTC|newest]

Thread overview: 307+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-04  7:11 [U-Boot] [PULL] Please pull u-boot-imx Stefano Babic
2018-09-05 15:49 ` Tom Rini
2018-09-06  9:23 ` Peter Robinson
2018-09-06  9:33   ` Stefano Babic
2018-09-06 12:37     ` Peter Robinson
2018-09-06 13:28       ` Fabio Estevam
2018-09-06 15:42         ` Baruch Siach
2018-09-06 15:52           ` Fabio Estevam
2018-09-06 16:28             ` Peter Robinson
2018-11-13 13:42             ` Ricardo Salveti
2018-11-14  7:07               ` Baruch Siach
2018-11-16  1:05                 ` Ricardo Salveti
2018-11-16 14:16                   ` Peter Robinson
2018-11-18  9:51                     ` Baruch Siach
2018-11-18 19:43                       ` Ricardo Salveti
2018-11-18 20:29                         ` Baruch Siach
2018-11-18 23:09                           ` Ricardo Salveti
2018-11-19  1:35                         ` Fabio Estevam
2018-11-19  7:44                         ` Baruch Siach [this message]
2018-11-19 11:17                           ` Fabio Estevam
2018-11-19 13:26                             ` Peter Robinson
  -- strict thread matches above, loose matches on Subject: below --
2018-10-23  7:52 Stefano Babic
2018-10-23 14:29 ` Tom Rini
2018-10-23 14:42   ` Stefano Babic
2018-10-23 14:52     ` Tom Rini
2018-10-24 13:38       ` Stefano Babic
2018-10-25  8:37         ` Stefano Babic
2018-09-19 15:16 Stefano Babic
2018-09-20 13:24 ` Tom Rini
2018-08-31 13:04 Stefano Babic
2018-08-31 13:07 ` Tom Rini
2018-08-31 18:53   ` Otavio Salvador
2018-08-31 19:20     ` Stefano Babic
2018-08-31 19:26       ` Otavio Salvador
2018-08-31 19:26   ` Stefano Babic
2018-09-01 11:37 ` Tom Rini
2018-09-02 13:20   ` Sébastien Szymanski
2018-09-02 14:15     ` Tom Rini
2018-09-03  7:47       ` Stefano Babic
2018-09-02 17:06   ` Stefano Babic
2018-09-02 17:11     ` Tom Rini
2018-09-02 17:29       ` Stefano Babic
2018-07-23  9:44 Stefano Babic
2018-07-23 18:16 ` Tom Rini
2018-06-27 15:01 Stefano Babic
2018-06-28  2:21 ` Tom Rini
2018-05-18  6:51 Stefano Babic
2018-05-19  2:23 ` Tom Rini
2018-05-21  3:04   ` Tom Rini
     [not found] <c8534adc-a94d-44b5-b702-6888788a33a4@email.android.com>
2018-05-17 17:08 ` Stefano Babic
2018-05-17 20:15   ` Tom Rini
2018-05-17 21:52     ` Lukasz Majewski
2018-05-17 15:50 Stefano Babic
2018-04-30 10:51 Stefano Babic
2018-04-30 16:15 ` Tom Rini
2018-04-15 10:28 Stefano Babic
2018-04-15 17:52 ` Tom Rini
2018-04-15 19:53   ` Lukasz Majewski
2018-03-11 15:07 Stefano Babic
2018-03-11 19:30 ` Tom Rini
2018-03-09 10:13 Stefano Babic
2018-03-09 10:42 ` Fabio Estevam
2018-03-09 11:11   ` Stefano Babic
2018-03-09 11:31     ` Fabio Estevam
2018-02-24 15:58 Stefano Babic
2018-02-26  3:28 ` Tom Rini
2018-02-04 11:34 Stefano Babic
2018-02-05  0:16 ` Tom Rini
2018-02-05  3:57   ` Tom Rini
2018-02-05  8:34     ` Stefano Babic
2018-01-15 17:52 Stefano Babic
2018-01-16  0:00 ` Tom Rini
2018-01-16  9:40   ` Stefano Babic
2018-01-08 16:54 Stefano Babic
2018-01-08 17:38 ` Tom Rini
2018-01-08 17:50   ` Stefano Babic
2018-01-08 21:26     ` Tom Rini
2018-01-08 21:26 ` Tom Rini
2017-12-29 10:51 Stefano Babic
2017-12-30  1:19 ` Tom Rini
2017-12-17 10:39 Stefano Babic
2017-12-17 19:26 ` Tom Rini
2017-12-17 21:32   ` Stefano Babic
2017-12-18  0:04   ` Fabio Estevam
2017-12-18  1:45     ` Peng Fan
2017-11-27 10:04 Stefano Babic
2017-11-28 14:19 ` Tom Rini
2017-11-09 10:35 Stefano Babic
2017-11-10  3:20 ` Tom Rini
2017-10-31 10:53 Stefano Babic
2017-11-01  1:26 ` Tom Rini
2017-10-12 16:29 Stefano Babic
2017-10-12 22:29 ` Tom Rini
2017-09-20 13:47 Stefano Babic
2017-09-21  2:18 ` Tom Rini
2017-08-30 10:35 Stefano Babic
2017-09-01 16:42 ` Tom Rini
2017-08-16 11:18 Stefano Babic
2017-08-17  1:17 ` Tom Rini
2017-07-14 15:46 Stefano Babic
2017-07-18 22:49 ` Tom Rini
2017-06-27  7:53 Stefano Babic
2017-06-27 17:32 ` Tom Rini
2017-05-18 10:16 Stefano Babic
2017-04-13  8:01 Stefano Babic
2017-04-14 21:08 ` Tom Rini
2017-03-19 17:07 Stefano Babic
2017-03-20  0:34 ` Tom Rini
2017-02-27 17:08 Stefano Babic
2017-03-01 15:38 ` Tom Rini
2017-02-27  9:12 Stefano Babic
2017-02-27 13:22 ` Tom Rini
2017-02-27 13:29   ` Stefano Babic
2017-02-27 13:30     ` Tom Rini
2017-02-27 16:05     ` Peter Robinson
2017-02-27 16:41     ` Fabio Estevam
2017-02-27 17:02       ` Stefano Babic
2017-02-27 17:04         ` Tom Rini
2017-02-28  4:09 ` Jagan Teki
2017-02-28 15:01   ` Tom Rini
2017-02-01 15:50 Stefano Babic
2017-02-02  3:20 ` Tom Rini
2017-01-02 17:08 Stefano Babic
2017-01-03  1:04 ` Tom Rini
2016-12-18 17:48 Stefano Babic
2016-12-19 21:18 ` Tom Rini
2016-11-30 10:57 Stefano Babic
2016-12-01  0:44 ` Tom Rini
2016-10-28 14:44 Stefano Babic
2016-10-29  1:59 ` Tom Rini
2016-10-07 15:38 Stefano Babic
2016-10-08 17:08 ` Tom Rini
2016-09-06  8:51 Stefano Babic
2016-09-06 15:27 ` Tom Rini
2016-09-06 15:50   ` Stefano Babic
2016-07-28 11:56 Stefano Babic
2016-07-29 13:29 ` Tom Rini
2016-06-18  9:14 Stefano Babic
2016-06-19 14:12 ` Tom Rini
2016-06-07 16:44 Stefano Babic
2016-06-18  9:12 ` Stefano Babic
2016-06-19 14:02 ` Tom Rini
2016-05-17 15:57 Stefano Babic
2016-05-19 12:08 ` Tom Rini
2016-05-19 12:49   ` Stefano Babic
2016-04-25 12:26 Stefano Babic
2016-04-26  0:15 ` Tom Rini
2016-04-13 10:23 Stefano Babic
2016-04-13 19:47 ` Tom Rini
2016-03-02 13:57 Stefano Babic
2016-03-02 23:14 ` Tom Rini
2016-02-04  9:44 Stefano Babic
2016-02-04 17:39 ` Tom Rini
2016-01-25 14:07 Stefano Babic
2016-01-25 21:27 ` Tom Rini
2016-01-08 15:08 Stefano Babic
2016-01-09  3:34 ` Tom Rini
2016-01-09 19:15 ` Fabio Estevam
2016-01-10  9:54   ` Stefano Babic
2016-01-03 15:23 Stefano Babic
2016-01-04 15:50 ` Tom Rini
2015-12-04 11:57 Stefano Babic
2015-12-04 22:51 ` Tom Rini
2015-11-16 11:26 Stefano Babic
2015-11-16 17:59 ` Tom Rini
2015-10-15  9:32 Stefano Babic
2015-10-15 12:43 ` Tom Rini
2015-10-15 12:49   ` Stefano Babic
2015-10-15 13:04     ` Tom Rini
2015-10-13  8:16 Stefano Babic
2015-10-13 12:39 ` Tom Rini
2015-10-02  9:11 Stefano Babic
2015-10-03  0:35 ` Tom Rini
2015-09-24  9:45 Stefano Babic
2015-09-24 21:10 ` Tom Rini
2015-09-13  9:22 Stefano Babic
2015-09-13 13:56 ` Tom Rini
2015-09-02  9:57 Stefano Babic
2015-09-02 13:18 ` Tom Rini
2015-09-02 13:45   ` Stefano Babic
2015-09-02 14:12     ` Stefano Babic
2015-09-02 21:58       ` Tom Rini
2015-08-02  9:23 Stefano Babic
2015-08-02 15:53 ` Tom Rini
2015-07-03 12:22 Stefano Babic
2015-07-06 15:24 ` Tom Rini
2015-06-08  7:14 Stefano Babic
2015-06-08 21:53 ` Tom Rini
2015-05-26 14:18 Stefano Babic
2015-05-26 17:37 ` Tom Rini
2015-05-15 15:18 Stefano Babic
2015-05-16 11:36 ` Tom Rini
2015-04-28 15:01 Stefano Babic
2015-04-29 14:28 ` Tom Rini
2015-04-13  6:36 Stefano Babic
2015-04-13 14:05 ` Tom Rini
2015-03-31 13:48 Stefano Babic
2015-04-01  0:55 ` Tom Rini
2015-03-18  9:23 Stefano Babic
2015-03-19 13:11 ` Tom Rini
2015-03-05  9:45 Stefano Babic
2015-03-05 14:00 ` Tom Rini
2015-02-10 12:19 Stefano Babic
2015-02-10 20:09 ` Tom Rini
2014-12-30 16:55 Stefano Babic
2015-01-01 14:55 ` Tom Rini
2014-12-10  9:36 Stefano Babic
2014-12-10 21:40 ` Tom Rini
2014-11-24 11:18 Stefano Babic
2014-11-24 22:13 ` Tom Rini
2014-11-14 14:48 Stefano Babic
2014-11-17  0:45 ` Tom Rini
2014-11-05 17:01 Stefano Babic
2014-11-05 20:04 ` Tom Rini
2014-10-27 12:32 Stefano Babic
2014-10-27 14:32 ` Tom Rini
2014-10-08  8:17 Stefano Babic
2014-10-08 20:51 ` Albert ARIBAUD
2014-09-12 14:03 Stefano Babic
2014-09-16 13:31 ` Albert ARIBAUD
2014-09-16 13:34   ` Fabio Estevam
2014-09-16 13:50   ` Stefano Babic
2014-09-16 14:38 ` Albert ARIBAUD
2014-09-16 15:07   ` Stefano Babic
2014-09-17  8:29     ` Albert ARIBAUD
2014-09-17  7:12   ` Nikita Kiryanov
2014-09-17 21:33 ` Albert ARIBAUD
2014-08-20 14:13 Stefano Babic
2014-07-10 13:28 Stefano Babic
2014-07-11 18:54 ` Tom Rini
2014-06-26  8:25 [U-Boot] [PULL] : " Stefano Babic
2014-07-01  5:51 ` Albert ARIBAUD
2014-06-17 17:03 Stefano Babic
2014-06-25  9:48 ` Albert ARIBAUD
2014-06-25 10:05   ` Stefano Babic
2014-06-25 13:16     ` Albert ARIBAUD
2014-06-25 13:52       ` Stefano Babic
2014-05-15  9:02 Stefano Babic
2014-05-16 17:35 ` Albert ARIBAUD
2014-04-07 16:20 Stefano Babic
2014-04-07 17:51 ` Albert ARIBAUD
2014-04-05 12:08 Stefano Babic
2014-04-05 14:46 ` Albert ARIBAUD
2014-04-02 16:54 Stefano Babic
2014-04-02 18:00 ` Albert ARIBAUD
2014-04-03  6:31   ` Albert ARIBAUD
2014-04-03  7:32     ` Stefano Babic
2014-04-04 13:52       ` Stefano Babic
2014-04-05  8:22         ` Albert ARIBAUD
2014-04-05 11:03           ` Albert ARIBAUD
2014-04-05 12:09             ` Stefano Babic
2014-03-12 10:44 Stefano Babic
2014-03-13 17:27 ` Albert ARIBAUD
2014-02-19 10:04 Stefano Babic
2014-02-19 15:05 ` Albert ARIBAUD
2014-01-17  9:26 Stefano Babic
2014-01-17 17:27 ` Fabio Estevam
2014-01-17 22:03   ` Tom Rini
2014-01-18 12:20     ` Albert ARIBAUD
2014-01-20 22:58 ` Tom Rini
2014-01-15  9:43 Stefano Babic
2014-01-15 15:14 ` Albert ARIBAUD
2014-01-14  9:34 Stefano Babic
2014-01-14 13:03 ` Albert ARIBAUD
2014-01-02 16:25 Stefano Babic
2013-09-27 12:11 Stefano Babic
2013-10-02 13:36 ` Albert ARIBAUD
2013-09-03  8:20 Stefano Babic
2013-09-05 10:04 ` Albert ARIBAUD
2013-08-12 13:47 Stefano Babic
2013-07-12  9:48 Stefano Babic
2013-06-28 15:05 Stefano Babic
2013-06-28 20:38 ` Albert ARIBAUD
2013-06-06 15:55 Stefano Babic
2013-06-08 13:27 ` Albert ARIBAUD
2013-05-07  7:55 Stefano Babic
2013-05-11  7:30 ` Albert ARIBAUD
2013-04-14  9:34 Stefano Babic
2013-04-14 13:09 ` Albert ARIBAUD
2013-04-14  7:27 Stefano Babic
2013-04-14  9:21 ` Albert ARIBAUD
2013-04-04  8:31 Stefano Babic
2013-04-04 10:31 ` Albert ARIBAUD
2013-03-15 13:54 Stefano Babic
2013-03-15 18:51 ` Albert ARIBAUD
2013-03-15 20:16   ` Otavio Salvador
2013-03-16 11:16     ` Stefano Babic
2013-03-13  8:43 Stefano Babic
2013-03-13 12:29 ` Albert ARIBAUD
2013-01-28 22:25 Stefano Babic
2013-02-02 22:08 ` Albert ARIBAUD
2013-01-14  8:40 Stefano Babic
2013-01-14 16:54 ` Albert ARIBAUD
2013-01-05 17:36 Stefano Babic
2013-01-08 14:50 ` Albert ARIBAUD
2012-12-07 17:07 Stefano Babic
2012-12-08  9:34 ` Albert ARIBAUD
2012-12-08 14:16   ` Stefano Babic
2012-12-21 20:46     ` Albert ARIBAUD
2012-12-21 21:35       ` stefano babic
2012-12-23 16:47         ` Albert ARIBAUD
2012-11-24 15:29 Stefano Babic
2012-11-25 18:49 ` Albert ARIBAUD
2012-11-10  7:55 Stefano Babic
2012-11-10  8:34 ` Albert ARIBAUD
2012-10-26 14:30 Stefano Babic
2012-10-27 11:56 ` Albert ARIBAUD

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=20181119074409.mxxpaq52wqxm3kqz@sapphire.tkos.co.il \
    --to=baruch@tkos.co.il \
    --cc=u-boot@lists.denx.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 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.