From patchwork Wed Feb 19 21:32:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jordan Crouse X-Patchwork-Id: 11392725 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B1C311395 for ; Wed, 19 Feb 2020 21:33:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 925CB24676 for ; Wed, 19 Feb 2020 21:33:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=mg.codeaurora.org header.i=@mg.codeaurora.org header.b="eqIdB2y5" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727274AbgBSVda (ORCPT ); Wed, 19 Feb 2020 16:33:30 -0500 Received: from mail26.static.mailgun.info ([104.130.122.26]:57949 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727636AbgBSVdQ (ORCPT ); Wed, 19 Feb 2020 16:33:16 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1582147996; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=FNc3ciCRQ3MW3zYHSCJZEO99ElwwHxEZQHD1BF08YYw=; b=eqIdB2y5/xc0+ICshPbda4HnWtGrppEMLzBZiR4wE3CmkGHhDPA9M4dv0iBHsQfJCeMOggT9 U/PZP1/jTyNU5BsXD+Nyxpc5Q69AXYFRtNqPpXiXc5l52kazcFhv7f4XUsHOmma4OoLngj6r iY9yyPQ4eA/k0imso0gRrNAkljs= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI1MzIzYiIsICJsaW51eC1hcm0tbXNtQHZnZXIua2VybmVsLm9yZyIsICJiZTllNGEiXQ== 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 5e4da993.7fb5ee1ab8f0-smtp-out-n01; Wed, 19 Feb 2020 21:33:07 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 80BB8C447A2; Wed, 19 Feb 2020 21:33:07 +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 78C33C43383; Wed, 19 Feb 2020 21:33:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 78C33C43383 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: John Stultz , devicetree@vger.kernel.org, Bjorn Andersson , linux-kernel@vger.kernel.org, Andy Gross , Rob Herring , Mark Rutland Subject: [PATCH v1 3/4] arm64: dts: sdm845: Set the virtual address range for GMU allocations Date: Wed, 19 Feb 2020 14:32:57 -0700 Message-Id: <1582147978-31475-4-git-send-email-jcrouse@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582147978-31475-1-git-send-email-jcrouse@codeaurora.org> References: <1582147978-31475-1-git-send-email-jcrouse@codeaurora.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org GMU DMA allocations need to be mapped between 0x60000000 and 0x80000000 in the GMU virtual address space. Specify the dma-range so the iova allocator does the right thing. Signed-off-by: Jordan Crouse --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index d42302b..3c766423 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2911,6 +2911,8 @@ <&gpucc GPU_GX_GDSC>; power-domain-names = "cx", "gx"; + dma-ranges = <0 0x60000000 0 0x60000000 0 0x20000000>; + iommus = <&adreno_smmu 5>; operating-points-v2 = <&gmu_opp_table>;