Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1307299pxj; Sat, 29 May 2021 09:14:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyh3QRoCKgCsDZ5+OS674NcT9Kejtuf+fQ8TnijD5KtDQt8X1uWN0hHG+kVji4571jy2fXN X-Received: by 2002:a17:906:c7da:: with SMTP id dc26mr11119563ejb.220.1622304886689; Sat, 29 May 2021 09:14:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622304886; cv=none; d=google.com; s=arc-20160816; b=R20XOSi6kz+LdhYvcvl8yHopQCb/1KeqIvTP/K5HqtD1PxJujvE/Hz2wWIjgpmOOo0 DUgaC4hPCVB2ijIjfhAPtUGTV2CIP/jmFfEVbCWCr9GrmeUzouEugtGV2nnq1MrSt0C/ KsdLf141t8nfi4pwu1bffWiH0l1YOfyVgmYRxlc5XSelWKTssDz3/K6tuTgDEwkk51W6 tbRA6ooOUHjOcMTmr9fUVffFoTZp6JoJaa2LG0M6/nBieMowR/g9ASeIhYXG26DOJ5hB pxDxFVH3nVvPVn/FDn41JTnBTbiep/GWgmiAaslSq6cSPnIURXivxaGK2Q+WmeoLgX54 tkMA== 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=MW0aLI5Vz53yg5uuCcz3Qn5fBh/s0IZMijSitE1clxI=; b=aWR8CayGFXXNoS1MZjxh1pX/UFMHm0Vic8iNMg+pAkAqZeXA/uXA87JBvu7N29pa+y MAhAbZff9qIMa5RdR7PH5hELS2EZa59gFccbdp018ItWXGq8DVL4dkA+kPLcL/MQfplb JC99LfukNdKSSRrOl/tRedTBND3tj57TF8YuYSaiReG8FUvndWWBWdXI+oNBicYAt0uT 77DoOiLiCQsl1szQ4NejaToUzEXOQf8c/cCYnpxRw79UuPVWpQY/P6gbsQQMxzU6Pg/C kubTnnDOuFJZMG6m+/PhzVgGg9KvbHprMxYVnZlKPLpN8juUf5xQruKIkZbuM4I4IgFS pvzQ== 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 n23si7559301edd.440.2021.05.29.09.14.08; Sat, 29 May 2021 09:14:46 -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 S229718AbhE2QNk convert rfc822-to-8bit (ORCPT + 99 others); Sat, 29 May 2021 12:13:40 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:19813 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229693AbhE2QNj (ORCPT ); Sat, 29 May 2021 12:13:39 -0400 Received: from localhost (mailhub3.si.c-s.fr [192.168.12.233]) by localhost (Postfix) with ESMTP id 4Fsmlk146wzBCPP; Sat, 29 May 2021 18:12:02 +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 9sZhn_teJbZ1; Sat, 29 May 2021 18:12:02 +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 4Fsmlk099zzBCNt; Sat, 29 May 2021 18:12:02 +0200 (CEST) Received: by vm-hermes.si.c-s.fr (Postfix, from userid 33) id B06C317A; Sat, 29 May 2021 18:16:30 +0200 (CEST) Received: from 37.167.209.238 ([37.167.209.238]) by messagerie.c-s.fr (Horde Framework) with HTTP; Sat, 29 May 2021 18:16:30 +0200 Date: Sat, 29 May 2021 18:16:30 +0200 Message-ID: <20210529181630.Horde.rvXKyt8t9f8DiqTVTuSKUw3@messagerie.c-s.fr> From: Christophe Leroy To: Kefeng Wang Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Andrew Morton 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> In-Reply-To: <20210529105504.180544-12-wangkefeng.wang@huawei.com> 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 Kefeng Wang a écrit : > Use setup_initial_init_mm() helper to simplify code. > > 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 looks wrong, should be klimit instead of _end IIUC > > mm_iommu_init(&init_mm); > irqstack_early_init(); > -- > 2.26.2