Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1092634ybi; Wed, 19 Jun 2019 13:22:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxf+Tr77nldS/ag7W6HBqv/f9zy+EUaz5fPe+hwv8igmjoa0Rgens6M74nXDUpcRwNduoLb X-Received: by 2002:a17:902:124:: with SMTP id 33mr61111870plb.145.1560975723961; Wed, 19 Jun 2019 13:22:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560975723; cv=none; d=google.com; s=arc-20160816; b=n7D/UyT5yh1XuYhoMbwbaaiwiIGB9okyrQvx72y3yUMtOtwcNXFmkQeWTE6qH+qfN0 onq2HfXFddNUO0o7fVEaneFzG4bICQXkc5SiLcTPIwCyUpNrovLp14D1ijwyDMjy93PI 9ikjexqN8PMove/LncoracBO7lODrBmBNhMt2OskuNTB7BwaZfl2VTMXaWRNcuogwcWZ 6Dqja91D13yrTh/09lx15poSAmdFFjYkvESZmil+QF+FNN1zQ+5BMUdWQJmQkzy0fjkK Spk0q38AP0W/TGgJuQC+kdiQC6l51jAB2Grt8p2SGivwMQtbNJlSML8bL38tARhEASFX z5uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Dt5foXU+GSxuVMklIKIKR8ocB5pAKJsCTrBcOxfy50A=; b=Jj3bRjMPzrLClkHNCOU6SNrWXkqctc9Pc6HCJO5XoJxqlK6RLMFNOHezUEjAAuVCqO BFa4yVUioUoVOlcQAI2ut79VPvKwuDU9RwY907//iUUme87bOPO8HmvhVrXwcbzTphQ/ KHhx93Z9kWhI1AFmWX9+CnUncAX+VSb7mpo89aXI5D4deCd42R3+B2SzXfIb9xNbsDHu rd2UJuCHfK3S2SRZxClWLG5l9s6ptsU/fMOHTH9aJa16USukdqKehymoOx2X4bTnfuwA 526u04kI2+HGsVMm1Acb1zjpIB+GpbXc+U2la7btI9NoUL+WYTDPdAukKwkv0ihShXkU +i3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AraBg7zq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u9si3930042pgg.35.2019.06.19.13.21.48; Wed, 19 Jun 2019 13:22:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AraBg7zq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727076AbfFSUVi (ORCPT + 99 others); Wed, 19 Jun 2019 16:21:38 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:35099 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726143AbfFSUVi (ORCPT ); Wed, 19 Jun 2019 16:21:38 -0400 Received: by mail-ed1-f66.google.com with SMTP id p26so1160904edr.2; Wed, 19 Jun 2019 13:21:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Dt5foXU+GSxuVMklIKIKR8ocB5pAKJsCTrBcOxfy50A=; b=AraBg7zqtUA6q56HZl04tbp2kVZutw3FJe0SuFvMdzlxMIh0y3Mp5tKVIffuYBaWhJ JpxJcI3RzyjyEJ6p9od/SmjAsFYCIBUXkIft4Khrxe0AKzGYNCosKu912/XWzMdlZrQ+ pQIGYai+TE2OHtyzYVeetKp9QZHt0RWHwfjsVfa9CHReYql6rUPYo8qmQ8KvB1xT7xNv ktBWchctw34EaZdJKN6v9yMkpoGFee9QG1YpS/mAfmLdvnq81dig+lrfXLQvKU6Nea9u TGmh/XbuIW33FWdoT+srdSJ9LRZNlDE/ZNJwpOujVbhLBt7GaLqttSG6hB1tuLCxSj8c FlJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Dt5foXU+GSxuVMklIKIKR8ocB5pAKJsCTrBcOxfy50A=; b=DXwrTgmGpsjJuRyF7mGuW9G5zSB6VYtbwr4IY0jHi8znT4XmFET88Pl4NjSg7QJEoR 27qCYaHocHeS/HB30QeVpMyja0tCFv/9Vkqq2alEvam9BsN+60yO35rKUmUKwQihS4WG JuyYygDn+vukTiVRg3J6RL6TjeN9u65m0zWFQUjDmV1O9vJmRelKOXNIK01DhwWHDQ9Q 504mpoebLGOahEQdShfJ6gYB9BvK7NmAwvjHalmXScQ9B3YIWII1TPg3tBNtxE7XGaCW u4miPQc7CuIKVmbmFBif/Hh7umRAnUyTC8re2hCGLrCPjlueUV/kkj1u/BA7ue9lOpoz KBmQ== X-Gm-Message-State: APjAAAU535MTn6c8mCVKF9MqtcNETo8xvdKTr7SkEmrHlL9fg5vXf0uF Q2wyZq9rBRewGjbZZ/1A3PTJRNNuct8+A0aRpjg= X-Received: by 2002:a17:906:f85:: with SMTP id q5mr12605405ejj.192.1560975695671; Wed, 19 Jun 2019 13:21:35 -0700 (PDT) MIME-Version: 1.0 References: <20190616132930.6942-1-masneyb@onstation.org> <20190616132930.6942-3-masneyb@onstation.org> In-Reply-To: From: Rob Clark Date: Wed, 19 Jun 2019 13:21:20 -0700 Message-ID: Subject: Re: [PATCH 2/6] dt-bindings: display: msm: gmu: add optional ocmem property To: Rob Herring Cc: Brian Masney , Andy Gross , David Brown , Sean Paul , Bjorn Andersson , David Airlie , Daniel Vetter , Mark Rutland , Jonathan Marek , linux-arm-msm , "linux-kernel@vger.kernel.org" , dri-devel , freedreno , devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 19, 2019 at 1:17 PM Rob Herring wrote: > > On Sun, Jun 16, 2019 at 7:29 AM Brian Masney wrote: > > > > Some A3xx and A4xx Adreno GPUs do not have GMEM inside the GPU core and > > must use the On Chip MEMory (OCMEM) in order to be functional. Add the > > optional ocmem property to the Adreno Graphics Management Unit bindings. > > > > Signed-off-by: Brian Masney > > --- > > Documentation/devicetree/bindings/display/msm/gmu.txt | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/display/msm/gmu.txt b/Documentation/devicetree/bindings/display/msm/gmu.txt > > index 90af5b0a56a9..c746b95e95d4 100644 > > --- a/Documentation/devicetree/bindings/display/msm/gmu.txt > > +++ b/Documentation/devicetree/bindings/display/msm/gmu.txt > > @@ -31,6 +31,10 @@ Required properties: > > - iommus: phandle to the adreno iommu > > - operating-points-v2: phandle to the OPP operating points > > > > +Optional properties: > > +- ocmem: phandle to the On Chip Memory (OCMEM) that's present on some Snapdragon > > + SoCs. See Documentation/devicetree/bindings/soc/qcom/qcom,ocmem.yaml. > > We already have a couple of similar properties. Lets standardize on > 'sram' as that is what TI already uses. > > Also, is the whole OCMEM allocated to the GMU? If not you should have > child nodes to subdivide the memory. > iirc, downstream a large chunk of OCMEM is statically allocated for GPU.. the remainder is dynamically allocated for different use-cases. The upstream driver Brian is proposing only handles the static allocation case (and I don't think we have upstream support for the various audio and video use-cases that used dynamic OCMEM allocation downstream) Although maybe we should still have a child node to separate the statically and dynamically allocated parts? I'm not sure what would make the most sense.. BR, -R