All of lore.kernel.org
 help / color / mirror / Atom feed
From: Harrison Mutai <harrison.mutai@arm.com>
To: Tom Rini <trini@konsulko.com>
Cc: nd@arm.com, andre.przywara@arm.com, manish.pandey2@arm.com,
	u-boot@lists.denx.de
Subject: Re: [PATCH v2 3/4] bloblist: add support for CONFIG_BLOBLIST_PASSAGE
Date: Mon, 27 Jan 2025 12:42:30 +0000	[thread overview]
Message-ID: <e2cbe06e-c83b-4bbf-94dd-386fea7fb41f@arm.com> (raw)
In-Reply-To: <20250123171239.GM60249@bill-the-cat>

Hi Tom,

Thanks for the additional details, that helped!

On 23/01/2025 17:12, Tom Rini wrote:
> On Thu, Jan 23, 2025 at 05:03:40PM +0000, Harrison Mutai wrote:
>> On 22/01/2025 17:21, Tom Rini wrote:
>>> On Wed, Jan 15, 2025 at 01:52:06PM +0000, Harrison Mutai wrote:
>>>
>>>> When the configuration option CONFIG_BLOBLIST_PASSAGE is selected, the
>>>> bloblist present in the incoming standard passage is utilised in-place.
>>>> There is no need to specify the size of the bloblist as the system
>>>> automatically detects it using the header information.
>>>>
>>>> Signed-off-by: Harrison Mutai <harrison.mutai@arm.com>
>>>> ---
>>>>    common/Kconfig    | 8 +++++++-
>>>>    common/bloblist.c | 5 ++++-
>>>>    2 files changed, 11 insertions(+), 2 deletions(-)
>>>
>>> This leads to failure to boot on qemu-arm-sbsa as seen in CI:
>>> https://dev.azure.com/u-boot/u-boot/_build/results?buildId=10392&view=logs&j=ac5e904b-a30c-5e1d-9570-462b8181c990&t=863544fb-ed04-5d34-fdac-10f5bbb057bd&l=423
>>>
>> Sorry, I'm unfamilliar with U-Boot's CI but I can't make out what the source
>> of the failure is. All I see in the logs is what looks like an intermittent
>> error.
>>
>> https://dev.azure.com/u-boot/u-boot/_build/results?buildId=10392&view=logs&j=ac5e904b-a30c-5e1d-9570-462b8181c990&t=863544fb-ed04-5d34-fdac-10f5bbb057bd&l=423
>>
>> Would you be able to share the results XML?
> 
> The problem is that qemu doesn't start anymore, sorry for being unclear.
> Looking at
> https://source.denx.de/u-boot/u-boot-test-hooks/-/blob/master/bin/travis-ci/conf.qemu-arm-sbsa_na?ref_type=heads
> we can see how qemu is invoked.
> 

I've successfully reproduced and resolved the error. The issue occurred 
because I relaxed the condition for calling the architecture-specific 
hook xferlist_from_boot_arg. Previously, this hook was only called if 
the bloblist was at a fixed address and U-Boot was in the first phase. 
However, since we also need the hook for BLOBLIST_PASSAGE, I've added a 
condition to prevent calling the hook if BLOBLIST_ALLOC is enabled, 
assuming we don't expect to receive a bloblist from the previous stage 
in this mode.

However, I'm slightly unsure if this assumption is correct. Generally, 
when BLOBLIST_ALLOC is enabled, is it expected that U-Boot will allocate 
memory for the bloblist, ignoring the bloblist from previous stages? In 
the case of BLOBLIST_FIXED, we relocate any bloblist received from the 
prior stage to the fixed address. I'm surprised we don't do the same 
with BLOBLIST_ALLOC.

Best regards,
Harrison


  reply	other threads:[~2025-01-27 12:42 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-15 13:52 [PATCH v2 0/4] Enable bloblist support on Vexpress64 Harrison Mutai
2025-01-15 13:52 ` [PATCH v2 1/4] bloblist: fix typo in code comments Harrison Mutai
2025-01-15 14:35   ` Tom Rini
2025-01-15 13:52 ` [PATCH v2 2/4] board: vexpress64: default to hardware device tree Harrison Mutai
2025-01-16  1:26   ` Simon Glass
2025-01-16 11:20     ` Harrison Mutai
2025-01-16 11:33       ` Harrison Mutai
2025-01-15 13:52 ` [PATCH v2 3/4] bloblist: add support for CONFIG_BLOBLIST_PASSAGE Harrison Mutai
2025-01-15 14:36   ` Tom Rini
2025-01-16  1:26   ` Simon Glass
2025-01-22 17:21   ` Tom Rini
2025-01-23 17:03     ` Harrison Mutai
2025-01-23 17:12       ` Tom Rini
2025-01-27 12:42         ` Harrison Mutai [this message]
2025-01-31  0:10           ` Tom Rini
2025-02-03 12:28             ` Harrison Mutai
2025-02-03 22:22               ` Tom Rini
2025-02-04 10:32                 ` Harrison Mutai
2025-01-15 13:52 ` [PATCH v2 4/4] board: vexpress64: enable bloblist for SPL handoff Harrison Mutai

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=e2cbe06e-c83b-4bbf-94dd-386fea7fb41f@arm.com \
    --to=harrison.mutai@arm.com \
    --cc=andre.przywara@arm.com \
    --cc=manish.pandey2@arm.com \
    --cc=nd@arm.com \
    --cc=trini@konsulko.com \
    --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.