Receiving Interrupts on TX2
Posted: Mon Aug 13, 2018 8:09 pm
Hi,
My lab is using ERIKA3 on a Jetson TX2 with the Jailhouse hypervisor as the controller for one of our robots. We have successfully written SPI and GPIO drivers, as well as implemented a QP solver, and we are impressed with the performance.
Now, I am trying to get shared memory working between Linux and the Erika cell. I was able to get the ivshmem-demo (from the jetson-jailhouse github https://github.com/evidence/linux-jailh ... mem-demo.c) running successfully on Jailhouse, but running the code in Erika only sends interrupts, and cannot receive interrupts.
To attempt to remedy this, I am trying to use the SetISR2Source function from the dynamic API. I am using the dynamic api demo, which runs successfully for an ISR source of "OSEE_GTIMER_IRQ", which seems to be a clock. Replacing this source number with (300+32), the IRQ for the ivshmem demo, does not work. The code compiles and runs fine, but does not receive any interrupts.
I also tried defining the ISR object with SOURCE = "(300+32)" instead of the default "27", and then attaching a handler, but this also does not seem to work.
Do you have any advice for getting the interrupts configured? Or how to get shared memory, particularly in the form of the "ivshmem-demo", working with Linux?
Thanks!
Andrew
My lab is using ERIKA3 on a Jetson TX2 with the Jailhouse hypervisor as the controller for one of our robots. We have successfully written SPI and GPIO drivers, as well as implemented a QP solver, and we are impressed with the performance.
Now, I am trying to get shared memory working between Linux and the Erika cell. I was able to get the ivshmem-demo (from the jetson-jailhouse github https://github.com/evidence/linux-jailh ... mem-demo.c) running successfully on Jailhouse, but running the code in Erika only sends interrupts, and cannot receive interrupts.
To attempt to remedy this, I am trying to use the SetISR2Source function from the dynamic API. I am using the dynamic api demo, which runs successfully for an ISR source of "OSEE_GTIMER_IRQ", which seems to be a clock. Replacing this source number with (300+32), the IRQ for the ivshmem demo, does not work. The code compiles and runs fine, but does not receive any interrupts.
I also tried defining the ISR object with SOURCE = "(300+32)" instead of the default "27", and then attaching a handler, but this also does not seem to work.
Do you have any advice for getting the interrupts configured? Or how to get shared memory, particularly in the form of the "ivshmem-demo", working with Linux?
Thanks!
Andrew