All of lore.kernel.org
 help / color / mirror / Atom feed
* [EVL] Problems writing to physical memory with mmap on oob context
@ 2023-09-26 11:21 Jesus Villena
  2023-09-26 14:15 ` Philippe Gerum
  0 siblings, 1 reply; 6+ messages in thread
From: Jesus Villena @ 2023-09-26 11:21 UTC (permalink / raw)
  To: xenomai@lists.linux.dev

Hello,

We are using an ARM64 based platform which includes a small Cortex M4 processor to run some algorithms, and both subsystems use an internal shared SRAM memory to implement the inter-processor communication.

In mainline Linux, we open a "/dev/mem" file in the ARM64 core to get access to physical memory, and mmap the shared area to read and write directly to the SRAM from userland.

With EVL, it doesn't work: after opening the file and doing mmap, we call evl_attach_self to switch to the oob context, and then, reading on the shared area works, but writing aborts the program with the message:

EVL: evl_test switching in-band [pid=363, excpt=0, user_pc=0x404b5c]
oop...
CPU time limit exceeded

I don't understand why EVL is switching to in-band context.

Do you know where is the problem? Why does reading work but writing doesn't?

Regards.

Jesus Villena


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-09-27  6:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-26 11:21 [EVL] Problems writing to physical memory with mmap on oob context Jesus Villena
2023-09-26 14:15 ` Philippe Gerum
2023-09-26 15:40   ` Jesus Villena
2023-09-26 15:46     ` Philippe Gerum
2023-09-26 16:04       ` Jesus Villena
2023-09-27  6:51         ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.