Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F17CC4338F for ; Tue, 3 Aug 2021 05:46:30 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8823460F41 for ; Tue, 3 Aug 2021 05:46:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8823460F41 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5B9D882D88; Tue, 3 Aug 2021 07:46:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="SqyEJYlC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8D5A382DB4; Tue, 3 Aug 2021 07:46:25 +0200 (CEST) Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B16FB82D84 for ; Tue, 3 Aug 2021 07:46:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ilias.apalodimas@linaro.org Received: by mail-wm1-x32a.google.com with SMTP id n11so11698843wmd.2 for ; Mon, 02 Aug 2021 22:46:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Nhk3bMaa6XS0C5hwEchzEn/N9PdVMtY9GLywgF5e5tA=; b=SqyEJYlCf3nY8YMf4jLdiqk1uQhnLL8ChB3NbKDDTE/7wsHtswJSIdQbkyfC3kMm5+ rvjzYRQU2mzMTT9zBQk5G5nBpWiJz4pGu5o8gV7nP8muGS439+LReZ2FmHCcqcdEO+H3 PzSqXyHPKtLG8enecvgmTVa7z/MIN/q6CnjoIzRJZpxa5xHQHe5y7pwWfxcnMNGaRWsR Qwp+/xPrA+EAVUfITed4BRONAXnAoHFRzIDFsWtbX2so/KadXnkhlw+do6oZnW+UpAR9 unz4nfZZhTC67HgdLGO0w7IhL1VbnRqyBqsSkKPZjLOTGhTxBbalsBBSMvi0jgNm1ML5 z4Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Nhk3bMaa6XS0C5hwEchzEn/N9PdVMtY9GLywgF5e5tA=; b=WuzDv1IrcNKVpQyVdyUPrI2ePiIUsaa7/HdtK8alIjOQcfFvMVXmuLkIjIRoNJhQwd jWEY4vjc80/l7CT9gyIUpmHJcKlR2QPuuJqgEyjHVuvL2dhRpZ5bOoHLL+ZugLwT24vr efztSn31euhc8nXv5b2zNHW0AVnSJjQT2jJXC7EPNmFiKs61dJCgoi2L1C++/LPnkjfn 9mVtwb7lXvA6zqOyBT/rhyPuwFjfEEU3FUjTTrg5NDVYFLW+kcrBfdmibE+qRlPYME73 xM7VhG6XouMJDwDM5KMhAEHPWt6l51Wb7E26bFg4s2nOg4QDOe2MEtUinilSaRcAKCJ4 iyDg== X-Gm-Message-State: AOAM531h+unpPlRFvIYwPnjqSRkdQpntTYkxUhrZ4WM9kBpn+5AcCDzG T6Hy9vMw3AUn2tMAj4L4u1u50g== X-Google-Smtp-Source: ABdhPJxxBXbIIuvZMn6a71RfMzTwOyEi78AL14BpprheV6NAclpCzvayOxQAn5D18PlpckFiUHyYaA== X-Received: by 2002:a05:600c:3656:: with SMTP id y22mr2314935wmq.58.1627969582256; Mon, 02 Aug 2021 22:46:22 -0700 (PDT) Received: from Iliass-MBP (ppp-94-66-249-72.home.otenet.gr. [94.66.249.72]) by smtp.gmail.com with ESMTPSA id p8sm13400362wrn.79.2021.08.02.22.46.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Aug 2021 22:46:21 -0700 (PDT) Date: Tue, 3 Aug 2021 08:46:17 +0300 From: Ilias Apalodimas To: Simon Glass Cc: Heinrich Schuchardt , U-Boot Mailing List , KASHI Takahiro , Alexander Graf , Masami Hiramatsu , Sughosh Ganu Subject: Re: [PATCH v2 0/3] efi: Minimal revert to rodata change\ Message-ID: References: <20210802144431.2396678-1-sjg@chromium.org> <4ef34b43-12ac-57e7-95ba-14edcaca0413@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On Mon, Aug 02, 2021 at 01:22:18PM -0600, Simon Glass wrote: > Hi Heinrich, > > On Mon, 2 Aug 2021 at 11:35, Heinrich Schuchardt wrote: > > > > > > > > On 8/2/21 4:44 PM, Simon Glass wrote: > > > The changes to move from devicetree to rodata take things in the wrong > > > direction for various reasons: > > > > > > - devicetree is where config should be stored > > > > We are not talking about configuration here but about bundling a file. > > > > > - it provides no memory production in any case, particularly when U-Boot > > > > What do you mean by "production"? > > > > Should you mean memory protection: I cannot see that the memory pages > > containing the devicetree are set to readonly. Furthermore setenv can > > Did you read the discussion? Neither can rodata, so this is a pointless change. > It's far from pointless imho. In that same discussion I pointed out that the DTB might need to remain r/w for it's entire lifetime, while .rodata is just a matter of missing code to switch pages to RO-. Thanks /Ilias > > completely replace the devicetree. > > Yes and 'mw' can overwrite memory...so...? > > > > > > is relocated > > > - testing becomes harder, with the suggestion of adding an entire new > > > sandbox build just for this > > > > > > Revert this until a new direction can be established. > > > > We can change the current solution *after* anything better has been > > designed. > > The original solution was fine IMO and the new one is much worse. Now > I see a patch to create a new sandbox build. All of this is yet > another parallel implementation within U-Boot for EFI. I have yet to > see any effort to address the parallel driver model. > > We should just use devicetree for run-time configuration. > > Regards, > SImon