Hello Marco,

On 1/18/26 8:09 PM, Marco Felsch wrote:
> Hi Ahmad,
> 
> On 26-01-15, Ahmad Fatoum wrote:
> I get your point regarding the unnecessary breakage. It would have been
> nice if we could have a TF-A loading abstraction within the PBL since
> loading the TF-A and (opt. OP-TEE OS) is mostly the same on each and
> every ARMv8-A SoC and we tend to adapt barebox rather than adapting the
> TF-A binary.

Sure, I would also love to have a generic flow for that and that's one
reason, why I want to restructure our early PBL code and want to avoid
extra API breakage till then.

> However I would like to mention that handover data was meant to be
> passing data between the PBL and barebox. We would repurpose the
> handover mechanism if we would use the handover data. In this case it
> could be re-used in several other places. Therefore I'm not a fan of
> this idea.

My original thought is that we could use the same DT later for passing
to barebox proper as well, so we are really just moving the addition of
the handoff entry earlier.

I see now that this doesn't really work as barebox can be chainloaded at
EL2/1 and in that case, the initial setting of the oftree handoff data
would've been lost.

> What do you think about adding the 'fdt' support only to the 'lowlevel'
> APIs:
>   - __imx8mp_load_and_start_image_via_tfa()
>   - __imx8mm_load_and_start_image_via_tfa()
>   - __imx8mn_load_and_start_image_via_tfa()
> ?

Sure, I can live with that.

> These APIs are most certainly not used by anyone who is using the
> current standard way of booting OP-TEE for these platforms. Of course we
> could also add helpers like:
> 
> imx8mn_load_and_start_image_via_tfa_with_fdt()
> 
> but the naming is becoming very clunky.
> 
>> if it turns out to not work out of the box or complicate things in an
>> disproportionate manner, please let me know and we can re-evaluate.
> 
> Please see my above points.

Sounds good. I am not insistent on using handoff, using a different
function for me works too.

Cheers,
Ahmad

> 
> Regards,
>   Marco
> 
>>
>> Thanks,
>> Ahmad
>>
>> -- 
>> 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 |
>>
>>
> 

-- 
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 via email to