* [parisc-linux] MAX_ADDRESS.
@ 2003-09-30 5:33 Naresh
2003-09-30 12:06 ` Matthew Wilcox
0 siblings, 1 reply; 4+ messages in thread
From: Naresh @ 2003-09-30 5:33 UTC (permalink / raw)
To: parisc-linux
Hi,
This question is relevant to the 2.4 kernel. Is MAX_ADDRESS really the
highest virtual address mapped by the kernel? I can see this comment in
'paging_init()' in the section for DISCONTIGMEM. However,
pagetable_init() doesnt make a check before it calls 'map_pages( )' for
all the ranges of memory. So we may DISCONTIGMEM turned off but it may
so happen that we have a 'pmem_ranges[]' entry that is greater than
MAX_ADDRESS which may find its way into the kernel page tables.
Regards,
Naresh.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [parisc-linux] MAX_ADDRESS.
2003-09-30 5:33 [parisc-linux] MAX_ADDRESS Naresh
@ 2003-09-30 12:06 ` Matthew Wilcox
2003-09-30 12:24 ` Naresh
0 siblings, 1 reply; 4+ messages in thread
From: Matthew Wilcox @ 2003-09-30 12:06 UTC (permalink / raw)
To: Naresh; +Cc: parisc-linux
On Tue, Sep 30, 2003 at 11:03:28AM +0530, Naresh wrote:
> This question is relevant to the 2.4 kernel. Is MAX_ADDRESS really the
> highest virtual address mapped by the kernel? I can see this comment in
> 'paging_init()' in the section for DISCONTIGMEM. However,
> pagetable_init() doesnt make a check before it calls 'map_pages( )' for
> all the ranges of memory. So we may DISCONTIGMEM turned off but it may
> so happen that we have a 'pmem_ranges[]' entry that is greater than
> MAX_ADDRESS which may find its way into the kernel page tables.
Ignore the DISCONTIGMEM code. It's completely broken (and we offer no
way to turn CONFIG_DISCONTIGMEM on).
I'm not sure what half of this code is for; you'd need to ask John Marvin
who wrote it.
--
"It's not Hollywood. War is real, war is primarily not about defeat or
victory, it is about death. I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [parisc-linux] MAX_ADDRESS.
2003-09-30 12:06 ` Matthew Wilcox
@ 2003-09-30 12:24 ` Naresh
2003-09-30 13:17 ` James Bottomley
0 siblings, 1 reply; 4+ messages in thread
From: Naresh @ 2003-09-30 12:24 UTC (permalink / raw)
To: Matthew Wilcox; +Cc: parisc-linux
MAX_ADDRESS has nothing to do with DISCONTIGMEM. Its definition is generic(
pgtable.h), although it is not used anywhere. I just happened to see the comment in
the DISCONTIGMEM code. Even if DISCONTIGMEM is turned off, there is no check for
MAX_ADDRESS before the call to 'map_pages()' in 'pagetable_init( )', which is why I
would like to know if MAX_ADDRESS can be ignored.
Regards,
Naresh.
Matthew Wilcox wrote:
> On Tue, Sep 30, 2003 at 11:03:28AM +0530, Naresh wrote:
> > This question is relevant to the 2.4 kernel. Is MAX_ADDRESS really the
> > highest virtual address mapped by the kernel? I can see this comment in
> > 'paging_init()' in the section for DISCONTIGMEM. However,
> > pagetable_init() doesnt make a check before it calls 'map_pages( )' for
> > all the ranges of memory. So we may DISCONTIGMEM turned off but it may
> > so happen that we have a 'pmem_ranges[]' entry that is greater than
> > MAX_ADDRESS which may find its way into the kernel page tables.
>
> Ignore the DISCONTIGMEM code. It's completely broken (and we offer no
> way to turn CONFIG_DISCONTIGMEM on).
>
> I'm not sure what half of this code is for; you'd need to ask John Marvin
> who wrote it.
>
> --
> "It's not Hollywood. War is real, war is primarily not about defeat or
> victory, it is about death. I've seen thousands and thousands of dead bodies.
> Do you think I want to have an academic debate on this subject?" -- Robert Fisk
> _______________________________________________
> parisc-linux mailing list
> parisc-linux@lists.parisc-linux.org
> http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [parisc-linux] MAX_ADDRESS.
2003-09-30 12:24 ` Naresh
@ 2003-09-30 13:17 ` James Bottomley
0 siblings, 0 replies; 4+ messages in thread
From: James Bottomley @ 2003-09-30 13:17 UTC (permalink / raw)
To: knaresh; +Cc: Matthew Wilcox, PARISC list
On Tue, 2003-09-30 at 07:24, Naresh wrote:
> MAX_ADDRESS has nothing to do with DISCONTIGMEM. Its definition is generic(
> pgtable.h), although it is not used anywhere. I just happened to see the comment in
> the DISCONTIGMEM code. Even if DISCONTIGMEM is turned off, there is no check for
> MAX_ADDRESS before the call to 'map_pages()' in 'pagetable_init( )', which is why I
> would like to know if MAX_ADDRESS can be ignored.
No. It does represent the highest virtual address possible.
Linux has 3 levels of page tables, so on a 64 bit kernel (8 bytes per
pte and 8 bytes per pte page pointer etc), we can address a maximum of
512GB with 4k pages.
James
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-09-30 13:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-30 5:33 [parisc-linux] MAX_ADDRESS Naresh
2003-09-30 12:06 ` Matthew Wilcox
2003-09-30 12:24 ` Naresh
2003-09-30 13:17 ` James Bottomley
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.