Hi Caleb,

Thanks. I was missing this background.

I guess G1NS interrupts will have to be turned off explicitly in the GIC during this sequence.

cheers,
Achin

From: Caleb Ethridge via TF-A <tf-a@lists.trustedfirmware.org>
Sent: 10 November 2023 17:55
To: tf-a@lists.trustedfirmware.org <tf-a@lists.trustedfirmware.org>
Subject: [TF-A] Re: Handling of normal world interrupts with BL31 PSCI handler
 
Hello Achin,

We originally discovered this problem while trying to enable the EHF framework in TF-A and get it to work with OPTEE, and that requires the build macro EL3_EXCEPTION_HANDLING to be turned on. The previous thread is here: https://lists.trustedfirmware.org/archives/list/tf-a@lists.trustedfirmware.org/thread/HDFDUBNCEHPV7VS7EOHZC6QH3ERZDHND/#HDFDUBNCEHPV7VS7EOHZC6QH3ERZDHND

With EL3_EXCEPTION_HANDLING turned on, interrupts are unconditionally routed to BL31 which would then perform the necessary context switch to the correct world for handling, so if I understand correctly OPTEE's masking/unmasking of the interrupt should have no effect.

Thanks,

Caleb
--
TF-A mailing list -- tf-a@lists.trustedfirmware.org
To unsubscribe send an email to tf-a-leave@lists.trustedfirmware.org