Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4140718pxj; Tue, 15 Jun 2021 16:36:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvmspo/zFoYHopn5TW/eRi+chPXBKVG3TRN4DKI4ZLPJJ1i0ROMo9Tj30VtjkmI+8PeWgy X-Received: by 2002:a05:6638:2202:: with SMTP id l2mr1422213jas.98.1623800202299; Tue, 15 Jun 2021 16:36:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623800202; cv=none; d=google.com; s=arc-20160816; b=DBzdcrlwtuaRnLaOusLyFC/YGS7OIvvmGfys+/8uNyGI/Z9jRgdrNPQLFssSGfl7kq JiUp6xv3+olM2oQXMa0NoVBzBhAJVQD/QfOotqzp3RKMEj9D9hppYCGoeIAZeUhACI+K 2XkZUQfxEOwtxGmrX85xnh0BkZLlOQ7rIopRk/DnQs5dtyZUWkvPfZtA2/MC00k07MJo ig7t8qzfM0YqyTNezy8JB+brjMmWBDvPRbwM2hfoYkDEwEuEWSYcfq/YZ/JaHKcbwqKJ Q4fVbA6d911frbnNoGnDC/mtydCAyaTdyC/n9pSpeccp6T5MnB9etWNej5ofpwwjyyAG B8yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=hvUnGtF0MDmmeine5S59F8DROn1CsYywIvJuwUh1p3A=; b=wlJWAaSGx7paH0CSql/Z8aZPCwljTgD0pW0UfvWK4TUmImNVhQ/QZR4yLDn/6AIwRN QCpUN8lJIgOrn/yiaWLeXPQhKwFpGCIyI8gMgS+isJj2moOWyqkab1noOOc24LiQsz5S /rNCIIA5FmXTqy40Dno/15JDkCQ7WnVh0UeY9vxkkxNiJGbxNldaHqwJTSia0PW6eIlJ P3VC0HHpDkATFv9d9Al4TNlt75Euun1l1hcGoul86d33egSlN7OgeSC0r4RvsixhYWoD d6vWT+qTxXeERXbmVfP9D+WS2SQLu3iLjPvenz+i2cf0biyoDVtMOzNhpiK6aufuKcDX 1DBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=FN2JY0g7; 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 r16si272012iot.94.2021.06.15.16.36.30; Tue, 15 Jun 2021 16:36:42 -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; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=FN2JY0g7; 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 S231607AbhFOXge (ORCPT + 99 others); Tue, 15 Jun 2021 19:36:34 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:33029 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229898AbhFOXge (ORCPT ); Tue, 15 Jun 2021 19:36:34 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4G4PmJ58Blz9sWQ; Wed, 16 Jun 2021 09:34:24 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1623800067; bh=lQtc2x7Rh4AHu/IUpmiEi/JQeUlvvr0kX8hNOKZGzYc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=FN2JY0g7acv2zSNUbzouZpgO2F7oprdphW8MILnz3QnFeEUnB5J1fXA9MrJ2cvM46 +s1Dj6INl0KZ7gbSqwBFPZOtjEfeohrkQyrswTF2L4aAESGVQOPatezBCmLycAElui kPafKm4+f2sUPUqzDLAocB9ux5lsSNl4xw8+NOBzhy8TnZUSz+We8IQUj73MIp8vIU YyYRB8C8MhzXONoF5PEoXzicttkMCOb9jHYoSRUGwQ6QOp+PCIZH3An8DDQOupYjIo gMMbdko9ahb2yNCRk5p7kNACmHJXErg7izNajuDoE7bqp97IuygXZRUQtpyfvfNGiV nK0yMWo3g4+Ig== Date: Wed, 16 Jun 2021 09:34:22 +1000 From: Stephen Rothwell To: Mike Rapoport Cc: Qian Cai , Andrew Morton , Mark Rutland , Naresh Kamboju , Miles Chen , Linux-Next Mailing List , linux-mm , Linux ARM , open list , Will Deacon , lkft-triage@lists.linaro.org, regressions@lists.linux.dev, Arnd Bergmann , Ard Biesheuvel , Catalin Marinas , Christophe Leroy , Alistair Popple Subject: Re: [next] [arm64] kernel BUG at arch/arm64/mm/physaddr.c Message-ID: <20210616093422.31270f1e@canb.auug.org.au> In-Reply-To: References: <20210615124745.GA47121@C02TD0UTHF1T.local> <20210615131902.GB47121@C02TD0UTHF1T.local> <076665b9-9fb1-71da-5f7d-4d2c7f892103@quicinc.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/DtR4FonmnT/mKaEeFXLn3BZ"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/DtR4FonmnT/mKaEeFXLn3BZ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, On Tue, 15 Jun 2021 22:21:32 +0300 Mike Rapoport wrote: > > On Tue, Jun 15, 2021 at 10:50:31AM -0400, Qian Cai wrote: > >=20 > > On 6/15/2021 9:19 AM, Mark Rutland wrote: =20 > > > Looking some more, it looks like that's correct in isolation, but it > > > clashes with commit: > > >=20 > > > 5831eedad2ac6f38 ("mm: replace CONFIG_NEED_MULTIPLE_NODES with CONF= IG_NUMA") =20 > >=20 > > Just a data point. Reverting the commit alone fixed the same crash for = me. =20 >=20 > Yeah, that commit didn't take into the account the change in > pgdat_to_phys(). >=20 > The patch below should fix it. In the long run I think we should get rid = of > contig_page_data and allocate NODE_DATA(0) for !NUMA case as well. >=20 > Andrew, can you please add this as a fixup to "mm: replace > CONFIG_NEED_MULTIPLE_NODES with CONFIG_NUMA"? >=20 >=20 > diff --git a/mm/sparse.c b/mm/sparse.c > index a0e9cdb5bc38..6326cdf36c4f 100644 > --- a/mm/sparse.c > +++ b/mm/sparse.c > @@ -347,7 +347,7 @@ size_t mem_section_usage_size(void) > =20 > static inline phys_addr_t pgdat_to_phys(struct pglist_data *pgdat) > { > -#ifndef CONFIG_NEED_MULTIPLE_NODES > +#ifndef CONFIG_NUMA > return __pa_symbol(pgdat); > #else > return __pa(pgdat); Added to linux-next today. --=20 Cheers, Stephen Rothwell --Sig_/DtR4FonmnT/mKaEeFXLn3BZ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmDJOP4ACgkQAVBC80lX 0Gwvfwf/YixMUZJCuQBbmrJVUsBfG8dmEZFa/OYgYQX2Riv//8RQGxX25K7aD5nZ C35SPhEzfkH8aeB4Cgap679QDBB1Ds4IJ1V/nkiOLU4/qzEZXLKfd5PHEYt5CsIY x6WD4Qu/5o7BjaCqaQsyAXyzaM8kdysb3JXlUvPVcM5vusSbzERDFo7RoFXchody zRHaM88nA1oVuTGJdPlIuiSfeU278NOU8YKxhsbVYGt/OhPgJHNh/c2fh1HyXa+B ZaEcLS95uEHdflq4Uzkb9D3+X9hWpCbjc4UyME1LuvRkHR44vCOy6WGjQ4M7R3w7 D0DqEO6s+/otsRuqov3u4LupNJTOUg== =K0mT -----END PGP SIGNATURE----- --Sig_/DtR4FonmnT/mKaEeFXLn3BZ--