From: keith mannthey <kmannth@us.ibm.com>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: lkml <linux-kernel@vger.kernel.org>,
lhms-devel <lhms-devel@lists.sourceforge.net>,
y-goto@jp.fujitsu.com, andrew <akpm@osdl.org>
Subject: Re: [PATCH] memory hotadd fixes [4/5] avoid check in acpi
Date: Thu, 03 Aug 2006 20:00:08 -0700 [thread overview]
Message-ID: <1154660408.5925.79.camel@keithlap> (raw)
In-Reply-To: <20060804111550.ab30fc15.kamezawa.hiroyu@jp.fujitsu.com>
On Fri, 2006-08-04 at 11:15 +0900, KAMEZAWA Hiroyuki wrote:
> On Thu, 03 Aug 2006 18:54:32 -0700
> keith mannthey <kmannth@us.ibm.com> wrote:
>
> > > Hmm..Okay. I'll try some check patch today. please review it.
> > > Maybe moving ioresouce collision check in early stage of add_memory() is good ?
> > Yea. I am working a a full patch set for but my sparsemem and reserve
> > add-based paths. It creates a valid_memory_add_range call at the start
> > of add_memory. I should be posting the set in the next few hours.
> >
> Ah..ok. but I wrote my own patch...and testing it now..
Sure that is fine.
>
> > > Note:
> > > I remove pfn_valid() here because pfn_valid() just says section exists or
> > > not. When adding seveal small memory chunks in one section, Only the first
> > > small chunk can be added.
> > Hmm... I thought memory add areas needed to be section aligned for the arch?
> >
> There are requests for memory-hot-add should allow to hot-add not-aligned memory.
> Then, I wrote ioresouce collision check patch (before..but had bug..)
> With ioresouce collistion check, alignments are not required at *add*.
> (onlining is just for *offlined section*, now)
>
> > What protecting is there for calling add_memory on an already present
> > memory range?
> >
> For example, considering ia64, which has 1Gbytes section...
Maybe 1gb sections is too large?
> hot add following region.
> ==
> (A) 0xc0000000 - 0xd7ffffff (section 3)
> (B) 0xe0000000 - 0xffffffff (section 3)
> ==
> (A) and (B) will go to the same section, but there is a memory hole between
> (A) and (B). Considering memory (B) appears after (A) in DSDT.
>
> After add_memory() against (A) is called, section 3 is ready.
> Then, pfn_valid(0xe0000000) and pfn_valid(0xffffffff) returns true because
> they are in section 3.
> So, checking pfn_valid() for (B) will returns true and memory (B) cannot be
> added. ioresouce collision check will help this situation.
With iommus out there throwing aliment all off way the flexability is
good.
My question is this.
Assuming 0-0xbfffffff is present.
What keeps 0xa0000000 to 0xa1000000 from being re-onlined by a bad call
to add_memory?
Thanks,
Keith
next prev parent reply other threads:[~2006-08-04 3:00 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-03 3:36 [PATCH] memory hotadd fixes [4/5] avoid check in acpi KAMEZAWA Hiroyuki
2006-08-03 18:28 ` keith mannthey
2006-08-03 23:09 ` [Lhms-devel] " keith mannthey
2006-08-04 0:22 ` KAMEZAWA Hiroyuki
2006-08-04 0:13 ` keith mannthey
2006-08-04 0:44 ` KAMEZAWA Hiroyuki
2006-08-04 1:54 ` keith mannthey
2006-08-04 2:15 ` KAMEZAWA Hiroyuki
2006-08-04 2:32 ` [PATCH] memory hotadd fixes [6/5] enhance collistion check KAMEZAWA Hiroyuki
2006-08-04 3:09 ` keith mannthey
2006-08-04 3:19 ` KAMEZAWA Hiroyuki
2006-08-04 21:01 ` keith mannthey
2006-08-04 3:00 ` keith mannthey [this message]
2006-08-04 3:13 ` [PATCH] memory hotadd fixes [4/5] avoid check in acpi KAMEZAWA Hiroyuki
2006-08-04 3:23 ` keith mannthey
2006-08-04 3:48 ` KAMEZAWA Hiroyuki
2006-08-04 4:25 ` keith mannthey
2006-08-04 4:32 ` KAMEZAWA Hiroyuki
2006-08-04 8:23 ` Mika Penttilä
2006-08-04 8:32 ` keith mannthey
2006-08-04 5:46 ` Yasunori Goto
2006-08-04 5:59 ` [Lhms-devel] " KAMEZAWA Hiroyuki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1154660408.5925.79.camel@keithlap \
--to=kmannth@us.ibm.com \
--cc=akpm@osdl.org \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=lhms-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=y-goto@jp.fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.