Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2213669pxj; Sun, 30 May 2021 18:10:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsRZkMGv4CNfhe3oM6ZNVO+efXHHYfrqRAU1ShF3aPEc+gw/RVNGIeqeGfXeFs5lpxT1Ed X-Received: by 2002:aa7:c6c8:: with SMTP id b8mr9262018eds.213.1622423425536; Sun, 30 May 2021 18:10:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622423425; cv=none; d=google.com; s=arc-20160816; b=Vzxjd9MAIT602zX6i5tjiEEaOEMXp1NkvtfiY8NZ2NyS/bBLzaTyeam513Fc3ISu// 29Db+QVGsgNUEyyqKh9RNOZLoJdiVwtM98KisaWPMgbQQgjLAwuQGscsGYrEkXu6C6rm /iEV2TCvP2T43DSim3MepyOYWnH12VoOxsEiZVF451ItpLZmAHxFCoak7QJI37Z7IxUN MZ2xZGelleHDv/V2id75r35AIVy0GxAbWGDPpS7F8i2JwiUqzQmsCvcgkCqTNwJTG2jU z8hOUl+S2Csrf4ImIw1XhCLbjI3V+bDcrxOj5eCeguut01fntW00NKQQTh74DcEuqa8b IV7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=DrlQKNnQ5FsEOWaLrmcCIPVjjqKdz7jDmJ44cfu7cU8=; b=OkM8zZbVa3tG0auhqIGZhsyZL4xm2gibx7/nl3abWb7j2XORS+TxGFdIloeGjBnw+n xiiUOeVvCd4V9Vs9IyKqIeBf7UOTaQiCbKU/49p90YS9KIk5hHYqylq2rgbL2EmGFRcx bfCynvHFUuc6Rccb+liLtDrRQgcYM8LlfqP1QJpx9xoOLWa0081J0JnHBcdx8eCegUYc SavC4pMNX/MFxwSJ/um+0xT0mswVClmQbfX8+DqqXeuYx6GVpNBrqDrEuCKIR4LymHit cB7Myy+Q0nYhfYwgeV9ooe7QE8x2tT8Lk8g9tc1ChF1TZXIhF7PNPB3ZpS6ODPhX65pF zdfw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i16si10027575ejw.533.2021.05.30.18.09.50; Sun, 30 May 2021 18:10:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229901AbhEaBDz (ORCPT + 99 others); Sun, 30 May 2021 21:03:55 -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 > > > . >