Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
dcd3676e
Commit
dcd3676e
authored
Jun 09, 2003
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: Fix overallocation of NUMA bootmem bitmap and fix for NUMA kernels on non NUMA boxes
parent
00b67447
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
arch/ppc64/mm/numa.c
arch/ppc64/mm/numa.c
+16
-3
No files found.
arch/ppc64/mm/numa.c
View file @
dcd3676e
...
@@ -174,6 +174,20 @@ static int __init parse_numa_properties(void)
...
@@ -174,6 +174,20 @@ static int __init parse_numa_properties(void)
return
0
;
return
0
;
}
}
void
setup_nonnuma
(
void
)
{
unsigned
long
i
;
for
(
i
=
0
;
i
<
NR_CPUS
;
i
++
)
map_cpu_to_node
(
i
,
0
);
node_data
[
0
].
node_start_pfn
=
0
;
node_data
[
0
].
node_size
=
lmb_end_of_DRAM
()
/
PAGE_SIZE
;
for
(
i
=
0
;
i
<
lmb_end_of_DRAM
();
i
+=
MEMORY_INCREMENT
)
numa_memory_lookup_table
[
i
>>
MEMORY_INCREMENT_SHIFT
]
=
0
;
}
void
__init
do_init_bootmem
(
void
)
void
__init
do_init_bootmem
(
void
)
{
{
int
nid
;
int
nid
;
...
@@ -181,9 +195,8 @@ void __init do_init_bootmem(void)
...
@@ -181,9 +195,8 @@ void __init do_init_bootmem(void)
min_low_pfn
=
0
;
min_low_pfn
=
0
;
max_low_pfn
=
lmb_end_of_DRAM
()
>>
PAGE_SHIFT
;
max_low_pfn
=
lmb_end_of_DRAM
()
>>
PAGE_SHIFT
;
/* XXX FIXME: support machines without associativity information */
if
(
parse_numa_properties
())
if
(
parse_numa_properties
())
BUG
();
setup_nonnuma
();
for
(
nid
=
0
;
nid
<
numnodes
;
nid
++
)
{
for
(
nid
=
0
;
nid
<
numnodes
;
nid
++
)
{
unsigned
long
start_paddr
,
end_paddr
;
unsigned
long
start_paddr
,
end_paddr
;
...
@@ -204,7 +217,7 @@ void __init do_init_bootmem(void)
...
@@ -204,7 +217,7 @@ void __init do_init_bootmem(void)
NODE_DATA
(
nid
)
->
bdata
=
&
plat_node_bdata
[
nid
];
NODE_DATA
(
nid
)
->
bdata
=
&
plat_node_bdata
[
nid
];
bootmap_pages
=
bootmem_bootmap_pages
(
end_paddr
-
start_paddr
);
bootmap_pages
=
bootmem_bootmap_pages
(
(
end_paddr
-
start_paddr
)
>>
PAGE_SHIFT
);
dbg
(
"bootmap_pages = %lx
\n
"
,
bootmap_pages
);
dbg
(
"bootmap_pages = %lx
\n
"
,
bootmap_pages
);
bootmem_paddr
=
lmb_alloc_base
(
bootmap_pages
<<
PAGE_SHIFT
,
bootmem_paddr
=
lmb_alloc_base
(
bootmap_pages
<<
PAGE_SHIFT
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment