Hi,
Where i can find step-by-step instruction how to init SMMU PA->IPA translation? (With procedure description)
(i checked ARM ® System Memory Management document, but i was not found exact instruction how to setup correct translation).
I have ARM Cortex-A7 MP with SMMUv1 where GPU is located. I need to translate physical address 0x60 0000 0000 (GPU base address) to virtual address 0x3000 0000. Is it possible to translate it?
Setting up the SMMU is fairly complex if done manually, you need to:
From secure code:
From NS code:
Execute a DSB to make sure that all happened and you're set!
There is a linux IOMMU driver for ARM SMMUs that might be worth a look at.
Thank you for your answer.
I got a problem:
In errata i found this: The SMMU TLB is not functional in the device, therefore the address translation feature of allthe SMMU's cannot be enabled/used. Nonetheless, the remaining attribute translation can stillbe used.