Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-09-17 Thread Jamie Lokier
Pavel Machek wrote: > On Mon 2009-09-07 15:22:10, Russell King - ARM Linux wrote: > > On Tue, Aug 18, 2009 at 08:31:49AM +0530, Rabin Vincent wrote: > > > Here's a fixed version: > > > > And here's my revised version with these fixes in. I changed the > > while loop to a do..while loop instead (s

Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-09-15 Thread Russell King - ARM Linux
On Tue, Sep 15, 2009 at 01:32:56PM +0200, Pavel Machek wrote: > I believe you can just return cmp here. Maybe... unfortunately this comment is after Linus has merged the patch. Might as well leave it as is since we know it works. -- To unsubscribe from this list: send the line "unsubscribe linux-o

Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-09-15 Thread Pavel Machek
On Mon 2009-09-07 15:22:10, Russell King - ARM Linux wrote: > On Tue, Aug 18, 2009 at 08:31:49AM +0530, Rabin Vincent wrote: > > Here's a fixed version: > > And here's my revised version with these fixes in. I changed the > while loop to a do..while loop instead (since we will always have > at le

RE: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-09-09 Thread Syed Mohammed, Khasim
ap@vger.kernel.org > Subject: Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8 > > On Wed, Sep 09, 2009 at 01:16:48PM +0530, Syed Mohammed, Khasim wrote: > > Hi Russell, > > > > > -Original Message- > > > From: Russell King - ARM Li

Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-09-09 Thread Russell King - ARM Linux
; > Cc: Aguirre Rodriguez, Sergio Alberto; Rabin Vincent; linux-arm- > > ker...@lists.arm.linux.org.uk; linux-omap@vger.kernel.org > > Subject: Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8 > > > > And how about my revised version, which is the version

RE: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-09-09 Thread Syed Mohammed, Khasim
org.uk; linux-omap@vger.kernel.org > Subject: Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8 > > On Wed, Sep 09, 2009 at 10:12:48AM +0530, Syed Mohammed, Khasim wrote: > > Hello all, > > > > > -Original Message- > > > From: Aguirre Rodriguez,

Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-09-09 Thread Russell King - ARM Linux
Cc: Syed Mohammed, Khasim; linux-arm-ker...@lists.arm.linux.org.uk; linux- > > o...@vger.kernel.org > > Subject: RE: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8 > > > > From: Russell King - ARM Linux [li...@arm.linux.org.uk] > > Sent: Tuesday, Septem

RE: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-09-08 Thread Syed Mohammed, Khasim
.org > Subject: RE: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8 > > From: Russell King - ARM Linux [li...@arm.linux.org.uk] > Sent: Tuesday, September 08, 2009 11:23 PM > > > > > > Acks and tested-bys would be useful please. > > > > Haven't heard

RE: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-09-08 Thread Aguirre Rodriguez, Sergio Alberto
From: Russell King - ARM Linux [li...@arm.linux.org.uk] Sent: Tuesday, September 08, 2009 11:23 PM > On Mon, Sep 07, 2009 at 03:22:10PM +0100, Russell King - ARM Linux wrote: > > On Tue, Aug 18, 2009 at 08:31:49AM +0530, Rabin Vincent wrote: > > > Here's a fixed version: > > > > And here's my revis

Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-09-08 Thread Russell King - ARM Linux
On Mon, Sep 07, 2009 at 03:22:10PM +0100, Russell King - ARM Linux wrote: > On Tue, Aug 18, 2009 at 08:31:49AM +0530, Rabin Vincent wrote: > > Here's a fixed version: > > And here's my revised version with these fixes in. I changed the > while loop to a do..while loop instead (since we will alway

Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-09-07 Thread Russell King - ARM Linux
On Tue, Aug 18, 2009 at 08:31:49AM +0530, Rabin Vincent wrote: > Here's a fixed version: And here's my revised version with these fixes in. I changed the while loop to a do..while loop instead (since we will always have at least one memory bank, it's pointless doing that test for the first iterat

Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-08-17 Thread Rabin Vincent
On Mon, Aug 17, 2009 at 03:23:18PM -0500, Aguirre Rodriguez, Sergio Alberto wrote: > #ifndef CONFIG_SPARSEMEM > int pfn_valid(unsigned long pfn) > { > struct meminfo *mi = &meminfo; > unsigned int left = 0, right = mi->nr_banks; > > while (left <= right) { This condition will c

RE: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-08-17 Thread Aguirre Rodriguez, Sergio Alberto
org.uk; linux- > o...@vger.kernel.org > Subject: Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8 > > On Mon, Aug 17, 2009 at 11:31:45PM +0530, Rabin Vincent wrote: > > When mid == 0, the loop exits because the condition you have is : > > &

Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-08-17 Thread Russell King - ARM Linux
On Mon, Aug 17, 2009 at 11:31:45PM +0530, Rabin Vincent wrote: > When mid == 0, the loop exits because the condition you have is : > > while ((mid = (right - left) / 2) > 0) { > ^^ > > Thus bank[0] will never be checked. Ah yes, right. Damn it. Oh well,

Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-08-17 Thread Rabin Vincent
On Mon, Aug 17, 2009 at 06:47:18PM +0100, Russell King - ARM Linux wrote: > On Mon, Aug 17, 2009 at 11:03:44PM +0530, Rabin Vincent wrote: > > On Sat, Aug 15, 2009 at 07:17:11PM +0100, Russell King - ARM Linux wrote: > > > +#ifndef CONFIG_SPARSEMEM > > > +int pfn_valid(unsigned long pfn) > > > +{ >

Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-08-17 Thread Russell King - ARM Linux
On Mon, Aug 17, 2009 at 11:03:44PM +0530, Rabin Vincent wrote: > On Sat, Aug 15, 2009 at 07:17:11PM +0100, Russell King - ARM Linux wrote: > > +#ifndef CONFIG_SPARSEMEM > > +int pfn_valid(unsigned long pfn) > > +{ > > + struct meminfo *mi = &meminfo; > > + unsigned int mid, left = 0, right = mi

Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-08-17 Thread Rabin Vincent
On Sat, Aug 15, 2009 at 07:17:11PM +0100, Russell King - ARM Linux wrote: > +#ifndef CONFIG_SPARSEMEM > +int pfn_valid(unsigned long pfn) > +{ > + struct meminfo *mi = &meminfo; > + unsigned int mid, left = 0, right = mi->nr_banks; > + > + while ((mid = (right - left) / 2) > 0) { > +

RE: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-08-17 Thread Syed Mohammed, Khasim
> -Original Message- > From: Russell King - ARM Linux [mailto:li...@arm.linux.org.uk] > Sent: Monday, August 17, 2009 10:21 PM > To: Syed Mohammed, Khasim > Cc: linux-arm-ker...@lists.arm.linux.org.uk; linux-omap@vger.kernel.org > Subject: Re: Exception while handling

Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-08-17 Thread Russell King - ARM Linux
On Mon, Aug 17, 2009 at 04:40:27PM +0530, Syed Mohammed, Khasim wrote: > This patch seem to be working, I don't see any dump like before. Great. > Can you please advice on how to get this patch into kernel? I mean, > will you be handling it or we need to re-submit them with your signed off? Yes,

RE: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-08-17 Thread Syed Mohammed, Khasim
while handling MEM Hole on OMAP3 / ARM Cortex A8 > > On Sat, Aug 15, 2009 at 09:47:18PM +0530, Syed Mohammed, Khasim wrote: > > Backtrace: > > [] (__flush_dcache_page+0x0/0x3c) from [] > > (update_mmu_cache+ > > 0x8c/0xb0) > > [] (update_mmu_cache+0x0/0xb0) from

Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-08-15 Thread Russell King - ARM Linux
On Sat, Aug 15, 2009 at 09:47:18PM +0530, Syed Mohammed, Khasim wrote: > Backtrace: > [] (__flush_dcache_page+0x0/0x3c) from [] > (update_mmu_cache+ > 0x8c/0xb0) > [] (update_mmu_cache+0x0/0xb0) from [] > (handle_mm_fault+0x53 > 4/0x5ac) Bingo! void update_mmu_cache(struct vm_area_struct *vma,

RE: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-08-15 Thread Syed Mohammed, Khasim
g > Subject: Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8 > > On Fri, Aug 14, 2009 at 04:43:21PM +0530, Syed Mohammed, Khasim wrote: > > Unable to handle kernel paging request at virtual address c5d0 > > pgd = cf858000 > Can you rebuild your kernel yet again,

Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-08-15 Thread Russell King - ARM Linux
On Fri, Aug 14, 2009 at 04:43:21PM +0530, Syed Mohammed, Khasim wrote: > Unable to handle kernel paging request at virtual address c5d0 > pgd = cf858000 > [c5d0] *pgd= > Internal error: Oops: 805 [#1] > Modules linked in: cmemk > CPU: 0Not tainted (2.6.31-rc5-omap1 #2) > PC is

RE: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-08-15 Thread Syed Mohammed, Khasim
> > On Sat, Aug 15, 2009 at 06:33:20PM +0530, Sudeep K N wrote: > > I had intially tried memmap=xxM$yyM to reserve xxM at yyM > > This has some issue with 2.6.27 and fixed in later versions(not sure > > of exact version) and I have not tried it. > > memmap= is not supported on ARM - there is no

Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-08-15 Thread Russell King - ARM Linux
On Sat, Aug 15, 2009 at 06:33:20PM +0530, Sudeep K N wrote: > I had intially tried memmap=xxM$yyM to reserve xxM at yyM > This has some issue with 2.6.27 and fixed in later versions(not sure > of exact version) and I have not tried it. memmap= is not supported on ARM - there is no code to parse or

Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-08-15 Thread Sudeep K N
Khasim, As far as I understand there are two options: 1. memmap I had intially tried memmap=xxM$yyM to reserve xxM at yyM This has some issue with 2.6.27 and fixed in later versions(not sure of exact version) and I have not tried it. As Russell has mentioned the new option ARCH_HAS_HOLES_MEMORYMO

RE: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-08-14 Thread Syed Mohammed, Khasim
> -Original Message- > From: Russell King - ARM Linux [mailto:li...@arm.linux.org.uk] > Sent: Thursday, August 13, 2009 11:03 PM > To: Syed Mohammed, Khasim > Cc: linux-arm-ker...@lists.arm.linux.org.uk; linux-omap@vger.kernel.org > Subject: Re: Exception while handling

Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-08-13 Thread Russell King - ARM Linux
On Thu, Aug 13, 2009 at 10:51:43PM +0530, Syed Mohammed, Khasim wrote: > <1>Unable to handle kernel paging request at virtual address c5cef000 Unable > to handle kernel paging request at virtual address c5cef000 > > Internal error: Oops: 805 [#4] > Internal error: Oops: 805 [#4] > Modules linked

RE: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-08-13 Thread Syed Mohammed, Khasim
10:33 PM > To: Syed Mohammed, Khasim > Cc: linux-arm-ker...@lists.arm.linux.org.uk; linux-omap@vger.kernel.org > Subject: Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8 > > On Sat, Aug 08, 2009 at 08:45:44PM +0530, Syed Mohammed, Khasim wrote: > > Hi Russe

Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-08-08 Thread Russell King - ARM Linux
, Khasim > > Cc: linux-arm-ker...@lists.arm.linux.org.uk; linux-omap@vger.kernel.org > > Subject: Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8 > > > > On Sat, Aug 08, 2009 at 01:46:35AM +0530, Syed Mohammed, Khasim wrote: > > > On OMAP3 we are creating a space

RE: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-08-08 Thread Syed Mohammed, Khasim
while handling MEM Hole on OMAP3 / ARM Cortex A8 > > On Sat, Aug 08, 2009 at 01:46:35AM +0530, Syed Mohammed, Khasim wrote: > > On OMAP3 we are creating a space for DSP components to have shared > > buffers using the boot arguments. > > > > mem=...@0x80

RE: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-08-08 Thread Syed Mohammed, Khasim
> -Original Message- > From: Woodruff, Richard > Sent: Saturday, August 08, 2009 2:49 AM > To: Syed Mohammed, Khasim; linux-arm-ker...@lists.arm.linux.org.uk; > linux-omap@vger.kernel.org > Subject: RE: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8 &

Re: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-08-07 Thread Russell King - ARM Linux
On Sat, Aug 08, 2009 at 01:46:35AM +0530, Syed Mohammed, Khasim wrote: > On OMAP3 we are creating a space for DSP components to have shared > buffers using the boot arguments. > > mem=...@0x8000 mem=1...@0x8800 Ensure that you have ARCH_HAS_HOLES_MEMORYMODEL enabled in the configuration -

RE: Exception while handling MEM Hole on OMAP3 / ARM Cortex A8

2009-08-07 Thread Woodruff, Richard
Used to be you needed to build with CONFIG_ARCH_DISCONTIGMEM_ENABLE did you do this? Regards, Richard W. > -Original Message- > From: linux-omap-ow...@vger.kernel.org [mailto:linux-omap- > ow...@vger.kernel.org] On Behalf Of Syed Mohammed, Khasim > Sent: Friday, August 07, 2009 3:17 PM >