Re: GCC 7.1 Released

2017-05-11 Thread Sebastian Huber
On 11/05/17 17:29, Joel Sherrill wrote: Ok to On May 11, 2017 5:09 AM, "Sebastian Huber" > wrote: Hello, if someone wants to use GCC 7.1 for RTEMS 4.12, then the RSB should be updated accordingly as

Re: [PATCH 00/32] LEON

2017-05-11 Thread Sebastian Huber
Looks good except 32/32. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine

Re: [PATCH 32/32] score: remove part of an assertion that cannot compile with Clang

2017-05-11 Thread Sebastian Huber
On 11/05/17 16:26, Daniel Hellstrom wrote: From: Jacob Hansen --- cpukit/score/include/rtems/score/threadqimpl.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cpukit/score/include/rtems/score/threadqimpl.h

RE: suggested changes and bug fixes for RTEMS

2017-05-11 Thread Pham, Phong
Hi Gedare, Enclosed are your requests for items 1-3. I logged a ticket for item 4 but feel free to postpone or close the ticket. Just curious, in general when will the committed changes (after sending you the patch like above) be available for someone to git clone the latest rtems tree?

Re: [PATCH 32/32] score: remove part of an assertion that cannot compile with Clang

2017-05-11 Thread Gedare Bloom
On Thu, May 11, 2017 at 10:26 AM, Daniel Hellstrom wrote: > From: Jacob Hansen > > --- > cpukit/score/include/rtems/score/threadqimpl.h | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git

Re: [PATCH 00/32] LEON

2017-05-11 Thread Joel Sherrill
If this touches nothing but LEON BSP code and you have tested it, then I am ok with it assuming it has been adequately tested and doesn't introduce warnings. Did you build smp and uniprocessor? Have you run Chris' BSP tester? Answer yes to all and give until Monday (to give weekend for

Re: GCC 7.1 Released

2017-05-11 Thread Joel Sherrill
Ok to On May 11, 2017 5:09 AM, "Sebastian Huber" < sebastian.hu...@embedded-brains.de> wrote: Hello, if someone wants to use GCC 7.1 for RTEMS 4.12, then the RSB should be updated accordingly as soon as possible. Chris posted a patch to bump gcc and binutils. He just needs to push it. I had

[PATCH 23/32] leon, ahbstat: remove printf warnings

2017-05-11 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/amba/ahbstat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/amba/ahbstat.c b/c/src/lib/libbsp/sparc/shared/amba/ahbstat.c index ee697f6..11bccb9 100644 --- a/c/src/lib/libbsp/sparc/shared/amba/ahbstat.c

[PATCH 31/32] sparc: only define start if it is different from SYM(start)

2017-05-11 Thread Daniel Hellstrom
From: Jacob Hansen The SYM define concatenates the input with the compiler set __USER_LABEL_PREFIX__ define. This define appears to be '_' in GCC but empty in Clang. Therefore when compiling with Clang/LLVM 'SYM(start)' and 'start' defines the same symbol, and the

[PATCH 28/32] leon, grtc: updated overrun condition handling

2017-05-11 Thread Daniel Hellstrom
The following functions now reports to the user that an overrun has occured by returning errno EIO: * grtc_read, on overrun and no more data in the DMA buffer * ioctl(GRTC_IOC_RECV), on overrun and no more frames in the DMA buffer * ioctl(GRTC_IOC_ISSTARTED), EIO is returned on overrun ---

[PATCH 26/32] leon, gr1553bc: SMP support by using spin-locks

2017-05-11 Thread Daniel Hellstrom
Since DMA buffers are managed by the user, responsibility is put on the user to cope with SMP in the application. --- c/src/lib/libbsp/sparc/shared/1553/gr1553bc.c | 123 ++ 1 file changed, 84 insertions(+), 39 deletions(-) diff --git

[PATCH 30/32] sparc: Adjust assembly to improve compability with LLVM

2017-05-11 Thread Daniel Hellstrom
From: Jacob Hansen - All references of %0 changed to %g0 - 'call label,0' changed to 'call label'. According to the sparc specification call does not take any registers - '.seg "text"' changed to '.section ".text"' - the synonym stub is replaced with stb - the

[PATCH 29/32] leon, grtc: SMP support by using spin-locks

2017-05-11 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/tmtc/grtc.c | 91 ++- 1 file changed, 54 insertions(+), 37 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/tmtc/grtc.c b/c/src/lib/libbsp/sparc/shared/tmtc/grtc.c index 3cceb60..c01d7d8 100644 ---

[PATCH 27/32] leon, gr1553bm: SMP support by using spin-locks

2017-05-11 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/1553/gr1553bm.c | 53 --- 1 file changed, 39 insertions(+), 14 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/1553/gr1553bm.c b/c/src/lib/libbsp/sparc/shared/1553/gr1553bm.c index d1b208f..d63983b 100644 ---

[PATCH 25/32] leon, apbuart: remove old RAW UART driver

2017-05-11 Thread Daniel Hellstrom
This driver was initially intended for APBUART access on GRLIB PCI peripherals (AMBA-over-PCI). There are already many APBUART drivers for LEON. Instead of using this one the termios APBUART should work on AMBA-over-PCI systems with recent changes on LEON3, however that has not been tested yet.

[PATCH 32/32] score: remove part of an assertion that cannot compile with Clang

2017-05-11 Thread Daniel Hellstrom
From: Jacob Hansen --- cpukit/score/include/rtems/score/threadqimpl.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cpukit/score/include/rtems/score/threadqimpl.h b/cpukit/score/include/rtems/score/threadqimpl.h index 574221c..975221c 100644

[PATCH 24/32] leon, grtm: SMP support by using spin-locks

2017-05-11 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/tmtc/grtm.c | 198 +- 1 file changed, 115 insertions(+), 83 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/tmtc/grtm.c b/c/src/lib/libbsp/sparc/shared/tmtc/grtm.c index a1038d4..bd7d98f 100644 ---

[PATCH 22/32] leon, pci-peripherals: SMP support by spin-locks and updated genirq

2017-05-11 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/pci/gr_701.c | 67 ++- c/src/lib/libbsp/sparc/shared/pci/gr_cpci_gr740.c | 76 -- c/src/lib/libbsp/sparc/shared/pci/gr_leon4_n2x.c | 66 ++- .../lib/libbsp/sparc/shared/pci/gr_rasta_adcdac.c | 68

[PATCH 09/32] leon, grcan: use RTEMS 4.12 SMP interrupt lock

2017-05-11 Thread Daniel Hellstrom
From: Martin Aberg --- c/src/lib/libbsp/sparc/shared/can/grcan.c | 71 +++ 1 file changed, 44 insertions(+), 27 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/can/grcan.c b/c/src/lib/libbsp/sparc/shared/can/grcan.c index

[PATCH 20/32] leon: allow SMP boot from any CPU

2017-05-11 Thread Daniel Hellstrom
From: Martin Aberg --- c/src/lib/libbsp/sparc/leon3/startup/bspstart.c | 5 + c/src/lib/libbsp/sparc/shared/start/start.S | 14 +- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/c/src/lib/libbsp/sparc/leon3/startup/bspstart.c

[PATCH 21/32] leon, genirq: SMP support for PCI peripherals

2017-05-11 Thread Daniel Hellstrom
The common interrupt layer for GRLIB PCI perihperals is prepared for SMP support by this patch. The existing locking (interrupt disabling) is replaced by a new requirement on the user to implement locking before calling the genirq API. This approach avoids taking more locks than necessary. The

[PATCH 16/32] leon, grcan: split hw_stop() into hw and sw stop

2017-05-11 Thread Daniel Hellstrom
this is to avoid owning the spin-lock during semaphore operations. --- c/src/lib/libbsp/sparc/shared/can/grcan.c | 13 + 1 file changed, 13 insertions(+) diff --git a/c/src/lib/libbsp/sparc/shared/can/grcan.c b/c/src/lib/libbsp/sparc/shared/can/grcan.c index 1348d7a..1050934 100644

[PATCH 17/32] leon, grcan: semaphore reset count required after flushing

2017-05-11 Thread Daniel Hellstrom
It is also required to use semaphore release instead of flush when stopping or on BUSOFF/AHBERR condition. Otherwise a task just about to wait (taking the semaphore) could end up locked because the semaphore count is still the same. There was previously a scenario where the semaphore flush would

[PATCH 19/32] leon, grcan: removed unused txerror, rxerror

2017-05-11 Thread Daniel Hellstrom
From: Martin Aberg --- c/src/lib/libbsp/sparc/shared/can/grcan.c | 13 - 1 file changed, 13 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/can/grcan.c b/c/src/lib/libbsp/sparc/shared/can/grcan.c index b1eacc0..da236ef 100644 ---

[PATCH 18/32] leon, grcan: fixed historical comment

2017-05-11 Thread Daniel Hellstrom
From: Martin Aberg --- c/src/lib/libbsp/sparc/shared/can/grcan.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/can/grcan.c b/c/src/lib/libbsp/sparc/shared/can/grcan.c index ac1c718..b1eacc0 100644 ---

[PATCH 14/32] leon, grcan: redesigned bus-off and AHB error handling

2017-05-11 Thread Daniel Hellstrom
From: Martin Aberg When bus-off condition is detected by the ISR, it sets the started flag to STATE_BUSOFF. This is monitored by the user functions grcan_read() and grcan_write() each time they want to enable DMA or update interrupt mask. If they detect that ISR has detected

[PATCH 15/32] leon, grcan: RTEMS_NO_TIMEOUT on tx_sem

2017-05-11 Thread Daniel Hellstrom
From: Martin Aberg --- c/src/lib/libbsp/sparc/shared/can/grcan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/src/lib/libbsp/sparc/shared/can/grcan.c b/c/src/lib/libbsp/sparc/shared/can/grcan.c index 45b7af1..1348d7a 100644 ---

[PATCH 13/32] leon, grcan: updated device name and use it for ISR

2017-05-11 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/can/grcan.c | 28 --- c/src/lib/libbsp/sparc/shared/include/grcan.h | 11 +++ 2 files changed, 36 insertions(+), 3 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/can/grcan.c

[PATCH 12/32] leon, grcan: fixed race on interrupt mask register

2017-05-11 Thread Daniel Hellstrom
From: Martin Aberg There was a potential read-modify-write race on the interrupt mask (imr) register between the ISR and user functions. --- c/src/lib/libbsp/sparc/shared/can/grcan.c | 14 ++ 1 file changed, 14 insertions(+) diff --git

[PATCH 11/32] leon, grcan: unregister interrupt handler at close

2017-05-11 Thread Daniel Hellstrom
From: Martin Aberg --- c/src/lib/libbsp/sparc/shared/can/grcan.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/c/src/lib/libbsp/sparc/shared/can/grcan.c b/c/src/lib/libbsp/sparc/shared/can/grcan.c index 003cecf..c7aadae 100644 ---

[PATCH 10/32] leon, grcan: protect statistics on copy to user

2017-05-11 Thread Daniel Hellstrom
From: Martin Aberg Locking the stats structure when copying to user buffer ensures a consistent view to the user. --- c/src/lib/libbsp/sparc/shared/can/grcan.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/c/src/lib/libbsp/sparc/shared/can/grcan.c

[PATCH 07/32] leon, grcan: function based user interface

2017-05-11 Thread Daniel Hellstrom
From: Martin Aberg This commit preserves all driver services, using a function based user interface instead of the I/O interface. The messages count parameter is now number of CAN messages instead of number of bytes. --- c/src/lib/libbsp/sparc/shared/can/grcan.c | 661

[PATCH 05/32] leon, irq: single CPU SMP configuration does not need IPI ISR

2017-05-11 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/irq/irq-shared.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/irq/irq-shared.c b/c/src/lib/libbsp/sparc/shared/irq/irq-shared.c index 174324f..f219e49 100644 ---

[PATCH 06/32] bsp/leon3: Cleaner namespace for LEON3 debug UART

2017-05-11 Thread Daniel Hellstrom
From: Martin Aberg Prefix BSP specific symbols with BSP name: dbg_uart -> leon3_debug_uart debug_uart_index -> leon3_debug_uart_index --- .../libbsp/sparc/leon3/console/printk_support.c| 34 +++--- c/src/lib/libbsp/sparc/leon3/include/leon.h| 2

[PATCH 08/32] leon, grcan: consistent indentation

2017-05-11 Thread Daniel Hellstrom
From: Martin Aberg This commit does not contain any change of functionality. --- c/src/lib/libbsp/sparc/shared/can/grcan.c | 1162 - c/src/lib/libbsp/sparc/shared/include/grcan.h | 76 +- 2 files changed, 618 insertions(+), 620 deletions(-)

[PATCH 04/32] leon, greth: new option and change soft-reset logic for EDCL

2017-05-11 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/net/greth.c | 67 ++- 1 file changed, 49 insertions(+), 18 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/net/greth.c b/c/src/lib/libbsp/sparc/shared/net/greth.c index 2e479ed..5e2ee49 100644 ---

[PATCH 03/32] leon, greth: 10/100 modes should be assigned in fastest priority

2017-05-11 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/net/greth.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/net/greth.c b/c/src/lib/libbsp/sparc/shared/net/greth.c index 9f41a51..2e479ed 100644 --- a/c/src/lib/libbsp/sparc/shared/net/greth.c +++

[PATCH 00/32] LEON

2017-05-11 Thread Daniel Hellstrom
The third set of patches for LEON. In short it contains: * GRCAN API changed from I/O system to C functions API, better error handling, other improvements and SMP support. * GRETH ethernet reset/autonegotiation improvements for GR740 * Possible to have LEON3 SMP kernel to boot on other than

[PATCH 02/32] leon, greth: speed modes advertising now configurable

2017-05-11 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/include/greth.h | 10 c/src/lib/libbsp/sparc/shared/net/greth.c | 36 --- 2 files changed, 42 insertions(+), 4 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/greth.h

[PATCH 01/32] leon, greth: EDCL and DD is disabled during reset

2017-05-11 Thread Daniel Hellstrom
The EDCL and Duplex-Detection are now disabled during soft-reset of the GRETH core. The speed settings are preserved on boot and greth_stop() also, this is required to keep EDCL operational when DD is set. --- c/src/lib/libbsp/sparc/shared/include/greth.h | 1 +

Re: GCC 7.1 Released

2017-05-11 Thread Sebastian Huber
Hello, if someone wants to use GCC 7.1 for RTEMS 4.12, then the RSB should be updated accordingly as soon as possible. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail :

Re: [PATCH] confdefs.h: CONFIGURE_DISABLE_SMP_CONFIGURATION

2017-05-11 Thread Chris Johns
On 11/5/17 7:56 pm, Sebastian Huber wrote: > Enable the SMP configuration by default in case SMP is enabled. Add > configuration option CONFIGURE_DISABLE_SMP_CONFIGURATION to disable it > explicitly. > > Add CONFIGURE_DISABLE_SMP_CONFIGURATION to all test which would fail > otherwise. > >

[PATCH] confdefs.h: CONFIGURE_DISABLE_SMP_CONFIGURATION

2017-05-11 Thread Sebastian Huber
Enable the SMP configuration by default in case SMP is enabled. Add configuration option CONFIGURE_DISABLE_SMP_CONFIGURATION to disable it explicitly. Add CONFIGURE_DISABLE_SMP_CONFIGURATION to all test which would fail otherwise. Update #3001. --- cpukit/sapi/include/confdefs.h |