login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
June
»
29
Re: [PATCH 18/25] x86, lmb: Use lmb_debug to control debug message print out
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Bjorn Helgaas
Subject:
Re: [PATCH 18/25] x86, lmb: Use lmb_debug to control debug message print out
Date: Tuesday, June 29, 2010 - 10:58 am
On Tuesday, June 22, 2010 11:26:47 am Yinghai Lu wrote:
quoted text
> Also let lmb_reserve_range/lmb_free_range could print out name if lmb=debug is > specified > > will also print ther name when reserve_lmb_area/free_lmb_area are called. > > Signed-off-by: Yinghai Lu <yinghai@kernel.org> > --- > arch/x86/mm/lmb.c | 24 ++++++++++++++++++------ > 1 files changed, 18 insertions(+), 6 deletions(-) > > diff --git a/arch/x86/mm/lmb.c b/arch/x86/mm/lmb.c > index bd2f60b..209f25b 100644 > --- a/arch/x86/mm/lmb.c > +++ b/arch/x86/mm/lmb.c > @@ -122,10 +122,12 @@ static void __init subtract_lmb_reserved(struct range *range, int az) > > count = lmb.reserved.cnt; > > - pr_info("Subtract (%d early reservations)\n", count); > + if (lmb_debug) > + pr_info("Subtract (%d early reservations)\n", count); > > for_each_lmb(reserved, r) { > - pr_info(" [%010llx - %010llx]\n", (u64)r->base, (u64)r->base + r->size);
Use %pR format (looks like this is rework on top of a previous patch, so this comment is probably redundant).
quoted text
> + if (lmb_debug) > + pr_info(" [%010llx - %010llx]\n", (u64)r->base, (u64)r->base + r->size); > final_start = PFN_DOWN(r->base); > final_end = PFN_UP(r->base + r->size); > if (final_start >= final_end) > @@ -198,16 +200,20 @@ void __init lmb_to_bootmem(u64 start, u64 end) > lmb_free(__pa(lmb.reserved.regions), sizeof(struct lmb_region) * lmb.reserved.max); > > count = lmb.reserved.cnt; > - pr_info("(%d early reservations) ==> bootmem [%010llx - %010llx]\n", count, start, end); > + if (lmb_debug) > + pr_info("(%d early reservations) ==> bootmem [%010llx - %010llx]\n", count, start, end); > for_each_lmb(reserved, r) { > - pr_info(" [%010llx - %010llx] ", (u64)r->base, (u64)r->base + r->size); > + if (lmb_debug) > + pr_info(" [%010llx - %010llx] ", (u64)r->base, (u64)r->base + r->size); > final_start = max(start, r->base); > final_end = min(end, r->base + r->size); > if (final_start >= final_end) { > - pr_cont("\n"); > + if (lmb_debug) > + pr_cont("\n"); > continue; > } > - pr_cont(" ==> [%010llx - %010llx]\n", final_start, final_end); > + if (lmb_debug) > + pr_cont(" ==> [%010llx - %010llx]\n", final_start, final_end); > reserve_bootmem_generic(final_start, final_end - final_start, BOOTMEM_DEFAULT); > } > > @@ -289,6 +295,9 @@ void __init lmb_reserve_range(u64 start, u64 end, char *name) > if (WARN_ONCE(start > end, "lmb_reserve_range: wrong range [%#llx, %#llx]\n", start, end)) > return; > > + if (lmb_debug) > + pr_info(" lmb_reserve_range: [%010llx, %010llx] %16s\n", start, end, name); > + > lmb_reserve(start, end - start); > } > > @@ -300,6 +309,9 @@ void __init lmb_free_range(u64 start, u64 end) > if (WARN_ONCE(start > end, "lmb_free_range: wrong range [%#llx, %#llx]\n", start, end)) > return; > > + if (lmb_debug) > + pr_info(" lmb_free_range: [%010llx, %010llx]\n", start, end); > + > lmb_free(start, end - start); > } > >
--
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:
[PATCH -v19 00/25] Use lmb with x86
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
[PATCH 01/25] lmb: lmb_find_base() should return LMB_ERROR ...
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
[PATCH 02/25] lmb: Prepare x86 to use lmb to replace early_res
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
[PATCH 03/25] lmb: Print new doubled array location info
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
[PATCH 04/25] lmb: Export LMB_ERROR again
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
[PATCH 05/25] lmb: Prepare to include linux/lmb.h in core file
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
[PATCH 06/25] lmb: Add ARCH_DISCARD_LMB to put lmb code to ...
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
[PATCH 07/25] lmb: Add lmb_find_in_range()
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
[PATCH 08/25] x86, lmb: Add lmb_find_in_range_size()
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
[PATCH 09/25] bootmem, x86: Add weak version of reserve_bo ...
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
[PATCH 10/25] x86, lmb: Add lmb_to_bootmem()
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
[PATCH 11/25] x86,lmb: Add lmb_reserve_range/lmb_free_range
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
[PATCH 12/25] x86, lmb: Add get_free_all_memory_range()
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
[PATCH 13/25] x86, lmb: Add lmb_register_active_regions() ...
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
[PATCH 14/25] lmb: Add find_memory_core_early()
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
[PATCH 15/25] x86, lmb: Add lmb_find_in_range_node()
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
[PATCH 16/25] x86, lmb: Add lmb_free_memory_in_range()
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
[PATCH 17/25] x86, lmb: Add lmb_memory_in_range()
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
[PATCH 18/25] x86, lmb: Use lmb_debug to control debug mes ...
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
[PATCH 19/25] x86: Use lmb to replace early_res
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
[PATCH 20/25] x86: Replace e820_/_early string with lmb_
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
[PATCH 21/25] x86: Remove not used early_res code
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
[PATCH 22/25] x86, lmb: Use lmb_memory_size()/lmb_free_mem ...
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
[PATCH 23/25] x86: Have nobootmem version setup_bootmem_al ...
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
[PATCH 24/25] x86: Put 64 bit numa node memmap above 16M
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
[PATCH 25/25] swiotlb: Use page alignment for early buffer ...
, Yinghai Lu
, (Tue Jun 22, 10:26 am)
Re: [PATCH 05/25] lmb: Prepare to include linux/lmb.h in c ...
, Sam Ravnborg
, (Tue Jun 22, 11:45 am)
Re: [PATCH 03/25] lmb: Print new doubled array location info
, Bjorn Helgaas
, (Tue Jun 29, 10:44 am)
Re: [PATCH 10/25] x86, lmb: Add lmb_to_bootmem()
, Bjorn Helgaas
, (Tue Jun 29, 10:47 am)
Re: [PATCH 11/25] x86,lmb: Add lmb_reserve_range/lmb_free_ ...
, Bjorn Helgaas
, (Tue Jun 29, 10:52 am)
Re: [PATCH 12/25] x86, lmb: Add get_free_all_memory_range()
, Bjorn Helgaas
, (Tue Jun 29, 10:56 am)
Re: [PATCH 18/25] x86, lmb: Use lmb_debug to control debug ...
, Bjorn Helgaas
, (Tue Jun 29, 10:58 am)
Re: [PATCH 23/25] x86: Have nobootmem version setup_bootme ...
, Bjorn Helgaas
, (Tue Jun 29, 11:02 am)
Re: [PATCH -v19 00/25] Use lmb with x86
, Bjorn Helgaas
, (Tue Jun 29, 11:06 am)
Re: [PATCH 03/25] lmb: Print new doubled array location info
, H. Peter Anvin
, (Tue Jun 29, 11:38 am)
Re: [PATCH 03/25] lmb: Print new doubled array location info
, Bjorn Helgaas
, (Tue Jun 29, 11:48 am)
Re: [PATCH 03/25] lmb: Print new doubled array location info
, Yinghai Lu
, (Tue Jun 29, 1:03 pm)
Re: [PATCH 03/25] lmb: Print new doubled array location info
, Bjorn Helgaas
, (Tue Jun 29, 1:58 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Sam Ravnborg
[PATCH 05/11] x86: add X86_64 dependency to x86_64 specific symbols in Kconfig.x86...
Brian Swetland
Re: Attempted summary of suspend-blockers LKML thread
Robert Marquardt
Re: [linux-usb-devel] usb hid: reset NumLock
Borislav Petkov
drm_vm.c:drm_mmap: possible circular locking dependency detected (was: Re: Linux 2...
Alexandre Oliva
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
git
:
Felipe Contreras
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Paolo Ciarrocchi
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Johannes Schindelin
Re: [PATCH] Fix install-doc-quick target
Peter Oberndorfer
Subject: [PATCH] fix stg edit command
Paolo Bonzini
Re: [PATCH 04/40] Windows: Use the Windows style PATH separator ';'.
git-commits-head
:
Linux Kernel Mailing List
New device ID for sc92031 [1088:2031]
Linux Kernel Mailing List
e1000e: Expose MDI-X status via ethtool change
Linux Kernel Mailing List
NFS: Store pages from an NFS inode into a local cache
Linux Kernel Mailing List
arm/imx/gpio: GPIO_INT_{HIGH,LOW}_LEV are not necessarily constant
Linux Kernel Mailing List
powerpc/kexec: Add support for FSL-BookE
linux-netdev
:
Andi Kleen
Re: RFC: Nagle latency tuning
Jarek Poplawski
Re: tc filter flow hash question
David Miller
Re: [RFC 0/5] generic rx recycling
Chuck Lever
Re: [RFC] ipv6: Change %pI6 format to output compacted addresses?
Jarek Poplawski
Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0
openbsd-misc
:
Theo de Raadt
Re: RES: OpenBSD on IBM System X3550 7879
Bret S. Lambert
Re: any web management gui for pf ?
Rob Shepherd
x86 hardware for router system
Nick Holland
Re: Install OpenBSD from USB ?
Nick Holland
Re: 1 out of 3 hunks failed--saving rejects to kerberosV/src/lib/krb5/crypto.c.rej
Colocation donated by:
Syndicate