login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
June
»
25
Re: [PATCH 1/3] e820_update_range(): Strip size of original region
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Bernhard Walle
Subject:
Re: [PATCH 1/3] e820_update_range(): Strip size of original region
Date: Wednesday, June 25, 2008 - 5:04 am
* Yinghai Lu [2008-06-24 12:57]:
quoted text
> > On Tue, Jun 24, 2008 at 7:35 AM, Bernhard Walle <bwalle@suse.de> wrote: > > This patch fixes a bug in e820_update_range(): Previously, if a region was > > partially covered, then e820_update_range() only added a new E820 range but > > didn't update the end/size of the previous range. That lead to duplicate > > covering of a region. > > > > Patch tested on i386 and x86-64 with patch that uses e820_update_range() > > to limit the E820 map when "mem" parameter is specified on the command line. > > > > > > Signed-off-by: Bernhard Walle <bwalle@suse.de> > > --- > > arch/x86/kernel/e820.c | 1 + > > 1 files changed, 1 insertions(+), 0 deletions(-) > > > > diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c > > index e285ea3..e466073 100644 > > --- a/arch/x86/kernel/e820.c > > +++ b/arch/x86/kernel/e820.c > > @@ -422,6 +422,7 @@ u64 __init e820_update_range(u64 start, u64 size, unsigned old_type, > > final_end = min(start + size, ei->addr + ei->size); > > if (final_start >= final_end) > > continue; > > + ei->size -= final_end - final_start; > > e820_add_region(final_start, final_end - final_start, > > new_type); > > real_updated_size += final_end - final_start; > > -- > > thanks for finding it, but fix is not complete. could have problem > with fore boundary overlapping. need to update the ei->addr > > please check attached patch
Thanks, works. I added this to my patch series and reposted them. Bernhard -- Bernhard Walle, SUSE LINUX Products GmbH, Architecture Development --
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:
Limit E820 map when specifying mem parameter
, Bernhard Walle
, (Tue Jun 24, 7:35 am)
[PATCH 1/3] e820_update_range(): Strip size of original region
, Bernhard Walle
, (Tue Jun 24, 7:35 am)
[PATCH 2/3] e820_update_range(): Allow specifying ULLONG_MAX
, Bernhard Walle
, (Tue Jun 24, 7:35 am)
[PATCH 3/3] Limit E820 map when a user-defined memory map ...
, Bernhard Walle
, (Tue Jun 24, 7:35 am)
Re: [PATCH 1/3] e820_update_range(): Strip size of origina ...
, Yinghai Lu
, (Tue Jun 24, 12:57 pm)
Re: [PATCH 2/3] e820_update_range(): Allow specifying ULLO ...
, Yinghai Lu
, (Tue Jun 24, 1:01 pm)
Re: [PATCH 3/3] Limit E820 map when a user-defined memory ...
, Yinghai Lu
, (Tue Jun 24, 1:03 pm)
Re: [PATCH 2/3] e820_update_range(): Allow specifying ULLO ...
, Yinghai Lu
, (Tue Jun 24, 1:21 pm)
Re: [PATCH 1/3] e820_update_range(): Strip size of origina ...
, Bernhard Walle
, (Wed Jun 25, 5:04 am)
Re: [PATCH 2/3] e820_update_range(): Allow specifying ULLO ...
, Bernhard Walle
, (Wed Jun 25, 5:05 am)
Re: [PATCH 2/3] e820_update_range(): Allow specifying ULLO ...
, Ingo Molnar
, (Wed Jun 25, 8:44 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Brownell
Re: build #337 failed for 2.6.24-rc1-gb1d08ac In function `usbnet_set_settings':
Eberhard Moenkeberg
Re: OT: character encodings (was: Linux 2.6.20-rc4)
Andy Walls
Re: [PATCH 11/32] v4l/cx18: update workqueue usage
Thomas Gleixner
[patch -mm 19/28] x86_64: Use generic cmos update
Casey Schaufler
Re: [PATCH] Smack: Simplified Mandatory Access Control Kernel
git
:
Mark Junker
git on MacOSX and files with decomposed utf-8 file names
Pat Thoyts
[PATCH] git-gui: use themed tk widgets with Tk 8.5
Michael Witten
Re: 'git gc --aggressive' effectively unusable
Eric Raymond
git status --porcelain is a mess that needs fixing
Jonathan Nieder
Re: [PATCH v2] git-send-email.perl: fix In-Reply-To for second and subsequent patc...
linux-netdev
:
David Miller
Re: [PATCH 32/53] netns xfrm: finding policy in netns
Jean-Louis Dupond
Re: tg3 driver not advertising 1000mbit
Jan Engelhardt
[PATCH 1/3] net: tcp: make hybla selectable as default congestion module
Matt Mackall
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
Eric Dumazet
Re: HTB accuracy on 10GbE
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB (8018): Add em2860 chip ID
Linux Kernel Mailing List
[ARM] unconditionally define __virt_to_phys and __phys_to_virt
Linux Kernel Mailing List
ARM: Add Versatile Express SMP support
Linux Kernel Mailing List
ixgbe: fix automatic LRO/RSC settings for low latency
Linux Kernel Mailing List
hwmon: (lm77) Convert to a new-style i2c driver
openbsd-misc
:
Samuel Baldwin
Re: Forum engine
Robert
disklabel - cylinder rounding
nixlists
Re: Which laptops do the developers use?
Claudio Jeker
Re: OT: Python (was Re: vi in /bin)
L. V. Lammert
OT, .. but has anyone seen a crontab editor
Colocation donated by:
Syndicate