Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp699386iob; Wed, 18 May 2022 10:55:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywJFdAsLixUqaRynjU2XCQfzdnCFjiDIXv/DdxxRPrzvlKXdZU54HACUgSat4rxVRepZKf X-Received: by 2002:a17:902:f54e:b0:15e:9158:1237 with SMTP id h14-20020a170902f54e00b0015e91581237mr816508plf.37.1652896523233; Wed, 18 May 2022 10:55:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652896523; cv=none; d=google.com; s=arc-20160816; b=tkpnyRIk87nuBIt5AVyF077zkZUACoTut9CuLEONHOM0lq/qLF3t03BFiiIdF9cSKP ZxZ5n+XWBV/ak4GFTJiZaOYAPahiKhFg9NCrcOzLnOhTA+pnSJ2KdO2bC+U3bpW6yNzx JpnHsV0qOSCQ4yrIdFz0dP1NCaIx23ya9WXMzierYPM5UKbhONIjoBdX4eh/Nto35Lgx E0rHWbtMZATlSyzMfF52Miaxl3b41Vh17pehHVsZj0EDGOBeg8dUj+e1hveMgGtS9+Sm 0OzkEyB51rz+vngPTnvlaU6t9KpeerXO7mGPZpQuGBA6lXjCTac78cJAF+kghL/qY4mg nDmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=wAFhBNGkOYqIauqmAMb6moZVrSw8HOJBfdYpqesZq6Y=; b=GHi3Z7oPhawEMAuZW8mojjUgjbf/9xr+Rh8n6Dwsz4B/MaDC4s4Senca4/NqritPDE 726MRyt9qIq7X3gBniNjqzhr2UN7YbhE1gc3+62qOcvgp20orx7AYx6leJvqvPm+9CXa oDSU9SYxuV6Tj9Xlwyv1rL+5UvV1Y2Gs0a42yXx86LOF3dlBROIoCQqxRQpjBdjAXGLs c4F0fvYTc4v+tIvfETgiSqNUxxscm5TAbSWXVqdx+mylTVKkUk4ji9EUbRJ6wCtKW+al vABpE+Zm5gFccJzHXLBGbA0O17vzV6jJHHLVY5X4fg+CDOPvE3PIyt6FdTvvqCykf1uG OBSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vs9ButGw; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id z12-20020a170902cccc00b00159071eb8f6si3510059ple.502.2022.05.18.10.55.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 10:55:23 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vs9ButGw; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 25E9D21AA8F; Wed, 18 May 2022 10:54:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241167AbiERRyn (ORCPT + 99 others); Wed, 18 May 2022 13:54:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231372AbiERRyk (ORCPT ); Wed, 18 May 2022 13:54:40 -0400 Received: from mail-yw1-x1136.google.com (mail-yw1-x1136.google.com [IPv6:2607:f8b0:4864:20::1136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17E8521A966 for ; Wed, 18 May 2022 10:54:40 -0700 (PDT) Received: by mail-yw1-x1136.google.com with SMTP id 00721157ae682-2fefb051547so32901107b3.5 for ; Wed, 18 May 2022 10:54:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wAFhBNGkOYqIauqmAMb6moZVrSw8HOJBfdYpqesZq6Y=; b=vs9ButGw7170Q/jEs+fO1lQveZiTXXsgwXYCkgtgQO09RlQztc3/GxtOitWuHeXu2+ /m5UIMGqa+jiWxNGKo3H1/D9oMvC/sYdhfX+LOTuCNJVTY8nvtyyodAe7NB4yVZ6tK0+ c/SdQO3Y6jVZmVJAXeNoY/5fs3sDRwtH/fP80XkLq3cUjQ/Rc4dX5GTWC9+tzMSg48sW Flac7WAF1NQggHKxkWDJIJ6Vh4LASxdp06hGbSQOl1y08Guq5Y61mXm47is1jS7G/Wjl EixXBi++mSL7Xffq0yM4KMyLbCrYwJueODALS+TYjh7Z5o0zOVDvtAixJzlR7m41G89u Jdtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wAFhBNGkOYqIauqmAMb6moZVrSw8HOJBfdYpqesZq6Y=; b=4CdsDOqS9q92CDfU+w1ukAk9/1FIFulFM8HX4pcmqogZ6fI67xQ3MpLX1hpJYJNdKL bwvkTOs/3BqkOsWb0sTOw0vcZxP7otl3YmMCzthG7JMrInoSJ4g30KTthWT/1WXJcYu2 t2mbPUG4Q0TcrQurHyfev0Y05gnD42AyGTxwHyhnR+qKyqSI8+EglTB6SiV6B5V7eut9 kfyy8b7vO0wl5UmX5x6ruN5qbwVlECYcrYAuaL91EoXvzUx4Fu6WeqcoCk3AalfVs/hl 4z9WfdyogptMCBxYD8F8wzEX7xdZCmuuE4McFExoldAQ0Hi2IXYjyDx86UuNS/T042Cf O0kA== X-Gm-Message-State: AOAM533PkhRmGyAwWWYN+mgSi3ohZTN22F9p1K542oAYqN9MVvjk4F7L i6FiXmeqLhi3AihZladHSFpK4utMC02y6XsIMBcJuA== X-Received: by 2002:a81:1dcf:0:b0:2fa:d094:14ff with SMTP id d198-20020a811dcf000000b002fad09414ffmr642224ywd.10.1652896479286; Wed, 18 May 2022 10:54:39 -0700 (PDT) MIME-Version: 1.0 References: <20220517101410.3493781-1-andre.przywara@arm.com> <20220517153444.GA1057027-robh@kernel.org> <20220518165421.GF3302100-robh@kernel.org> In-Reply-To: <20220518165421.GF3302100-robh@kernel.org> From: Peter Maydell Date: Wed, 18 May 2022 18:54:28 +0100 Message-ID: Subject: Re: [PATCH] of/fdt: Ignore disabled memory nodes To: Rob Herring Cc: Andre Przywara , Frank Rowand , devicetree@vger.kernel.org, linux-arm-kernel , "linux-kernel@vger.kernel.org" , Ross Burton , Ard Biesheuvel , Catalin Marinas , Will Deacon , Russell King Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 Wed, 18 May 2022 at 17:54, Rob Herring wrote: > > On Tue, May 17, 2022 at 08:19:47PM +0100, Peter Maydell wrote: > > We generate the DTB with libfdt, so source-only information > > isn't something we can put in, I think. (The quoted DT fragment > > in this patch's commit message is the result of decompiling > > the runtime generated DT binary blob with dtc.) > > Given the runtime aspect with overlays, it's conceivable that libfdt > could support setting labels some day and then dts output maintaining > them. > > We could also consider a standard node name such as 'secure-memory'. > It's a whole can of worms though on how secure vs. non-secure memory > (and other things) are represented. Mmm. We put in the very basic parts years ago in Documentation/devicetree/bindings/arm/secure.txt which is (and has remained) generally sufficient for the QEMU->Trusted Firmware-> maybe uboot->Linux stack, which is pretty much the only use case I think. (My intention when we wrote that up was that memory that's S-only would be indicated the same way as S-only devices, with the secure-status and status properties.) > > Are we just stuck with what we have for historical reasons ? > > Yes. If we were designing this, we'd probably have 'compatible = > "memory"'. We're likely just stuck with things how they are. Mostly node > names haven't been an ABI and we're just trying to be consistent in > naming and use of unit-addresses. So, do you think it's worthwhile/a good idea for me to rename the DT node that QEMU is currently calling "secmem" to be "memory" ? My default is "leave it as it is", for economy of effort reasons :-) -- but it's an easy enough change to make. Though EDK2's dtb reading code just looks for the first "memory" node and assumes it's the big one, so changing the node name would make us reliant on the order of the two nodes in the DTB unless we fixed EDK2 (which we should probably do anyway, tbh). thanks -- PMM