Thread (8 messages) 8 messages, 2 authors, 2008-01-10

Re: [PATCH] [POWERPC] Fix handling of memreserve if the range lands in highmem

From: Kumar Gala <hidden>
Date: 2008-01-09 19:41:23

On Jan 9, 2008, at 1:30 PM, Scott Wood wrote:
Kumar Gala wrote:
quoted
On Jan 9, 2008, at 12:53 PM, Scott Wood wrote:
quoted
It looks like if the reserved area straddles the highmem boundary,  
it'll
only reserve the highmem portion.
Yeah, I thought about that.  I'm wondering if we should warn about  
this.. its seems like a bad thing to do.
How is the firmware supposed to know where Linux sets its lowmem  
limit?  I think this is something that needs to be handled.
Yeah I agree with that as well.

I'm thinking I'll add something like:

                 if (addr < total_lowmem)
                         reserve_bootmem(lmb.reserved.region[i].base,
                                         lmb_size_bytes(&lmb.reserved,  
i));
+               else if (lmb.reserved.region[i].base > total_lowmem) {
+                       unsigned long adjusted_size;
+//                     adjusted_size = xxx;

need to figure out the math here.

+                       reserve_bootmem(lmb.reserved.region[i].base,
+                                       adjusted_size);
+               }

that should solve the problem.

- k
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help