Tool/software:
Hi,
because this is a complex topic I wanted to ask if I have the correct understanding of the firewalls:
On our system we use Linux next to some safety applications on the A53 cores. From software perspective memory separation is handled by a hypervisor and the MMU.
However, we use the CPSW networking driver in Linux, which also has access to the DMA engine. So we must ensure that when incoming packets are written to memory by DMA that it can only write to certain memory regions. From my understanding this is what the firewalls are for.
Do you think this is a viable configuration for the scenario (IDs taken from TRM):
- Configure full memory as background region for priv-ID 4 (COMPUTE_CLUSTER0) for normal system access
- Configure region allocated for DMA buffers as foreground region for priv-ID 4 + 192 (DMA Reserved priv-ID)
This should block DMA writes to other parts of the system, right? Or do I miss something here?
Thanks