parisc fixes for 2.6.39-rc5
James Bottomley
maintainerThese two fixes contain the agreed fix for our slub panic (agreed with the mm folks that we'll define SLUB broken in the !NUMA && DISCONTIGMEM case, which should fix m86k as well) and another buglet that turned up examining the parisc discontigmem code.
The patches are here:
master.kernel.org:/pub/scm/linux/kernel/git/jejb/parisc-2.6.git#fixes
The short changelog is:
David Rientjes (1):
[PARISC] set memory ranges in N_NORMAL_MEMORY when onlined
James Bottomley (1):
[PARISC] slub: fix panic with DISCONTIGMEM
The diffstat is:
arch/parisc/mm/init.c | 4 +++- init/Kconfig | 1 + 2 files changed, 4 insertions(+), 1 deletions(-)
And the full diff are below.
James
---
arch/parisc/mm/init.c +3 -1
@@ -266,8 +266,10 @@ static void __init setup_bootmem(void) }memset (pfnnid_map,0xff ,sizeof (pfnnid_map)); -for (i =0 ; i < npmem_ranges; i++) +for (i =0 ; i < npmem_ranges; i++) { +node_set_state (i,N_NORMAL_MEMORY );node_set_online (i); + }#endif /*
init/Kconfig +1 -0
@@ -1226,6 +1226,7 @@ config SLAB per cpu and per node queues. config SLUB + depends on BROKEN || NUMA || !DISCONTIGMEM bool "SLUB (Unqueued Allocator)" help SLUB is a slab allocator that minimizes cache line usage
Quoted 4 lines · James Bottomley
These two fixes contain the agreed fix for our slub panic (agreed with the mm folks that we'll define SLUB broken in the !NUMA && DISCONTIGMEM case, which should fix m86k as well) and another buglet that turned up examining the parisc discontigmem code.
Do we still need to mark SLUB broken?
On m68k, the issue seems to have been fixed by setting the N_NORMAL_MEMORY flag (pull request scheduled after one more linux-next build cycle).
Or do you plan to unmark it broken once every affected arch sets the N_NORMAL_MEMORY flag?
Quoted 47 lines
The patches are here:
master.kernel.org:/pub/scm/linux/kernel/git/jejb/parisc-2.6.git#fixes
The short changelog is:
David Rientjes (1):
[PARISC] set memory ranges inN_NORMAL_MEMORYwhen onlinedJames Bottomley (1):
[PARISC] slub: fix panic with DISCONTIGMEMThe diffstat is:
arch/parisc/mm/init.c | 4 +++-
init/Kconfig | 1 +2 files changed, 4 insertions(+), 1 deletions(-)And the full diff are below.
James
---
arch/parisc/mm/init.c +3
-1@@ -266,8 +266,10 @@ static void __init setup_bootmem(void) } memset(pfnnid_map, 0xff, sizeof(pfnnid_map)); - for (i = 0; i < npmem_ranges; i++) + for (i = 0; i < npmem_ranges; i++) { + node_set_state(i, N_NORMAL_MEMORY); node_set_online(i); + } #endif /*init/Kconfig +0
-0@@ -1226,6 +1226,7 @@ config SLABper cpu and per node queues.
Quoted 5 lines
config SLUB
+ depends on BROKEN || NUMA || !DISCONTIGMEM
bool "SLUB (Unqueued Allocator)"
help
SLUB is a slab allocator that minimizes cache line usage
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
James Bottomley
maintainerQuoted 7 lines · Geert Uytterhoeven
Quoted 4 lines · James Bottomley
These two fixes contain the agreed fix for our slub panic (agreed with the mm folks that we'll define SLUB broken in the !NUMA && DISCONTIGMEM case, which should fix m86k as well) and another buglet that turned up examining the parisc discontigmem code.
Quoted 6 lines
Do we still need to mark SLUB broken?
On m68k, the issue seems to have been fixed by setting theN_NORMAL_MEMORYflag (pull request scheduled after one more linux-next build cycle).Or do you plan to unmark it broken once every affected arch sets the
N_NORMAL_MEMORYflag?
Yes ... simply doing N_NORMAL_MEMORY doesn't fix parisc to not oops.
James