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 joel.sherr...@oarcorp.com

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 krohini1...@gmail.com wrote: On Wed, Aug 12, 2015 at 1:29 AM, Joel Sherrill joel.sherr...@oarcorp.com 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

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 joel.sherr...@oarcorp.com mailto:joel.sherr...@oarcorp.com wrote: On 08/15/2015 02:35 PM, Rohini Kulkarni wrote: Hi I need

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 krohini1...@gmail.com 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

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 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 joel.sherr...@oarcorp.com wrote: The

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: 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 joel.sherr...@oarcorp.com wrote: On

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 krohini1...@gmail.com wrote: Hi, I am stuck at how to set up IPI for Pi 2. This https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2836/QA7_rev3.4.pdf is a

Re: SMP support for Raspberry Pi 2

2015-08-08 Thread Joel Sherrill
On August 8, 2015 3:17:01 PM CDT, Rohini Kulkarni krohini1...@gmail.com 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

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?

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 sebastian.hu...@embedded-brains.de wrote: On 29/07/15 11:52, Rohini

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. During final

Re: SMP support for Raspberry Pi 2

2015-07-28 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,

Re: SMP support for Raspberry Pi 2

2015-07-20 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 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 krohini1...@gmail.com wrote: Hi, I don't have #define RTEMS_SMP 1 in cpuopts.h. Have made changes only to

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 you

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

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

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

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 krohini1...@gmail.com 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. */

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 Hesham ALMatary
Hi Rohini, On Wed, Jul 8, 2015 at 1:54 PM, Rohini Kulkarni krohini1...@gmail.com 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)