GPIO writes are serialised across PCIe. To get reliable, repeatable timings the simplest solution is to disable ASPM - Userspace libraries that use libgpiod underneath when accessing hardware are slow. Each gpio operation incurs a syscall.
Code:
echo performance | sudo tee /sys/module/pcie_aspm/parameters/policy
Statistics: Posted by jdb — Tue Oct 08, 2024 8:53 am