How to Access PCIe ATU Registers
Mar 04, 2024
Hi.
I am currently running Jetpack 5.1 on Jetson AGX Xavier. How do I access the PCIe ATU registers mentioned in the Xavier Technical Reference Manual? I tried reading the value at address 0x3a040000 from a linux module, but ran into kernel panic.
Is 0x3a040000 the correct offset for accessing PCIe registers? How can I access the PCIe ATU registers without kernel panic?
The steps I follow are these:
- Use phys_to_virt(0x3a040000) to get virtual address.
- Read the value at this virtual address using readl() API.
When I insmod my module, I get kernel panic. How may I resolve this issue?
Regards,
Sana Ur Rehman