mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Alexander Shiyan <eagle.alexander923@gmail.com>
To: Sascha Hauer <sha@pengutronix.de>
Cc: Barebox List <barebox@lists.infradead.org>
Subject: Re: RK3568 fail with 2023.11.0
Date: Sun, 3 Dec 2023 20:41:23 +0300	[thread overview]
Message-ID: <CAP1tNvTaqHi_cTzByXajijypLVj0yo9RiJjAP20SeqQmYnRnrw@mail.gmail.com> (raw)
In-Reply-To: <20231201151411.GC1057032@pengutronix.de>

Hello Sascha.

So this bug can probably affect CPUs other than RK3568, right?
After this series of patches, both problems described earlier went away.
Can you apply this to the master branch please?

Thanks!

пт, 1 дек. 2023 г. в 18:14, Sascha Hauer <sha@pengutronix.de>:
>
> On Thu, Nov 30, 2023 at 05:28:44PM +0300, Alexander Shiyan wrote:
> > Hello All.
> >
> > The latest version of the barebox does not work on a RK3568 with 4G memory.
> > With a similar board with 2G memory, everything works fine.
> > ...
> > NOTICE:  BL31: v2.3():v2.3-607-gbf602aff1:cl
> > NOTICE:  BL31: Built : 10:16:03, Jun  5 2023
> > INFO:    GICv3 without legacy support detected.
> > INFO:    ARM GICv3 driver initialized in EL3
> > INFO:    pmu v1 is valid 220114
> > INFO:    Using opteed sec cpu_context!
> > INFO:    boot cpu mask: 0
> > INFO:    BL31: Initializing runtime services
> > WARNING: No OPTEE provided by BL2 boot loader, Booting device without
> > OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
> > ERROR:   Error initializing runtime service opteed_fast
> > INFO:    BL31: Preparing for EL3 exit to normal world
> > INFO:    Entry point address = 0xb00000
> > INFO:    SPSR = 0x3c9
> > >rockchip-dmc: rockchip_sdram_size(reg2=1000eaf1, reg3=30000001)
> > rockchip-dmc: rank 2 cs0_col 10 cs1_col 10 bk 3 cs0_row 16 cs1_row 16
> > bw 2 row_3_4 0
> > rockchip-dmc: rk3568_ram0_size() = 4026531840
> > uncompress.c: memory at 0x00a00000, size 0xef600000
> > mmu: enabling MMU, ttb @ 0xeffe0000
> > ===STALL HERE===
> >
> > Through various manipulations, I identified the faulty patch: "ARM:
> > mmu64: mark barebox text section executable during early init".
>
> This patch just triggers a bug elsewhere. alloc_pte() places PTEs with
> offset 0x8000 between them instead of the expected 0x1000. This means we
> leave the space reserved for PTEs. In case of the RK3568 with 8GiB of
> memory the PTEs go into the internal register space.
>
> I've sent a fix to the list, you're on Cc:.
>
> Sascha
>
> --
> Pengutronix e.K.                           |                             |
> Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
> 31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



  reply	other threads:[~2023-12-03 17:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-30 14:28 Alexander Shiyan
2023-11-30 14:59 ` Ahmad Fatoum
2023-11-30 15:07   ` Alexander Shiyan
2023-12-01  7:24     ` Alexander Shiyan
2023-12-01 15:14 ` Sascha Hauer
2023-12-03 17:41   ` Alexander Shiyan [this message]
2023-12-05  9:46     ` Sascha Hauer

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=CAP1tNvTaqHi_cTzByXajijypLVj0yo9RiJjAP20SeqQmYnRnrw@mail.gmail.com \
    --to=eagle.alexander923@gmail.com \
    --cc=barebox@lists.infradead.org \
    --cc=sha@pengutronix.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