Re: [PATCH rtems-tools v4] tester/rtemstoolkit: add renode implementation

2023-09-05 Thread Daniel Hellstrom
Hi Gedare, I was hoping that you might be able to provide a 2-BSD or a GPLv2+linker exception license for this file. I've tried to look into this, but unfortunately at this time I can not provide prom.S under a different license. If that would change I will let you know. Sounds like a really

Re: UT699 ABI CFLAGS Question

2023-05-02 Thread Daniel Hellstrom
Hi Joel, The UT699 uses --mcpu=leon because it has a matching ISA. The mcpu=leon3 generates CAS instruction which is not present in UT699. With --mcpu=leon is used with --mfix-ut699 there are some UT699 specifics enabled. I think the yml-file looks correct. /Daniel On 2023-04-28 23:38,

Re: Project Discussion for GSoC 2023

2023-02-20 Thread Daniel Hellstrom
Hi Viraj, There is an old GRETH network driver as part of the old network stack that would be a good reference. Note that the old driver supports two IPs (GRETH 10/100, and GRETH_GBIT 10/100/1000). The GRETH_GBIT IP is mostly backwards compatible with the GRETH, but as some additional

Re: [PATCH v1 1/1] gpiolib/grgpio: Add support for newer grgpio features

2021-08-26 Thread Daniel Hellstrom
Hi Jan, I haven't tested the code, but it seems to be that the ordinary case when GPIO[N] is connected to Interrupt[N] will not work? The fixup makes GPIO[N] pin be associated with interrupt[0] (which is not available) and  GPIO[1] with Interrupt[1] and so one which is the case with

Re: [PATCH v2 1/1] grlib/genirq: Taking into account that it could be more than one ISR enabled/disabled

2021-04-15 Thread Daniel Hellstrom
Looks good. Thanks, Daniel On 2021-04-15 11:52, Moyano, Gabriel wrote: --- bsps/shared/grlib/irq/genirq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bsps/shared/grlib/irq/genirq.c b/bsps/shared/grlib/irq/genirq.c index 285416b0d3..ca80445c70 100644 ---

Re: [PATCH 0/1] grlib/genirq: Issue when enabling/disabling interrupt

2021-04-15 Thread Daniel Hellstrom
Hi Jan, I think it is a correct analysis of the bad return value, when using shared interrupt routines on the same interrupt source. I'm fine with the patch, maybe it could have been simplified, like this: +++ b/bsps/shared/grlib/irq/genirq.c @@ -188,8 +188,8 @@ static int genirq_set_active(

Re: Fwd: New Defects reported by Coverity Scan for RTEMS

2021-03-12 Thread Daniel Hellstrom
yes, it must have, so I will look into that. /Daniel On 2021-03-12 14:07, Joel Sherrill wrote: Without looking, I would assume this was introduced by Daniel's recent patches. -- Forwarded message - From: mailto:scan-ad...@coverity.com>> Date: Fri, Mar 12, 2021, 12:55

Re: [PATCH 00/26] leon: various fixes and TN0018 errata workaround

2021-03-11 Thread Daniel Hellstrom
On 2021-03-08 16:43, Joel Sherrill wrote: On Sun, Mar 7, 2021 at 9:51 AM Daniel Hellstrom <mailto:dan...@gaisler.com>> wrote: On 2020-09-23 17:05, Gedare Bloom wrote: On Wed, Sep 23, 2020 at 4:34 AM Daniel Hellstrom <mailto:dan...@gaisler.com> wrote:

[PATCH, RSB] sparc, leon: GCC-7.5 patch needed for LEON3FT TN0018 errata

2021-03-09 Thread Daniel Hellstrom
Set the __FIX_LEON3FT_TN0018 define for the affected LEON3FT multilibs: * UT699 * UT700 * GR712RC Update #4322. --- rtems/config/5/rtems-sparc.bset | 6 ++ 1 file changed, 6 insertions(+) diff --git a/rtems/config/5/rtems-sparc.bset b/rtems/config/5/rtems-sparc.bset index

Re: [PATCH 00/26] leon: various fixes and TN0018 errata workaround

2021-03-07 Thread Daniel Hellstrom
On 2020-09-23 17:05, Gedare Bloom wrote: On Wed, Sep 23, 2020 at 4:34 AM Daniel Hellstrom wrote: Hi Sebastian, Thanks for asking and sorry for dropping the ball on these. The status is that two needs updating (BSD license for new CAN files and the last tn0018 patch needs some redesign based

Re: [PATCH] grtc.c: Fix four Missing break in switch Coverity errors

2021-03-04 Thread Daniel Hellstrom
Hi, The patch looks good. The fall through is by design intended. Thanks, Daniel Hellstrom Software Section Head T : +46 (0) 31 775 8657 F : +46 (0) 31 421407 dan...@gaisler.com <mailto:dan...@gaisler.com> To receive update notifications, please subscribe tohttps://gaisler.com/news

Re: Device Drivers Which Include mkdir("/dev")

2021-02-23 Thread Daniel Hellstrom
Hi, I think the main reason why the mkdir() is called in the first place, from for example rasta-io driver, is that once other drivers register their device pciN.devM into the /dev/pciboardN/devM it would fail if the the directory /dev/pciboardN has not been created. So it is an attempt to

Re: [PATCH 0/4] RISC-V: NOEL-V BSP

2021-02-12 Thread Daniel Hellstrom
Hi, Thanks all for your comments. The logs have been attached, I'm a bit unsure why the PSXKEY07 was reported as a failure from the log, we should probably double check that can get back to you. /Daniel On 2021-02-09 16:59, Sebastian Huber wrote: On 08/02/2021 20:44, Daniel

[PATCH 4/4 v2] bsp/riscv: Add NOEL-V BSP build specification

2021-02-12 Thread Daniel Hellstrom
From: Martin Aberg --- spec/build/bsps/riscv/noel/abi.yml | 48 +++ spec/build/bsps/riscv/noel/bspnoel32im.yml | 19 + spec/build/bsps/riscv/noel/bspnoel32imafd.yml | 19 + spec/build/bsps/riscv/noel/bspnoel64imac.yml | 19 +

[PATCH 3/4 v2] bsp/riscv: work area size based on stack pointer

2021-02-12 Thread Daniel Hellstrom
From: Martin Aberg Remember the initial stack pointer in start.S. It can later be used to determine top of RAM. --- bsps/riscv/include/bsp/start.h | 65 ++ bsps/riscv/shared/start/bspgetworkarea-fromstack.c | 53 ++

[PATCH] bsp/riscv: move riscv/riscv build spec one level up

2021-02-12 Thread Daniel Hellstrom
From: Martin Aberg These build specifications can be useful for other BSPs aswell. --- spec/build/bsps/riscv/{riscv => }/objsmp.yml | 0 spec/build/bsps/riscv/{riscv => }/optextirqmax.yml | 0 spec/build/bsps/riscv/{riscv => }/optfdtcpyro.yml | 0 spec/build/bsps/riscv/{riscv =>

[PATCH 2/4 v2] bsp/riscv: Add NOEL-V BSP

2021-02-09 Thread Daniel Hellstrom
From: Martin Aberg Added support for Cobham Gaisler NOEL-V systems. The NOEL-V support is implemented as a riscv BSP. Both 32-bit and 64-bit processor systems are supported. Cobham Gaisler's NOEL-V RISC-V processor IP is described here: https://www.gaisler.com/NOELV Compatible with the

Re: [PATCH] bsp,riscv: change to BSD-2 license on console_config.c

2021-02-09 Thread Daniel Hellstrom
Ok, didn't notice that. Will the noelv bsp rebase on top for it. Thanks, Daniel Hellstrom Software Section Head T : +46 (0) 31 775 8657 F : +46 (0) 31 421407 dan...@gaisler.com <mailto:dan...@gaisler.com> To receive update notifications, please subscribe tohttps://gaisler.com/news

[PATCH] bsp,riscv: change to BSD-2 license on console_config.c

2021-02-09 Thread Daniel Hellstrom
--- bsps/riscv/riscv/console/console-config.c | 25 ++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/bsps/riscv/riscv/console/console-config.c b/bsps/riscv/riscv/console/console-config.c index 9454eac..c7a0261 100644 ---

[PATCH 4/4] bsp/riscv: Add NOEL-V BSP build specification

2021-02-08 Thread Daniel Hellstrom
From: Martin Aberg --- spec/build/bsps/riscv/noel/abi.yml | 48 ++ spec/build/bsps/riscv/noel/bspnoel32im.yml | 19 + spec/build/bsps/riscv/noel/bspnoel32imafd.yml | 19 + spec/build/bsps/riscv/noel/bspnoel64imac.yml | 19 +

[PATCH 3/4] bsp/riscv: work area size based on stack pointer

2021-02-08 Thread Daniel Hellstrom
From: Martin Aberg Remember the initial stack pointer in start.S. It can later be used to determine top of RAM. --- bsps/riscv/shared/start/bspgetworkarea-fromstack.c | 55 ++ bsps/riscv/shared/start/start.S| 15 ++ 2 files changed, 70 insertions(+)

[PATCH 2/4] bsp/riscv: Add NOEL-V BSP

2021-02-08 Thread Daniel Hellstrom
From: Martin Aberg Added support for Cobham Gaisler NOEL-V systems. The NOEL-V support is implemented as a riscv BSP. Both 32-bit and 64-bit processor systems are supported. Cobham Gaisler's NOEL-V RISC-V processor IP is described here: https://www.gaisler.com/NOELV Compatible with the

[PATCH 1/4] apbuart_termios: use bsp/irq.h

2021-02-08 Thread Daniel Hellstrom
From: Martin Aberg The real dependency in this case is on rtems/irq-extension.h. The theme in other other console drivers is to get it via bsp/irq.h, so that pattern is followed. --- bsps/shared/grlib/uart/apbuart_termios.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 0/4] RISC-V: NOEL-V BSP

2021-02-08 Thread Daniel Hellstrom
This set of patches adds a BSP for the NOEL-V RISC-V processor IP from Cobham Gaisler: https://www.gaisler.com/noelv The patches are for the RTEMS master branch with the autoconf and new WAF build system. If accepted another patch set for the RTEMS-5 branch will follow. Patches for the

[GCC PATCH] rtems: add __FIX_LEON3FT_TN0018 for affected targets

2020-10-16 Thread Daniel Hellstrom
Enable a define FIX_LEON3FT_TN0018 for the LEON3FT targets affecdted by the GRLIB-TN-0018 errata described here: https://www.gaisler.com/notes --- gcc/config/sparc/rtemself.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/config/sparc/rtemself.h b/gcc/config/sparc/rtemself.h index

[PATCHv4 08/26] leon, can: introduce common CAN baud-rate calculation function

2020-10-16 Thread Daniel Hellstrom
Reimplemented the baud-rate algorithm from scratch to cope with GRCAN, GRCANFD and OC_CAN devices. --- bsps/headers.am | 1 + bsps/include/grlib/canbtrs.h| 80 ++ bsps/shared/grlib-sources.am| 1 + bsps/shared/grlib/can/canbtrs.c | 143

[PATCH] LICENSE.BSD-2-Clause: sync with template from RTEMS homepage

2020-10-16 Thread Daniel Hellstrom
This adds the doxygen template. --- LICENSE.BSD-2-Clause | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/LICENSE.BSD-2-Clause b/LICENSE.BSD-2-Clause index 60a74e9..349b8df 100644 --- a/LICENSE.BSD-2-Clause +++ b/LICENSE.BSD-2-Clause @@ -23,9 +23,22 @@

[PATCHv2 01/26] sparc: Remove sequences that the B2BST scan script warns about

2020-10-16 Thread Daniel Hellstrom
From: Daniel Cederman Update #4154. --- cpukit/score/cpu/sparc/cpu_asm.S | 6 -- cpukit/score/cpu/sparc/syscall.S | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cpukit/score/cpu/sparc/cpu_asm.S b/cpukit/score/cpu/sparc/cpu_asm.S index d5afd5f..bfad3fb 100644 ---

[PATCHv2 25/26] sparc,leon: avoid triggering LEON3FT errata TN-0009

2020-10-16 Thread Daniel Hellstrom
Update #4154. --- cpukit/score/cpu/sparc/cpu_asm.S | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cpukit/score/cpu/sparc/cpu_asm.S b/cpukit/score/cpu/sparc/cpu_asm.S index bfad3fb..1251faa 100644 --- a/cpukit/score/cpu/sparc/cpu_asm.S +++

[PATCHv2 26/26] leon,tn-0018: work around GRLIB-TN-0018 errata

2020-10-16 Thread Daniel Hellstrom
Overview The errata is worked around in the kernel without requiring toolchain modifications. It is triggered the JMPL/RETT return from trap instruction sequence never generated by the compiler and. There are also other conditions that must must be true to trigger the errata, for example

[PATCHv2 24/26] sparc,leon: avoid triggering TN-0009 bad sequence

2020-10-16 Thread Daniel Hellstrom
Update #4154. --- cpukit/score/cpu/sparc/sparc-counter-asm.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpukit/score/cpu/sparc/sparc-counter-asm.S b/cpukit/score/cpu/sparc/sparc-counter-asm.S index a1e18ae..fb7783e 100644 ---

[PATCHv3 08/26] leon, can: introduce common CAN baud-rate calculation function

2020-10-16 Thread Daniel Hellstrom
Reimplemented the baud-rate algorithm from scratch to cope with GRCAN, GRCANFD and OC_CAN devices. --- bsps/headers.am | 1 + bsps/include/grlib/canbtrs.h| 80 ++ bsps/shared/grlib-sources.am| 1 + bsps/shared/grlib/can/canbtrs.c | 143

Re: [PATCH 0/3] grlib: Some clean ups

2020-09-23 Thread Daniel Hellstrom
Hi Sebastian, The patch set looks good. Thanks! /Daniel On 2020-09-18 10:00, Sebastian Huber wrote: Sebastian Huber (3): grlib: Remove superfluous forward decls grlib: Remove unused conversion macros grlib: Add ambapp_common_info to derived types

Re: [PATCH 00/26] leon: various fixes and TN0018 errata workaround

2020-09-23 Thread Daniel Hellstrom
Hi Sebastian, Thanks for asking and sorry for dropping the ball on these. The status is that two needs updating (BSD license for new CAN files and the last tn0018 patch needs some redesign based on feedback) and the others are accepted for master. I've sent an response on the tn0018 errata

Re: [PATCH 26/26] leon,tn-0018: work around GRLIB-TN-0018 errata

2020-09-23 Thread Daniel Hellstrom
Hi, Thank you for your comments. Sorry for my late reply, please see my responses below. On 2020-06-29 15:13, Joel Sherrill wrote: On Mon, Jun 29, 2020 at 8:02 AM Sebastian Huber <mailto:sebastian.hu...@embedded-brains.de>> wrote: On 29/06/2020 14:34, Daniel Hellst

Re: [PATCH 26/26] leon,tn-0018: work around GRLIB-TN-0018 errata

2020-06-29 Thread Daniel Hellstrom
On 2020-06-29 13:57, Sebastian Huber wrote: On 29/06/2020 13:28, Daniel Hellstrom wrote: diff --git a/bsps/sparc/leon3/config/gr712rc.cfg b/bsps/sparc/leon3/config/gr712rc.cfg index 3852932..e8f0731 100644 --- a/bsps/sparc/leon3/config/gr712rc.cfg +++ b/bsps/sparc/leon3/config/gr712rc.cfg

Re: [PATCH 08/26] leon, can: introduce common CAN baud-rate calculation function

2020-06-29 Thread Daniel Hellstrom
On 2020-06-29 13:48, Sebastian Huber wrote: On 29/06/2020 13:27, Daniel Hellstrom wrote: +/* + *  COPYRIGHT (c) 2019. + *  Cobham Gaisler AB. + * + *  The license and distribution terms for this file may be + *  found in the file LICENSE in this distribution or at + *http://www.rtems.org

[PATCH 21/26] leon, ahbstat: register definitions for AHBSTAT version 1

2020-06-29 Thread Daniel Hellstrom
From: Martin Aberg --- bsps/include/grlib/ahbstat.h | 2 ++ bsps/shared/grlib/amba/ahbstat.c | 8 2 files changed, 10 insertions(+) diff --git a/bsps/include/grlib/ahbstat.h b/bsps/include/grlib/ahbstat.h index 71e2330..0baaad0 100644 --- a/bsps/include/grlib/ahbstat.h +++

[PATCH 20/26] leon, grspw_router: added router_port_link_div()

2020-06-29 Thread Daniel Hellstrom
From: Martin Aberg Allows user to set SpaceWire run clock divisor for an individual port. --- bsps/include/grlib/grspw_router.h| 1 + bsps/shared/grlib/spw/grspw_router.c | 5 + 2 files changed, 6 insertions(+) diff --git a/bsps/include/grlib/grspw_router.h

[PATCH 26/26] leon,tn-0018: work around GRLIB-TN-0018 errata

2020-06-29 Thread Daniel Hellstrom
The errata is worked around in the kernel without requiring toolchain modifications. It is triggered the JMPL/RETT return from trap instruction sequence never generated by the compiler and. There are also other conditions that must must be true to trigger the errata, for example the instruction

[PATCH 01/26] sparc: Remove sequences that the B2BST scan script warns about

2020-06-29 Thread Daniel Hellstrom
From: Daniel Cederman --- cpukit/score/cpu/sparc/cpu_asm.S | 6 -- cpukit/score/cpu/sparc/syscall.S | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cpukit/score/cpu/sparc/cpu_asm.S b/cpukit/score/cpu/sparc/cpu_asm.S index d5afd5f..bfad3fb 100644 ---

[PATCH 18/26] leon: restart and load timer counter at initialization

2020-06-29 Thread Daniel Hellstrom
Without this smp05 and smpthreadlife01 tests may fail depending on how the boot loader initialized the GPTIMER. Before the time counter stopped counting when reaching zero, but tests could work since it could take 2^32 us before stopping. The timer driver will potentially overwrite this, but it

[PATCH 24/26] sparc,leon: avoid triggering TN-0009 bad sequence

2020-06-29 Thread Daniel Hellstrom
--- cpukit/score/cpu/sparc/sparc-counter-asm.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpukit/score/cpu/sparc/sparc-counter-asm.S b/cpukit/score/cpu/sparc/sparc-counter-asm.S index a1e18ae..fb7783e 100644 --- a/cpukit/score/cpu/sparc/sparc-counter-asm.S +++

[PATCH 25/26] sparc,leon: avoid triggering LEON3FT errata TN-0009

2020-06-29 Thread Daniel Hellstrom
--- cpukit/score/cpu/sparc/cpu_asm.S | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cpukit/score/cpu/sparc/cpu_asm.S b/cpukit/score/cpu/sparc/cpu_asm.S index bfad3fb..1251faa 100644 --- a/cpukit/score/cpu/sparc/cpu_asm.S +++ b/cpukit/score/cpu/sparc/cpu_asm.S @@ -523,8

[PATCH 19/26] sparc: fix bad register alignment for 64 bit store

2020-06-29 Thread Daniel Hellstrom
--- cpukit/score/cpu/sparc/sparc-access.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpukit/score/cpu/sparc/sparc-access.S b/cpukit/score/cpu/sparc/sparc-access.S index 9397cb8..277fb7e 100644 --- a/cpukit/score/cpu/sparc/sparc-access.S +++

[PATCH 15/26] leon, greth: added support for variable sized descriptor table sizes

2020-06-29 Thread Daniel Hellstrom
The descriptor table size is equal to its alignment and set when configuring the HW IP through VHDL generics. This SW patch simply probes the HW how large the RX/TX descriptor tables are and adjusts accordingly. The number of descriptors actual used are controlled by other settings (rxDescs and

[PATCH 23/26] grlib,grspw_pkt: correct link state enum numbering

2020-06-29 Thread Daniel Hellstrom
Not used by the driver itself, but shuold be correct if used by application. --- bsps/include/grlib/grspw_pkt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bsps/include/grlib/grspw_pkt.h b/bsps/include/grlib/grspw_pkt.h index 595625b..ede60b7 100644 ---

[PATCH 13/26] leon, grcanfd: split out GRCANFD specific support in separate file

2020-06-29 Thread Daniel Hellstrom
--- bsps/shared/grlib-sources.am | 1 + bsps/shared/grlib/can/grcan.c | 638 + bsps/shared/grlib/can/grcan_internal.h | 140 bsps/shared/grlib/can/grcanfd.c| 535 +++ 4 files changed, 687 insertions(+),

[PATCH 14/26] leon, grcan: split out GRCAN non-FD specific support in separate file

2020-06-29 Thread Daniel Hellstrom
--- bsps/shared/grlib-sources.am | 1 + bsps/shared/grlib/can/grcan.c| 405 bsps/shared/grlib/can/grcanstd.c | 435 +++ 3 files changed, 436 insertions(+), 405 deletions(-) create mode 100644

[PATCH 22/26] leon, l2cache: prevent unused diagnostic access

2020-06-29 Thread Daniel Hellstrom
From: Martin Aberg --- bsps/shared/grlib/l2c/l2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bsps/shared/grlib/l2c/l2c.c b/bsps/shared/grlib/l2c/l2c.c index ddef0ad..4a443ed 100644 --- a/bsps/shared/grlib/l2c/l2c.c +++ b/bsps/shared/grlib/l2c/l2c.c @@ -894,9 +894,9

[PATCH 12/26] leon,grcan: added support for GRCANFD

2020-06-29 Thread Daniel Hellstrom
The new GRCAN_FD IP supports CAN FD standard and is mostly backwards compatible with GRCAN SW interface. The GRCAN driver have been extended to support the GRCANFD IP using the same driver. Additional functions have been added that uses a new CAN FD frame format and read/write/baud-rate functions

[PATCH 17/26] leon, ckinit: avoid assuming 1MHz timer pre-scaler clock

2020-06-29 Thread Daniel Hellstrom
--- bsps/shared/grlib/btimer/tlib_ckinit.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bsps/shared/grlib/btimer/tlib_ckinit.c b/bsps/shared/grlib/btimer/tlib_ckinit.c index 4f67998..5ac3250 100644 --- a/bsps/shared/grlib/btimer/tlib_ckinit.c +++

[PATCH 11/26] grlib: added 64-bit read no-cache function

2020-06-29 Thread Daniel Hellstrom
--- bsps/include/grlib/grlib_impl.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/bsps/include/grlib/grlib_impl.h b/bsps/include/grlib/grlib_impl.h index e795e7f..3bff2af 100644 --- a/bsps/include/grlib/grlib_impl.h +++ b/bsps/include/grlib/grlib_impl.h @@ -122,6 +122,16 @@

[PATCH 02/26] leon,gr1553rt: Fixed memory leak

2020-06-29 Thread Daniel Hellstrom
From: Arvid Bjorkengren --- bsps/shared/grlib/1553/gr1553rt.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/bsps/shared/grlib/1553/gr1553rt.c b/bsps/shared/grlib/1553/gr1553rt.c index 339e856..668a39e 100644 --- a/bsps/shared/grlib/1553/gr1553rt.c +++

[PATCH 16/26] leon3: avoid dependency on apbuart/timer driver

2020-06-29 Thread Daniel Hellstrom
Moves drvmgr_drivers[] from amba.c to a separate file in order to avoid the dependecy on APBUART/GPTIMER drivers. This has an effect when user configured not to use timer or uart in their project. --- bsps/sparc/leon3/start/amba.c | 12

[PATCH 10/26] leon, occan: use common CAN baud-rate calculation routine

2020-06-29 Thread Daniel Hellstrom
--- bsps/shared/grlib/can/occan.c | 151 -- 1 file changed, 41 insertions(+), 110 deletions(-) diff --git a/bsps/shared/grlib/can/occan.c b/bsps/shared/grlib/can/occan.c index 59b4f23..01537f9 100644 --- a/bsps/shared/grlib/can/occan.c +++

[PATCH 08/26] leon, can: introduce common CAN baud-rate calculation function

2020-06-29 Thread Daniel Hellstrom
Reimplemented the baud-rate algorithm from scratch to cope with GRCAN, GRCANFD and OC_CAN devices. --- bsps/headers.am | 1 + bsps/include/grlib/canbtrs.h| 62 + bsps/shared/grlib-sources.am| 1 + bsps/shared/grlib/can/canbtrs.c | 116

[PATCH 05/26] leon, gr1553b: Only align allocated memory. Verify alignment of memory.

2020-06-29 Thread Daniel Hellstrom
From: Arvid Bjorkengren --- bsps/shared/grlib/1553/gr1553bc.c | 76 --- bsps/shared/grlib/1553/gr1553bm.c | 49 -- bsps/shared/grlib/1553/gr1553rt.c | 105 -- 3 files changed, 147 insertions(+), 83 deletions(-) diff

[PATCH 09/26] leon, grcan: use common CAN baud-rate calculation routine

2020-06-29 Thread Daniel Hellstrom
--- bsps/shared/grlib/can/grcan.c | 134 +++--- 1 file changed, 20 insertions(+), 114 deletions(-) diff --git a/bsps/shared/grlib/can/grcan.c b/bsps/shared/grlib/can/grcan.c index d69d99d..381109a 100644 --- a/bsps/shared/grlib/can/grcan.c +++

[PATCH 06/26] leon,grspw: fix for SET_PACKET_SIZE

2020-06-29 Thread Daniel Hellstrom
When the DMA table has been allocated dynamically, the IOCTL_SET_PACKETSIZE will trigger an issue where pDev->rx and pDev->tx are not updated with the new DMA tables base address. Instead the old pointers are used. There is no point in reallocting the DMA tables because there is no configuration

[PATCH 04/26] leon,gr1553b: set codec version

2020-06-29 Thread Daniel Hellstrom
From: Arvid Bjorkengren This is enables the updated codec for GR740 and is backwards compatible with all other versions of the IP. --- bsps/shared/grlib/1553/gr1553b.c | 4 1 file changed, 4 insertions(+) diff --git a/bsps/shared/grlib/1553/gr1553b.c b/bsps/shared/grlib/1553/gr1553b.c

[PATCH 00/26] leon: various fixes and TN0018 errata workaround

2020-06-29 Thread Daniel Hellstrom
. Kind Regards, Daniel Hellstrom --- create mode 100644 bsps/include/grlib/canbtrs.h create mode 100644 bsps/shared/grlib/can/canbtrs.c create mode 100644 bsps/shared/grlib/can/grcan_internal.h create mode 100644 bsps/shared/grlib/can/grcanfd.c create mode 100644 bsps/shared/grlib/can

[PATCH 03/26] leon,gr1553rt: Fixed spinlock unlock

2020-06-29 Thread Daniel Hellstrom
From: Arvid Bjorkengren --- bsps/shared/grlib/1553/gr1553rt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsps/shared/grlib/1553/gr1553rt.c b/bsps/shared/grlib/1553/gr1553rt.c index 668a39e..cea84ac 100644 --- a/bsps/shared/grlib/1553/gr1553rt.c +++

[PATCH 07/26] grlib,ambapp: added new IP core IDs

2020-06-29 Thread Daniel Hellstrom
--- bsps/include/grlib/ambapp_ids.h | 19 +++ bsps/shared/grlib/amba/ambapp_names.c | 21 - 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/bsps/include/grlib/ambapp_ids.h b/bsps/include/grlib/ambapp_ids.h index c0c3547..629b4fb 100644 ---

Re: [PATCH] bsps/sparc: Add grlib_malloc(), grlib_calloc()

2018-12-21 Thread Daniel Hellstrom
On 2018-12-21 15:20, Sebastian Huber wrote: On 21/12/2018 15:18, Daniel Hellstrom wrote: On 2018-12-21 15:12, Sebastian Huber wrote: On 21/12/2018 15:06, Daniel Hellstrom wrote: On 2018-12-21 15:02, Sebastian Huber wrote: On 21/12/2018 14:59, Daniel Hellstrom wrote: On 2018-12-21 14:57

Re: [PATCH] bsps/sparc: Add grlib_malloc(), grlib_calloc()

2018-12-21 Thread Daniel Hellstrom
On 2018-12-21 15:12, Sebastian Huber wrote: On 21/12/2018 15:06, Daniel Hellstrom wrote: On 2018-12-21 15:02, Sebastian Huber wrote: On 21/12/2018 14:59, Daniel Hellstrom wrote: On 2018-12-21 14:57, Sebastian Huber wrote: Hello Daniel, On 21/12/2018 14:42, Daniel Hellstrom wrote: Hi

Re: [PATCH] bsps/sparc: Add grlib_malloc(), grlib_calloc()

2018-12-21 Thread Daniel Hellstrom
On 2018-12-21 15:02, Sebastian Huber wrote: On 21/12/2018 14:59, Daniel Hellstrom wrote: On 2018-12-21 14:57, Sebastian Huber wrote: Hello Daniel, On 21/12/2018 14:42, Daniel Hellstrom wrote: Hi Sebastian, Sorry for my very late response! I have reviewed the code but not executed

Re: [PATCH] bsps/sparc: Add grlib_malloc(), grlib_calloc()

2018-12-21 Thread Daniel Hellstrom
Hi Sebastian, On 2018-12-21 14:57, Sebastian Huber wrote: Hello Daniel, On 21/12/2018 14:42, Daniel Hellstrom wrote: Hi Sebastian, Sorry for my very late response! I have reviewed the code but not executed it, it looks okay with me. I'm guessing it is also a positive thing to remove

Re: [PATCH] bsps/sparc: Add grlib_malloc(), grlib_calloc()

2018-12-21 Thread Daniel Hellstrom
Hi Sebastian, Sorry for my very late response! I have reviewed the code but not executed it, it looks okay with me. I'm guessing it is also a positive thing to remove malloc for another approach to allocate memory when it comes to validation of the SW. Another aspect of the same subject

Re: [PATCH] bsps/sparc: Add and use

2018-11-26 Thread Daniel Hellstrom
Hi Sebastian, Thanks for this! I haven't tried it out but it looks good to me. Regards, Daniel On 2018-11-26 15:46, Sebastian Huber wrote: Reduce copy and paste. --- bsps/sparc/headers.am | 1 + bsps/sparc/include/grlib-impl.h | 70

Re: [rtems commit] leon: do not use -mfix-{device} with Clang

2018-10-09 Thread Daniel Hellstrom
On 2018-10-09 14:59, Sebastian Huber wrote: On 09/10/2018 14:55, Chris Johns wrote: On 9/10/18 4:20 am, Sebastian Huber wrote: I don't have a problem with this patch, but what is the long term strategy for Gaisler-specific machine options in GCC and clang? I am pretty sure this divergence

Re: [RFC] clang, posix: bypass static assert that does not compile with Clang

2018-10-08 Thread Daniel Hellstrom
Daniel Hellstrom Software Section Head Cobham Gaisler T : +46 (0) 31 775 8657 F : +46 (0) 31 421407 daniel.hellst...@gaisler.com Cobham Gaisler AB, Kungsgatan 12, SE-411 19, GÖTEBORG, Sweden. +46 (0) 31 775 8650, www.cobham.com/gaisler Please consider the environment before printing this email

Re: [PATCH] jffs, clang: avoid some warnings of used uninitialized ptr

2018-10-05 Thread Daniel Hellstrom
On 2018-10-05 14:01, Sebastian Huber wrote: On 05/10/2018 13:43, Daniel Hellstrom wrote: On 2018-10-05 13:01, Sebastian Huber wrote: On 05/10/2018 12:44, Daniel Hellstrom wrote: On 2018-10-05 09:41, Sebastian Huber wrote: On 05/10/2018 09:38, Daniel Hellstrom wrote: On 2018-10-05 09:34

Re: [PATCH] jffs, clang: avoid some warnings of used uninitialized ptr

2018-10-05 Thread Daniel Hellstrom
On 2018-10-05 13:01, Sebastian Huber wrote: On 05/10/2018 12:44, Daniel Hellstrom wrote: On 2018-10-05 09:41, Sebastian Huber wrote: On 05/10/2018 09:38, Daniel Hellstrom wrote: On 2018-10-05 09:34, Sebastian Huber wrote: On 05/10/2018 09:25, Daniel Hellstrom wrote: On 2018-10-05 09:12

Re: [PATCH] jffs, clang: avoid some warnings of used uninitialized ptr

2018-10-05 Thread Daniel Hellstrom
On 2018-10-05 09:41, Sebastian Huber wrote: On 05/10/2018 09:38, Daniel Hellstrom wrote: On 2018-10-05 09:34, Sebastian Huber wrote: On 05/10/2018 09:25, Daniel Hellstrom wrote: On 2018-10-05 09:12, Sebastian Huber wrote: On 05/10/2018 08:57, Daniel Hellstrom wrote: This fixes

[PATCH v2] testsuite,clang: fix malloc04 and malloctest for on clang

2018-10-05 Thread Daniel Hellstrom
malloc04 and malloctest tests from the rtems test-suite fails when checking the return value of malloc(). The check is optimized away and always fails. --- testsuites/libtests/malloc04/init.c | 6 ++ testsuites/libtests/malloctest/init.c | 1 + 2 files changed, 7 insertions(+) diff --git

Re: [PATCH] jffs, clang: avoid some warnings of used uninitialized ptr

2018-10-05 Thread Daniel Hellstrom
On 2018-10-05 09:34, Sebastian Huber wrote: On 05/10/2018 09:25, Daniel Hellstrom wrote: On 2018-10-05 09:12, Sebastian Huber wrote: On 05/10/2018 08:57, Daniel Hellstrom wrote: This fixes the following test failures on LEON3 UP/SMP when built using clang compiler:   * fsjffs2gc01

Re: [PATCH] jffs, clang: avoid some warnings of used uninitialized ptr

2018-10-05 Thread Daniel Hellstrom
On 2018-10-05 09:12, Sebastian Huber wrote: On 05/10/2018 08:57, Daniel Hellstrom wrote: This fixes the following test failures on LEON3 UP/SMP when built using clang compiler:   * fsjffs2gc01   * jffs2_fserror   * jffs2_fspermission   * jffs2_fsrdwr   * jffs2_fstime The problem is probably

[PATCH] testsuite,clang: fix malloc04 and malloctest for on clang

2018-10-05 Thread Daniel Hellstrom
malloc04 and malloctest tests from the rtems test-suite fails when checking the return value of malloc(). The check is optimized away and always fails. --- testsuites/libtests/malloc04/init.c | 2 +- testsuites/libtests/malloctest/init.c | 10 +- 2 files changed, 6 insertions(+), 6

[PATCH] jffs,clang: avoid some warnings of used uninitialized ptr

2018-10-05 Thread Daniel Hellstrom
This fixes the following test failures on LEON3 UP/SMP when built using clang compiler: * fsjffs2gc01 * jffs2_fserror * jffs2_fspermission * jffs2_fsrdwr * jffs2_fstime --- cpukit/libfs/src/jffs2/src/nodelist.c | 2 +- cpukit/libfs/src/jffs2/src/readinode.c | 4 ++-- 2 files changed, 3

[RFC] clang, posix: bypass static assert that does not compile with Clang

2018-10-05 Thread Daniel Hellstrom
From: Jacob Hansen This commits bypasses a static assert when using the Clang compiler. This is done as the static assertion does not compile with Clang ("static_assert expression is not an integral constant expression"). I am not sure this static assertion makes sense at all. SEM_FAILED is

[PATCH] leon, spwtdp: Initial driver commit

2018-10-05 Thread Daniel Hellstrom
From: Javier Jalle --- bsps/sparc/headers.am|1 + bsps/sparc/include/bsp/spwtdp.h | 320 ++ bsps/sparc/include/drvmgr/ambapp_bus.h |1 + bsps/sparc/shared/spw/spwtdp.c | 1022 ++

[PATCH] libtests: Supply --cc argument to rtems-syms for clang

2018-10-05 Thread Daniel Hellstrom
rtems-syms assumes that the compiler used is GCC. This breaks the build if using a different compiler (such as Clang). Using the --cc argument for rtems-syms we can specify the compiler. A better implementation would mabe be to configure the default compiler to LLVM when building rtems-tools? ---

[PATCH] leon: do not use -mfix-{device} with Clang

2018-10-05 Thread Daniel Hellstrom
Clang do not support -mfix-gr712rc, -mfix-ut700 and -mfix-ut699. Therefore we adjust the CPU_CFLAGS to remove these when compiling with Clang. Instead use GR712RC: -mcpu=gr712rc GR740:-mcpu=gr740 UT699/UT700: Not currently supported by clang, use LEON3 BSP. ---

Re: [PATCH] tests: Avoid printf versions that uses floats

2018-09-20 Thread Daniel Hellstrom
On 2018-09-20 07:43, Sebastian Huber wrote: I am not sure if we should introduce this Newlib-specific functions in throughout the code base. The siprintf() is currently not used. I am more in favour to enable the FPU for the corresponding tasks. Ok. I will update the patch to include FP

Re: GR740-SMP BSP test results (gcc-7.2)

2018-09-20 Thread Daniel Hellstrom
916ef5fb8865f72d0f5ad3f4f479adac44ea94b1. I will update newlib at least going forward. On 19/09/2018 14:46, Daniel Hellstrom wrote: Hi, I just wanted to share the current test status for the GR740 I have today, using the todays master with some additional test fixes which I plan to submit shortly

[PATCH] clang: Keep -qrtems and -B for compilers without -specs support

2018-09-19 Thread Daniel Hellstrom
From: Jacob Hansen This is needed for building rtems correctly with Clang. Note that this change does not mean rtems can build correctly with mainline clang. However the change allows building rtems with a Clang toolchain that has a rtems frontend similar that of GCC's builtin rtems specs. ---

[PATCH] leon: remove warning missing string.h

2018-09-19 Thread Daniel Hellstrom
--- bsps/sparc/shared/uart/cons.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bsps/sparc/shared/uart/cons.c b/bsps/sparc/shared/uart/cons.c index 37f448c..410d6e2 100644 --- a/bsps/sparc/shared/uart/cons.c +++ b/bsps/sparc/shared/uart/cons.c @@ -14,6 +14,7 @@ #include #include

[PATCH] smp03: make printout match actual task name

2018-09-19 Thread Daniel Hellstrom
--- testsuites/smptests/smp03/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuites/smptests/smp03/init.c b/testsuites/smptests/smp03/init.c index 3ad0352..cd6bba1 100644 --- a/testsuites/smptests/smp03/init.c +++ b/testsuites/smptests/smp03/init.c @@ -96,7 +96,7

[PATCH] leon, grspw_pkt: support CCSDS/ISO16 data CRC

2018-09-19 Thread Daniel Hellstrom
From: Martin Aberg When the CCSDS/CCITT CRC-16 and 16-bit ISO-checksum logic is available in GRSPW2, the DCRCT field is used to determine how to generate the CRC/checksum code. grspw_hw_sup has been extended with the field ccsds_crc --- bsps/sparc/include/bsp/grspw_pkt.h | 16 ++--

[PATCH] tm26: enable FP context when fprintf used

2018-09-19 Thread Daniel Hellstrom
calling rtems_print_printer_fprintf_putc() results in usage of vfprintf() which may use floating point instructions in its implementation. --- testsuites/tmtests/tm26/system.h | 1 + 1 file changed, 1 insertion(+) diff --git a/testsuites/tmtests/tm26/system.h b/testsuites/tmtests/tm26/system.h

[PATCH] leon, grspw_pkt: protect TX descriptor from bad input (hdrlen)

2018-09-19 Thread Daniel Hellstrom
--- bsps/sparc/shared/spw/grspw_pkt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bsps/sparc/shared/spw/grspw_pkt.c b/bsps/sparc/shared/spw/grspw_pkt.c index ff481f2..39f5087 100644 --- a/bsps/sparc/shared/spw/grspw_pkt.c +++ b/bsps/sparc/shared/spw/grspw_pkt.c @@

[PATCH] sparc: clang AS does no accept UNIMP without argument

2018-09-19 Thread Daniel Hellstrom
--- cpukit/score/cpu/sparc/include/rtems/score/cpuimpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/score/cpu/sparc/include/rtems/score/cpuimpl.h b/cpukit/score/cpu/sparc/include/rtems/score/cpuimpl.h index c125b8a..7c31501 100644 ---

[PATCH] leon, l2cache: workaround for scrubber

2018-09-19 Thread Daniel Hellstrom
From: Martin Aberg This is a workaround for a L2CACHE scrubber corner case described in GR740 User's Manual, Version 1.10, section 43.2.30. The issue affects some version of the L2CACHE. However, since the performance impact of the workaround is marginal, special device probing logic has been

[PATCH] tests: Avoid printf versions that uses floats

2018-09-19 Thread Daniel Hellstrom
From: Daniel Cederman --- testsuites/fstests/fserror/test.c| 8 +++--- testsuites/fstests/fspermission/test.c | 2 +- testsuites/fstests/fsrename/test.c | 44 testsuites/libtests/block06/init.c | 4 +--

[PATCH] sparc: Remove sequence that could trigger B2BST errata

2018-09-19 Thread Daniel Hellstrom
From: Daniel Cederman --- cpukit/score/cpu/sparc/syscall.S | 2 -- 1 file changed, 2 deletions(-) diff --git a/cpukit/score/cpu/sparc/syscall.S b/cpukit/score/cpu/sparc/syscall.S index 574cf66..603ed7a 100644 --- a/cpukit/score/cpu/sparc/syscall.S +++ b/cpukit/score/cpu/sparc/syscall.S @@

[PATCH] leon3, ckinit: avoid unsued code warnings when drvmgr is enabled

2018-09-19 Thread Daniel Hellstrom
--- bsps/sparc/shared/btimer/tlib_ckinit.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bsps/sparc/shared/btimer/tlib_ckinit.c b/bsps/sparc/shared/btimer/tlib_ckinit.c index 3e2feb1..6643335 100644 --- a/bsps/sparc/shared/btimer/tlib_ckinit.c +++

[PATCH] leon3: fix warning when SMP is enabled

2018-09-19 Thread Daniel Hellstrom
--- bsps/sparc/leon3/clock/ckinit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bsps/sparc/leon3/clock/ckinit.c b/bsps/sparc/leon3/clock/ckinit.c index c3edaf2..0cd78ea 100644 --- a/bsps/sparc/leon3/clock/ckinit.c +++ b/bsps/sparc/leon3/clock/ckinit.c @@ -21,6 +21,7 @@ */ #include

Re: Four SMP tests fails after recent commit

2018-09-19 Thread Daniel Hellstrom
It works now with your patch. Thanks again. Daniel On 2018-09-19 12:23, Daniel Hellstrom wrote: Thanks for looking into it Sebastian. I will try it out now. On 2018-09-19 12:00, Sebastian Huber wrote: Hello Daniel, On 19/09/2018 11:32, Daniel Hellstrom wrote: Hi, When I rebased earlier

Re: Four SMP tests fails after recent commit

2018-09-19 Thread Daniel Hellstrom
Thanks for looking into it Sebastian. I will try it out now. On 2018-09-19 12:00, Sebastian Huber wrote: Hello Daniel, On 19/09/2018 11:32, Daniel Hellstrom wrote: Hi, When I rebased earlier this week four SMP test now fails (smp03, smppsxaffinity01, smpschedaffinity04, smpschedaffinity05

  1   2   3   4   5   >