Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp5106279pxb; Tue, 28 Sep 2021 10:38:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZlCQ89eFE5DxrqZi0xJ4l7hC7ozSDJ2dvcNTqxJViAPHKHZOo/QKBtslsnT4Ce0gJ5u5v X-Received: by 2002:a63:5608:: with SMTP id k8mr5670786pgb.287.1632850685891; Tue, 28 Sep 2021 10:38:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632850685; cv=none; d=google.com; s=arc-20160816; b=T4293jqOE0u5sdt68WIht0dJPfJyfgMgSF7BjQmj0mMCgHLANYE+e8S2h56bGjD2E0 xQtfEzI4TeJbOT6EEoOFFk6/Q9nsb4vN5WuriB/OwZ8X5r2oQVlIAuo96UU3gZG5lWH1 SZguTyRw/UKxbjdxsI9yzvMGsZh3MC3/Saaw+Cgx901fEMFNLvpP2ry42PL3Z/1XEWlD WRKCHNNaqONC7pCWjtMWODi6vxLNu8TE9s3GKSa7c86ttbFvfokzDJNMXeSYq+i0r2Oy w83raqYVEEawg1A6wHnY+8z4pMcJJnGD7y2rmcDuVZFjeM7RaFs1xEeMCvXYtWUtq0q9 Qa7A== 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=lCgswZWy92+LmpcRQEV9vzW3b5HXMSuoK+LVfbP3jsg=; b=tU23bmL5f7I+78r104N424Cgk7nta7OaU6da7WK3fSeeCwWxgbrHCvMNAkO+XfjQyC sK3nZc5nPUbrNsymaRDnCMYPh8W18g/tFbIBfX7BZoYWM5+CwRTPH4edYr4oH4o/TkcB LTAxjx4YSnSoIofrGs3pgpseW/W7pCM2S53en4O6Ei+0uMsaHyxUAnfKnuAy1iXYvEex 3YeZ/G8m0RATRR1kfNuc2WMnLF1Uk3fCJfhBhx0NIl3H6QItQZHYBp6nl6FabG2JKsHY miUyWHOdElweZGxe+edxNb+gU8D25u03mjhxj7sivckqrqamL7e7dGffwdJM8TNn+Eqv g4nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J3CdxDwH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p5si24681213pgk.493.2021.09.28.10.37.39; Tue, 28 Sep 2021 10:38:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J3CdxDwH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S242176AbhI1Rg3 (ORCPT + 99 others); Tue, 28 Sep 2021 13:36:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:33778 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242171AbhI1Rg3 (ORCPT ); Tue, 28 Sep 2021 13:36:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5BF0B60F21; Tue, 28 Sep 2021 17:34:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632850489; bh=Yfz08pV/gYDk+AOKJrmWrje1tFITZe7lHU+DG0nHe6Y=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=J3CdxDwHAF/IOVbYE4xxqV7Vv8NFVxTUJP/d0ax6bFYiBdgoclg3VgLO2tz+ndDj6 +ALOO3Q4lykpwvkmwFGWwExz6DdJAFZ0iuB8bxFtyAKAThiJkG8mOrDBnUJsmwalX3 lwc0oIQ9bR4XG7u3OK4l5ZmFbHZyRmtQD4YS1e4O/5IXOwXJDzD9lfJETjT+fqIR2T RjVotFLwDdAzOAsmhjNJm/i1OzlCBs1sihufF6ZcFyQ040TPXSWikvUK0ukHDMoa/L 1G/yoeUpb86zY55GZYMIPkWr4xJIJswTPqkUkzXPoBAd8Qy7KdRa6vO9DtPgDTTXZ5 kjEfswrDsJRPw== Received: by mail-ed1-f50.google.com with SMTP id v10so82125349edj.10; Tue, 28 Sep 2021 10:34:49 -0700 (PDT) X-Gm-Message-State: AOAM530Gy5f1Yzs1H78rU29janvahhEtul0GGW4UGzprPIKUVg0ss8tM S2NRq7SFZLPfMtiolM/WrNMtcoXMv3x45djf6A== X-Received: by 2002:a17:906:7217:: with SMTP id m23mr7883864ejk.466.1632850487958; Tue, 28 Sep 2021 10:34:47 -0700 (PDT) MIME-Version: 1.0 References: <20210928044546.4111223-1-bjorn.andersson@linaro.org> In-Reply-To: From: Rob Herring Date: Tue, 28 Sep 2021 12:34:35 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/3] dt-bindings: soc: smem: Make indirection optional To: Stephan Gerhold Cc: Bjorn Andersson , Andy Gross , Frank Rowand , linux-arm-msm , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 28, 2021 at 5:22 AM Stephan Gerhold wrote: > > On Mon, Sep 27, 2021 at 09:45:44PM -0700, Bjorn Andersson wrote: > > In the olden days the Qualcomm shared memory (SMEM) region consisted of > > multiple chunks of memory, so SMEM was described as a standalone node > > with references to its various memory regions. > > > > But practically all modern Qualcomm platforms has a single reserved memory > > region used for SMEM. So rather than having to use two nodes to describe > > the one SMEM region, update the binding to allow the reserved-memory > > region alone to describe SMEM. > > > > The olden format is preserved as valid, as this is widely used already. > > > > Signed-off-by: Bjorn Andersson > > --- > > .../bindings/soc/qcom/qcom,smem.yaml | 34 ++++++++++++++++--- > > 1 file changed, 30 insertions(+), 4 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,smem.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,smem.yaml > > index f7e17713b3d8..4149cf2b66be 100644 > > --- a/Documentation/devicetree/bindings/soc/qcom/qcom,smem.yaml > > +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,smem.yaml > > [...] > > @@ -43,6 +55,20 @@ examples: > > #size-cells = <1>; > > ranges; > > > > + smem@fa00000 { > > I think this is a good opportunity to make a decision which node name > should be used here. :) reserved-memory node names are kind of a mess, so I haven't tried for any standard... It needs to be solved globally. > > You use smem@ here but mentioned before that you think using the generic > memory@ would be better [1]. And you use memory@ in PATCH 3/3: > > - smem_mem: memory@86000000 { > + memory@86000000 { > + compatible = "qcom,smem"; > reg = <0x0 0x86000000 0 0x200000>; > no-map; > + hwlocks = <&tcsr_mutex 3>; > }; > > However, if you would use memory@ as example in this DT schema, > Rob's bot would complain with the same error that I mentioned earlier [2]: > > soc/qcom/qcom,smem.example.dt.yaml: memory@fa00000: 'device_type' is a required property > From schema: dtschema/schemas/memory.yaml > > We should either fix the error when using memory@ or start using some > different node name (Stephen Boyd suggested shared-memory@ for example). > Otherwise we'll just keep introducing more and more dtbs_check errors > for the Qualcomm device trees. A different node name. A node name should only have 1 meaning and 'memory' is already defined. The main issue here is what to name nodes with only a size and no address. Rob