-
As the title states, I want to know where it's possible to connect the NoMali GPU device that's already available in gem5 to the ARM SMMU. I noticed that AMD GPU is available as a PciDevice but it is restricted to x86. I really appreciate any help on this. Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Absolutely, the SMMU is not required to be used by the PCIe root complex only, and any device could be connected to it. Have a look at the System Placement (2.9) chapter in https://developer.arm.com/documentation/ihi0070/latest to get a visual example.. |
Beta Was this translation helpful? Give feedback.
-
Thanks @giactra, the figure was helpful. Just to confirm, in gem5, NoMali device should be connected through two IO interconnects (one for incoming transactions and one for outgoing)? |
Beta Was this translation helpful? Give feedback.
-
You don't have to. I have no experience with NoMali, but you can connect any DmaDevice directly to the SMMU through the dma port and connect the programmable interface (the pio port) to the iobus.
https://github.com/gem5/gem5/blob/stable/src/dev/Device.py#L103 Once you set sid, it will be visible to the DTB when you autogenerate. Otherwise you would have to amend the FDT manually |
Beta Was this translation helpful? Give feedback.
Absolutely, the SMMU is not required to be used by the PCIe root complex only, and any device could be connected to it. Have a look at the System Placement (2.9) chapter in https://developer.arm.com/documentation/ihi0070/latest to get a visual example..