[PATCH v2 3/3] libmisc/shell: Improve print messages for flashdev command

2024-01-23 Thread aaron . nyholm
From: Aaron Nyholm --- cpukit/libmisc/shell/main_flashdev.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/cpukit/libmisc/shell/main_flashdev.c b/cpukit/libmisc/shell/main_flashdev.c index ca2454b33c..dc73d3f9db 100644 --- a/cpukit/libmisc/shell/main_flashdev.c

[PATCH v2 2/3] bsps: Add flash wrapper for Xilinx GQSPI

2024-01-23 Thread aaron . nyholm
From: Aaron Nyholm --- bsps/aarch64/xilinx-versal/include/bsp/irq.h | 1 + bsps/include/dev/spi/xqspi_flash.h| 65 ++ bsps/include/dev/spi/xqspipsu-flash-helper.h | 20 ++ bsps/shared/dev/spi/xqspi_flash.c | 210 ++

[PATCH v2 1/3] build: Fix build issues with xqspipsu on versal

2024-01-23 Thread aaron . nyholm
From: Aaron Nyholm --- spec/build/bsps/aarch64/xilinx-versal/grp.yml| 2 ++ .../bsps/aarch64/xilinx-versal/optxilversal.yml | 16 2 files changed, 18 insertions(+) create mode 100644 spec/build/bsps/aarch64/xilinx-versal/optxilversal.yml diff --git

Xilinx QSPI Flash Patches

2024-01-23 Thread aaron . nyholm
Hi All, Attached are V2 of the patches that adds a wrapper around Xilinx's$ XQspiPsu flash driver to rtems_flashdev. This has been placed in$ bsp/shared. The JFFS2 driver has been removed as it is outdated. Thanks, Aaron. ___ devel mailing list

Re: [PATCH rtems6 1/1] libmisc/shell: Fix timeout in getting terminal size

2024-01-23 Thread Chris Johns
On 23/1/2024 9:00 pm, Peter Dufault wrote: >> On Jan 22, 2024, at 1:51 PM, Peter Dufault wrote: >>> On Jan 22, 2024, at 12:16 PM, Gedare Bloom wrote: >>> >>> I have a couple minor notes below. More important, does this change >>> require updating documentation? >> >> I'd have to look to see if

Re: [RTEMS Tools 0/1] trace/wscript: Improve C++ standard selection

2024-01-23 Thread Chris Johns
On 23/1/2024 5:55 pm, Sebastian Huber wrote: > - Am 22. Jan 2024 um 22:56 schrieb Chris Johns chr...@rtems.org: > >> On 22/1/2024 6:18 pm, Sebastian Huber wrote: >>> On 22.01.24 00:47, Chris Johns wrote: On 22/1/2024 3:42 am, Sebastian Huber wrote: > Does XCode ship a Symbolize.h and

[PATCH rtems-libbsd 6-freebsd-12 3/5] rtemsbsd/rtems: Don't leak memory on error

2024-01-23 Thread Kinsey Moore
--- rtemsbsd/rtems/rtems-bsd-mountroot.c | 4 ++-- rtemsbsd/rtems/rtems-bsd-rc-conf.c | 14 ++ rtemsbsd/rtems/rtems-routes.c| 4 +++- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/rtemsbsd/rtems/rtems-bsd-mountroot.c

[PATCH rtems-libbsd 6-freebsd-12 1/5] rtemsbsd/rc-conf: Avoid use after free

2024-01-23 Thread Kinsey Moore
--- rtemsbsd/rtems/rtems-bsd-rc-conf.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rtemsbsd/rtems/rtems-bsd-rc-conf.c b/rtemsbsd/rtems/rtems-bsd-rc-conf.c index f4cc987b..d34aafd9 100644 --- a/rtemsbsd/rtems/rtems-bsd-rc-conf.c +++ b/rtemsbsd/rtems/rtems-bsd-rc-conf.c

[PATCH rtems-libbsd 6-freebsd-12 2/5] rtemsbsd/rtems: Check function return values

2024-01-23 Thread Kinsey Moore
--- rtemsbsd/rtems/rtems-bsd-rc-conf-net.c | 10 ++ rtemsbsd/rtems/rtems-bsd-syscall-api.c | 9 ++--- rtemsbsd/rtems/rtems-kernel-init.c | 4 +++- rtemsbsd/rtems/rtems-kernel-pager.c| 4 +++- 4 files changed, 18 insertions(+), 9 deletions(-) diff --git

[PATCH rtems-libbsd 6-freebsd-12 4/5] rtemsbsd/arasan_sdhci: Move variable init to start

2024-01-23 Thread Kinsey Moore
This moves the ZynqMP-specific variable initialization to the start of the function to avoid Coverity warnings. --- rtemsbsd/sys/dev/sdhci/arasan_sdhci.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/rtemsbsd/sys/dev/sdhci/arasan_sdhci.c

[PATCH rtems-libbsd 6-freebsd-12 5/5] rtemsbsd: Remove unused variable

2024-01-23 Thread Kinsey Moore
--- rtemsbsd/rtems/rtems-kernel-lockmgr.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/rtemsbsd/rtems/rtems-kernel-lockmgr.c b/rtemsbsd/rtems/rtems-kernel-lockmgr.c index 518f6831..de5d9d8a 100644 --- a/rtemsbsd/rtems/rtems-kernel-lockmgr.c +++ b/rtemsbsd/rtems/rtems-kernel-lockmgr.c @@

[PATCH rtems-libbsd 6-freebsd-12 0/5] Cleanup patch set

2024-01-23 Thread Kinsey Moore
This is the 6-freebsd-12 version of the cleanup patch set. Coverity was actually run against 6-freebsd-12, so this patch set is slightly larger than the master patch set. ___ devel mailing list devel@rtems.org

[PATCH rtems-libbsd master 3/3] rtemsbsd/rtems: Don't leak memory on error

2024-01-23 Thread Kinsey Moore
--- rtemsbsd/rtems/rtems-bsd-rc-conf.c | 14 ++ rtemsbsd/rtems/rtems-routes.c | 4 +++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/rtemsbsd/rtems/rtems-bsd-rc-conf.c b/rtemsbsd/rtems/rtems-bsd-rc-conf.c index d34aafd9..88d98c3e 100644 ---

[PATCH rtems-libbsd master 2/3] rtemsbsd/rtems: Check function return values

2024-01-23 Thread Kinsey Moore
--- rtemsbsd/rtems/rtems-bsd-rc-conf-net.c | 10 ++ rtemsbsd/rtems/rtems-kernel-init.c | 4 +++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/rtemsbsd/rtems/rtems-bsd-rc-conf-net.c b/rtemsbsd/rtems/rtems-bsd-rc-conf-net.c index 23ee15db..8ffaa914 100644 ---

[PATCH rtems-libbsd master 1/3] rtemsbsd/rc-conf: Avoid use after free

2024-01-23 Thread Kinsey Moore
--- rtemsbsd/rtems/rtems-bsd-rc-conf.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rtemsbsd/rtems/rtems-bsd-rc-conf.c b/rtemsbsd/rtems/rtems-bsd-rc-conf.c index f4cc987b..d34aafd9 100644 --- a/rtemsbsd/rtems/rtems-bsd-rc-conf.c +++ b/rtemsbsd/rtems/rtems-bsd-rc-conf.c

[PATCH rtems-libbsd master 0/3] Cleanup patch series

2024-01-23 Thread Kinsey Moore
This patch set cleans up several issues found by Coverity on the master branch. ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH rtems6 1/1] libmisc/shell: Fix timeout in getting terminal size

2024-01-23 Thread Peter Dufault
> On Jan 22, 2024, at 1:51 PM, Peter Dufault wrote: > > > >> On Jan 22, 2024, at 12:16 PM, Gedare Bloom wrote: >> >> I have a couple minor notes below. More important, does this change >> require updating documentation? > > I'd have to look to see if this window size detection is

[PATCH rtems-libbsd 08/14] mpc85xx: Support P20XX Local Access Window regs

2024-01-23 Thread Christian Mauderer
From: Sebastian Huber --- freebsd/sys/powerpc/mpc85xx/mpc85xx.c | 38 +++ freebsd/sys/powerpc/mpc85xx/mpc85xx.h | 2 ++ 2 files changed, 40 insertions(+) diff --git a/freebsd/sys/powerpc/mpc85xx/mpc85xx.c b/freebsd/sys/powerpc/mpc85xx/mpc85xx.c index

[PATCH rtems-libbsd 03/14] mpc85xx: Port to RTEMS

2024-01-23 Thread Christian Mauderer
From: Sebastian Huber --- freebsd/sys/dev/ofw/ofwpci.c | 16 freebsd/sys/dev/pci/pci.c | 2 + freebsd/sys/kern/subr_bus.c | 2 +- freebsd/sys/powerpc/include/machine/spr.h | 3 ++ freebsd/sys/powerpc/mpc85xx/mpc85xx.c | 4 ++

[PATCH rtems-libbsd 07/14] Enable NEW_PCIB

2024-01-23 Thread Christian Mauderer
From: Sebastian Huber --- rtemsbsd/include/machine/resource.h | 1 + .../include/machine/rtems-bsd-kernel-space.h | 8 +++ rtemsbsd/rtems/rtems-kernel-nexus.c | 21 +++ 3 files changed, 30 insertions(+) diff --git a/rtemsbsd/include/machine/resource.h

[PATCH rtems-libbsd 06/14] Include missing header file

2024-01-23 Thread Christian Mauderer
From: Sebastian Huber --- rtemsbsd/rtems/rtems-kernel-pci_bus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/rtemsbsd/rtems/rtems-kernel-pci_bus.c b/rtemsbsd/rtems/rtems-kernel-pci_bus.c index d344e7a3..67324dd8 100644 --- a/rtemsbsd/rtems/rtems-kernel-pci_bus.c +++

[PATCH rtems-libbsd 09/14] pci_mpc85xx.c: Disable reset during initialization

2024-01-23 Thread Christian Mauderer
From: Sebastian Huber --- freebsd/sys/powerpc/mpc85xx/pci_mpc85xx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/freebsd/sys/powerpc/mpc85xx/pci_mpc85xx.c b/freebsd/sys/powerpc/mpc85xx/pci_mpc85xx.c index beaf96e8..47879e68 100644 --- a/freebsd/sys/powerpc/mpc85xx/pci_mpc85xx.c +++

[PATCH rtems-libbsd 05/14] Add pic_if.m

2024-01-23 Thread Christian Mauderer
From: Sebastian Huber --- Makefile.todo | 10 ++ rtemsbsd/include/rtems/bsd/local/pic_if.h | 133 ++ rtemsbsd/local/pic_if.c | 69 +++ 3 files changed, 212 insertions(+) create mode 100644

[PATCH rtems-libbsd 10/14] Enable kernel space pci_find_device()

2024-01-23 Thread Christian Mauderer
From: Sebastian Huber --- freebsd/sys/dev/pci/pci.c | 2 -- rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h | 1 + rtemsbsd/rtems/rtems-kernel-pci_bus.c | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH rtems-libbsd 11/14] pci_mpc85xx: Ensure access order for config-regs

2024-01-23 Thread Christian Mauderer
The CFG_ADDR has to be written before reading or writing the CFG_DATA. --- freebsd/sys/powerpc/mpc85xx/pci_mpc85xx.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/freebsd/sys/powerpc/mpc85xx/pci_mpc85xx.c b/freebsd/sys/powerpc/mpc85xx/pci_mpc85xx.c index 47879e68..b479eb33 100644

[PATCH rtems-libbsd 12/14] Add Tsi148 driver template

2024-01-23 Thread Christian Mauderer
From: Sebastian Huber --- buildset/default.ini | 1 + buildset/everything.ini | 3 + libbsd.py| 17 rtemsbsd/include/bsp/nexus-devices.h | 4 + rtemsbsd/sys/dev/vme/tsi148.c| 123 +++ 5 files

[PATCH rtems-libbsd 02/14] mpc85xx: Import from FreeBSD

2024-01-23 Thread Christian Mauderer
From: Sebastian Huber --- freebsd/sys/dev/ofw/ofwpci.c | 677 + freebsd/sys/dev/ofw/ofwpci.h | 87 ++ freebsd/sys/dev/pci/pci_subr.c| 388 +++ freebsd/sys/powerpc/include/machine/hid.h | 224

[PATCH rtems-libbsd 13/14] tsi148: Add an RTEMS VME glue layer

2024-01-23 Thread Christian Mauderer
The glue layer provides the necessary function so that the Tsi148 driver in the BSP can use the PCI functionality from libbsd. --- libbsd.py | 1 + rtemsbsd/sys/dev/vme/tsi148.c | 24 +++- rtemsbsd/sys/dev/vme/vme-rtems-compat.c | 143

[PATCH rtems-libbsd 14/14] testsuite: Add a VME test

2024-01-23 Thread Christian Mauderer
Note: This test currently only works with a board with a Tsi148 like the MVME2500. For other boards it will print only a message. --- libbsd.py | 2 + testsuite/vme01/test_main.c | 80 + 2 files changed, 82 insertions(+) create mode 100644

[PATCH 3/3] bsps/qoriq: Add VME support for MVME2500

2024-01-23 Thread Christian Mauderer
This enables the VME support for the MVME2500. Note that the PCIe support from libbsd is used. So you need the related libbsd patches for this to work. If the drivers in libbsd are not enabled, the linker should not pick up anything from this patch. --- bsps/powerpc/qoriq/include/bsp/VMEConfig.h

[PATCHES rtems, libbsd] Add PCIe and VME support for qoriq

2024-01-23 Thread Christian Mauderer
Hello, the attached patch set for RTEMS and libbsd adds initial support of the Tsi148 VME bridge on the MVME2500 board using the qoriq BSP. Basically it consists of the following parts: - Add PCIe ranges to the qoriq MMU configuration (based on FDT). - Add the existing VME support files to the

[PATCH rtems-libbsd 01/14] sys/bus.h: Fix for small-data area targets

2024-01-23 Thread Christian Mauderer
From: Sebastian Huber --- freebsd/sys/sys/buf.h | 4 1 file changed, 4 insertions(+) diff --git a/freebsd/sys/sys/buf.h b/freebsd/sys/sys/buf.h index 209174b4..dfe3eaa6 100644 --- a/freebsd/sys/sys/buf.h +++ b/freebsd/sys/sys/buf.h @@ -497,7 +497,11 @@ extern int cluster_pbuf_freecnt;

[PATCH 2/3] bsps/qoriq: Allow setting EIRQ polarity and sense

2024-01-23 Thread Christian Mauderer
Add a function that allows to set the polarity (active-low / negative edge triggered or active-high / positive edge triggered) and sense (level or edge sensitive) of the external interrupts. --- bsps/powerpc/qoriq/include/bsp/irq.h | 27 ++ bsps/powerpc/qoriq/irq/irq.c | 56

[PATCH 1/3] bsps/qoriq: Add MMU regions for PCIe based on fdt

2024-01-23 Thread Christian Mauderer
Get the memory ranges for the PCIe from the FDT and add them to the MMU. This is necessary so that the PCIe driver in libbsd can work. --- bsps/powerpc/qoriq/start/mmu-config.c | 88 +++ 1 file changed, 88 insertions(+) diff --git a/bsps/powerpc/qoriq/start/mmu-config.c

[PATCH rtems-libbsd 04/14] pci: Back port changes

2024-01-23 Thread Christian Mauderer
From: Sebastian Huber --- freebsd/sys/dev/pci/pci.c | 3 ++- freebsd/sys/dev/pci/pci_pci.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/freebsd/sys/dev/pci/pci.c b/freebsd/sys/dev/pci/pci.c index 0cc72dba..3789a73e 100644 --- a/freebsd/sys/dev/pci/pci.c +++