Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp965107ybv; Thu, 20 Feb 2020 10:28:09 -0800 (PST) X-Google-Smtp-Source: APXvYqwg/OTuZVPeeabkGy+ihEMkuVFEF2y9Z6ttZ4hmtHp15S7rSwK9c3vdl7UhNN1A1RXsWnsn X-Received: by 2002:aca:ec46:: with SMTP id k67mr2992009oih.43.1582223289486; Thu, 20 Feb 2020 10:28:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582223289; cv=none; d=google.com; s=arc-20160816; b=hdQ9h8vZkurV2UylXyNKCja7IdhZVs5/GWQxubmDaVQVRx6oB/13J3WSV/J7ofFvcK SoXBtxggmbTHer2dNwxnYrrcqYiErU8HcHjMalNX7OaSYqAv9xNYZ7pv58VRCsPdQjTv 7GA3cB0CePaTGiL1+rBOjRXSvGPcqjZ8IUtFN/uGcrb1znGOt7by8wixxDgwNWKDDnuq /PBGin+gyZwh4APxe0TF2ax42eKbqJe0Nk5pTTY55yroeKiF0Vu3dOkMrkhdKaI2434s UrnaMLWnSLsCpIicr6VOlio21sV8rJuiOw7XhzG7GoJc2BPNhVkcVHsjmCfSP1PMHJte Ksog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature; bh=TtQnAzuOnawmPyg3olptl7R6/eprOggIRL7i9+AU+Zo=; b=gALuaUQzI4At42LCOltPXKom2FH62cVCluWpABaHrtsmYY0Is6XFUB6fib2VNt3s3n QQtE6f8KtXBZqtmX95lyYakKXIewJQuFc42W3oVAKPigpCg/kOJM38CxTAgjZii3kF3k 5lOaGcYlB7ffOdZaYlloENbIctwph1K/THjYYPcsnDgNXI14Z/fl1fuJoBj7rzPyePWB 6WZtCX2OgQ1M01r4Nn4zn+KKUfC/6HYRf+CxvyJxp5a5gGOQU71GLbUCZ9kl4hlqaumW uSfwUn29DNAkFcV4ws29hGUwPVultVbk/lSQf28rOl5rxek8X0PylTEyaeZJi2knSka0 exfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=OVnOr4hZ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l22si46633oie.32.2020.02.20.10.27.57; Thu, 20 Feb 2020 10:28:09 -0800 (PST) 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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=OVnOr4hZ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728834AbgBTS1S (ORCPT + 99 others); Thu, 20 Feb 2020 13:27:18 -0500 Received: from mail27.static.mailgun.info ([104.130.122.27]:58217 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728759AbgBTS1R (ORCPT ); Thu, 20 Feb 2020 13:27:17 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1582223236; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=TtQnAzuOnawmPyg3olptl7R6/eprOggIRL7i9+AU+Zo=; b=OVnOr4hZMQwQLNkXA2OhrW4zppMV4L1pM1jb0EM9jvAxQNG9sTRldW6pvypfUeN+k7OO7/Mv m6ds6n3FnJAyquQlKxOjhzifS6jKTFZSSg+BTDzyegatqgUs+w1jElPc9SWOw5k32n3Ig15J LKz1W8YxHlWIrNuPkFMx8a0sYB4= X-Mailgun-Sending-Ip: 104.130.122.27 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e4ecf79.7f0c62fb6f10-smtp-out-n01; Thu, 20 Feb 2020 18:27:05 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 4ADFAC447A5; Thu, 20 Feb 2020 18:27:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from jcrouse1-lnx.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jcrouse) by smtp.codeaurora.org (Postfix) with ESMTPSA id 7253BC4479C; Thu, 20 Feb 2020 18:27:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 7253BC4479C Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=jcrouse@codeaurora.org From: Jordan Crouse To: linux-arm-msm@vger.kernel.org Cc: smasetty@codeaurora.org, John Stultz , Sean Paul , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Rob Herring , Rob Clark , David Airlie , Mark Rutland , freedreno@lists.freedesktop.org, Daniel Vetter Subject: [PATCH v2 2/4] dt-bindings: display: msm: Add required dma-range property Date: Thu, 20 Feb 2020 11:26:54 -0700 Message-Id: <1582223216-23459-3-git-send-email-jcrouse@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582223216-23459-1-git-send-email-jcrouse@codeaurora.org> References: <1582223216-23459-1-git-send-email-jcrouse@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The GMU node now requires a specific dma-range property so that the driver can use the DMA API to do the few memory allocations required by the GMU. This sets the IOMMU iova allocator to match the 'uncached' part of the GMU virtual address space. v2: Fix the dma-ranges tag. The third pair should be the size. Signed-off-by: Jordan Crouse --- Documentation/devicetree/bindings/display/msm/gmu.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/display/msm/gmu.yaml b/Documentation/devicetree/bindings/display/msm/gmu.yaml index 776ff92..d11a073 100644 --- a/Documentation/devicetree/bindings/display/msm/gmu.yaml +++ b/Documentation/devicetree/bindings/display/msm/gmu.yaml @@ -83,6 +83,13 @@ properties: Phandle to the OPP table for the available GMU frequencies. Refer to ../../opp/opp.txt for more information. + dma-ranges: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: + Describe the dma-address range for the device. This should always + describe the range between 0x60000000 and 0x80000000 which represents + the uncached region of the GMU address space. + required: - compatible - reg @@ -95,6 +102,7 @@ required: - power-domain-names - iommus - operating-points-v2 + - dma-ranges examples: - | @@ -127,4 +135,6 @@ examples: iommus = <&adreno_smmu 5>; operating-points-v2 = <&gmu_opp_table>; + + dma-ranges = <0 0x60000000 0 0x60000000 0 0x20000000>; }; -- 2.7.4