Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4225331rwd; Sun, 11 Jun 2023 03:22:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Wpg4dNU1a8vdC9jJ8tB2gHsR+71VP/JvMEnvPA6eyqp42PCZQ0w/JC5mzSsKrB0AG9vvw X-Received: by 2002:a17:902:b10b:b0:1b2:4042:d227 with SMTP id q11-20020a170902b10b00b001b24042d227mr3420483plr.12.1686478923774; Sun, 11 Jun 2023 03:22:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686478923; cv=none; d=google.com; s=arc-20160816; b=PA4iVQ5tFEwgO4LUa7rc4+GhKQH5jl1fDXNfRj0FztoyC4+V6MEioJrybcv/x7W27O rD24W21We6YAMJOFC/1jvobCLVaGbGPobwLpSTxCjTBChGuckYYtTK0ViaBdU1/WJMQ+ vbuK3UCys8sQ26CKgDufLBKzgeuJVTCPdK5dDdIwE/NzbZC9irhbzePwxtIc/ae/MrFx PTOMG8susGmCJzTepHmG6IK2zxF/Y3pnpLHu1bNxdzOvVCQ7/cGEmWDkh3VF+ENsvJtO t2lDznNabTnkjqQ0B0euzKMqSpg+78S/FVFE9sTr8Of9+RmM9Vq0AhU0sNU5cNPlHsuQ JBdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wAjOnzPfZnGlA7O9lsl0eoKYfnAkZ5NGFNa2T2qGSKE=; b=dP5KFxtU6wJow3SWQ2WznFp1ZqDqp4kvhjfWd5lcRDLoi+OO9x2Oedabzr7b+Nbhpd xsLgKoiuHy03pPsIRr/okIMw/nkgTSVgQ2J90QNvTCjKguThuEoM45rm6UUVw4BY/QRq 64HVMVFIjK/MF5nvBmxHAVXfoEUfJdlOxutjLa2R9s6EzrFuHJF9Q86kbiqO/hPr4KAA /hnl9cSobIdvKcrq9NN6wJoY3/q5q26Hu/GXR2MrmerDzxjOTJA4j8io9xVBO7K+EN3v ASn3eJkDgt0bmiuZw32Z0Z+V1ubkPq5Si78OfX4YPENNVYcbU5RVbulVYhPkufLGUabe Ebhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AzJPSZYj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q21-20020a170902b11500b001b3c274fa2csi646582plr.187.2023.06.11.03.21.50; Sun, 11 Jun 2023 03:22:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AzJPSZYj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230233AbjFKKPO (ORCPT + 99 others); Sun, 11 Jun 2023 06:15:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjFKKPN (ORCPT ); Sun, 11 Jun 2023 06:15:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7544C10C9 for ; Sun, 11 Jun 2023 03:15:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C8DDA60D33 for ; Sun, 11 Jun 2023 10:15:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67459C433D2; Sun, 11 Jun 2023 10:15:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686478511; bh=wAjOnzPfZnGlA7O9lsl0eoKYfnAkZ5NGFNa2T2qGSKE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AzJPSZYj0GDOcWFsAzNWo0anRacJxynblCHDgzQ3locAUn+OGD9dgSPMF/7/eNjTv 7veUUA4Me8CcccdrFknRkGRc/OMH/mP1QLOEyxcW+dG/RPsfoECu0eXYV2xPOh+CoQ TGxfVnJDIt1yb0e6cqPcLq5QFMC5Y0GK5DVUN2YuRuizZc+/OqqAmMcDzW3B42/oeI vK7whovWacTtQxjNzR3+Qms2X9fq0KpJ94EYCA6m4AW5cWK3Fz5HsSrr+MBRoi/Vjx liR9OwGhzY0Df9BKYDMiISyIwaUNY/17b28ZIOCuDMTDkiYPIn9Z55/Q622qGL/tF2 JxvY203wwQSJA== Date: Sun, 11 Jun 2023 11:15:06 +0100 From: Conor Dooley To: Woody Zhang Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Conor Dooley , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] riscv: move memblock_allow_resize() after lm is ready Message-ID: <20230611-canning-antiquity-b60b360ea683@spud> References: <20230610-ultimate-moisture-630c7672358b@spud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tcjkC733yzWvP198" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --tcjkC733yzWvP198 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 11, 2023 at 07:31:03AM +0800, Woody Zhang wrote: > On Sat, Jun 10, 2023 at 04:44:19PM +0100, Conor Dooley wrote: > >On Sat, Jun 10, 2023 at 07:43:20AM +0800, Woody Zhang wrote: > >$subject: "riscv: move memblock_allow_resize() after lm is ready" > > > >s/lm/linear map/ if you resubmit, please. >=20 > Thanks, will send a v2. >=20 > > > >> The initial memblock metadata is accessed from kernel image mapping. T= he > >> regions arrays need to "reallocated" from memblock and accessed through > >> linear mapping to cover more memblock regions. So the resizing should > >> not be allowed until linear mapping is ready. Note that there are > >> memblock allocations when building linear mapping. > >>=20 > >> Signed-off-by: Woody Zhang > > > >What commit does this fix? >=20 > Fixes: 671f9a3e2e24 ("RISC-V: Setup initial page tables in two stages") >=20 > Will add this tag in v2. b4 should pick up fixes tags from replies, you shouldn't need to resubmit for that alone. Cheers, Conor. --tcjkC733yzWvP198 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZIWepwAKCRB4tDGHoIJi 0jFLAP4/9k6xvXQItKC98hykUy2EbSm56xcc/rZyYd0282CxiQD+IbGElxKlcEeF wREvj1JS6GIfm4zWBbYCWkvL6C0TkgM= =sFlO -----END PGP SIGNATURE----- --tcjkC733yzWvP198--