login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
30
Re: [patch] mm: node-setup agnostic free_bootmem()
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Johannes Weiner
Subject:
Re: [patch] mm: node-setup agnostic free_bootmem()
Date: Wednesday, April 30, 2008 - 3:52 am
Hi, Ingo Molnar <mingo@elte.hu> writes:
quoted text
> * Johannes Weiner <hannes@saeurebad.de> wrote: > >> > void __init free_bootmem(unsigned long addr, unsigned long size) >> > { >> > bootmem_data_t *bdata; >> > - list_for_each_entry(bdata, &bdata_list, list) >> > - free_bootmem_core(bdata, addr, size); >> > + unsigned long pos = addr; >> > + unsigned long partsize = size; >> > + >> > + list_for_each_entry(bdata, &bdata_list, list) { >> > + unsigned long remainder = 0; >> > + >> > + if (pos < bdata->node_boot_start) >> > + continue; >> > + >> > + if (PFN_DOWN(pos + partsize) > bdata->node_low_pfn) { >> > + remainder = PFN_DOWN(pos + partsize) - bdata->node_low_pfn; >> > + partsize -= remainder; >> > + } >> > + >> > + free_bootmem_core(bdata, pos, partsize); >> > + >> > + if (!remainder) >> > + return; >> > + >> > + pos = PFN_PHYS(bdata->node_low_pfn + 1); >> > + } >> > + printk(KERN_ERR "free_bootmem: request: addr=%lx, size=%lx, " >> > + "state: pos=%lx, partsize=%lx\n", addr, size, >> > + pos, partsize); >> > + BUG(); >> > } >> > >> > unsigned long __init free_all_bootmem(void) >> >> Yes, looks good. But needs explicit testing, I guess. > > yep, but as Yinghai Lu has pointed it out, this removes a cross-node > allocation fix. That fix has to be preserved in any cleanup, agreed?
Yes, if Yinghai is right, my patch should be dropped, of course.
quoted text
> in general bootmem should assume the weirdest of NUMA topologies and be > defensive about them. Topologies will only become more complex, never > less complex.
Okay. Hannes --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[RFC git pull] "big box" x86 changes
, Ingo Molnar
, (Sat Apr 26, 11:55 am)
Re: [RFC git pull] "big box" x86 changes
, Stefan Richter
, (Sat Apr 26, 12:05 pm)
Re: [RFC git pull] "big box" x86 changes
, Linus Torvalds
, (Sat Apr 26, 12:12 pm)
Re: [RFC git pull] "big box" x86 changes
, Ingo Molnar
, (Sat Apr 26, 12:21 pm)
[git pull] "big box" x86 changes, bootmem/sparsemem
, Ingo Molnar
, (Sat Apr 26, 12:41 pm)
Re: [git pull] "big box" x86 changes, bootmem/sparsemem
, Linus Torvalds
, (Sat Apr 26, 12:52 pm)
[git pull] "big box" x86 changes, boot protocol
, Ingo Molnar
, (Sat Apr 26, 12:54 pm)
Re: [git pull] "big box" x86 changes, bootmem/sparsemem
, Ingo Molnar
, (Sat Apr 26, 1:07 pm)
[git pull] "big box" x86 changes, bootmem/sparsemem, #2
, Ingo Molnar
, (Sat Apr 26, 1:08 pm)
[RFC git pull] "big box" x86 changes, GART
, Ingo Molnar
, (Sat Apr 26, 1:24 pm)
Re: [RFC git pull] "big box" x86 changes, GART
, Ingo Molnar
, (Sat Apr 26, 1:26 pm)
Re: [git pull] "big box" x86 changes, bootmem/sparsemem, #2
, Linus Torvalds
, (Sat Apr 26, 1:30 pm)
Re: [git pull] "big box" x86 changes, boot protocol
, Andrew Morton
, (Sat Apr 26, 1:39 pm)
[git pull] "big box" x86 changes, bootmem/sparsemem, #3
, Ingo Molnar
, (Sat Apr 26, 1:55 pm)
Re: [git pull] "big box" x86 changes, boot protocol
, Adrian Bunk
, (Sat Apr 26, 2:06 pm)
Re: [git pull] "big box" x86 changes, boot protocol
, H. Peter Anvin
, (Sat Apr 26, 2:10 pm)
Re: [git pull] "big box" x86 changes, boot protocol
, Linus Torvalds
, (Sat Apr 26, 2:11 pm)
Re: [git pull] "big box" x86 changes, boot protocol
, Ingo Molnar
, (Sat Apr 26, 2:17 pm)
[git pull] "big box" x86 changes, PCI
, Ingo Molnar
, (Sat Apr 26, 2:55 pm)
Re: [RFC git pull] "big box" x86 changes
, Andi Kleen
, (Sat Apr 26, 3:17 pm)
Re: [git pull] "big box" x86 changes, boot protocol
, Jeremy Fitzhardinge
, (Sat Apr 26, 4:37 pm)
Re: [RFC git pull] "big box" x86 changes
, Yinghai Lu
, (Sat Apr 26, 8:14 pm)
Re: [RFC git pull] "big box" x86 changes
, Andi Kleen
, (Sun Apr 27, 1:30 am)
Re: [RFC git pull] "big box" x86 changes II
, Andi Kleen
, (Sun Apr 27, 1:32 am)
Re: [git pull] "big box" x86 changes, boot protocol
, Ian Campbell
, (Sun Apr 27, 4:21 am)
Re: [git pull] "big box" x86 changes, PCI
, Jesse Barnes
, (Sun Apr 27, 9:30 am)
Re: [git pull] "big box" x86 changes, boot protocol
, H. Peter Anvin
, (Sun Apr 27, 12:29 pm)
Re: [git pull] "big box" x86 changes, bootmem/sparsemem
, Johannes Weiner
, (Sun Apr 27, 3:48 pm)
Re: [git pull] "big box" x86 changes, bootmem/sparsemem
, Ingo Molnar
, (Sun Apr 27, 4:46 pm)
Re: [git pull] "big box" x86 changes, bootmem/sparsemem
, Johannes Weiner
, (Sun Apr 27, 5:19 pm)
Re: [git pull] "big box" x86 changes, bootmem/sparsemem
, Yinghai Lu
, (Sun Apr 27, 5:33 pm)
[patch] mm: node-setup agnostic free_bootmem()
, Ingo Molnar
, (Sun Apr 27, 5:40 pm)
Re: [patch] mm: node-setup agnostic free_bootmem()
, Yinghai Lu
, (Sun Apr 27, 6:48 pm)
Re: [git pull] "big box" x86 changes, boot protocol
, Ingo Molnar
, (Mon Apr 28, 8:27 am)
Re: [git pull] "big box" x86 changes, PCI
, Ingo Molnar
, (Mon Apr 28, 8:38 am)
Re: [patch] mm: node-setup agnostic free_bootmem()
, Johannes Weiner
, (Mon Apr 28, 9:49 am)
Re: [patch] mm: node-setup agnostic free_bootmem()
, Johannes Weiner
, (Mon Apr 28, 9:54 am)
Re: [git pull] "big box" x86 changes, bootmem/sparsemem
, Johannes Weiner
, (Mon Apr 28, 9:58 am)
Re: [patch] mm: node-setup agnostic free_bootmem()
, Yinghai Lu
, (Mon Apr 28, 12:11 pm)
Re: [patch] mm: node-setup agnostic free_bootmem()
, Yinghai Lu
, (Mon Apr 28, 12:55 pm)
Re: [git pull] "big box" x86 changes, PCI
, Jesse Barnes
, (Mon Apr 28, 1:34 pm)
Re: [git pull] "big box" x86 changes, PCI
, Yinghai Lu
, (Mon Apr 28, 3:53 pm)
[PATCH] x86/pci: remove flag in pci_cfg_space_size_ext
, Yinghai Lu
, (Mon Apr 28, 4:27 pm)
Re: [patch] mm: node-setup agnostic free_bootmem()
, Ingo Molnar
, (Tue Apr 29, 7:25 am)
Re: [PATCH] x86/pci: remove flag in pci_cfg_space_size_ext
, Jesse Barnes
, (Tue Apr 29, 9:14 am)
Re: [PATCH] x86/pci: remove flag in pci_cfg_space_size_ext
, Ingo Molnar
, (Tue Apr 29, 3:05 pm)
Re: [PATCH] x86/pci: remove flag in pci_cfg_space_size_ext
, Jesse Barnes
, (Tue Apr 29, 3:34 pm)
Re: [patch] mm: node-setup agnostic free_bootmem()
, Johannes Weiner
, (Wed Apr 30, 3:50 am)
Re: [patch] mm: node-setup agnostic free_bootmem()
, Johannes Weiner
, (Wed Apr 30, 3:52 am)
Re: [patch] mm: node-setup agnostic free_bootmem()
, Yinghai Lu
, (Wed Apr 30, 9:22 am)
Re: [patch] mm: node-setup agnostic free_bootmem()
, Johannes Weiner
, (Wed Apr 30, 10:52 am)
Re: [patch] mm: node-setup agnostic free_bootmem()
, Yinghai Lu
, (Wed Apr 30, 1:30 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 041/196] kobject: add kobject_init_and_add function
Lukas Hejtmanek
Re: Another libata error related to OCZ SSD
Greg Kroah-Hartman
[PATCH 023/196] MCP_UCB1200: Convert from class_device to device
Florian Fainelli
Re: System clock runs too fast after 2.6.27 -> 2.6.28.1 upgrade
Christoph Lameter
[patch 1/4] mmu_notifier: Core code
git
:
Johannes Schindelin
Re: [PATCH 1/2] Add strbuf_initf()
John Bito
[EGIT] Push to GitHub caused corruption
Jakub Narebski
Re: [PATCH 0/2] gitweb: patch view
Junio C Hamano
Re: [PATCH] When a remote is added but not fetched, tell the user.
Andy Parkins
Re: [RFC] Submodules in GIT
git-commits-head
:
Linux Kernel Mailing List
ahci: Workaround HW bug for SB600/700 SATA controller PMP support
Linux Kernel Mailing List
V4L/DVB (11086): au0828: rename macro for currently non-function VBI support
Linux Kernel Mailing List
ceph: client types
Linux Kernel Mailing List
ceph: on-wire types
Linux Kernel Mailing List
crypto: chainiv - Use kcrypto_wq instead of keventd_wq
linux-netdev
:
Andrew Morton
Re: [Bugme-new] [Bug 14969] New: b44: WOL does not work in suspended state
Giuseppe CAVALLARO
Re: [PATCH 03/13] stmmac: add the new Header file for stmmac platform data
Taku Izumi
[PATCH 3/3] ixgbe: add registers etc. printout code just before resetting adapters
Eric Dumazet
rps: some comments
Thomas Gleixner
Re: [RFC PATCH 02/12] On Tue, 23 Sep 2008, David Miller wrote:
openbsd-misc
:
Stephan Andreas
problems with login after xlock in OpenBSD release 4.7
pmc
Make A Change. Alcoholism and Drug Addiction Treatment
ropers
Re: what exactly is enc0?
Fuad NAHDI
Re: What does your environment look like?
Matthew Szudzik
Typo on OpenBSD 4.4 CD Set
Colocation donated by:
Syndicate