linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
To: Badari Pulavarty <pbadari@gmail.com>
Cc: linux-mm <linux-mm@kvack.org>
Subject: Re: Hotplug memory remove
Date: Wed, 3 Oct 2007 10:07:03 +0900	[thread overview]
Message-ID: <20071003100703.102033c3.kamezawa.hiroyu@jp.fujitsu.com> (raw)
In-Reply-To: <1191345455.6106.10.camel@dyn9047017100.beaverton.ibm.com>

On Tue, 02 Oct 2007 10:17:34 -0700
Badari Pulavarty <pbadari@gmail.com> wrote:

> Kame,
> 
> With little bit of hacking /proc/iomem on ppc64, I got hotplug memory
> remove working. I didn't have to spend lot of time debugging the
> infrastructure you added. Good work !!
> 
I'm very glad to hear that. Thanks!

> Only complaint I have is, the use of /proc/iomem for verification.
> I see few issues.
> 
> 1) On X86-64, /proc/iomem contains all the memory regions, but they
> are all marked IORESOURCE_BUSY. So looking for IORESOURCE_MEM wouldn't
> work and always fails. Is any one working on x86-64 ? 
> 
no one works on x86-64. But I should ask to x86-64 peaple "Why IORESOURCE_BUSY?"
Thank you for pointing out.

> 2) On ppc64, /proc/iomem shows only io-mapped-memory regions. So I
> had to hack it to add all the memory information. I am going to ask
> on ppc64 mailing list on how to do it sanely, but I am afraid that
> they are going to say "all the information is available in the kernel
> data (lmb) structures, parse them - rather than exporting it
> to /proc/iomem". 
> 
> We may have to have arch-specific hooks to verify a memory region :(
> What do you think ?
> 
I think using IORESOURCE_MEM is better.
It is implemtend regardless of memory hotplug. I just reused it.
(I think x86's resouce struct is extened to 64bit for supporting memory info.)

Thanks,
-Kame

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2007-10-03  1:07 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-01 15:37 Badari Pulavarty
2007-10-01 16:14 ` KAMEZAWA Hiroyuki
2007-10-01 17:49   ` Badari Pulavarty
2007-10-02  0:52     ` KAMEZAWA Hiroyuki
2007-10-02 14:58       ` Badari Pulavarty
2007-10-02 17:17       ` Badari Pulavarty
2007-10-03  1:07         ` KAMEZAWA Hiroyuki [this message]
2007-10-05 17:21   ` Mark Gross
2007-10-06  0:41     ` KAMEZAWA Hiroyuki
2007-10-08 19:01       ` Mark Gross
2007-10-09  1:10         ` KAMEZAWA Hiroyuki
2007-10-09 10:51           ` Yasunori Goto

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=20071003100703.102033c3.kamezawa.hiroyu@jp.fujitsu.com \
    --to=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=linux-mm@kvack.org \
    --cc=pbadari@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox