Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-09 Thread Yasunori Goto
> Yasunori Goto wrote: > >> On Thu, 6 Dec 2007, Geert Uytterhoeven wrote: > >> > On Thu, 6 Dec 2007, Yasunori Goto wrote: > >> > > > I'll try Milton's suggestion to pre-allocate the memory early. It > >> > > > seems > >> > > > that should work as long as nothing else before the hot-plug mem is

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-09 Thread Yasunori Goto
Yasunori Goto wrote: On Thu, 6 Dec 2007, Geert Uytterhoeven wrote: On Thu, 6 Dec 2007, Yasunori Goto wrote: I'll try Milton's suggestion to pre-allocate the memory early. It seems that should work as long as nothing else before the hot-plug mem is added needs a

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-07 Thread Geoff Levand
On 12/05/2007 10:09 PM, Yasunori Goto wrote: >> I'll try Milton's suggestion to pre-allocate the memory early. It seems >> that should work as long as nothing else before the hot-plug mem is added >> needs a large chunk. > > (However, I think Milton-san's suggestion is very desirable. > If

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-07 Thread Geoff Levand
Yasunori Goto wrote: >> On Thu, 6 Dec 2007, Geert Uytterhoeven wrote: >> > On Thu, 6 Dec 2007, Yasunori Goto wrote: >> > > > I'll try Milton's suggestion to pre-allocate the memory early. It >> > > > seems >> > > > that should work as long as nothing else before the hot-plug mem is >> > > >

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-07 Thread Geoff Levand
On 12/05/2007 10:09 PM, Yasunori Goto wrote: I'll try Milton's suggestion to pre-allocate the memory early. It seems that should work as long as nothing else before the hot-plug mem is added needs a large chunk. (However, I think Milton-san's suggestion is very desirable. If

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-07 Thread Geoff Levand
Yasunori Goto wrote: On Thu, 6 Dec 2007, Geert Uytterhoeven wrote: On Thu, 6 Dec 2007, Yasunori Goto wrote: I'll try Milton's suggestion to pre-allocate the memory early. It seems that should work as long as nothing else before the hot-plug mem is added needs a large

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-06 Thread Geoff Levand
Geert Uytterhoeven wrote: > On Wed, 5 Dec 2007, Geoff Levand wrote: >> Andrew Morton wrote: >> > On Wed, 5 Dec 2007 10:52:48 +0100 (CET) >> > Geert Uytterhoeven <[EMAIL PROTECTED]> wrote: >> > >> >> >> >> Subject:

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-06 Thread Yasunori Goto
> On Thu, 6 Dec 2007, Geert Uytterhoeven wrote: > > On Thu, 6 Dec 2007, Yasunori Goto wrote: > > > > I'll try Milton's suggestion to pre-allocate the memory early. It seems > > > > that should work as long as nothing else before the hot-plug mem is > > > > added > > > > needs a large chunk. > >

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-06 Thread Geert Uytterhoeven
On Thu, 6 Dec 2007, Geert Uytterhoeven wrote: > On Thu, 6 Dec 2007, Yasunori Goto wrote: > > > I'll try Milton's suggestion to pre-allocate the memory early. It seems > > > that should work as long as nothing else before the hot-plug mem is added > > > needs a large chunk. > > > > Hello.

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-06 Thread Geert Uytterhoeven
On Thu, 6 Dec 2007, Yasunori Goto wrote: > > I'll try Milton's suggestion to pre-allocate the memory early. It seems > > that should work as long as nothing else before the hot-plug mem is added > > needs a large chunk. > > Hello. Geoff-san. Sorry for late response. > > Could you tell me the

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-06 Thread Geert Uytterhoeven
On Thu, 6 Dec 2007, Geert Uytterhoeven wrote: On Thu, 6 Dec 2007, Yasunori Goto wrote: I'll try Milton's suggestion to pre-allocate the memory early. It seems that should work as long as nothing else before the hot-plug mem is added needs a large chunk. Hello. Geoff-san. Sorry for

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-06 Thread Geert Uytterhoeven
On Thu, 6 Dec 2007, Yasunori Goto wrote: I'll try Milton's suggestion to pre-allocate the memory early. It seems that should work as long as nothing else before the hot-plug mem is added needs a large chunk. Hello. Geoff-san. Sorry for late response. Could you tell me the value of the

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-06 Thread Yasunori Goto
On Thu, 6 Dec 2007, Geert Uytterhoeven wrote: On Thu, 6 Dec 2007, Yasunori Goto wrote: I'll try Milton's suggestion to pre-allocate the memory early. It seems that should work as long as nothing else before the hot-plug mem is added needs a large chunk. Hello.

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-06 Thread Geoff Levand
Geert Uytterhoeven wrote: On Wed, 5 Dec 2007, Geoff Levand wrote: Andrew Morton wrote: On Wed, 5 Dec 2007 10:52:48 +0100 (CET) Geert Uytterhoeven [EMAIL PROTECTED] wrote: Subject: sparsemem:

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-05 Thread Geert Uytterhoeven
On Wed, 5 Dec 2007, Geoff Levand wrote: > Andrew Morton wrote: > > On Wed, 5 Dec 2007 10:52:48 +0100 (CET) > > Geert Uytterhoeven <[EMAIL PROTECTED]> wrote: > > > >> > >> Subject: sparsemem: sparse_add_one_section()

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-05 Thread Yasunori Goto
> I'll try Milton's suggestion to pre-allocate the memory early. It seems > that should work as long as nothing else before the hot-plug mem is added > needs a large chunk. Hello. Geoff-san. Sorry for late response. Could you tell me the value of the following page_size calculation in

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-05 Thread Geoff Levand
Andrew Morton wrote: > On Wed, 5 Dec 2007 10:52:48 +0100 (CET) > Geert Uytterhoeven <[EMAIL PROTECTED]> wrote: > >> >> Subject: sparsemem: sparse_add_one_section() may fail to allocate memory >> >> sparsemem:

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-05 Thread Geoff Levand
Andrew Morton wrote: > On Wed, 5 Dec 2007 10:52:48 +0100 (CET) > Geert Uytterhoeven <[EMAIL PROTECTED]> wrote: > >> >> Subject: sparsemem: sparse_add_one_section() may fail to allocate memory >> >> sparsemem:

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-05 Thread Andrew Morton
On Wed, 5 Dec 2007 10:52:48 +0100 (CET) Geert Uytterhoeven <[EMAIL PROTECTED]> wrote: > > Subject: sparsemem: sparse_add_one_section() may fail to allocate memory > > sparsemem: sparse_add_one_section() may fail to

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-05 Thread Geert Uytterhoeven
On Mon, 3 Dec 2007, Milton Miller wrote: > On Dec 2, 2007, at 9:59 PM, Geoff Levand wrote: > > ps3_mm_add_memory:317: start_addr 74032000h, start_pfn 74032h, > > nr_pages 17000h > > <4>swapper: page allocation failure. order:12, mode:0x80d0 > > Call Trace: > > [c6047820]

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-05 Thread Geert Uytterhoeven
On Mon, 3 Dec 2007, Milton Miller wrote: On Dec 2, 2007, at 9:59 PM, Geoff Levand wrote: ps3_mm_add_memory:317: start_addr 74032000h, start_pfn 74032h, nr_pages 17000h 4swapper: page allocation failure. order:12, mode:0x80d0 Call Trace: [c6047820] [c000e700]

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-05 Thread Andrew Morton
On Wed, 5 Dec 2007 10:52:48 +0100 (CET) Geert Uytterhoeven [EMAIL PROTECTED] wrote: Subject: sparsemem: sparse_add_one_section() may fail to allocate memory sparsemem: sparse_add_one_section() may fail to

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-05 Thread Geoff Levand
Andrew Morton wrote: On Wed, 5 Dec 2007 10:52:48 +0100 (CET) Geert Uytterhoeven [EMAIL PROTECTED] wrote: Subject: sparsemem: sparse_add_one_section() may fail to allocate memory sparsemem:

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-05 Thread Geoff Levand
Andrew Morton wrote: On Wed, 5 Dec 2007 10:52:48 +0100 (CET) Geert Uytterhoeven [EMAIL PROTECTED] wrote: Subject: sparsemem: sparse_add_one_section() may fail to allocate memory sparsemem:

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-05 Thread Yasunori Goto
I'll try Milton's suggestion to pre-allocate the memory early. It seems that should work as long as nothing else before the hot-plug mem is added needs a large chunk. Hello. Geoff-san. Sorry for late response. Could you tell me the value of the following page_size calculation in

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-05 Thread Geert Uytterhoeven
On Wed, 5 Dec 2007, Geoff Levand wrote: Andrew Morton wrote: On Wed, 5 Dec 2007 10:52:48 +0100 (CET) Geert Uytterhoeven [EMAIL PROTECTED] wrote: Subject: sparsemem: sparse_add_one_section() may fail to

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-04 Thread Geoff Levand
Geert Uytterhoeven wrote: > On Mon, 3 Dec 2007, Milton Miller wrote: >> Chris, as you can see, PS3 needs to allocate 1/8th of total initial memory to >> add any more memory. Geoff, can you predict what linear address the >> additional memory will occupy? Judging from the attempted address toa

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-04 Thread Geoff Levand
Milton Miller wrote: > On Dec 2, 2007, at 9:59 PM, Geoff Levand wrote: > >> Hi. >> >> I'm finding that recently kexec'ed kernels on PS3 will >> panic on startup. It seems the trouble was introduced >> with the ppc64 SPARSEMEM_VMEMMAP support. The problem >> is the same when starting either new

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-04 Thread Geert Uytterhoeven
On Mon, 3 Dec 2007, Milton Miller wrote: > On Dec 2, 2007, at 9:59 PM, Geoff Levand wrote: > > I'm finding that recently kexec'ed kernels on PS3 will > > panic on startup. It seems the trouble was introduced > > with the ppc64 SPARSEMEM_VMEMMAP support. The problem > > is the same when starting

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-04 Thread Geert Uytterhoeven
On Mon, 3 Dec 2007, Milton Miller wrote: On Dec 2, 2007, at 9:59 PM, Geoff Levand wrote: I'm finding that recently kexec'ed kernels on PS3 will panic on startup. It seems the trouble was introduced with the ppc64 SPARSEMEM_VMEMMAP support. The problem is the same when starting either

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-04 Thread Geoff Levand
Milton Miller wrote: On Dec 2, 2007, at 9:59 PM, Geoff Levand wrote: Hi. I'm finding that recently kexec'ed kernels on PS3 will panic on startup. It seems the trouble was introduced with the ppc64 SPARSEMEM_VMEMMAP support. The problem is the same when starting either new or old

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-04 Thread Geoff Levand
Geert Uytterhoeven wrote: On Mon, 3 Dec 2007, Milton Miller wrote: Chris, as you can see, PS3 needs to allocate 1/8th of total initial memory to add any more memory. Geoff, can you predict what linear address the additional memory will occupy? Judging from the attempted address toa add,

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-03 Thread Milton Miller
On Dec 2, 2007, at 9:59 PM, Geoff Levand wrote: Hi. I'm finding that recently kexec'ed kernels on PS3 will panic on startup. It seems the trouble was introduced with the ppc64 SPARSEMEM_VMEMMAP support. The problem is the same when starting either new or old kernels: 2.6.24 -> 2.6.23 ok

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-03 Thread Milton Miller
On Dec 2, 2007, at 9:59 PM, Geoff Levand wrote: Hi. I'm finding that recently kexec'ed kernels on PS3 will panic on startup. It seems the trouble was introduced with the ppc64 SPARSEMEM_VMEMMAP support. The problem is the same when starting either new or old kernels: 2.6.24 - 2.6.23 ok