Re: Fwd: Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support

2015-08-11 Thread Rohini Kulkarni
On 12 Aug 2015 11:38, "Chris Johns" wrote: > > On 12/08/2015 6:02 am, Rohini Kulkarni wrote: > > Yes I have tried this. Didn't work out :( > > What was the reason ? > > I do not remembering seeing it. I didn't understand what "it" refers to. > > Chris __

Re: Fwd: Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support

2015-08-11 Thread Chris Johns
On 12/08/2015 6:02 am, Rohini Kulkarni wrote: > Yes I have tried this. Didn't work out :( What was the reason ? I do not remembering seeing it. Chris ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: Fwd: Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support

2015-08-11 Thread Rohini Kulkarni
Yes I have tried this. Didn't work out :( On 11 Aug 2015 19:56, "Joel Sherrill" wrote: > Hi > > Has this been tried? > > > Forwarded Message -------- > Subject: Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support > Date: Tue, 28 Jul 2015

Fwd: Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support

2015-08-11 Thread Joel Sherrill
Hi Has this been tried? Forwarded Message Subject: Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support Date: Tue, 28 Jul 2015 01:57:44 -0500 From: Sebastian Huber To: Rohini Kulkarni , Gedare Bloom CC: rtems-de...@rtems.org On 24/07/15 21:55, Rohini Kulkarni

Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support

2015-08-11 Thread Gedare Bloom
Well, the unwind code is being pulled in for: Unwind table index '.ARM.exidx' at offset 0xa3fb8 contains 1 entries: 0x9b300 <__divdi3>: 0x1 [cantunwind] So back-tracking that may also help. Gedare On Tue, Aug 11, 2015 at 10:09 AM, Joel Sherrill wrote: > > > On 8/11/2015 9:00 AM, Gedare Bloom wr

Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support

2015-08-11 Thread Joel Sherrill
On 8/11/2015 9:00 AM, Gedare Bloom wrote: On Tue, Aug 11, 2015 at 9:59 AM, Gedare Bloom wrote: Yeah until you or someone can figure out how to get the .ARM.exidx section from being placed in the .bss, a quick work-around would be to provide an alternate code to clear the bss that does somethi

Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support

2015-08-11 Thread Gedare Bloom
On Tue, Aug 11, 2015 at 9:59 AM, Gedare Bloom wrote: > Yeah until you or someone can figure out how to get the .ARM.exidx > section from being placed in the .bss, a quick work-around would be to > provide an alternate code to clear the bss that does something like... > > memset(bsp_section_bss_beg

Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support

2015-08-11 Thread Gedare Bloom
Yeah until you or someone can figure out how to get the .ARM.exidx section from being placed in the .bss, a quick work-around would be to provide an alternate code to clear the bss that does something like... memset(bsp_section_bss_begin, 0, __exidx_start - bsp_section_bss_begin); memset(__exidx_s

Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support

2015-08-11 Thread Rohini Kulkarni
OK! So is there any immediate solution which can be tried? On Tue, Aug 11, 2015 at 6:32 PM, Gedare Bloom wrote: > I can see the following pertinent information: > [15] .bss NOBITS 001156e0 0a8fd8 00fab0 00 WA 0 > 0 32 > The bss section starts at 0x1156e0, has size 0xfab0

Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support

2015-08-11 Thread Gedare Bloom
I can see the following pertinent information: [15] .bss NOBITS 001156e0 0a8fd8 00fab0 00 WA 0 0 32 The bss section starts at 0x1156e0, has size 0xfab0, and is writeable. In the symbol table we can see: 7825: 001156e0 0 NOTYPE GLOBAL DEFAULT 15 bsp_section_bss_b

Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support

2015-08-05 Thread Gedare Bloom
In arm/shared/startup/linkcmds.base these barriers are used to add gaps in the memory layout at link-time to accommodate for the size requirements of the MMU. xbarrier aligns the executable region, robarrier aligns the read-only memory, and rwbarrier aligns the read-write memory. On Tue, Aug 4, 20

Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support

2015-08-04 Thread Rohini Kulkarni
On Wed, Aug 5, 2015 at 1:47 AM, Gedare Bloom wrote: > On Tue, Aug 4, 2015 at 2:18 PM, Rohini Kulkarni > wrote: > > > > > > On Tue, Jul 28, 2015 at 5:51 AM, Pavel Pisa > wrote: > >> > >> Hello Rohini and Gedare, > >> > >> On Friday 24 of July 2015 15:33:03 Gedare Bloom wrote: > >> > What are the

Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support

2015-08-04 Thread Rohini Kulkarni
On 5 Aug 2015 01:47, "Gedare Bloom" wrote: > > On Tue, Aug 4, 2015 at 2:18 PM, Rohini Kulkarni wrote: > > > > > > On Tue, Jul 28, 2015 at 5:51 AM, Pavel Pisa wrote: > >> > >> Hello Rohini and Gedare, > >> > >> On Friday 24 of July 2015 15:33:03 Gedare Bloom wrote: > >> > What are the values of b

Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support

2015-08-04 Thread Gedare Bloom
On Tue, Aug 4, 2015 at 2:18 PM, Rohini Kulkarni wrote: > > > On Tue, Jul 28, 2015 at 5:51 AM, Pavel Pisa wrote: >> >> Hello Rohini and Gedare, >> >> On Friday 24 of July 2015 15:33:03 Gedare Bloom wrote: >> > What are the values of bsp_section_bss_begin, and bsp_section_bss_size? >> > >> > Appare

Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support

2015-08-04 Thread Rohini Kulkarni
On Tue, Jul 28, 2015 at 5:51 AM, Pavel Pisa wrote: > Hello Rohini and Gedare, > > On Friday 24 of July 2015 15:33:03 Gedare Bloom wrote: > > What are the values of bsp_section_bss_begin, and bsp_section_bss_size? > > > > Apparently, the memset is trying to write into the .text (code) > > section,

Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support

2015-07-27 Thread Sebastian Huber
On 24/07/15 21:55, Rohini Kulkarni wrote: Hi, I have attached the report containing outputs of arm-rtems4.11-size and arm-rtems4.11-nm -S. From arm-rtems4.11-nm -S I don't see how memset() is accessing .text section. The start and end values for both are not overlapping. Maybe this patch

Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support

2015-07-27 Thread Pavel Pisa
Hello Rohini and Gedare, On Friday 24 of July 2015 15:33:03 Gedare Bloom wrote: > What are the values of bsp_section_bss_begin, and bsp_section_bss_size? > > Apparently, the memset is trying to write into the .text (code) > section, which is a very bad thing to do indeed. > Qiao Yang in RPi 1 BSP

Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support

2015-07-24 Thread Rohini Kulkarni
On Fri, Jul 24, 2015 at 7:03 PM, Gedare Bloom wrote: > On Fri, Jul 24, 2015 at 3:30 AM, Rohini Kulkarni > wrote: > > On 24 Jul 2015 12:35, "Sebastian Huber" < > sebastian.hu...@embedded-brains.de> > > wrote: > >> > >> > >> > >> On 23/07/15 23:24, Rohini Kulkarni wrote: > >>> > >>> I could finall

Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support

2015-07-24 Thread Gedare Bloom
On Fri, Jul 24, 2015 at 3:30 AM, Rohini Kulkarni wrote: > On 24 Jul 2015 12:35, "Sebastian Huber" > wrote: >> >> >> >> On 23/07/15 23:24, Rohini Kulkarni wrote: >>> >>> I could finally get back to this issue. I used Pi 1 for debugging, but >>> the reason for this problem will apply to Pi 2 also.

Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support

2015-07-24 Thread Rohini Kulkarni
On 24 Jul 2015 12:35, "Sebastian Huber" wrote: > > > On 23/07/15 23:24, Rohini Kulkarni wrote: > >> I could finally get back to this issue. I used Pi 1 for debugging, but >> the reason for this problem will apply to Pi 2 also. >> With text section set to ARMV7_MMU_CODE_CACHED ( which implies read

Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support

2015-07-24 Thread Sebastian Huber
On 23/07/15 23:24, Rohini Kulkarni wrote: I could finally get back to this issue. I used Pi 1 for debugging, but the reason for this problem will apply to Pi 2 also. With text section set to ARMV7_MMU_CODE_CACHED ( which implies read only) , a data abort exception occurs with memset() inside

Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support

2015-07-23 Thread Rohini Kulkarni
On Tue, Jun 23, 2015 at 4:27 PM, Rohini Kulkarni wrote: > > > > On Tue, Jun 23, 2015 at 1:44 PM, Sebastian Huber < > sebastian.hu...@embedded-brains.de> wrote: > >> Please avoid unnecessary white-space changes and white-space at the end >> of line. >> >> Something went wrong with the whitespace.

Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support

2015-06-23 Thread Rohini Kulkarni
On Tue, Jun 23, 2015 at 1:44 PM, Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > Please avoid unnecessary white-space changes and white-space at the end of > line. > > Something went wrong with the whitespace. I couldn't see that change in my code. I'll rectify it. > > On 22/06/15

Re: [PATCH] GSoC: Cache configurations Raspberry Pi 2 support

2015-06-23 Thread Sebastian Huber
Please avoid unnecessary white-space changes and white-space at the end of line. On 22/06/15 22:59, Rohini Kulkarni wrote: --- .../arm/raspberrypi/startup/mm_config_table.c | 18 +++ c/src/lib/libbsp/arm/shared/mminit.c | 23 2 files ch

[PATCH] GSoC: Cache configurations Raspberry Pi 2 support

2015-06-22 Thread Rohini Kulkarni
--- .../arm/raspberrypi/startup/mm_config_table.c | 18 +++ c/src/lib/libbsp/arm/shared/mminit.c | 23 2 files changed, 32 insertions(+), 9 deletions(-) diff --git a/c/src/lib/libbsp/arm/raspberrypi/startup/mm_config_table.c b/c/src/lib/libb