Re: rtems_task_wake_after()/usleep() sleeping less than requested?

2019-05-05 Thread Sebastian Huber
On 18/04/2019 13:41, Martin Erik Werner wrote: With our custom bsp of rtems (based on sparc/leon3 from 4.11.3) we are observing that rtems_task_wake_after() and usleep() quite often sleeps less than the requested amount when measured with rtems_clock_get_uptime_nanoseconds() timestamps. Is this

Re: libbsd network stack optimization tips & tricks

2019-05-05 Thread Sebastian Huber
On 24/04/2019 23:37, Jonathan Brandmeyer wrote: Any good tips & tricks I should know about how to optimize the rtems-libbsd networking stack? Case: - Cortex-A9, dual-core, SMP mode, using the zynq BSP on microzed hardware. - RTEMS v5, using the libbsd networking layer. - Network is otherwise idl

Re: SMP working?

2019-05-05 Thread Sebastian Huber
On 05/05/2019 21:37, Joel Sherrill wrote: The erc32 is a single core processor and smo is not going to work at all. You need to be using the Leon3 in the sparc family. I use the erc32 GDB simulator quite often to run the tests with SMP enabled. If you don't see any output, then something is no

Re: rtems_binary_semaphore_post from IRQ handler

2019-05-05 Thread Sebastian Huber
Hello, using rtems_binary_semaphore_post() in interrupt context is fine. Maybe this is related to an interrupt with a too high priority, see also: https://lists.rtems.org/pipermail/users/2019-April/033102.html -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim

Re: rtems_binary_semaphore_post from IRQ handler

2019-05-05 Thread jameszxj
From the document c-user.pdf 25.6.6??the funciton may be called from interrupt context. I have used rtems_semaphore_xxx API in UART drivers, it works fine. RTEMS_FATAL_SOURCE_EXCEPTION should print the PC,LR ... I think you can trace the PC pointer to see what makes the FATAL.

Re: rtems_binary_semaphore_post from IRQ handler

2019-05-05 Thread Chris Johns
On 6/5/19 1:55 am, Ярослав Лещинский wrote: > Hello again, > > still have some troubles with post/wait binary semaphore sequence. Could > someone > suggest what is a right way when you're working with semaphore inside > interrupts. > > I have sys call via spidev which is waiting for the binary

Re: SMP working?

2019-05-05 Thread Joel Sherrill
The erc32 is a single core processor and smo is not going to work at all. You need to be using the Leon3 in the sparc family. On Sun, May 5, 2019, 12:31 PM Eghonghon Eigbe wrote: > > -- Forwarded message - > From: Eghonghon Eigbe > Date: Sun, 5 May 2019, 6:00 pm > Subject: SMP w

Fwd: SMP working?

2019-05-05 Thread Eghonghon Eigbe
-- Forwarded message - From: Eghonghon Eigbe Date: Sun, 5 May 2019, 6:00 pm Subject: SMP working? To: Hello RTEMS community, I am working on a multiprocessor based project and I am planning on using RTEMS for that. I have been trying to run the example testsuites (smp01, smp02,

Re: rtems_binary_semaphore_post from IRQ handler

2019-05-05 Thread Ярослав Лещинский
Hello again, still have some troubles with post/wait binary semaphore sequence. Could someone suggest what is a right way when you're working with semaphore inside interrupts. I have sys call via spidev which is waiting for the binary semaphore. Semaphore released inside the interrupt. In some ca