From: Andrew Morton <akpm@linux-foundation.org>
To: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Dave Hansen <haveblue@us.ibm.com>,
linux-kernel@vger.kernel.org, linux-mm@kvack.org,
Gerald Schaefer <gerald.schaefer@de.ibm.com>,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
Martin Schwidefsky <schwidefsky@de.ibm.com>
Subject: Re: [PATCH 2/2] memory hotplug/s390: set phys_device
Date: Tue, 9 Mar 2010 12:37:48 -0800 [thread overview]
Message-ID: <20100309123748.3015e10a.akpm@linux-foundation.org> (raw)
In-Reply-To: <20100309172052.GC2360@osiris.boeblingen.de.ibm.com>
On Tue, 9 Mar 2010 18:20:52 +0100
Heiko Carstens <heiko.carstens@de.ibm.com> wrote:
> From: Heiko Carstens <heiko.carstens@de.ibm.com>
>
> Implement arch specific arch_get_memory_phys_device function and initialize
> phys_device for each memory section. That way we finally can tell which
> piece of memory belongs to which physical device.
>
> Cc: Dave Hansen <haveblue@us.ibm.com>
> Cc: Gerald Schaefer <gerald.schaefer@de.ibm.com>
> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
> ---
> drivers/s390/char/sclp_cmd.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> --- a/drivers/s390/char/sclp_cmd.c
> +++ b/drivers/s390/char/sclp_cmd.c
> @@ -704,6 +704,13 @@ int sclp_chp_deconfigure(struct chp_id c
> return do_chp_configure(SCLP_CMDW_DECONFIGURE_CHPATH | chpid.id << 8);
> }
>
> +int arch_get_memory_phys_device(unsigned long start_pfn)
> +{
> + if (!rzm)
> + return 0;
> + return PFN_PHYS(start_pfn) / rzm;
> +}
> +
> struct chp_info_sccb {
> struct sccb_header header;
> u8 recognized[SCLP_CHP_INFO_MASK_SIZE];
What is the utility of this patch? It makes s390's
/sys/devices/system/memory/memoryX/phys_device display the correct
thing?
WARNING: multiple messages have this Message-ID (diff)
From: Andrew Morton <akpm@linux-foundation.org>
To: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Dave Hansen <haveblue@us.ibm.com>,
linux-kernel@vger.kernel.org, linux-mm@kvack.org,
Gerald Schaefer <gerald.schaefer@de.ibm.com>,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
Martin Schwidefsky <schwidefsky@de.ibm.com>
Subject: Re: [PATCH 2/2] memory hotplug/s390: set phys_device
Date: Tue, 9 Mar 2010 12:37:48 -0800 [thread overview]
Message-ID: <20100309123748.3015e10a.akpm@linux-foundation.org> (raw)
In-Reply-To: <20100309172052.GC2360@osiris.boeblingen.de.ibm.com>
On Tue, 9 Mar 2010 18:20:52 +0100
Heiko Carstens <heiko.carstens@de.ibm.com> wrote:
> From: Heiko Carstens <heiko.carstens@de.ibm.com>
>
> Implement arch specific arch_get_memory_phys_device function and initialize
> phys_device for each memory section. That way we finally can tell which
> piece of memory belongs to which physical device.
>
> Cc: Dave Hansen <haveblue@us.ibm.com>
> Cc: Gerald Schaefer <gerald.schaefer@de.ibm.com>
> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
> ---
> drivers/s390/char/sclp_cmd.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> --- a/drivers/s390/char/sclp_cmd.c
> +++ b/drivers/s390/char/sclp_cmd.c
> @@ -704,6 +704,13 @@ int sclp_chp_deconfigure(struct chp_id c
> return do_chp_configure(SCLP_CMDW_DECONFIGURE_CHPATH | chpid.id << 8);
> }
>
> +int arch_get_memory_phys_device(unsigned long start_pfn)
> +{
> + if (!rzm)
> + return 0;
> + return PFN_PHYS(start_pfn) / rzm;
> +}
> +
> struct chp_info_sccb {
> struct sccb_header header;
> u8 recognized[SCLP_CHP_INFO_MASK_SIZE];
What is the utility of this patch? It makes s390's
/sys/devices/system/memory/memoryX/phys_device display the correct
thing?
--
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>
next prev parent reply other threads:[~2010-03-09 20:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-09 17:20 [PATCH 2/2] memory hotplug/s390: set phys_device Heiko Carstens
2010-03-09 17:20 ` Heiko Carstens
2010-03-09 20:37 ` Andrew Morton [this message]
2010-03-09 20:37 ` Andrew Morton
2010-03-09 21:22 ` Heiko Carstens
2010-03-09 21:22 ` Heiko Carstens
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=20100309123748.3015e10a.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=gerald.schaefer@de.ibm.com \
--cc=haveblue@us.ibm.com \
--cc=heiko.carstens@de.ibm.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=schwidefsky@de.ibm.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.