Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1275648pxj; Sat, 29 May 2021 08:19:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyItkzkXf9/EbjwrBXqZgwnEQSrGh1xtAcQ+fG1VHL1as8Lr03kt09QW/BpchBra1EXgasj X-Received: by 2002:a02:aa97:: with SMTP id u23mr12998502jai.13.1622301561718; Sat, 29 May 2021 08:19:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622301561; cv=none; d=google.com; s=arc-20160816; b=FUgLfmzBN8G3aIiZ5v+3Hbnoq3hJNPkwTN9rxQyipzAoHp9WI+YgYJ7OVfl3HhhzwQ Rt7fBYwEOcigDpM39a0j8dn/XbFBlP8PVufxVFxnHgsnhqeGCn/6OXB57Oasy6MTLhxJ EZTcPm1pyZ/ulOyMojZdsujxFqmULsG4En2mdGtqfIEJCM0MEJ7PvjuW0cBawQSd1GTT hV0w/aQmhrgoXa8HMe5KM2Y7xVIZtb8Xcp2PNXB7UB2iJW8JgC3C+I76bk8xtP+9lCEQ o/3IIiqk7uvcOtxTproTPxPu7pZs+QqxrJ+C2ICsVE6iCacFxfQZHi4zymMO796ml1Rc t/xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-disposition :mime-version:user-agent:in-reply-to:references:subject:cc:to:from :message-id:date; bh=AX3t4XBBEYO+u3R7ZKWCQ9Vo663KJNxIl891xCSfDE4=; b=vrR1sqO8YVmBC1HBvXjtEwbup/bXfKzgqhTi90jzighyXkKVKlepd5jK5qpyDE7eIw t1Ps9f0Vk5JWt6qYmt6Kr5CDQYxPWbK8+exRefUyujGRWJ5lrPZZ84HRm1aSXyWCgQgo lsoRFjKti/ft0/cbbg4+0NO0QDpscglnXqurqkYQO/D2l4baJ3Kh4jq887zWwJZeksYl NzsxGYvegi5iBuhqXs7AWh0wnufFdPTlnpVXLOHg+gzwVZKTKkxkrPUBWsVWfI+S4rw8 9CXXGBZOcK3zU8wiCmv1iz5wwl0V3PJjhBzieNbAX+HHb7amr8a45yz6QCRmMg6alf35 hvGw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n15si10112504ili.8.2021.05.29.08.19.00; Sat, 29 May 2021 08:19:21 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229792AbhE2PTY convert rfc822-to-8bit (ORCPT + 99 others); Sat, 29 May 2021 11:19:24 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:64695 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229693AbhE2PTY (ORCPT ); Sat, 29 May 2021 11:19:24 -0400 Received: from localhost (mailhub3.si.c-s.fr [192.168.12.233]) by localhost (Postfix) with ESMTP id 4FslY60NWYzBBP6; Sat, 29 May 2021 17:17:46 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6BGtUzHSN--V; Sat, 29 May 2021 17:17:45 +0200 (CEST) Received: from vm-hermes.si.c-s.fr (vm-hermes.si.c-s.fr [192.168.25.253]) by pegase1.c-s.fr (Postfix) with ESMTP id 4FslY56ZrCzBBNq; Sat, 29 May 2021 17:17:45 +0200 (CEST) Received: by vm-hermes.si.c-s.fr (Postfix, from userid 33) id DDD90478; Sat, 29 May 2021 17:22:14 +0200 (CEST) Received: from 37.167.129.206 ([37.167.129.206]) by messagerie.c-s.fr (Horde Framework) with HTTP; Sat, 29 May 2021 17:22:14 +0200 Date: Sat, 29 May 2021 17:22:14 +0200 Message-ID: <20210529172214.Horde.njR-7XrYj7R9yHI41_Pujw3@messagerie.c-s.fr> From: Christophe Leroy To: Santosh Sivaraj Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Andrew Morton , Kefeng Wang Subject: Re: [PATCH 11/15] powerpc: convert to setup_initial_init_mm() References: <20210529105504.180544-1-wangkefeng.wang@huawei.com> <20210529105504.180544-12-wangkefeng.wang@huawei.com> <87y2bxemi4.fsf@fossix.org> In-Reply-To: <87y2bxemi4.fsf@fossix.org> User-Agent: Internet Messaging Program (IMP) H5 (6.2.3) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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