Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp15134225rwb; Mon, 28 Nov 2022 08:17:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf41PDit49iNwyWiugaQmlecrk0DKVO09FwjtXcHVDvTXVcjtf4t7AP1wZtggJkt2zx8q4J6 X-Received: by 2002:a17:906:ee2:b0:78d:3f96:b7aa with SMTP id x2-20020a1709060ee200b0078d3f96b7aamr30036482eji.74.1669652262069; Mon, 28 Nov 2022 08:17:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669652262; cv=none; d=google.com; s=arc-20160816; b=0xP+fvMNic1Q6d+QqrM4y4ImP6dj261EVhcBnh9/PA/hPanK5DcAw2Xj5ByOBZQqVF I6xNPCHvWWdJy/lo/BdItGj1yHwa71+x54M2Qygc/V33yweW43Dj36lng50rwhn9IzFy nO+16g06ybthP8SLEH5a9xJXFbz/zgy3wbzoioudyAlcwxmJtzoMWZZE85/AxWmwVClc vsy3VMq/jaOtCCwzbwKjBnyd6WjkwCaPyCgJjhBxNX1mYggvplDB0TSNhCad2eFdi6h4 dWueXuEOHktUNDPpVsRTFXmyY3ZmAzDtn59v0rgU94fwSE7kd58+zA+yGgICPtxEv4MU rjOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature:dkim-signature; bh=G+/cSTvQGSKuihsIOEU271usRMSNRubkrFCCNR/vHtA=; b=b3qXaivRIi/Eymfb+ePdmEQji0RlqR0xVZH4+A9vvvODro806y9sqmryF4zQ+aPmyC TVtXo6rtVOu7zchEe7rKLohLkoyM0ui5H6bFPOotCsH96MtOcqW61ms+3AGi2LGrG+uj 5dYgU4hsgtJwA8kEle+L2Jt/eC0yM0KqSFarzpjwYvrnVl0c92eaSd1BW/LrbyIKhGb9 66Dk+6skj/h1nte7m2AaCQufAWMZcJNEBQnWPBahBQweo+yzkqiFQH8qiK1C0DUmftj5 yrLQnvpzzXJIMFxh0wr1EgYjkPTuLdQC+LEjlnCeGprv/Juu9k51bjPJr4GpI9vkLekm EjWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=gvhOdQAh; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=17hrYVGA; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v25-20020aa7d9d9000000b004617bf36c3csi9450865eds.308.2022.11.28.08.17.17; Mon, 28 Nov 2022 08:17:42 -0800 (PST) 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=@suse.de header.s=susede2_rsa header.b=gvhOdQAh; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=17hrYVGA; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232545AbiK1QDu (ORCPT + 85 others); Mon, 28 Nov 2022 11:03:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231843AbiK1QDt (ORCPT ); Mon, 28 Nov 2022 11:03:49 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B3361D663 for ; Mon, 28 Nov 2022 08:03:48 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id E7CBA21BB4; Mon, 28 Nov 2022 16:03:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1669651426; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=G+/cSTvQGSKuihsIOEU271usRMSNRubkrFCCNR/vHtA=; b=gvhOdQAhJOZ4d4F6QzPEf/iGvAJG9p9Xc4ACcjX+wne1a7VrqG8PXWZy3ZfROltWvHrvHU IU2MMki6K0LM2nM1sKkTeUxn+3boC2eSann5EBDMw1ZYMnhzAexyPjx9XE6EZPrgViqzDt fsCq1qb6NvOF9WRaRNPfjAA9ZVbB/nc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1669651426; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=G+/cSTvQGSKuihsIOEU271usRMSNRubkrFCCNR/vHtA=; b=17hrYVGACstTDz1PANhqhIcXlO7rnmOPs7o0Cu9lacgJq7ncDqe9QrtQOgKoafjwzY+zq2 YJBS5Fsg57yRZwBw== Received: from hawking.suse.de (unknown [10.168.4.11]) by relay2.suse.de (Postfix) with ESMTP id B17632C141; Mon, 28 Nov 2022 16:03:46 +0000 (UTC) Received: by hawking.suse.de (Postfix, from userid 17005) id 8E81744002E; Mon, 28 Nov 2022 17:03:46 +0100 (CET) From: Andreas Schwab To: Jisheng Zhang Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Atish Patra , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] riscv: head: use 0 as the default text_offset References: <20221128152442.3403-1-jszhang@kernel.org> X-Yow: ...Get me a GIN and TONIC!!...make it HAIR TONIC!! Date: Mon, 28 Nov 2022 17:03:46 +0100 In-Reply-To: <20221128152442.3403-1-jszhang@kernel.org> (Jisheng Zhang's message of "Mon, 28 Nov 2022 23:24:42 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 On Nov 28 2022, Jisheng Zhang wrote: > Commit 0f327f2aaad6 ("RISC-V: Add an Image header that boot loader can > parse.") adds an image header which "is based on ARM64 boot image > header and provides an opportunity to combine both ARM64 & RISC-V > image headers in future.". At that time, arm64's default text_offset > is 0x80000, this is to give "512 KB of guaranteed BSS space to put > the swapper page tables" as commit cfa7ede20f13 ("arm64: set TEXT_OFFSET > to 0x0 in preparation for removing it entirely") pointed out, but > riscv doesn't need the space, so use 0 as the default text_offset. Doesn't that clash with the memory reserved for openSBI? -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."