From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: Renaud Barbier <Renaud.Barbier@ametek.com>,
Barebox List <barebox@lists.infradead.org>
Subject: Re: handoff data
Date: Tue, 22 Jul 2025 18:05:43 +0200 [thread overview]
Message-ID: <663fda8e-6e09-4a24-9038-8da158cfeaab@pengutronix.de> (raw)
In-Reply-To: <DM5PR07MB353236A680007CD791A00D95EC5CA@DM5PR07MB3532.namprd07.prod.outlook.com>
Hi,
On 7/22/25 17:46, Renaud Barbier wrote:
> Board: owc-swe550s
> RENAUD: handoff_data_get_entry hd = 0x00000000fbefc5c8, cookie = 0x28061971
> ...
> handoff 0x28061971 at 0x00000000fbefc600 (size 27560)
> handoff 0x28061974 at 0x00000000fbf031d0 (size 4)
>
> From device_initcall:
> handoff_data_get_entry hd = 0x00000000fbefc5c8, cookie = 0x951726fb
> baudrate = 0, 0000000000000000 =====> Obviously, no copied from OCRAM
> handoff_data_get_entry hd = 0x00000000fbefc5c8, cookie = 0x28061974
> machine = 4, 00000000fbf031d0, 0x12345678 ==> MACHINE data is correct
>
> So, there is a need to copy the data from OCRAM to when the memory is available.
Yes. You can see how it's done for i.MX8M by grepping for
handoff_data_move().
What we do there is passing handoff_data_move() an address in DRAM and
then we memcpy the active PBL at the start of the chainloaded image.
The active PBL has set the handoff data base pointer in the data section
and thus it just works.
Cheers,
Ahmad
>
>>
>> Cheers,
>> Ahmad
>>
>>>
>>> Cheers,
>>> Renaud
>>>
>>>
>>
>> --
>> Pengutronix e.K. | |
>> Steuerwalder Str. 21 |
>> https://urldefense.com/v3/__http://www.pengutronix.de/__;!!HKOSU0g!HR
>> UHvAKHu8BujxVw_027NrNyWR1gCzuOAqRxHitCLcKK7_3GAlFYC1T3Ybcg07
>> WVj9r_PsvGrn9utecIX6xw5yiaxC4$ |
>> 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
>> Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
>
--
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 |
prev parent reply other threads:[~2025-07-22 16:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-22 11:08 Renaud Barbier
2025-07-22 12:16 ` Ahmad Fatoum
2025-07-22 15:46 ` Renaud Barbier
2025-07-22 16:05 ` Ahmad Fatoum [this message]
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=663fda8e-6e09-4a24-9038-8da158cfeaab@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=Renaud.Barbier@ametek.com \
--cc=barebox@lists.infradead.org \
/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