Hi,
I am working on porting FD.io/VPP onto the Cortex Tegra K1, and I encountered a problem when using the mainline kernel (tested with 3.18.33 and 4.5.3)
I can NOT use the 3.10 kernel sources provided by nvidia as this specific application (wich is based on DPDK requires) requires hugepages.
In order to have access to the Performance Monitor in userspace (LP0), I have a simple kernel module which, at initialisation enable PMUSEREN.EN :
asm volatile("mcr p15, 0, %0, c9, c14, 0" :: "r"(1)); /* Enable user mode access */
In userspace, with another kernel than the one provided by nvidia, the bit is reset to 0 !
It is not a kernel problem, as this works with different kernel version on a RaspberryPi.
Some code:
Any idea ?
Thanks !