Re: [PATCH 05/17] Add shared PCI support and enhance pc386 to support non-legacy PCI configuration space

2016-03-09 Thread Gedare Bloom
On Wed, Mar 9, 2016 at 5:24 PM, Joel Sherrill wrote: > This patch fundamentally results from enhancements to the pc386 BSP > to support systems which do **NOT** have the legacy PCI BIOS. The > patch adds support for detecting when legacy PCI BIOS is not > present and then using IO space to access

Re: [PATCH 12/17] libbsp/shared/console.c: Clean up memory allocation for per device data

2016-03-09 Thread Gedare Bloom
On Wed, Mar 9, 2016 at 5:24 PM, Joel Sherrill wrote: > --- > c/src/lib/libbsp/shared/console.c | 49 > --- > 1 file changed, 36 insertions(+), 13 deletions(-) > > diff --git a/c/src/lib/libbsp/shared/console.c > b/c/src/lib/libbsp/shared/console.c > index 81a

Re: [PATCH 16/17] fileio: lspci candidate command

2016-03-09 Thread Joel Sherrill
Ignore this one. It is just a wrapper command for debug. There is discussion before to consider this. --joel On Wed, Mar 9, 2016 at 4:25 PM, Joel Sherrill wrote: > From: Joel Sherrill > > --- > testsuites/samples/fileio/Makefile.am | 2 +- > testsuites/samples/fileio/init.c | 5 +++-

[PATCH 15/17] powerpc/mvme5500: Use shared pci_find_device()

2016-03-09 Thread Joel Sherrill
--- c/src/lib/libbsp/powerpc/mvme5500/Makefile.am | 6 ++- .../libbsp/powerpc/mvme5500/pci/pcifinddevice.c| 62 -- 2 files changed, 4 insertions(+), 64 deletions(-) delete mode 100644 c/src/lib/libbsp/powerpc/mvme5500/pci/pcifinddevice.c diff --git a/c/src/lib/libbs

[PATCH 11/17] pc386/startup/bsp_fatal_halt.c: Fix noreturn does return warning

2016-03-09 Thread Joel Sherrill
--- c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c b/c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c index 3e4f263..07bbd79 100644 --- a/c/src/lib/libbsp/i386/pc386/startup/bsp_f

[PATCH 14/17] mips/malta: Use shared pci_find_device() and removed unused pci_list_devices()

2016-03-09 Thread Joel Sherrill
Also includes .h file cleanup. --- c/src/lib/libbsp/mips/malta/Makefile.am | 3 +- c/src/lib/libbsp/mips/malta/include/pci.h| 32 --- c/src/lib/libbsp/mips/malta/pci/pcifinddevice.c | 277 --- c/src/lib/libbsp/mips/malta/pci/pcilistdevices.c | 102 -

[PATCH 01/17] pc386: Eliminate pcibios.h and begin removal obsolete PCI BIOS API uses

2016-03-09 Thread Joel Sherrill
This first step eliminates the following as public APIs for the pc386 BSP: + pcib_conf_read8 + pcib_conf_read16 + pcib_conf_read32 + pcib_conf_write8 + pcib_conf_write16 + pcib_conf_write32 The if_fxp.c driver uses these enough where I provided local macros to allow the code to be mos

[PATCH 03/17] i386/shared/pci/pcibios.c: Remove unused pcib_find_by_class()

2016-03-09 Thread Joel Sherrill
--- c/src/lib/libbsp/i386/shared/pci/pcibios.c | 36 -- 1 file changed, 36 deletions(-) diff --git a/c/src/lib/libbsp/i386/shared/pci/pcibios.c b/c/src/lib/libbsp/i386/shared/pci/pcibios.c index 48c2c60..7dc53a1 100644 --- a/c/src/lib/libbsp/i386/shared/pci/pcibios.c

[PATCH 17/17] fileio: Add command "com" to write to files

2016-03-09 Thread Joel Sherrill
This was used to open, write, and close the VGA console and /dev/pcicom1 for testing purposes. --- testsuites/samples/fileio/Makefile.am | 2 +- testsuites/samples/fileio/init.c | 2 + testsuites/samples/fileio/main_com.c | 129 ++ 3 files changed, 132 ins

[PATCH 16/17] fileio: lspci candidate command

2016-03-09 Thread Joel Sherrill
From: Joel Sherrill --- testsuites/samples/fileio/Makefile.am | 2 +- testsuites/samples/fileio/init.c | 5 +++- testsuites/samples/fileio/main_lspci.c | 43 ++ 3 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 testsuites/samples/filei

[PATCH 02/17] i386/shared/pci/pcibios.c: Remove unused pcib_special_cycle()

2016-03-09 Thread Joel Sherrill
--- c/src/lib/libbsp/i386/shared/pci/pcibios.c | 30 -- 1 file changed, 30 deletions(-) diff --git a/c/src/lib/libbsp/i386/shared/pci/pcibios.c b/c/src/lib/libbsp/i386/shared/pci/pcibios.c index ec19bb3..48c2c60 100644 --- a/c/src/lib/libbsp/i386/shared/pci/pcibios.c

[PATCH 12/17] libbsp/shared/console.c: Clean up memory allocation for per device data

2016-03-09 Thread Joel Sherrill
--- c/src/lib/libbsp/shared/console.c | 49 --- 1 file changed, 36 insertions(+), 13 deletions(-) diff --git a/c/src/lib/libbsp/shared/console.c b/c/src/lib/libbsp/shared/console.c index 81a70b1..d030065 100644 --- a/c/src/lib/libbsp/shared/console.c +++ b/c/s

[PATCH 08/17] console_private.h: Improve comment for vt_ioctl()

2016-03-09 Thread Joel Sherrill
--- c/src/lib/libbsp/shared/console_private.h | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/c/src/lib/libbsp/shared/console_private.h b/c/src/lib/libbsp/shared/console_private.h index 2af5326..42a8ee9 100644 --- a/c/src/lib/libbsp/shared/console_private.h +++ b/c/sr

[PATCH 07/17] console_private.h: Remove prototypes for non-existent methods bsp_com_inch() and bsp_com_outch()

2016-03-09 Thread Joel Sherrill
--- c/src/lib/libbsp/shared/console_private.h | 20 1 file changed, 20 deletions(-) diff --git a/c/src/lib/libbsp/shared/console_private.h b/c/src/lib/libbsp/shared/console_private.h index ee89eb2..2af5326 100644 --- a/c/src/lib/libbsp/shared/console_private.h +++ b/c/src/li

[PATCH 04/17] pc386/configure.ac: Delete incorrect and unused AM_CONDITIONAL

2016-03-09 Thread Joel Sherrill
--- c/src/lib/libbsp/i386/pc386/configure.ac | 1 - 1 file changed, 1 deletion(-) diff --git a/c/src/lib/libbsp/i386/pc386/configure.ac b/c/src/lib/libbsp/i386/pc386/configure.ac index 469d5f5..17b7d02 100644 --- a/c/src/lib/libbsp/i386/pc386/configure.ac +++ b/c/src/lib/libbsp/i386/pc386/config

[PATCH 09/17] pc386: Add PCI UART support

2016-03-09 Thread Joel Sherrill
--- c/src/lib/libbsp/i386/pc386/Makefile.am| 1 + c/src/lib/libbsp/i386/pc386/console/uart_bus_pci.c | 398 + c/src/lib/libbsp/i386/pc386/include/bsp.h | 4 + c/src/lib/libbsp/i386/pc386/startup/bspstart.c | 5 + 4 files changed, 408 insertions(+)

[PATCH 06/17] pc386: Improve boot command arguments for console/printk device selection

2016-03-09 Thread Joel Sherrill
This patch adds the "--printk=" boot command line argument to specify the printk() device. It also enhances the "--console=" boot command line argument to match any device configured in the console device table. The arguments are parsed as early as possible so they take effect early. Currently, thi

[PATCH 10/17] pc386/startup/bspstart.c: Reformat and cleanup file header

2016-03-09 Thread Joel Sherrill
--- c/src/lib/libbsp/i386/pc386/startup/bspstart.c | 56 +- 1 file changed, 27 insertions(+), 29 deletions(-) diff --git a/c/src/lib/libbsp/i386/pc386/startup/bspstart.c b/c/src/lib/libbsp/i386/pc386/startup/bspstart.c index 50afe18..5671a4b 100644 --- a/c/src/lib/libbsp/

[PATCH 13/17] pc386: Add --disable-com1-com4 boot argument

2016-03-09 Thread Joel Sherrill
--- c/src/lib/libbsp/i386/pc386/console/conscfg.c | 29 + .../lib/libbsp/i386/pc386/console/console_select.c | 37 ++ c/src/lib/libbsp/shared/console.c | 4 +-- 3 files changed, 54 insertions(+), 16 deletions(-) diff --git a/c/src/lib/lib

[PATCH 05/17] Add shared PCI support and enhance pc386 to support non-legacy PCI configuration space

2016-03-09 Thread Joel Sherrill
This patch fundamentally results from enhancements to the pc386 BSP to support systems which do **NOT** have the legacy PCI BIOS. The patch adds support for detecting when legacy PCI BIOS is not present and then using IO space to access to PCI Configuration Space. This resulted in dynamically selec

[PATCH 00/17] pc386 non-legacy enhancements

2016-03-09 Thread Joel Sherrill
First, there are only 15 patches in this series. The last two are additions of commands directly to fileio. Both may be of interest but should be discussed separately. This series started with the need to get the pc386 BSP working on an embedded PC without legacy PCI BIOS and with a COM1 port on t

Re: x86_64 BSP as GSOC2016 project

2016-03-09 Thread Joel Sherrill
On Tue, Mar 8, 2016 at 8:46 PM, Saket Sinha wrote: > Hi Joel, > > > On Tue, Mar 1, 2016 at 5:40 AM, Joel Sherrill wrote: > > > > > > On Mon, Feb 29, 2016 at 2:00 PM, Saket Sinha > > wrote: > >> > >> On Tue, Mar 1, 2016 at 1:14 AM, Saket Sinha > >> wrote: > >> > Hi, > >> > > >> > Congratulation

SOCIS16: RTEMS Fault Tolerance

2016-03-09 Thread Saeed Ehteshamifar
Hello, During SOCIS15, I adapted two fault injection tools to RTEMS: one tool to generate and compile code (in Python), one tool to execute the binary on (virtual) machine and store injection result (in Java). Interestingly, bunch of test cases (POSIX function calls with corner arguments) led to R