Re: [PATCH v3 7/8] grlib: make memory coherency cpu-independent

2019-01-21 Thread Jiri Gaisler
On 1/21/19 7:26 AM, Sebastian Huber wrote: > On 18/01/2019 23:34, Jiri Gaisler wrote: >>    */ >>   -extern int   CPU_SPARC_HAS_SNOOPING; >> +extern int   GRLIB_DMA_IS_CACHE_COHERENT; > > I would leave the SPARC BSPs as is. Maybe someone uses this > CPU_SPARC_HAS_SNOOPING in external drivers or w

Re: [PATCH v3 7/8] grlib: make memory coherency cpu-independent

2019-01-21 Thread Sebastian Huber
On 21/01/2019 11:16, Jiri Gaisler wrote: On 1/21/19 7:26 AM, Sebastian Huber wrote: On 18/01/2019 23:34, Jiri Gaisler wrote:    */   -extern int   CPU_SPARC_HAS_SNOOPING; +extern int   GRLIB_DMA_IS_CACHE_COHERENT; I would leave the SPARC BSPs as is. Maybe someone uses this CPU_SPARC_HAS_S

Re: [PATCH v3 7/8] grlib: make memory coherency cpu-independent

2019-01-21 Thread Sebastian Huber
On 21/01/2019 11:30, Jiri Gaisler wrote: diff --git a/bsps/shared/grlib/spw/grspw.c b/bsps/shared/grlib/spw/grspw.c index fbaadd1e13..7d99831e71 100644 --- a/bsps/shared/grlib/spw/grspw.c +++ b/bsps/shared/grlib/spw/grspw.c @@ -25,8 +25,8 @@ #include -#ifndef CPU_SPARC_HAS_SNOOPING -#de

Re: [PATCH v3 7/8] grlib: make memory coherency cpu-independent

2019-01-21 Thread Jiri Gaisler
On 1/21/19 11:16 AM, Jiri Gaisler wrote: > On 1/21/19 7:26 AM, Sebastian Huber wrote: >> On 18/01/2019 23:34, Jiri Gaisler wrote: >>>    */ >>>   -extern int   CPU_SPARC_HAS_SNOOPING; >>> +extern int   GRLIB_DMA_IS_CACHE_COHERENT; >> I would leave the SPARC BSPs as is. Maybe someone uses this >>

Conversion of BSP config files to pkg-config files

2019-01-21 Thread Vijay Kumar Banerjee
Hello, I want to work on the ticket #3302 as a summer project. The goal of the project is to convert the BSP cfg files from `make` format to the pkg-config (.pc) format. The approach would be to first make all the flags and Makefile macros used in the bsp .c

Re: [PATCH v3 7/8] grlib: make memory coherency cpu-independent

2019-01-21 Thread Jiri Gaisler
On 1/21/19 11:33 AM, Sebastian Huber wrote: > On 21/01/2019 11:30, Jiri Gaisler wrote: >> diff --git a/bsps/shared/grlib/spw/grspw.c >> b/bsps/shared/grlib/spw/grspw.c >> index fbaadd1e13..7d99831e71 100644 >> --- a/bsps/shared/grlib/spw/grspw.c >> +++ b/bsps/shared/grlib/spw/grspw.c >> @@ -25,8 +

Re: [PATCH v3 7/8] grlib: make memory coherency cpu-independent

2019-01-21 Thread Sebastian Huber
On 21/01/2019 12:56, Jiri Gaisler wrote: On 1/21/19 11:33 AM, Sebastian Huber wrote: On 21/01/2019 11:30, Jiri Gaisler wrote: diff --git a/bsps/shared/grlib/spw/grspw.c b/bsps/shared/grlib/spw/grspw.c index fbaadd1e13..7d99831e71 100644 --- a/bsps/shared/grlib/spw/grspw.c +++ b/bsps/shared/grli

Re: [PATCH v3 7/8] grlib: make memory coherency cpu-independent

2019-01-21 Thread Jiri Gaisler
On 1/21/19 1:11 PM, Sebastian Huber wrote: > On 21/01/2019 12:56, Jiri Gaisler wrote: >> On 1/21/19 11:33 AM, Sebastian Huber wrote: >>> On 21/01/2019 11:30, Jiri Gaisler wrote: diff --git a/bsps/shared/grlib/spw/grspw.c b/bsps/shared/grlib/spw/grspw.c index fbaadd1e13..7d99831e71 1

[PATCH v4 2/8] grlib: Move source files

2019-01-21 Thread Jiri Gaisler
From: Sebastian Huber --- bsps/shared/grlib-sources.am | 67 +++ .../shared => shared/grlib}/1553/b1553brm.c | 0 .../shared => shared/grlib}/1553/b1553rt.c| 0 .../shared => shared/grlib}/1553/gr1553b.c| 0 .../shared => shared/grlib}/1553/gr1553bc.c

[PATCH v4 0/8] Adding griscv bsp

2019-01-21 Thread Jiri Gaisler
Fourth take on adding a bsp for a RISC-V GRLIB cpu, taking into account previous comments. Jiri Gaisler (6): grlib: Fix inludes grlib: make apbuart driver independent of bsp grlib: use rtems_interrupt_handler_install() for all interrupt handlers grlib: use cpu-independent routines for

[PATCH v4 3/8] grlib: Fix inludes

2019-01-21 Thread Jiri Gaisler
--- bsps/headers.am | 64 +++ bsps/include/grlib/ambapp.h | 2 +- bsps/include/grlib/ambapp_bus.h | 2 +- bsps/include/grlib/apbuart.h | 4 +- bsps/include/grlib/apbuart_termios.h | 2 +- bs

[PATCH v4 6/8] grlib: use cpu-independent routines for uncached access

2019-01-21 Thread Jiri Gaisler
--- bsps/include/grlib/grlib_impl.h | 52 +++ bsps/shared/grlib/1553/b1553brm.c | 10 +--- bsps/shared/grlib/1553/b1553rt.c | 11 +--- bsps/shared/grlib/can/grcan.c | 27 ++ bsps/shared/grlib/pci/grpci2dma.c

[PATCH v4 5/8] grlib: use rtems_interrupt_handler_install() for all interrupt handlers

2019-01-21 Thread Jiri Gaisler
--- bsps/shared/grlib/ascs/grascs.c | 7 +-- bsps/shared/grlib/can/satcan.c | 6 -- bsps/shared/grlib/drvmgr/ambapp_bus_grlib.c | 7 --- bsps/shared/grlib/slink/grslink.c | 7 +-- 4 files changed, 18 insertions(+), 9 deletions(-) diff --git a/bsp

[PATCH v4 1/8] grlib: Move header files

2019-01-21 Thread Jiri Gaisler
From: Sebastian Huber --- .../include/bsp => include/grlib}/ahbstat.h | 0 .../{sparc/include => include/grlib}/ambapp.h | 0 .../drvmgr => include/grlib}/ambapp_bus.h | 0 .../grlib}/ambapp_bus_grlib.h | 0 .../include => include/grlib}/ambapp_ids.h| 0 .../includ

[PATCH v4 7/8] grlib: make memory coherency cpu-independent

2019-01-21 Thread Jiri Gaisler
--- bsps/include/grlib/grlib_impl.h | 5 + bsps/shared/grlib/spw/grspw.c | 6 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/bsps/include/grlib/grlib_impl.h b/bsps/include/grlib/grlib_impl.h index f1260671e0..68cc292886 100644 --- a/bsps/include/grlib/grlib_impl.h +++

[PATCH v4 4/8] grlib: make apbuart driver independent of bsp

2019-01-21 Thread Jiri Gaisler
--- bsps/include/grlib/apbuart.h | 1 + bsps/shared/grlib/uart/apbuart_cons.c | 32 +-- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/bsps/include/grlib/apbuart.h b/bsps/include/grlib/apbuart.h index d30ad0bcef..6a89bb949a 100644 --- a/bsps/incl

[PATCH v4 8/8] riscv: add griscv bsp

2019-01-21 Thread Jiri Gaisler
--- bsps/riscv/griscv/clock/clockdrv.c| 202 ++ bsps/riscv/griscv/config/griscv.cfg | 9 + bsps/riscv/griscv/console/console.c | 162 ++ bsps/riscv/griscv/console/printk_support.c| 126 +++ bsps/riscv/griscv/headers.am

Re: Conversion of BSP config files to pkg-config files

2019-01-21 Thread Chris Johns
On 21/1/19 10:46 pm, Vijay Kumar Banerjee wrote: > > I want to work on the ticket #3302 as a > summer project. Great. > The goal of the project is to convert the BSP cfg files from `make` format to > the > pkg-config (.pc) format. The goal is to be able to

[PATCH] sb: Fix the RTEMS options after strict option checking was added.

2019-01-21 Thread Chris Johns
--- source-builder/sb/options.py | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/source-builder/sb/options.py b/source-builder/sb/options.py index c5fcabe..eb0c2d5 100644 --- a/source-builder/sb/options.py +++ b/source-builder/sb/options.py @@ -53,7 +53,7 @@ cla

Re: [PATCH 2/2] Change default prefix

2019-01-21 Thread Chris Johns
On 21/1/19 5:44 pm, Sebastian Huber wrote: > On 21/01/2019 01:58, Chris Johns wrote: >> On 18/1/19 8:09 pm, Sebastian Huber wrote: >>> ../source-builder/sb-set-builder --rtems-version=6 6/rtems-sparc >>> error: unknown option: --rtems-version >>> Build FAILED >> This support is only on master. > >

Re: [PATCH] sb: Fix the RTEMS options after strict option checking was added.

2019-01-21 Thread Sebastian Huber
On 22/01/2019 03:33, Chris Johns wrote: --- source-builder/sb/options.py | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/source-builder/sb/options.py b/source-builder/sb/options.py index c5fcabe..eb0c2d5 100644 --- a/source-builder/sb/options.py +++ b/source

Re: [PATCH] sb: Fix the RTEMS options after strict option checking was added.

2019-01-21 Thread Chris Johns
On 22/1/19 4:28 pm, Sebastian Huber wrote: > I would like to use it also to change the default prefix, e.g. > > ../source-builder/sb-set-builder --rtems-version=6 6/rtems-sparc > > -> "/opt/rtems/6" > > I need to save the RTEMS version somewhere, the rtems_version is not a global > variable. Hm

[PATCH v2] sb: Fix the RTEMS options after strict option checking was added.

2019-01-21 Thread Chris Johns
--- rtems/config/rtems-version.bset | 4 +++- source-builder/sb/options.py| 16 ++-- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/rtems/config/rtems-version.bset b/rtems/config/rtems-version.bset index b2db1ba..977f268 100644 --- a/rtems/config/rtems-version.bse

[PATCH v2] Change default prefix

2019-01-21 Thread Sebastian Huber
Use OS prefix + "rtems" + $rtems_version as the default prefix to automatically separate different RTEMS versions. Close #3675. --- source-builder/sb/options.py | 6 ++ 1 file changed, 6 insertions(+) diff --git a/source-builder/sb/options.py b/source-builder/sb/options.py index f6963ac..ae6

Re: [PATCH v2] sb: Fix the RTEMS options after strict option checking was added.

2019-01-21 Thread Sebastian Huber
On 22/01/2019 07:18, Chris Johns wrote: --- rtems/config/rtems-version.bset | 4 +++- source-builder/sb/options.py| 16 ++-- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/rtems/config/rtems-version.bset b/rtems/config/rtems-version.bset index b2db1ba..977f26