[PATCH 2/3] LEON3 SMP: support static interrupt affinity

2014-10-07 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/leon3/include/bsp.h | 11 +++ c/src/lib/libbsp/sparc/shared/irq/irq-shared.c | 38 2 files changed, 43 insertions(+), 6 deletions(-) diff --git a/c/src/lib/libbsp/sparc/leon3/include/bsp.h b/c/src/lib/libbsp/sparc/leon3/include/bsp.

[PATCH 1/3] SPARC BSPs: added CPU aware interrupt ctrl operations

2014-10-07 Thread Daniel Hellstrom
The LEON2 and ERC32 maps the new macros to CPU0 since they do not support SMP. With the LEON3 a specific CPU's interrupt controller registers can be modified using macros. --- c/src/lib/libbsp/sparc/erc32/include/erc32.h | 14 ++- c/src/lib/libbsp/sparc/leon2/include/leon.h | 12 ++ c

[PATCH] LEON3: use interrupt layer in clock driver

2014-10-07 Thread Daniel Hellstrom
Manupilating the interrupt control registers directly instead of going through the interrupt layer can be deceiving. --- c/src/lib/libbsp/shared/include/fatal.h |1 + c/src/lib/libbsp/sparc/leon3/clock/ckinit.c | 23 --- 2 files changed, 21 insertions(+), 3 deletions(

Re: [PATCH 2/3] LEON3 SMP: support static interrupt affinity

2014-10-07 Thread Daniel Hellstrom
On 10/07/2014 03:51 PM, Gedare Bloom wrote: On Tue, Oct 7, 2014 at 5:10 AM, Daniel Hellstrom wrote: --- c/src/lib/libbsp/sparc/leon3/include/bsp.h | 11 +++ c/src/lib/libbsp/sparc/shared/irq/irq-shared.c | 38 2 files changed, 43 insertions(+), 6

[PATCH 2/3 v2] LEON3 SMP: support static interrupt affinity

2014-10-08 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/leon3/include/bsp.h | 11 +++ c/src/lib/libbsp/sparc/shared/irq/irq-shared.c | 38 2 files changed, 43 insertions(+), 6 deletions(-) diff --git a/c/src/lib/libbsp/sparc/leon3/include/bsp.h b/c/src/lib/libbsp/sparc/leon3/include/bsp.

Re: [PATCH 2/3 v2] LEON3 SMP: support static interrupt affinity

2014-10-09 Thread Daniel Hellstrom
On 10/09/2014 11:13 AM, Sebastian Huber wrote: On 08/10/14 15:49, Daniel Hellstrom wrote: +#ifdef RTEMS_SMP +/* Weak table used to implement static interrupt CPU affinity in a SMP + * configuration. The array index is the interrupt to be looked up, and + * the array[INTERRUPT] content is the

Re: [PATCH 2/3 v2] LEON3 SMP: support static interrupt affinity

2014-10-09 Thread Daniel Hellstrom
On 10/09/2014 11:43 AM, Sebastian Huber wrote: On 09/10/14 11:31, Daniel Hellstrom wrote: On 10/09/2014 11:13 AM, Sebastian Huber wrote: On 08/10/14 15:49, Daniel Hellstrom wrote: +#ifdef RTEMS_SMP +/* Weak table used to implement static interrupt CPU affinity in a SMP + * configuration. The

Question regarding ns16550

2014-10-21 Thread Daniel Gutson
_STATUS); } while ((status & SP_LSR_THOLD) == 0); set( port, NS16550_TRANSMIT_BUFFER, buf [i]); } would be better? Thanks, Daniel. -- Daniel F. Gutson Chief Engineering Officer, SPD San Lorenzo 47, 3rd Floor, Office 5 Córdoba, Argentina Phone: +54 351 4217888 / +54 35

Re: Question regarding ns16550

2014-10-23 Thread Daniel Gutson
On Thu, Oct 23, 2014 at 5:47 AM, Sebastian Huber wrote: > Hello Daniel, Hi Sebastian, > > I never notice a problem with this driver. It should only write to the FIFO > in case it is completely empty. Did you observe problems? no, I didn't (actually I found this while looking

Re: Question regarding ns16550

2014-10-24 Thread Daniel Gutson
On Fri, Oct 24, 2014 at 2:33 AM, Sebastian Huber wrote: > On 23/10/14 18:12, Daniel Gutson wrote: >> >> On Thu, Oct 23, 2014 at 5:47 AM, Sebastian Huber >> wrote: >>> >>> >Hello Daniel, >> >> Hi Sebastian, >> >>> > >

Re: Question regarding ns16550

2014-10-28 Thread Daniel Gutson
On Fri, Oct 24, 2014 at 2:16 PM, Daniel Gutson wrote: > On Fri, Oct 24, 2014 at 2:33 AM, Sebastian Huber > wrote: >> On 23/10/14 18:12, Daniel Gutson wrote: >>> >>> On Thu, Oct 23, 2014 at 5:47 AM, Sebastian Huber >>> wrote: >>>> >>&

[PATCH 1/2] net: Add network task affinity config

2014-11-13 Thread Daniel Cederman
From: Daniel Hellstrom This patch adds a default network tasks CPU affinity configuration option. The network drivers have the option to create their own daemon tasks with a custom CPU affinity set, or rely on the default set. --- cpukit/libnetworking/rtems/rtems_bsdnet.h | 11

[PATCH 2/2] nfs: Add RPCd task affinity config option

2014-11-13 Thread Daniel Cederman
From: Daniel Hellstrom Similar to the task priority option, the new CPU affinity option is first controlled by the RPCI specific rpciodCpuset option. If that is not set, it uses the global network task config. If that is also not set, it falls back to not setting the affinity at all, using all

Re: [PATCH 2/2] nfs: Add RPCd task affinity config option

2014-11-13 Thread Daniel Cederman
On 2014-11-13 10:23, Sebastian Huber wrote: On 13/11/14 10:09, Daniel Cederman wrote: @@ -407,6 +410,8 @@ static rtems_intervalticksPerSec;/* cached system clock rate (WHO IS ASSUMED */ rtems_task_priorityrpciodPriority = 0

[PATCH v2 1/2] net: Add network task affinity config

2014-11-13 Thread Daniel Cederman
From: Daniel Hellstrom This patch adds a default network tasks CPU affinity configuration option. The network drivers have the option to create their own daemon tasks with a custom CPU affinity set, or rely on the default set. --- cpukit/libnetworking/rtems/rtems_bsdnet.h | 9

[PATCH v2 2/2] nfs: Add RPCd task affinity config option

2014-11-13 Thread Daniel Cederman
From: Daniel Hellstrom Similar to the task priority option, the new CPU affinity option is first controlled by the RPCI specific rpciodCpuset option. If that is not set, it uses the global network task config. If that is also not set, it falls back to not setting the affinity at all, using all

Re: [PATCH v2 1/2] net: Add network task affinity config

2014-11-13 Thread Daniel Cederman
An oversight. I've now added const to all cpuset references. On 2014-11-13 13:44, Sebastian Huber wrote: On 13/11/14 11:21, Daniel Cederman wrote: +cpu_set_t*network_task_cpuset; The consumer of this field (rtems_task_set_affinity()) uses a const cpuset, so why is this not

[PATCH v3 2/2] nfs: Add RPCd task affinity config option

2014-11-13 Thread Daniel Cederman
Similar to the task priority option, the new CPU affinity option is first controlled by the RPCI specific rpciodCpuset option. If that is not set, it uses the global network task config. If that is also not set, it falls back to not setting the affinity at all, using all CPUs. --- cpukit/libfs/src

[PATCH v3 1/2] net: Add network task affinity config

2014-11-13 Thread Daniel Cederman
This patch adds a default network tasks CPU affinity configuration option. The network drivers have the option to create their own daemon tasks with a custom CPU affinity set, or rely on the default set. --- cpukit/libnetworking/rtems/rtems_bsdnet.h | 9 ++ cpukit/libnetworking/rtems

[PATCH] DEVFS04: make test work on LEON3-FT GR712RC

2014-11-14 Thread Daniel Hellstrom
The LEON3 BSP have support for up to 8 termios consoles, the LEON3-FT GR712RC uses 6 UARTs. This does not take into account the BSP maximum devices instead it is hardcoded to 6. This patch increases it the maximum devices of DEVFS04 from 6 to 10. --- testsuites/libtests/devfs04/init.c |2 +-

Re: [PATCH 1/3] smpschedaffinity02: Change semaphore attributes.

2014-11-19 Thread Daniel Hellstrom
Hello, All three patches have whitespace on "RTEMS_PRIORITY | " below. Otherwise it looks good. Thanks! On 11/13/2014 07:15 PM, Jennifer Averett wrote: Change semaphore attributes to prevent semaphore from being locked and never released upon a context switch. --- testsuites/smptests/smpsc

[PATCH 1/1] spcpuset01: fix test comments

2014-11-19 Thread Daniel Hellstrom
--- testsuites/sptests/spcpuset01/init.c |6 +- testsuites/sptests/spcpuset01/spcpuset01.doc |2 +- testsuites/sptests/spcpuset01/spcpuset01.scn | 130 +- 3 files changed, 69 insertions(+), 69 deletions(-) diff --git a/testsuites/sptests/spcpuset01/init.c

[PATCH 1/4] SPARC: window overflow optimization

2014-11-19 Thread Daniel Hellstrom
I see no need for waiting the 3 instruction delay for wim to be written in this case, since the STD after does not depend on WIM --- c/src/lib/libcpu/sparc/reg_win/window.S |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/c/src/lib/libcpu/sparc/reg_win/window.S b/c/src/lib

[PATCH 3/4] SPARC: optimize window underflow trap

2014-11-19 Thread Daniel Hellstrom
Save five instructions on underflow handling. By using an optimized trap entry we can move instructions from the window underflow function into the trap entry vector. By setting WIM=0 and using RESTORE it is possible to move the new WIM register content from the trapped window into the to-be-resto

[PATCH 4/4] SPARC: optimize IRQ enable & disable

2014-11-19 Thread Daniel Hellstrom
* Coding style cleanups. * Use OS reserved trap 0x89 for IRQ Disable * Use OS reserved trap 0x8A for IRQ Enable This will result in faster Disable/Enable code since the system trap handler does not need to decode which function the user wants. Besides the IRQ disable/enabled can now be inline whic

[PATCH 2/4] SPARC: optimize window overflow trap entry

2014-11-19 Thread Daniel Hellstrom
By using a optimized trap entry we can move instructions from the window overflow function into the trap entry vector. By using the saved locals instead of g1 we don't need to save that register temporarily. Also spead out non store instructions inbetween stores to use the write buffer better. ---

Re: [PATCH 4/4] SPARC: optimize IRQ enable & disable

2014-11-20 Thread Daniel Hellstrom
hanks! DanielH On Wed, Nov 19, 2014 at 10:35 AM, Daniel Hellstrom wrote: * Coding style cleanups. * Use OS reserved trap 0x89 for IRQ Disable * Use OS reserved trap 0x8A for IRQ Enable This will result in faster Disable/Enable code since the system trap handler does not need to decode which functio

Re: [PATCH 4/4] SPARC: optimize IRQ enable & disable

2014-11-20 Thread Daniel Hellstrom
Hi, I will fix this. I missed it since it I never enabled RTEMS_PROFILING. Thanks! Daniel On 11/20/2014 10:12 AM, Sebastian Huber wrote: With your patches applied I get a link-time error: gmake[6]: Entering directory `/scratch/git-build/b-smp-ngmp/sparc-rtems4.11/c/ngmp/testsuites/samples

Re: [PATCH 4/4] SPARC: optimize IRQ enable & disable

2014-11-20 Thread Daniel Hellstrom
On 11/20/2014 12:08 PM, Sebastian Huber wrote: On 20/11/14 10:22, Daniel Hellstrom wrote: I will fix this. I missed it since it I never enabled RTEMS_PROFILING. I did a test suite run on NGMP with profiling enabled and your patches with a local fix. So overall they don't make things

Re: [PATCH 4/4] SPARC: optimize IRQ enable & disable

2014-11-20 Thread Daniel Hellstrom
On 11/20/2014 03:09 PM, Sebastian Huber wrote: On 20/11/14 12:36, Daniel Hellstrom wrote: On 11/20/2014 12:08 PM, Sebastian Huber wrote: On 20/11/14 10:22, Daniel Hellstrom wrote: I will fix this. I missed it since it I never enabled RTEMS_PROFILING. I did a test suite run on NGMP with

[PATCH 4/4 v2] SPARC: optimize IRQ enable & disable

2014-11-24 Thread Daniel Hellstrom
* Coding style cleanups. * Use OS reserved trap 0x89 for IRQ Disable * Use OS reserved trap 0x8A for IRQ Enable This will result in faster Disable/Enable code since the system trap handler does not need to decode which function the user wants. Besides the IRQ disable/enabled can now be inline whic

Re: [PATCH 4/4 v2] SPARC: optimize IRQ enable & disable

2014-11-24 Thread Daniel Hellstrom
On 11/24/2014 04:29 PM, Gedare Bloom wrote: On Mon, Nov 24, 2014 at 5:15 AM, Daniel Hellstrom wrote: * Coding style cleanups. * Use OS reserved trap 0x89 for IRQ Disable * Use OS reserved trap 0x8A for IRQ Enable This will result in faster Disable/Enable code since the system trap handler

Re: [PATCH 2/2] sparc/leon2: LEON_Is_interrupt_masked for Leon2 in leon.h wrongly defined

2014-11-24 Thread Daniel Hellstrom
Ok, what about ERC32 which has the same macros? On 11/24/2014 04:41 PM, Gedare Bloom wrote: Daniel commit these if you agree with the assessment. On Sun, Nov 23, 2014 at 4:53 PM, Jiri Gaisler wrote: Condition needs to be inverted, as a 1 in the mask register means that the

Re: [PATCH 2/2] sparc/leon2: LEON_Is_interrupt_masked for Leon2 in leon.h wrongly defined

2014-11-24 Thread Daniel Hellstrom
Ok, Thanks! DanielH On 24 November 2014 17:15:03 CET, Jiri Gaisler wrote: >On 11/24/2014 05:02 PM, Daniel Hellstrom wrote: >> Ok, what about ERC32 which has the same macros? > >ERC32 is correctly defined. The leon2/3 were wrong because the >defines were copied from ERC32, but

Re: [PATCH 1/2] rtems: Add rtems_cache_coherent_allocate()

2014-12-01 Thread Daniel Hellstrom
Hello Sebastian, The coherent code looks nice and clean. I'm wondering, is it possbile to add a memory region to the coherent area and at the same time make malloc() return memory from that area when the default heap connected to malloc() is empty? As I recall that is the behaviour of linux, whe

[PATCH 4/4 v3] SPARC: optimize IRQ enable & disable

2014-12-03 Thread Daniel Hellstrom
* Coding style cleanups. * Use OS reserved trap 0x89 for IRQ Disable * Use OS reserved trap 0x8A for IRQ Enable * Add to SPARC CPU supplement documentation This will result in faster Disable/Enable code since the system trap handler does not need to decode which function the user wants. Besides th

Re: SPARC GCC Version

2014-12-04 Thread Daniel Hellstrom
is the procedure for updates to GCC/newlib/binutils, if I add a LEON patch to GCC should I email rtems-devel about this or submit patches to the source builder? Daniel H On 12/04/2014 08:18 AM, Sebastian Huber wrote: Hello, we use currently GCC 4.9.2 for the SPARC. Unfortunately two patches

[PATCH 1/2] LEON3: use new mcpu=leon3v7 build flag

2014-12-04 Thread Daniel Hellstrom
The LEON3 BSP has been using mcpu=cypress which is a SPARCV7 that is compatible with SPARCv8 CPUs. This patch enables the relatively new LEON3 model and generates SPARCv7 compatible code. This shuold be comptabile with all single-core LEON3/4 systems. The LEON3 model is required for SMP to make GCC

Re: SPARC GCC Version

2014-12-04 Thread Daniel Hellstrom
/2014 09:13 AM, Daniel Hellstrom wrote: Hello, We use the 4.9.2 + all the commits up to the commit of the below multilib patch. This, because it was the simplest approach. We might just as well add the two patches on top of 4.9.2. There are some information about this here (http://www.gaisler.com

[PATCH 2/2] NGMP BSP: add GCC muser-mode switch

2014-12-04 Thread Daniel Hellstrom
Recent GCC have SPARC multilib with muser-mode. This makes CAS instruction operating in both user and priveleged mode. It is required to allow the CAS in systems where RTEMS run in user mode. --- c/src/lib/libbsp/sparc/leon3/make/custom/ngmp.cfg |2 +- 1 files changed, 1 insertions(+), 1 delet

Re: [PATCH 2/2] NGMP BSP: add GCC muser-mode switch

2014-12-04 Thread Daniel Hellstrom
On 12/04/2014 01:20 PM, Sebastian Huber wrote: This option is already in the master. Ok, I missed that. Thanks! DanielH On 04/12/14 13:10, Daniel Hellstrom wrote: Recent GCC have SPARC multilib with muser-mode. This makes CAS instruction operating in both user and priveleged mode. It is

Re: SPARC GCC Version

2014-12-04 Thread Daniel Hellstrom
On 12/04/2014 03:20 PM, Sebastian Huber wrote: On 04/12/14 14:25, Sebastian Huber wrote: On 04/12/14 13:22, Sebastian Huber wrote: On 04/12/14 13:10, Daniel Hellstrom wrote: I have now posted the two BSP build changes for LEON3+NGMP BSPs that reflect the updated GCC-4.9.2 toolchain

Re: [PATCH 1/2] LEON3: use new mcpu=leon3v7 build flag

2014-12-04 Thread Daniel Hellstrom
On 12/04/2014 03:26 PM, Sebastian Huber wrote: On 04/12/14 13:10, Daniel Hellstrom wrote: The LEON3 BSP has been using mcpu=cypress which is a SPARCV7 that is compatible with SPARCv8 CPUs. This patch enables the relatively new LEON3 model and generates SPARCv7 compatible code. This shuold be

Re: Updating Open Projects and GSOC

2014-12-13 Thread Daniel Gutson
FWIW, we have a fully functional LWIP eth stack for the Beaglebone Black that we'll contribute soon. Maybe exploring/prototyping some dynamic checkers (specially for concurrency) would be an option for gsoc. --Mensaje original-- De: Joel Sherrill Remitente: devel Para: us...@rtems.org Pa

POSIX timers misbehaviour

2014-12-17 Thread Daniel Krüger
stion, feel free to contact me any time! Best regards, Daniel Krüger -- SYS TEC electronic GmbH Am Windrad 2 08468 Heinsdorfergrund Telefon : +49 (0) 3765 38600-0 Fax : +49 (0) 3765 38600-4100 Email : daniel.krue...@systec-electronic.com Website : http://www.systec-electronic.com Man

Re: Reducing RTEMS size to <32KB to fit in Epiphany local memories

2014-12-17 Thread Daniel Gutson
in ticker. Look at the ticker variants in > examples-v2 > > >Regards, > >Hesham > >___ > >devel mailing list > >devel@rtems.org > >http://lists.rtems.org/mailman/listinfo/devel > > --joel > ___

Re: Reducing RTEMS size to <32KB to fit in Epiphany local memories

2014-12-17 Thread Daniel Gutson
w a little more, I suggest that you make a objdump and > see what global objects are using more RAM and where did they come from. > > On Wed, Dec 17, 2014 at 1:36 PM, Daniel Gutson < > daniel.gut...@tallertechnologies.com> wrote: >> >> We were able to downsize R

Re: [PATCH 1/2] LEON3: use new mcpu=leon3v7 build flag

2014-12-19 Thread Daniel Hellstrom
On 12/04/2014 04:26 PM, Sebastian Huber wrote: On 04/12/14 15:54, Daniel Hellstrom wrote: On 12/04/2014 03:26 PM, Sebastian Huber wrote: On 04/12/14 13:10, Daniel Hellstrom wrote: The LEON3 BSP has been using mcpu=cypress which is a SPARCV7 that is compatible with SPARCv8 CPUs. This patch

Re: Fwd: Sebastian Huber appointed RTEMS Co-Maintainer

2014-12-21 Thread Daniel Gutson
Congratulations! --Mensaje original-- De: Joel Sherrill Remitente: devel Para: us...@rtems.org Para: devel@rtems.org Asunto: Fwd: Sebastian Huber appointed RTEMS Co-Maintainer Enviado: 21 de dic de 2014 2:13 PM Original Message Subject:Sebastian Huber appointed

Trace interrupts with the capture engine

2015-01-07 Thread Daniel Cederman
_vector_table[vector]); } -- Daniel Cederman Software Engineer Aeroflex Gaisler AB Aeroflex Microelectronic Solutions – HiRel Kungsgatan 12 SE-411 19 Gothenburg, Sweden ceder...@gaisler.com www.Aeroflex.com/Gaisler ___ devel mailing list devel@rtems.org ht

watchdog question

2015-01-13 Thread Daniel Gutson
possible and switch to manual just in small bounded places of the code. Before entering in the discussion of the implementation, I'd like feeedback about the general idea please. Thanks! Daniel. ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH] grspw: descriptor tables no longer statically allocated

2015-01-22 Thread Daniel Hellstrom
Hello, Haven't tested but seems good. Thanks, Daniel On 01/21/2015 05:05 PM, Gedare Bloom wrote: Claudio and Daniel H, OK to commit? -Gedare On Tue, Dec 23, 2014 at 10:08 PM, Gedare Bloom wrote: This is a patch proposed for PR 1761 [https://devel.rtems.org/ticket/1761]. Comment if

[PATCH] bsp/sparc: Move BSP_ISR_handler to a separate file

2015-02-04 Thread Daniel Cederman
This allows it to be wrapped by another function at link-time and can be used to trace interrupts. If not placed in a separate file, the function pointer address used in BSP_shared_interrupt_init will be resolved at compile-time, and the function will not be wrappable. --- c/src/lib/libbsp/sparc/M

[PATCH 1/2] doc: Describe new default error handler for Sparc

2015-02-04 Thread Daniel Cederman
--- doc/cpu_supplement/sparc.t | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/doc/cpu_supplement/sparc.t b/doc/cpu_supplement/sparc.t index cd5602c..d21e9fe 100644 --- a/doc/cpu_supplement/sparc.t +++ b/doc/cpu_supplement/sparc.t @@ -951,10 +951,18 @@ handler

[PATCH] grspw: Fix typos

2015-02-04 Thread Daniel Cederman
--- c/src/lib/libbsp/sparc/shared/spw/grspw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/spw/grspw.c b/c/src/lib/libbsp/sparc/shared/spw/grspw.c index d3eb9b9..d869d17 100644 --- a/c/src/lib/libbsp/sparc/shared/spw/grspw.c +++ b/c/src/l

[PATCH] smpcapture02: Add test of functionality to add custom entries to capture trace

2015-02-04 Thread Daniel Cederman
--- testsuites/smptests/Makefile.am | 1 + testsuites/smptests/configure.ac | 1 + testsuites/smptests/smpcapture02/Makefile.am | 19 + testsuites/smptests/smpcapture02/init.c | 425 ++ testsuites/smptests/smpcapture02/smpc

[PATCH 2/2] doc: Document network task affinity option

2015-02-04 Thread Daniel Cederman
--- doc/networking/networkapp.t | 14 ++ 1 file changed, 14 insertions(+) diff --git a/doc/networking/networkapp.t b/doc/networking/networkapp.t index 62b1a53..dd356a8 100644 --- a/doc/networking/networkapp.t +++ b/doc/networking/networkapp.t @@ -101,6 +101,11 @@ struct rtems_bsdnet_c

Re: [PATCH 1/3] Add rtems_filesystem_make_dev_t_from_pointer()

2015-02-04 Thread Daniel Gutson
) > -- > 1.8.1.4 > > _______ > devel mailing list > devel@rtems.org > http://lists.rtems.org/mailman/listinfo/devel > -- Daniel F. Gutson Chief Engineering Officer, SPD San Lorenzo 47, 3rd Floor,

Re: [PATCH 1/3] Add rtems_filesystem_make_dev_t_from_pointer()

2015-02-04 Thread Daniel Gutson
On Wed, Feb 4, 2015 at 1:16 PM, Daniel Gutson < daniel.gut...@tallertechnologies.com> wrote: > Hi Sebastian, > > On Wed, Feb 4, 2015 at 10:46 AM, Sebastian Huber < > sebastian.hu...@embedded-brains.de> wrote: > >> --- >> cpukit/libcsupport/include/rtems/lib

Re: [PATCH 1/3] Add rtems_filesystem_make_dev_t_from_pointer()

2015-02-04 Thread Daniel Gutson
On Wed, Feb 4, 2015 at 1:27 PM, Gedare Bloom wrote: > > On Wed, Feb 4, 2015 at 11:16 AM, Daniel Gutson > wrote: > > Hi Sebastian, > > > > On Wed, Feb 4, 2015 at 10:46 AM, Sebastian Huber > > wrote: > >> > >> --- > >> cpukit/libcsuppor

Re: [PATCH] bsp/sparc: Move BSP_ISR_handler to a separate file

2015-02-06 Thread Daniel Cederman
> I'd like to entertain a new name for this "BSP_ISR_handler" function > now that it becomes an exported symbol. We should put it into a proper > namespace. Any suggestion on what to change it to? /Daniel C On 2015-02-04 16:12, Gedare Bloom wrote: I'd like to

Re: [rtems commit] smpcapture02: Add test of functionality to add custom entries to capture trace

2015-02-12 Thread Daniel Cederman
> Daniel(s), could enlighten me why this is needed ? Is this a arch > constraint or something else ? > > Chris It is an arch constraint. On SPARC, for example, all memory accesses needs to a be aligned. From the SPARC V8 manual: "Halfword accesses must be aligned on 2-byte

how patching

2015-02-13 Thread Daniel Gutson
Hi, is there any current experience / support with hot patching? E.g. patching a driver while the whole system is running. Thanks, Daniel. -- Daniel F. Gutson Chief Engineering Officer, SPD San Lorenzo 47, 3rd Floor, Office 5 Córdoba, Argentina Phone: +54 351 4217888 / +54 351

Re: how patching

2015-02-13 Thread Daniel Gutson
Just to clarify: the ability to provide a new piece of binary corresponding to a driver and replace the existing one. Have anybody tried this before? Thanks! Daniel. On Fri, Feb 13, 2015 at 12:27 PM, Daniel Gutson wrote: > Hi, > >is there any current experience / support

Re: RTEMS for ARM Cortex-M1 ?

2015-02-14 Thread Daniel Gutson
El 13/02/2015 22:59, "Cudmore, Alan P. (GSFC-5820)" escribió: > > A project is looking at using RTEMS on an FPGA based ARM Cortex-M1 like > the one in the Microsemi ProAsic3L development kit: > http://www.microsemi.com/products/fpga-soc/design-resources/dev-kits/proasi > c3/cortex-m1-enabled-proas

Re: [rtems commit] smpcapture02: Add test of functionality to add custom entries to capture trace

2015-02-16 Thread Daniel Cederman
board with: *** BEGIN OF TEST SMPCAPTURE 2 *** rtems-4.11/c/src/../../testsuites/smptests/smpcapture02/init.c: 337 recs->time>=prev_rec->time On 11/02/15 16:34, Daniel Hellstrom wrote: Module:rtems Branch:master Commit:8d8573acc8f620c93afa8dd30ea8418d25ad2d21 Changeset: h

Re: RTEMS for ARM Cortex-M1 ?

2015-02-18 Thread Daniel Gutson
I'm resending my answer since I got a mailman error response. On Tue, Feb 17, 2015 at 10:53 AM, Daniel Gutson wrote: > > El 14/02/2015 10:29, "Sebastian Huber" > escribió: >> >> On 14/02/15 14:27, Sebastian Huber wrote: >>> >>> On 14/02/15

[PATCH 001/111] IO_MANAGER: early dynamic driver registration

2015-02-26 Thread Daniel Hellstrom
Adds the possibility to register drivers before the IO Manager has completed the initialization. Sometimes the BSP may want to register a driver dynamically early in the boot process. --- cpukit/sapi/src/io.c |4 cpukit/sapi/src/ioregisterdriver.c | 14 +- 2 fi

[PATCH 004/111] leon3: always clear interrupt controller

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/leon3/amba/amba.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/c/src/lib/libbsp/sparc/leon3/amba/amba.c b/c/src/lib/libbsp/sparc/leon3/amba/amba.c index 70e703f..9706b25 100644 --- a/c/src/lib/libbsp/sparc/leon3/amba/amba.c +++ b/c/src/l

[PATCH 005/111] leon3: make timer initialization configurable

2015-02-26 Thread Daniel Hellstrom
Its now possible to select which timer core will be used for system clock timer and to control the timer prescaler that affects all timer instances on that timer core. The timer and interrupt controller AMBA devices are exported to make it possible for other code to get detailed information. For e

[PATCH 000/111] GRLIB/LEON RTEMS RCC patches

2015-02-26 Thread Daniel Hellstrom
Hi, I have rebased and tested briefly the RTEMS code that we have used on LEON2/3/4 on RTEMS-4.10 during the last couple of years. A couple of years ago most stuff that did not depend on the PCI and Driver Manager layers were submitted so most patches are SPARC BSP specific this time. GCC-4.9 comp

[PATCH 002/111] LEON3: GPTIMER timer watchdog driver

2015-02-26 Thread Daniel Hellstrom
Last timer instance of GPTIMER is sometimes a watchdog timer that can reset the system on timer underflow. --- c/src/lib/libbsp/sparc/leon3/Makefile.am|2 + c/src/lib/libbsp/sparc/leon3/include/watchdog.h | 49 c/src/lib/libbsp/sparc/leon3/preinstall.am |4 + c/

[PATCH 003/111] leon3: clock driver rely on previous found timer

2015-02-26 Thread Daniel Hellstrom
No point in scanning for the same GPTIMER twice. Rely on amba.c AMBA PnP scanning. --- c/src/lib/libbsp/sparc/leon3/clock/ckinit.c | 11 ++- 1 files changed, 2 insertions(+), 9 deletions(-) diff --git a/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c b/c/src/lib/libbsp/sparc/leon3/clock/ck

[PATCH 006/111] leon3,ngmp: simplify cpucounter initialization

2015-02-26 Thread Daniel Hellstrom
Remove support for using the second timer for time stamping. Instead the user can configure the system clock timer to a higher base clock frequency (lower the prescaler). This change does not affect the GR712RC or LEON4-N2X. The GR712RC does not have two GPTIMERs and the N2X uses the Interrupt Cont

[PATCH 016/111] LEON: GPTIMER driver, Timer Library and System Clock for LEON3

2015-02-26 Thread Daniel Hellstrom
With this patch the LEON family can access the GRLIB GPTIMER using the Timer library (TLIB). A System Clock driver instead of BSP/clock/ck_init.c is provided using the TLIB. The classic clock driver is split in two parts, clock driver and timer driver. The BSPs need only to fullfill the timer inte

[PATCH 008/111] LIBPCI: added PCI shell command

2015-02-26 Thread Daniel Hellstrom
--- cpukit/libmisc/Makefile.am |3 +- cpukit/libmisc/shell/main_pci.c| 525 cpukit/libmisc/shell/shellconfig.h | 16 ++ 3 files changed, 543 insertions(+), 1 deletions(-) create mode 100644 cpukit/libmisc/shell/main_pci.c diff --git a/cpuki

[PATCH 010/111] LIBPCI: added DRVMGR model for PCI bus

2015-02-26 Thread Daniel Hellstrom
(pci_interrupt_register) and PCI + * target set up. + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + * + * 2008-12-03, Daniel Hellstrom + *Created + * + */ + +/* Use PCI Configuration libarary

[PATCH 015/111] LEON2: implemented AMBA Bus Driver for Driver Manager

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/Makefile.am |2 + c/src/lib/libbsp/sparc/leon2/Makefile.am |7 + c/src/lib/libbsp/sparc/leon2/include/bsp.h |7 + c/src/lib/libbsp/sparc/leon2/preinstall.am | 13 + .../lib/libbsp/sparc/leon2/startup/bsppredriver.c

[PATCH 017/111] LEON3: new Console driver, APBUART driver using Driver Manager

2015-02-26 Thread Daniel Hellstrom
This patch reimplements the console driver of the LEON3 BSP, it has split up the console driver in two parts: Console driver and UART driver. Before the only UART supported was APBUART and only on-chip APBUARTs found during startup. However splitting the driver in two allows any UART interface to r

[PATCH 012/111] LEON3: implemented BSP DRVMGR startup initialization

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/leon3/amba/amba.c | 50 c/src/lib/libbsp/sparc/leon3/clock/ckinit.c| 10 c/src/lib/libbsp/sparc/leon3/console/console.c | 10 .../lib/libbsp/sparc/leon3/startup/bsppredriver.c | 32 - 4 files chang

[PATCH 014/111] LEON3: implemented AMBA PnP Bus Driver for Driver Manager

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/Makefile.am |7 + c/src/lib/libbsp/sparc/leon3/Makefile.am |7 + c/src/lib/libbsp/sparc/leon3/include/bsp.h |7 + c/src/lib/libbsp/sparc/leon3/preinstall.am | 12 + c/src/lib/libbsp/sparc/shared/drvmgr/ambapp_bus.c

[PATCH 013/111] sparc BSPs: implemented libpci IRQ BSP support

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/erc32/include/bsp.h |7 +++ c/src/lib/libbsp/sparc/leon2/include/bsp.h | 10 ++ c/src/lib/libbsp/sparc/leon3/include/bsp.h |9 +++-- 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/c/src/lib/libbsp/sparc/erc32/include/bsp.h b/c/

[PATCH 011/111] DRVMGR: added drvmgr shell command

2015-02-26 Thread Daniel Hellstrom
--- cpukit/libmisc/Makefile.am |2 +- cpukit/libmisc/shell/main_drvmgr.c | 426 cpukit/libmisc/shell/shellconfig.h |9 + 3 files changed, 436 insertions(+), 1 deletions(-) create mode 100644 cpukit/libmisc/shell/main_drvmgr.c diff --git a/cpu

[PATCH 019/111] LEON2: added support for LEON2-GRLIB systems

2015-02-26 Thread Daniel Hellstrom
In some non-standard designs GRLIB peripherals are used together LEON2. This patch adds a GRLIB amba Plug&Play driver so that AMBA devices can be found from Plug&Play the same way as with the LEON3 BSP. The user is required to add an AMBA-PnP device entry into the LEON2 bus configuration, so that

[PATCH 018/111] LEON: replaced old BSP PCI layer with new generic libpci PCI layer

2015-02-26 Thread Daniel Hellstrom
The old code used a limited PCI configuration library, which was duplicated into LEON2 and LEON3 BSP pci.c together with respective Host controller PCI interface. The LEON2 BSP had support for AT697 PCI, and LEON3 for GRPCI PCI Host controller. With this update new PCI Host drivers are added, and

[PATCH 029/111] APBUART: fix GRMON -u support for older UARTs

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/uart/apbuart_cons.c | 16 ++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/uart/apbuart_cons.c b/c/src/lib/libbsp/sparc/shared/uart/apbuart_cons.c index 2785286..64d1b15 100644 --- a/c/src/lib/libbsp

[PATCH 025/111] GRPCI: fix target BAR1 initialization

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/pci/grpci.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/pci/grpci.c b/c/src/lib/libbsp/sparc/shared/pci/grpci.c index f496405..0b781d3 100644 --- a/c/src/lib/libbsp/sparc/shared/pci/grpci.c +++ b/c/src/l

[PATCH 042/111] AMBAPP: update AMBA PnP ID database

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/amba/ambapp_names.c | 55 +++- c/src/lib/libbsp/sparc/shared/include/ambapp_ids.h | 44 +--- 2 files changed, 77 insertions(+), 22 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/amba/ambapp_names.c b/c/src/lib/libbsp/spa

[PATCH 031/111] leon,gpiolib: add mask/unmask interrupt support

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/gpio/gpiolib.c| 11 +++ c/src/lib/libbsp/sparc/shared/gpio/grgpio.c | 12 c/src/lib/libbsp/sparc/shared/include/gpiolib.h |4 3 files changed, 27 insertions(+), 0 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/gp

[PATCH 047/111] APBUART: debug bit was cleared incorrectly

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/uart/apbuart_cons.c | 32 ++-- 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/uart/apbuart_cons.c b/c/src/lib/libbsp/sparc/shared/uart/apbuart_cons.c index 64d1b15..e0fa64e 100644 --- a/c/src/lib/l

[PATCH 045/111] LEON GRSPW: updated to new DRVMGR translation interface

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/spw/grspw.c | 171 ++-- 1 files changed, 110 insertions(+), 61 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/spw/grspw.c b/c/src/lib/libbsp/sparc/shared/spw/grspw.c index 5cedcb9..ebf7fe0 100644 --- a/c/src/lib/libbsp/sparc/sha

[PATCH 041/111] GRPCI2: work-around for rev0 bug by limiting prefetching

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/pci/grpci2.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/pci/grpci2.c b/c/src/lib/libbsp/sparc/shared/pci/grpci2.c index 55a69ef..3891c25 100644 --- a/c/src/lib/libbsp/sparc/shared/pci/grpci2.c +++

[PATCH 027/111] LEON3: fixed nano seconds support in TLIB

2015-02-26 Thread Daniel Hellstrom
The _Watchdog_Nanoseconds_since_tick_handler() function caller does not take into account that the timer counter may wrap, underflow or overflow. Instead, the driver must take that into account. This GPTIMER DrvMgr driver patch makes use of the IRQ-Pending bit to determine if a underflow has happen

[PATCH 044/111] GR-CPCI-LEON4-N2X: added PCI peripheral driver for PCI device

2015-02-26 Thread Daniel Hellstrom
Interrupts have not been test yet --- c/src/lib/libbsp/sparc/Makefile.am |2 + c/src/lib/libbsp/sparc/leon2/Makefile.am |2 + c/src/lib/libbsp/sparc/leon2/preinstall.am |4 + c/src/lib/libbsp/sparc/leon3/Makefile.am |2 + c/src/lib/libbsp

[PATCH 033/111] GPTIMER: support separate & shared irq by clearing pending bit after ISR

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/timer/gptimer.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/timer/gptimer.c b/c/src/lib/libbsp/sparc/shared/timer/gptimer.c index 2314a3b..6a7e835 100644 --- a/c/src/lib/libbsp/sparc/shared/timer/g

[PATCH 022/111] LEON: added network device configuration helper function

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/Makefile.am |4 + c/src/lib/libbsp/sparc/leon2/Makefile.am |5 ++ c/src/lib/libbsp/sparc/leon2/preinstall.am |4 + c/src/lib/libbsp/sparc/leon3/Makefile.am |6 ++ c/src/lib/libbsp/sparc/leon3/preinstall.am

[PATCH 039/111] GRETH: cleaned up parts of PHY init code

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/net/greth.c | 33 1 files changed, 14 insertions(+), 19 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/net/greth.c b/c/src/lib/libbsp/sparc/shared/net/greth.c index ac4ec77..d721586 100644 --- a/c/src/lib/libbsp/sparc/shar

[PATCH 051/111] AT697 PCI: abort whhen a peripheral PCI system detected

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/leon2/pci/at697_pci.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/c/src/lib/libbsp/sparc/leon2/pci/at697_pci.c b/c/src/lib/libbsp/sparc/leon2/pci/at697_pci.c index 76b9c4d..6289a56 100644 --- a/c/src/lib/libbsp/sparc/leon2/pci/at697_

[PATCH 037/111] GRETH: forcing autonegotiation during PHY initialization

2015-02-26 Thread Daniel Hellstrom
Looking at PHY Ctrl register without reseting it will give back old register content, that is not stable. Instead the PHY is reset and the autonogotiation capability is read out and started if present. --- c/src/lib/libbsp/sparc/shared/net/greth.c | 17 +++-- 1 files changed, 11 inse

[PATCH 035/111] GRPCI: initialize cache-line-size and latency timer

2015-02-26 Thread Daniel Hellstrom
In some GRPCI cores not setting the cache line size could result in long prefetches on the AMBA bus which would lead to bad performance when doing PCI reads to GRPCI target interface (DMA). --- c/src/lib/libbsp/sparc/shared/pci/grpci.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(

<    1   2   3   4   5   6   7   8   >