Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3878024rwd; Sat, 10 Jun 2023 17:35:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ52NfXZcYAIfi4AlkK3QqQtJIPqAAQqwsWks1QFUohN6n5tijScEqf3mKQY+9XNj3Mp5yAy X-Received: by 2002:a17:907:36c7:b0:973:e69d:c720 with SMTP id bj7-20020a17090736c700b00973e69dc720mr5871470ejc.51.1686443759432; Sat, 10 Jun 2023 17:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686443759; cv=none; d=google.com; s=arc-20160816; b=v2RNWP+O9FvRSM3rCCJG5VBZFgCFQbOPtKzveCdv6f9ZjZ4rEOP1QFTG6LhBmoeEpl q2uv9BTUQ6wDHvaxJ00ESDAW37Qd2VibaamQGDNGLfubbXhYLeIrMDcm3zKJ/MdWQIqt Mbnw7s7jHSpHpMiNY2XY1aq5o6uMX3JuGQhwnwLfZzfboZqsEgnBCwERe7U0KsYHa7JL bUZKC0ZAdkby3WgxmMcQIX6iSTmksxwDu/e5cWyMbKvtBZbEPV0cVBpCFT/OoYkBARJ/ 9RXZrp2fAkOpseicl3nK5FaxNuSkcBf3PGvOGxWzSHUOAygPTMUZJ7NLHiKC0DTShUWY z69A== 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:subject:cc:to:from:date:message-id:dkim-signature; bh=tXNXBoX/8GWPAzhXpR088r8mBroUaYWOvlVGNgeHP54=; b=F29K4qarexqf7EVY/dDvToloYoxY0HXgeYoxUmo0pUZWuQ1ZBAINJ0K1D4A3UHDjQ3 3cRP06tLzTy5rJ7FZ/glB2E+EyHFPzx0NlFRt9Iaoj6BOlZG7XAuHu9VGQtHg1xK7oIG AtXfCAW+z1cumTOdzwgm8yPPv8twu9vcZrKcw+CitNjnrKSfq8ANZjkDxPZ/r+lkEB6N +g9EwXjX61HGMHzTkAt6lQ4iaggk6aiDvM3GpGAuc7AbPBec/pg+XWAUx1WjJbZEGRFJ 0Jh37AUvZf8XRrJwhqcfohyvc7CSWM0gca7HvBh1A3c28EC+pymMv+xAC6zyOfk2HrIx ksxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foxmail.com header.s=s201512 header.b=QUIZZLNW; 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=foxmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v24-20020a17090690d800b00977878c3965si3206822ejw.824.2023.06.10.17.35.36; Sat, 10 Jun 2023 17:35:59 -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=@foxmail.com header.s=s201512 header.b=QUIZZLNW; 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=foxmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232730AbjFJXbM (ORCPT + 99 others); Sat, 10 Jun 2023 19:31:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbjFJXbL (ORCPT ); Sat, 10 Jun 2023 19:31:11 -0400 Received: from out203-205-221-173.mail.qq.com (out203-205-221-173.mail.qq.com [203.205.221.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D531030F7 for ; Sat, 10 Jun 2023 16:31:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1686439865; bh=tXNXBoX/8GWPAzhXpR088r8mBroUaYWOvlVGNgeHP54=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=QUIZZLNWsxy9FQkbR2yluVKdvB6uTBQTY+2lCOb5ht41ZWGLzPFsiAczavHRltlZ3 0fwpVj0ZUBPdLsCdiEck3xyq99dJk5CjGqkZ1WM7K95M9GQqb5qPyUwo2SSPve9MRL jHrQt9O1OYxAqFpHZwSJJAwFHCFOKyH46fXtFgsc= Received: from localhost ([101.224.149.128]) by newxmesmtplogicsvrsza12-0.qq.com (NewEsmtp) with SMTP id 7C416E97; Sun, 11 Jun 2023 07:31:04 +0800 X-QQ-mid: xmsmtpt1686439864tva22xybf Message-ID: X-QQ-XMAILINFO: N55MlACpQQDvPmFA5/PFp+NUprXsnOa3gaeg+T0xnTJErPckCigM5gNWVKebJn Z0dB47tzM2nUg/kItl8WxsIjNkYDSHK4N8yC6Om9OrzKTGRQrCaNS4XbBM10EZHbkfuVQbXeDRCs YQz1kdqebSWsVPgNi0w5DDHschLNwO2nBiCwbEZxiLN9A5s0lNsjSIFifyyt70hVadNYpsn/6GzF EBENGowGgu1IAIcrvQp8+CpszIfeV3aIXWMYEkr8BvTrPzfiluExXEm1dYjMkQI63Huun2A+MSHs y2GfDN23pwkOBrfWD05k1C9SLI9o3m4lz2qbIjkjVoaUySKePNOivS2FfIsQK81QnxfdId07OZCj 9PvQNtKeNpjzIMlhWaSqFcdjXPCfP+gY+RQpcVVNUHOqyd17qxrtE9Wwy48orR+JMYx9lmMkPL0D faFQb8aCbk/YCrPRdC8RPJCzeK0k3JWOAoCfTQ7e+O+7ctlFHnNhGqQ4DTuWsd0jfM6NJb6WvwmG he8VW0FMNSKboloBNI04CAPmohAESTgUO1jPuWPqJ1CVUAXq1k2qgM3lcyBvAEEx5P72oJqtchkd iDUXjna4Xe/AHxiO7gY9KRe1D12RmxIFg3ESKsHRMnWpAlmqhdjoefjkG4wE05E4XHsXXxHAmVzV 0jdlcnZzwmG9F3wiPc/zXBkj++7SUz9C5gjD2nCtR8iMewQ/7syLuKtVWENmRGFQ0LgjelgjxGq1 XowJ6G09mS+DT6Q91z42+mEggtL2/+KqLDpsQCyptehxFDoi4uZCIsa+30N9e8pJgIxrFQv0dwN7 HmRPy2l3HnPmRo94+Fd/AC/1xt7y4lOrYIkG0vPd8+d1hA42nWzelpcFp+DGf/+oyH/bt+isyhUo QrWfJsS3hUByijKI2z4DStf/Id5+Jrb+oTrsfM9jHbJyQjRNW3piqtGAKnjgc58w40T0wJZYOvqQ EW15Wqlu7+VMYoBZQmbgItqozuu4ht Date: Sun, 11 Jun 2023 07:31:03 +0800 From: Woody Zhang To: Conor Dooley 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 X-OQ-MSGID: References: <20230610-ultimate-moisture-630c7672358b@spud> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230610-ultimate-moisture-630c7672358b@spud> X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, HELO_DYNAMIC_IPADDR,RCVD_IN_DNSWL_NONE,RDNS_DYNAMIC,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 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. Thanks, will send a v2. > >> The initial memblock metadata is accessed from kernel image mapping. The >> 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. >> >> Signed-off-by: Woody Zhang > >What commit does this fix? Fixes: 671f9a3e2e24 ("RISC-V: Setup initial page tables in two stages") Will add this tag in v2. Woody