From: Devarsh Thakkar <devarsht@ti.com>
To: Simon Glass <sjg@chromium.org>,
U-Boot Mailing List <u-boot@lists.denx.de>
Cc: "Bin Meng" <bmeng.cn@gmail.com>,
"Michal Suchanek" <msuchanek@suse.de>,
"Nikhil M Jain" <n-jain1@ti.com>,
"Ovidiu Panait" <ovpanait@gmail.com>,
"Pali Rohár" <pali@kernel.org>,
"Rasmus Villemoes" <rasmus.villemoes@prevas.dk>,
"Stefan Roese" <sr@denx.de>
Subject: Re: [PATCH 5/9] board_f: Fix corruption of relocaddr
Date: Tue, 25 Jul 2023 14:51:42 +0530 [thread overview]
Message-ID: <f56af059-421d-1641-e28c-b393d2ae5a4d@ti.com> (raw)
In-Reply-To: <20230724145210.304917-5-sjg@chromium.org>
Hi Simon,
On 24/07/23 20:22, Simon Glass wrote:
> When the video framebuffer comes from the bloblist, we should not change
> relocaddr to this address, since it interfers with the normal memory
> allocation.
>
> This fixes a boot loop in qemu-x86_64
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> Fixes: 5bc610a7d9d ("common: board_f: Pass frame buffer info from SPL to u-boot")
> ---
>
> common/board_f.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/common/board_f.c b/common/board_f.c
> index 7d2c380e91e2..5c8646b22283 100644
> --- a/common/board_f.c
> +++ b/common/board_f.c
> @@ -419,7 +419,6 @@ static int reserve_video(void)
> if (!ho)
> return log_msg_ret("blf", -ENOENT);
> video_reserve_from_bloblist(ho);
> - gd->relocaddr = ho->fb;
I think this change was done as relocaddr pointer was required to be updated
to move after frame-buffer reserved area to ensure that any further memory
reservations done using gd->relocaddr (for e.g. in reserve_trace/uboot/malloc)
don't overlap with frame-buffer reserved area passed from blob, so I think
removing this line may cause further memory reservations to overlap with
reserved framebuffer.
Could you please confirm?
Regards
Devarsh
> } else if (CONFIG_IS_ENABLED(VIDEO)) {
> ulong addr;
> int ret;
next prev parent reply other threads:[~2023-07-25 9:22 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-24 14:51 [PATCH 0/9] x86: Fixes for distro booting Simon Glass
2023-07-24 14:51 ` [PATCH 1/9] x86: spl: Drop unwanted debug() Simon Glass
2023-07-28 15:46 ` Bin Meng
2023-07-24 14:51 ` [PATCH 2/9] video: Tidy up Makefile rule for video Simon Glass
2023-07-25 6:14 ` [EXTERNAL] " Nikhil M Jain
2023-07-28 15:46 ` Bin Meng
2023-07-28 17:32 ` Simon Glass
2023-07-24 14:51 ` [PATCH 3/9] x86: Run QEMU machine setup in SPL Simon Glass
2023-07-28 15:46 ` Bin Meng
2023-07-24 14:52 ` [PATCH 4/9] Revert "x86: Switch QEMU over to use the bochs driver" Simon Glass
2023-07-28 15:46 ` Bin Meng
2023-07-28 17:32 ` Simon Glass
2023-07-31 14:32 ` Bin Meng
2023-07-31 14:37 ` Simon Glass
2023-07-31 14:46 ` Bin Meng
2023-07-31 17:07 ` Simon Glass
2023-08-04 3:42 ` Simon Glass
2023-08-03 10:44 ` Bin Meng
2023-07-24 14:52 ` [PATCH 5/9] board_f: Fix corruption of relocaddr Simon Glass
2023-07-25 9:21 ` Devarsh Thakkar [this message]
2023-07-25 21:28 ` Simon Glass
2023-07-26 11:08 ` Devarsh Thakkar
2023-07-27 0:53 ` Simon Glass
2023-07-27 5:22 ` Nikhil M Jain
2023-07-27 18:01 ` Simon Glass
2023-07-28 8:35 ` Nikhil M Jain
2023-07-28 8:38 ` Nikhil M Jain
2023-07-28 17:39 ` Simon Glass
2023-07-24 14:52 ` [PATCH 6/9] x86: Correct copying of BIOS mode information Simon Glass
2023-07-28 16:12 ` Bin Meng
2023-07-24 14:52 ` [PATCH 7/9] video: Add a Kconfig option for SPL video handoff Simon Glass
2023-07-24 14:52 ` [PATCH 8/9] x86: Enable useful options for qemu-86 Simon Glass
2023-07-24 14:52 ` [PATCH 9/9] x86: Update qemu documentation Simon Glass
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=f56af059-421d-1641-e28c-b393d2ae5a4d@ti.com \
--to=devarsht@ti.com \
--cc=bmeng.cn@gmail.com \
--cc=msuchanek@suse.de \
--cc=n-jain1@ti.com \
--cc=ovpanait@gmail.com \
--cc=pali@kernel.org \
--cc=rasmus.villemoes@prevas.dk \
--cc=sjg@chromium.org \
--cc=sr@denx.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox