Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1810781imm; Thu, 12 Jul 2018 08:11:13 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdDaeqYOJ1cCjcPLj733WP4Hwp6aHlBf33wpxmCbJcM47sAeHE4MuFl1SJTmCLZsVjZVfw1 X-Received: by 2002:a62:e106:: with SMTP id q6-v6mr2873218pfh.75.1531408273754; Thu, 12 Jul 2018 08:11:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531408273; cv=none; d=google.com; s=arc-20160816; b=kSnrdCpCZzwQwnmS4K+jStEzAmG+Dx9CSuY9/zsBxta36WNDh9ANAajveaoVO+Yxcq vONHpdBr6I0BLGfn0se7zCJ3C8zicorpzdZvXqx12e4dChp+zSkJSCIgdooNJqLLO0lA c6/fMPMz9mm1J/YIrIfy9FVesQ5mJMPDR90V9BaXnjSIKtRIWbb8OP4gQXMHmULbgC+9 2jKeEL2/MiDdnmAF655A0NyBt7qBzZnekr84IxK42mvw4CduBzE2U5gK1apPjOyDVKkD NJKG90aflADVrcBFoV2vLrZv1MUGHsYzIcUAqz/EHjQOxuTW+iaMX352iLmZMlFnwfzl QN5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=xTdcDNapBbWvyWlNIIpCyH8/uVEfqy2vR2XM18aLlGA=; b=rc6huTJov4iQLcg/vuBaW2E4FgcDheRI+D3v+CIyS4r7MjgDg/gLGDbkdYSXn8JTge /3+eYCCi7I7Q6u6nDcYvrDAIHbNNNuvEcx3CkSJ/uQ9ye/G3kBCnqpKKd23kiz98I6+t NyqauyTYkk64V0uGOsiQe/48PVVU8HDr8K1K66T4PP5pAdaTfOfx+SB7p1ui4oj18ypY c/CxWVJn6uaVHId7tDfupUDf69aGtlMOnEHRSV9slbDqKbApda/wmFx3xM17jJKxgmiR /cFDyBXDx8HEUcfkW9KV3stIzl32hRuk4GMaZPsmIesNamo5szGoi365QWfmxYOkP/DH opLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=CV4Stoql; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r128-v6si2250666pgr.634.2018.07.12.08.10.43; Thu, 12 Jul 2018 08:11:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=CV4Stoql; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732687AbeGLPUC (ORCPT + 99 others); Thu, 12 Jul 2018 11:20:02 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:44968 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732373AbeGLPUC (ORCPT ); Thu, 12 Jul 2018 11:20:02 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w6CEwhOT134273; Thu, 12 Jul 2018 15:10:02 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : references : in-reply-to : from : date : message-id : subject : to : cc : content-type; s=corp-2018-07-02; bh=xTdcDNapBbWvyWlNIIpCyH8/uVEfqy2vR2XM18aLlGA=; b=CV4StoqlcIY+F2cCzL+HTUlpVyN+lhSZCwcbWJ3THgVZB+EqHCK5eVH8XKrMdHuMtG29 oGgbDbhj8tV1T2eL3+o4uaVAxpirJlneCaNs4d1gmj8F3Kenw/0Dr17OSBDgn/JgU3IH 5g+RNb/vxwANZo8NSFzKpFmTKchGizHKkAAiXRplV1lUC8lHDc5cculr9bR5cyFW7tvA IfEevxRRULGiDJ4F/VnggooFR5yeONyyp5WCnui9m8x8p2k1211RQExr7wyjGGXAI+jm IZaEyPzZ12AFMpatNyXk8q3Nk2ih3yu/K79v7GoNxpNp6sFAj/DMl7vUitBCjgMvSGW7 wA== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2120.oracle.com with ESMTP id 2k2p7e4441-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 Jul 2018 15:10:02 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w6CF9veb018316 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 Jul 2018 15:09:58 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w6CF9vcx005529; Thu, 12 Jul 2018 15:09:57 GMT Received: from mail-oi0-f44.google.com (/209.85.218.44) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 12 Jul 2018 08:09:57 -0700 Received: by mail-oi0-f44.google.com with SMTP id l10-v6so9713075oii.0; Thu, 12 Jul 2018 08:09:56 -0700 (PDT) X-Gm-Message-State: AOUpUlFCZB9iSoUssgLG6/vMrzXp4kNaCSf+R75+by/oRatuOpP2GRZK 5MxPT+ptuy5/hlXqdb2/aOQIyHELafFWQWewkKY= X-Received: by 2002:aca:e089:: with SMTP id x131-v6mr2556543oig.221.1531408196500; Thu, 12 Jul 2018 08:09:56 -0700 (PDT) MIME-Version: 1.0 References: <20180710235044.vjlRV%akpm@linux-foundation.org> <87lgai9bt5.fsf@concordia.ellerman.id.au> <20180711133737.GA29573@techadventures.net> <87efg981rd.fsf@concordia.ellerman.id.au> <20180712095002.GA5342@techadventures.net> In-Reply-To: <20180712095002.GA5342@techadventures.net> From: Pavel Tatashin Date: Thu, 12 Jul 2018 11:09:20 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Boot failures with "mm/sparse: Remove CONFIG_SPARSEMEM_ALLOC_MEM_MAP_TOGETHER" on powerpc (was Re: mmotm 2018-07-10-16-50 uploaded) To: osalvador@techadventures.net Cc: mpe@ellerman.id.au, osalvador.vilardaga@gmail.com, Andrew Morton , broonie@kernel.org, mhocko@suse.cz, Stephen Rothwell , linux-next@vger.kernel.org, linux-fsdevel@vger.kernel.org, Linux Memory Management List , LKML , mm-commits@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, bhe@redhat.com, aneesh.kumar@linux.ibm.com, khandual@linux.vnet.ibm.com Content-Type: text/plain; charset="UTF-8" X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8951 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=3 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=708 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807120158 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 12, 2018 at 5:50 AM Oscar Salvador wrote: > > > > I just roughly check, but if I checked the right place, > > > vmemmap_populated() checks for the section to contain the flags we are > > > setting in sparse_init_one_section(). > > > > Yes. > > > > > But with this patch, we populate first everything, and then we call > > > sparse_init_one_section() in sparse_init(). > > > As I said I could be mistaken because I just checked the surface. Yes, this is right, sparse_init_one_section() is needed after every populate call on ppc64. I am adding this to my sparse_init re-write, and it actually simplifies code, as it avoids one extra loop, and makes ppc64 to work. Pavel