All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tang Chen <tangchen@cn.fujitsu.com>
To: Michal Hocko <mhocko@suse.cz>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Wen Congyang <wency@cn.fujitsu.com>,
	Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>,
	Wu Jianguo <wujianguo@huawei.com>,
	KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>,
	Jiang Liu <jiang.liu@huawei.com>,
	Kamezawa Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
	Lai Jiangshan <laijs@cn.fujitsu.com>, Ingo Molnar <mingo@elte.hu>,
	Thomas Gleixner <tglx@linutronix.de>,
	"H. Peter Anvin" <hpa@zytor.com>,
	linux-mm@kvack.org, LKML <linux-kernel@vger.kernel.org>
Subject: Re: mmots: memory-hotplug: implement register_page_bootmem_info_section of sparse-vmemmap fix
Date: Fri, 11 Jan 2013 20:38:33 +0800	[thread overview]
Message-ID: <50F007C9.10606@cn.fujitsu.com> (raw)
In-Reply-To: <20130111121226.GI7286@dhcp22.suse.cz>

On 01/11/2013 08:12 PM, Michal Hocko wrote:
> On Fri 11-01-13 20:06:25, Tang Chen wrote:
>> On 01/11/2013 06:47 PM, Michal Hocko wrote:
>>>>
>>>> Darn! And now that I am looking at the patch closer it is too x86
>>>> centric so this cannot be in the generic code. I will try to cook
>>>> something better. Sorry about the noise.
>>>
>>> It is more complicated than I thought. One would tell it's a mess.
>>> The patch bellow fixes the compilation issue but I am not sure we want
>>> to include memory_hotplug.h into arch/x86/mm/init_64.c. Moreover
>>>
>>> +void register_page_bootmem_memmap(unsigned long section_nr,
>>> +				  struct page *start_page, unsigned long size)
>>> +{
>>> +	/* TODO */
>>> +}
>>>
>>> for other archs would suggest that the code is not ready yet. Should
>>> this rather be dropped for now?
>>
>> Hi Michal,
>>
>> Do you mean remove register_page_bootmem_memmap() from other
>> architectures ?
>
> No I meant the patch to be dropped until it gets implementation for
> other architectures or the users of the function would be explicit about
> archs which are supported. What happens if the implementation is empty
> will the generic code work properly? From my very limitted understanding
> of the code it won't.

Hi Michal,

Hum, I see. Thank you for your remind. :)
register_page_bootmem_info_section() will be different in other
architectures if register_page_bootmem_memmap() is empty.

I think we can post a patch to make register_page_bootmem_info_section()
the same as before, and we just implement the x86 version first. So that
it will have no harm to other architectures.

How do you think ?

Thanks. :)

>

--
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>

WARNING: multiple messages have this Message-ID (diff)
From: Tang Chen <tangchen@cn.fujitsu.com>
To: Michal Hocko <mhocko@suse.cz>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Wen Congyang <wency@cn.fujitsu.com>,
	Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>,
	Wu Jianguo <wujianguo@huawei.com>,
	KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>,
	Jiang Liu <jiang.liu@huawei.com>,
	Kamezawa Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
	Lai Jiangshan <laijs@cn.fujitsu.com>, Ingo Molnar <mingo@elte.hu>,
	Thomas Gleixner <tglx@linutronix.de>,
	"H. Peter Anvin" <hpa@zytor.com>,
	linux-mm@kvack.org, LKML <linux-kernel@vger.kernel.org>
Subject: Re: mmots: memory-hotplug: implement register_page_bootmem_info_section of sparse-vmemmap fix
Date: Fri, 11 Jan 2013 20:38:33 +0800	[thread overview]
Message-ID: <50F007C9.10606@cn.fujitsu.com> (raw)
In-Reply-To: <20130111121226.GI7286@dhcp22.suse.cz>

On 01/11/2013 08:12 PM, Michal Hocko wrote:
> On Fri 11-01-13 20:06:25, Tang Chen wrote:
>> On 01/11/2013 06:47 PM, Michal Hocko wrote:
>>>>
>>>> Darn! And now that I am looking at the patch closer it is too x86
>>>> centric so this cannot be in the generic code. I will try to cook
>>>> something better. Sorry about the noise.
>>>
>>> It is more complicated than I thought. One would tell it's a mess.
>>> The patch bellow fixes the compilation issue but I am not sure we want
>>> to include memory_hotplug.h into arch/x86/mm/init_64.c. Moreover
>>>
>>> +void register_page_bootmem_memmap(unsigned long section_nr,
>>> +				  struct page *start_page, unsigned long size)
>>> +{
>>> +	/* TODO */
>>> +}
>>>
>>> for other archs would suggest that the code is not ready yet. Should
>>> this rather be dropped for now?
>>
>> Hi Michal,
>>
>> Do you mean remove register_page_bootmem_memmap() from other
>> architectures ?
>
> No I meant the patch to be dropped until it gets implementation for
> other architectures or the users of the function would be explicit about
> archs which are supported. What happens if the implementation is empty
> will the generic code work properly? From my very limitted understanding
> of the code it won't.

Hi Michal,

Hum, I see. Thank you for your remind. :)
register_page_bootmem_info_section() will be different in other
architectures if register_page_bootmem_memmap() is empty.

I think we can post a patch to make register_page_bootmem_info_section()
the same as before, and we just implement the x86 version first. So that
it will have no harm to other architectures.

How do you think ?

Thanks. :)

>


  reply	other threads:[~2013-01-11 12:39 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-11  9:56 mmots: memory-hotplug: implement register_page_bootmem_info_section of sparse-vmemmap fix Michal Hocko
2013-01-11  9:56 ` Michal Hocko
2013-01-11 10:17 ` Michal Hocko
2013-01-11 10:17   ` Michal Hocko
2013-01-11 10:29   ` Michal Hocko
2013-01-11 10:29     ` Michal Hocko
2013-01-11 10:47     ` Michal Hocko
2013-01-11 10:47       ` Michal Hocko
2013-01-11 11:08       ` Lin Feng
2013-01-11 11:08         ` Lin Feng
2013-01-11 11:55         ` Michal Hocko
2013-01-11 11:55           ` Michal Hocko
2013-01-11 12:06       ` Tang Chen
2013-01-11 12:06         ` Tang Chen
2013-01-11 12:12         ` Michal Hocko
2013-01-11 12:12           ` Michal Hocko
2013-01-11 12:38           ` Tang Chen [this message]
2013-01-11 12:38             ` Tang Chen
2013-01-11 15:38             ` Michal Hocko
2013-01-11 15:38               ` Michal Hocko
2013-01-11 12:06       ` Lin Feng
2013-01-11 12:06         ` Lin Feng
2013-01-11 10:26 ` Tang Chen
2013-01-11 10:26   ` Tang Chen

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=50F007C9.10606@cn.fujitsu.com \
    --to=tangchen@cn.fujitsu.com \
    --cc=akpm@linux-foundation.org \
    --cc=hpa@zytor.com \
    --cc=isimatu.yasuaki@jp.fujitsu.com \
    --cc=jiang.liu@huawei.com \
    --cc=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=kosaki.motohiro@jp.fujitsu.com \
    --cc=laijs@cn.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@suse.cz \
    --cc=mingo@elte.hu \
    --cc=tglx@linutronix.de \
    --cc=wency@cn.fujitsu.com \
    --cc=wujianguo@huawei.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.