Can a page be HighMem without having the HighMem flag set?
Hi.
I guess the subject says it all, but I'll give more detail:
I'm working on Suspend on a 8 cpu ("8 way"?) SMP box at OSDL, which has something in excess of 4GB, but I'm only using 4 at the moment:
Warning only 4GB will be used.
Use a PAE enabled kernel.
3200MB HIGHMEM available.
896MB LOWMEM available.
When suspending, I am seeing pages that don't have the HighMem flag set, but for which page_address returns zero.
I looked at kmap, and noticed that it tests for page < highmem_start_page; I guess this is the way to do it?
Regards,
Nigel
Signature · 2 lines
My work on Software Suspend is graciously brought to you by LinuxFund.org.
Quoted 11 lines · Nigel Cunningham
I guess the subject says it all, but I'll give more detail:
I'm working on Suspend on a 8 cpu ("8 way"?) SMP box at OSDL, which has something in excess of 4GB, but I'm only using 4 at the moment:
Warning only 4GB will be used.
Use a PAE enabled kernel.
3200MB HIGHMEM available.
896MB LOWMEM available.
When suspending, I am seeing pages that don't have the HighMem flag set, but for whichpage_addressreturns zero.
I looked at kmap, and noticed that it tests for page <highmem_start_page; I guess this is the way to do it?
You have found a bug. Could you chase down the inconsistency please?
-- wli
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Okay. I'll see what I can do.
Regards,
Nigel
Quoted 17 lines · William Lee Irwin III
Quoted 11 lines · Nigel Cunningham
I guess the subject says it all, but I'll give more detail:
I'm working on Suspend on a 8 cpu ("8 way"?) SMP box at OSDL, which has something in excess of 4GB, but I'm only using 4 at the moment:
Warning only 4GB will be used.
Use a PAE enabled kernel.
3200MB HIGHMEM available.
896MB LOWMEM available.
When suspending, I am seeing pages that don't have the HighMem flag set, but for whichpage_addressreturns zero.
I looked at kmap, and noticed that it tests for page <highmem_start_page; I guess this is the way to do it?You have found a bug. Could you chase down the inconsistency please?
-- wli
Signature · 2 lines
My work on Software Suspend is graciously brought to you by LinuxFund.org.
Dollars to donuts it's a bug in my code, not the HighMem code :>
Nigel
Signature · 2 lines
My work on Software Suspend is graciously brought to you by LinuxFund.org.
Hi all.
At boot I get:
<4> BIOS-e820: 0000000000000000 - 000000000009e000 (usable) <4> BIOS-e820: 000000000009e000 - 00000000000a0000 (reserved) <4> BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved) <4> BIOS-e820: 0000000000100000 - 00000000efff6500 (usable) <4> BIOS-e820: 00000000efff6500 - 00000000f0000000 (ACPI data) <4> BIOS-e820: 00000000fffb0000 - 0000000100000000 (reserved) <4> BIOS-e820: 0000000100000000 - 0000000400000000 (usable)
It's the pages efff6000- which are causing me grief. if I understand things correctly, page_is_ram is returning 0 for those pages, and as a result they get marked reserved and not HighMem by one_highpage_init.
I suppose, then, that I need to check for and ignore pages > highstart_pfn where PageHighMem is not set/Reserved is set. (Either okay?).
Regards,
Nigel
Signature · 2 lines
My work on Software Suspend is graciously brought to you by LinuxFund.org.
Quoted 5 lines · Nigel Cunningham
<4> BIOS-e820: 0000000000000000 -
000000000009e000(usable) <4> BIOS-e820:000000000009e000-00000000000a0000(reserved) <4> BIOS-e820:00000000000e0000- 0000000000100000 (reserved) <4> BIOS-e820: 0000000000100000 -00000000efff6500(usable) <4> BIOS-e820:00000000efff6500-00000000f0000000(ACPI data)
Quoted 8 lines
<4> BIOS-e820:
00000000fffb0000- 0000000100000000 (reserved) <4> BIOS-e820: 0000000100000000 - 0000000400000000 (usable) It's the pages efff6000- which are causing me grief. if I understand things correctly,page_is_ramis returning 0 for those pages, and as a result they get marked reserved and not HighMem byone_highpage_init. I suppose, then, that I need to check for and ignore pages >highstart_pfnwhere PageHighMem is not set/Reserved is set. (Either okay?).
If it's reserved, most/all bets are off -- only the "owner" of the thing understands what it is. Some more formally-defined semantics for reserved are needed, but 2.6 is unlikely to get them soon.
-- wli
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
That's fine. I'll just ignore those pages for the sake of suspending and resuming. I've just successfully suspended with those changes, but suspending is the easy part.... resuming worked too :>
Regards,
Nigel
Quoted 13 lines · William Lee Irwin III
Quoted 6 lines
It's the pages efff6000- which are causing me grief. if I understand things correctly,
page_is_ramis returning 0 for those pages, and as a result they get marked reserved and not HighMem byone_highpage_init. I suppose, then, that I need to check for and ignore pages >highstart_pfnwhere PageHighMem is not set/Reserved is set. (Either okay?).If it's reserved, most/all bets are off -- only the "owner" of the thing understands what it is. Some more formally-defined semantics for reserved are needed, but 2.6 is unlikely to get them soon.
-- wli
Signature · 2 lines
My work on Software Suspend is graciously brought to you by LinuxFund.org.