Re: Pi2 Mailbox IRQs was Re: Fwd: SMP support for Raspberry Pi 2

2015-08-17 Thread Cudmore, Alan P. (GSFC-5820)
Joel and Rohini, I will have to take some time to catch up.. I apologize that I have not been able to keep up with the Raspberry Pi work lately, I have just been too busy with my work projects. ( which is usually a good thing :) Alan On 8/15/15, 5:37 PM, "Joel Sherrill" wrote: >Alan .. can yo

Re: Fwd: SMP support for Raspberry Pi 2

2015-08-16 Thread Gedare Bloom
On Sat, Aug 15, 2015 at 1:22 PM, Rohini Kulkarni wrote: > > > On Wed, Aug 12, 2015 at 1:29 AM, Joel Sherrill > wrote: >> >> >> >> On 8/11/2015 2:06 PM, Rohini Kulkarni wrote: >>> >>> Hi, >>> >>> I would have to register the related mailbox interrupt and associate it >>> with a handler that should

Pi2 Mailbox IRQs was Re: Fwd: SMP support for Raspberry Pi 2

2015-08-15 Thread Joel Sherrill
Alan .. can you confirm what I am interpreting? On 08/15/2015 02:56 PM, Rohini Kulkarni wrote: On Sun, Aug 16, 2015 at 1:13 AM, Joel Sherrill mailto:joel.sherr...@oarcorp.com>> wrote: On 08/15/2015 02:35 PM, Rohini Kulkarni wrote: Hi I need some help with this. I am un

Re: Fwd: SMP support for Raspberry Pi 2

2015-08-15 Thread Rohini Kulkarni
On Wed, Aug 12, 2015 at 1:29 AM, Joel Sherrill wrote: > > > On 8/11/2015 2:06 PM, Rohini Kulkarni wrote: > >> Hi, >> >> I would have to register the related mailbox interrupt and associate it >> with a handler that should be same as >> _SMP_Inter_processor_interrupt_handler(). Am I right? >> > >

Re: Fwd: SMP support for Raspberry Pi 2

2015-08-13 Thread Gedare Bloom
On Wed, Aug 12, 2015 at 5:15 PM, Rohini Kulkarni wrote: > Hi, > > It would be great if somebody can help here. > [1] How are the mailbox registers available for each core of Pi2 to be used. > > [2] Another thing is that I don't know which registers of Pi 1 are available > for Pi2 as well. The ones

Re: Fwd: SMP support for Raspberry Pi 2

2015-08-12 Thread Rohini Kulkarni
Hi, It would be great if somebody can help here. [1] How are the mailbox registers available for each core of Pi2 to be used. [2] Another thing is that I don't know which registers of Pi 1 are available for Pi2 as well. The ones in this link

Re: Fwd: SMP support for Raspberry Pi 2

2015-08-11 Thread Joel Sherrill
On 8/11/2015 2:06 PM, Rohini Kulkarni wrote: Hi, I would have to register the related mailbox interrupt and associate it with a handler that should be same as _SMP_Inter_processor_interrupt_handler(). Am I right? That sounds correct. From where can I get a reference of how to do this?

Re: Fwd: SMP support for Raspberry Pi 2

2015-08-11 Thread Rohini Kulkarni
Hi, I would have to register the related mailbox interrupt and associate it with a handler that should be same as _SMP_Inter_processor_interrupt_handler(). Am I right? >From where can I get a reference of how to do this? On 11 Aug 2015 00:41, "Joel Sherrill" wrote: > The source for the CPU su

Re: SMP support for Raspberry Pi 2

2015-08-09 Thread Rohini Kulkarni
There is no documentation or information from forums I can find to get a lead. I suppose i will go ahead with mailboxes. Each core has 4 mailboxes, usage being left to us. One of the mailboxes can be used here. On Sun, Aug 9, 2015 at 2:28 AM, Joel Sherrill wrote: > > > On August 8, 2015 3:17:01

Re: SMP support for Raspberry Pi 2

2015-08-08 Thread Joel Sherrill
On August 8, 2015 3:17:01 PM CDT, Rohini Kulkarni wrote: >Can mailboxes be useful here? Nothing else that is coming to my mind > They may be and I am seeing references to ARM's own mpcore which uses the GIC. This appears to be SOC specific but ARM has recommendations which may be followed by

Re: SMP support for Raspberry Pi 2

2015-08-08 Thread Rohini Kulkarni
Can mailboxes be useful here? Nothing else that is coming to my mind On Sun, Aug 9, 2015 at 1:44 AM, Rohini Kulkarni wrote: > Hi, > > I am stuck at how to set up IPI for Pi 2. This > > is a document I have re

Re: SMP support for Raspberry Pi 2

2015-08-08 Thread Rohini Kulkarni
Hi, I am stuck at how to set up IPI for Pi 2. This is a document I have referred to get an idea of interrupts. Would be great to get some help on how to proceed. On Fri, Jul 31, 2015 at 7:33 PM, Joel Sherrill

Re: SMP support for Raspberry Pi 2

2015-07-31 Thread Joel Sherrill
On 7/31/2015 8:11 AM, Rohini Kulkarni wrote: Hi, How is the number of processors to be used for an application specified? The used count minimum of that supported in hardware and that configured. How to specify the latter? https://docs.rtems.org/doc-current/share/rtems/html/c_user/Configuri

Re: SMP support for Raspberry Pi 2

2015-07-31 Thread Rohini Kulkarni
Hi, How is the number of processors to be used for an application specified? The used count minimum of that supported in hardware and that configured. How to specify the latter? Thanks. On 29 Jul 2015 15:29, "Sebastian Huber" wrote: > > > On 29/07/15 11:52, Rohini Kulkarni wrote: > >> >> >> On

Re: SMP support for Raspberry Pi 2

2015-07-29 Thread Sebastian Huber
On 29/07/15 11:52, Rohini Kulkarni wrote: On Tue, Jul 28, 2015 at 12:24 PM, Sebastian Huber > wrote: Hello Rohini, please use the devel list. On 28/07/15 07:41, Rohini Kulkarni wrote: Hi, I wish to understand where

Re: SMP support for Raspberry Pi 2

2015-07-29 Thread Rohini Kulkarni
On Tue, Jul 28, 2015 at 12:24 PM, Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > Hello Rohini, > > please use the devel list. > > On 28/07/15 07:41, Rohini Kulkarni wrote: > >> Hi, >> >> I wish to understand where the interprocessor interrupts are used during >> the boot process. D

Re: SMP support for Raspberry Pi 2

2015-07-27 Thread Sebastian Huber
Hello Rohini, please use the devel list. On 28/07/15 07:41, Rohini Kulkarni wrote: Hi, I wish to understand where the interprocessor interrupts are used during the boot process. During final initialization of SMP I can see rtems_interrupt_handler_install( ARM_GIC_IRQ_SGI_0, "IPI

Re: SMP support for Raspberry Pi 2

2015-07-19 Thread Sebastian Huber
On 19/07/15 09:52, Rohini Kulkarni wrote: Do I have to just run the smp tests executables bare metal? You should run the SMP tests like all the other tests. RTEMS kernel image runs fine, but the smp01 executable that I tried produces no output at all. In case for example ticker.exe runs,

Re: SMP support for Raspberry Pi 2

2015-07-13 Thread Joel Sherrill
On 7/13/2015 1:24 PM, Rohini Kulkarni wrote: I did change the configure file to add support for --enable-smp option. Ok, I suppose that is the problem. You need to edit the configure.ac and then bootstrap again. Look at sparc/leon3, powerpc/qoriq, or i386/pc386 for examples. You need to con

Re: SMP support for Raspberry Pi 2

2015-07-13 Thread Rohini Kulkarni
I did change the configure file to add support for --enable-smp option. Ok, I suppose that is the problem. What is the sb option for? On 13 Jul 2015 21:13, "Gedare Bloom" wrote: > Did you change configure, or configure.ac? > > After you change configure.ac or Makefile.am files, you need to run >

Re: SMP support for Raspberry Pi 2

2015-07-13 Thread Gedare Bloom
Did you change configure, or configure.ac? After you change configure.ac or Makefile.am files, you need to run sb-bootstrap again. On Sun, Jul 12, 2015 at 7:05 AM, Rohini Kulkarni wrote: > Hi, > > I don't have #define RTEMS_SMP 1 in cpuopts.h. > > Have made changes only to libbsp/arm/raspberrypi

Re: SMP support for Raspberry Pi 2

2015-07-12 Thread Rohini Kulkarni
Hi, I don't have #define RTEMS_SMP 1 in cpuopts.h. Have made changes only to libbsp/arm/raspberrypi/configure . On Sun, Jul 12, 2015 at 1:50 AM, Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > In the build tree, there are exactly two identical "cpuopts.h" files. In > this file yo

Re: SMP support for Raspberry Pi 2

2015-07-11 Thread Sebastian Huber
In the build tree, there are exactly two identical "cpuopts.h" files. In this file you must find a: /* if SMP is enabled */ #define RTEMS_SMP 1-- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E

Re: SMP support for Raspberry Pi 2

2015-07-11 Thread Rohini Kulkarni
Hi, I am building with the --enable-smp option. But RTEMS_SMP is not getting defined. I have referred to the configure files of other BSPs which includes the script for --enable-smp option and changed the configure script for raspberry pi. What can be the reason, I am unable to understand what I a

Re: SMP support for Raspberry Pi 2

2015-07-08 Thread Joel Sherrill
On 7/8/2015 9:51 AM, Hesham ALMatary wrote: Hi Rohini, On Wed, Jul 8, 2015 at 1:54 PM, Rohini Kulkarni wrote: Hi, I found this piece of code in confdefs.h #if defined(RTEMS_SMP) /* * If configured for SMP, then we need to know the maximum CPU cores. */ #if !defined(CONFIGUR

Re: SMP support for Raspberry Pi 2

2015-07-08 Thread Hesham ALMatary
Hi Rohini, On Wed, Jul 8, 2015 at 1:54 PM, Rohini Kulkarni wrote: > Hi, > > I found this piece of code in confdefs.h > > #if defined(RTEMS_SMP) > > /* >* If configured for SMP, then we need to know the maximum CPU cores. >*/ > #if !defined(CONFIGURE_SMP_APPLICATION) > #if !define

Re: SMP support for Raspberry Pi 2

2015-07-08 Thread Rohini Kulkarni
On Wed, Jul 8, 2015 at 6:25 PM, Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > > > On 08/07/15 14:54, Rohini Kulkarni wrote: > >> This piece of code gets the configured number of CPUs. I suppose this >> number is not specified and will have to be specified by me somewhere in >> the

Re: SMP support for Raspberry Pi 2

2015-07-08 Thread Sebastian Huber
On 08/07/15 14:54, Rohini Kulkarni wrote: This piece of code gets the configured number of CPUs. I suppose this number is not specified and will have to be specified by me somewhere in the configurations. But I am unable to find out where. For examples, please have a look at testsuite/smptes

Re: SMP support for Raspberry Pi 2

2015-07-08 Thread Rohini Kulkarni
Hi, I found this piece of code in confdefs.h #if defined(RTEMS_SMP) /* * If configured for SMP, then we need to know the maximum CPU cores. */ #if !defined(CONFIGURE_SMP_APPLICATION) #if !defined(CONFIGURE_SMP_MAXIMUM_PROCESSORS) #define CONFIGURE_SMP_MAXIMUM_PROCESSORS 1

Re: SMP support for Raspberry Pi 2

2015-07-04 Thread Rohini Kulkarni
On Fri, Jul 3, 2015 at 10:43 PM, Joel Sherrill wrote: > > > On July 3, 2015 11:53:07 AM CDT, Rohini Kulkarni > wrote: > >Any help that I can with this? > > > >On 1 Jul 2015 16:59, "Rohini Kulkarni" wrote: > > > >Hi all, > > > >I wish to know where the maximum number of processors for a variant

Re: SMP support for Raspberry Pi 2

2015-07-03 Thread Joel Sherrill
On July 3, 2015 11:53:07 AM CDT, Rohini Kulkarni wrote: >Any help that I can with this? > >On 1 Jul 2015 16:59, "Rohini Kulkarni" wrote: > >Hi all, > >I wish to know where the maximum number of processors for a variant are >configured. I took a look at some configure scripts. I could see the >p

Re: SMP support for Raspberry Pi 2

2015-07-03 Thread Rohini Kulkarni
Any help that I can with this? On 1 Jul 2015 16:59, "Rohini Kulkarni" wrote: > Hi all, > > I wish to know where the maximum number of processors for a variant are > configured. I took a look at some configure scripts. I could see the > processor count defined for xilinx-zynq in its configuration

SMP support for Raspberry Pi 2

2015-07-01 Thread Rohini Kulkarni
Hi all, I wish to know where the maximum number of processors for a variant are configured. I took a look at some configure scripts. I could see the processor count defined for xilinx-zynq in its configuration file as ZYNQ_CPUS=2. rtems_configuration_get_maximum_processors() called in gets this c