From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.9 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7A585C47092 for ; Mon, 31 May 2021 01:02:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 41E9661222 for ; Mon, 31 May 2021 01:02:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229941AbhEaBD4 (ORCPT ); Sun, 30 May 2021 21:03:56 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:2108 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229887AbhEaBDy (ORCPT ); Sun, 30 May 2021 21:03:54 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4FtcMf1Y7qzWpTm; Mon, 31 May 2021 08:57:34 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 31 May 2021 09:02:08 +0800 Received: from [10.174.177.243] (10.174.177.243) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 31 May 2021 09:02:07 +0800 Subject: Re: [PATCH 11/15] powerpc: convert to setup_initial_init_mm() To: Christophe Leroy , Santosh Sivaraj CC: , , "Andrew Morton" References: <20210529105504.180544-1-wangkefeng.wang@huawei.com> <20210529105504.180544-12-wangkefeng.wang@huawei.com> <87y2bxemi4.fsf@fossix.org> <20210529172214.Horde.njR-7XrYj7R9yHI41_Pujw3@messagerie.c-s.fr> From: Kefeng Wang Message-ID: <200bad0a-ed47-310c-4d6e-346e6b5cdf57@huawei.com> Date: Mon, 31 May 2021 09:02:06 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20210529172214.Horde.njR-7XrYj7R9yHI41_Pujw3@messagerie.c-s.fr> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [10.174.177.243] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/5/29 23:22, Christophe Leroy wrote: > Santosh Sivaraj a écrit : > >> Kefeng Wang writes: >> >>> Use setup_initial_init_mm() helper to simplify code. > > I only got that patch, and patchwork as well > (https://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=246315) > > Can you tell where I can see and get the full series ? > > And next time can you copy all patches to linuxppc-dev ok, will be careful next time, thank for your reminding. > > Thanks > Christophe > >>> >>> Cc: Michael Ellerman >>> Cc: Benjamin Herrenschmidt >>> Cc: linuxppc-dev@lists.ozlabs.org >>> Signed-off-by: Kefeng Wang >>> --- >>>  arch/powerpc/kernel/setup-common.c | 5 +---- >>>  1 file changed, 1 insertion(+), 4 deletions(-) >>> >>> diff --git a/arch/powerpc/kernel/setup-common.c >>> b/arch/powerpc/kernel/setup-common.c >>> index 046fe21b5c3b..c046d99efd18 100644 >>> --- a/arch/powerpc/kernel/setup-common.c >>> +++ b/arch/powerpc/kernel/setup-common.c >>> @@ -928,10 +928,7 @@ void __init setup_arch(char **cmdline_p) >>> >>>      klp_init_thread_info(&init_task); >>> >>> -    init_mm.start_code = (unsigned long)_stext; >>> -    init_mm.end_code = (unsigned long) _etext; >>> -    init_mm.end_data = (unsigned long) _edata; >>> -    init_mm.brk = klimit; >>> +    setup_initial_init_mm(_stext, _etext, _edata, _end); >> >> This function definition is not visible for those who have subscribed >> only to >> linuxppc-dev mailing list. I had to do a web-search with the ID. >> >> Thanks, >> Santosh >> >>> >>>      mm_iommu_init(&init_mm); >>>      irqstack_early_init(); >>> -- >>> 2.26.2 > > > . >