Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp2170019ybg; Fri, 5 Jun 2020 07:19:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwtbdZ/F1NYTLRGRJ4J+y6DP8di7qvJ4+QERjJ9bVUD6M4Neqo8tynx7LduuUoixGSDIKF X-Received: by 2002:a17:906:3cf:: with SMTP id c15mr8841180eja.186.1591366789524; Fri, 05 Jun 2020 07:19:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591366789; cv=none; d=google.com; s=arc-20160816; b=cbbcaGRMcjekK7DWRYy2US5XII8fct/GwGUvkyWs5hDsGMJqwgdChCUgSHVOEGY6sz ybPqcCeq2uGGBZPSflvfEyj+9OVA+8xO1Qf2h0jaLP8O0AEJX6j0cWW4lSq6lx1+jO9M mpYyy9wzFbFAgKZMVEMC1tMCOAx9Cr3H0rpHuTOyu9ujucTsCqDPwjhXJs3DwRvUcp65 qOFXN1+aeqzUXUc/n+DzLa72WCujdx9MmM+OpTMbz3Wgi6q+Q2SclV+itTwLDZks1Ecc YuV8D4qyErJNTmJtjJYYnT9rM1H3466mU7Nxtq8RN4TySTqy14tDTTqhCqcU3ur2CsHI 2HqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=wedy4cKwLDkJueE39OQ5A/Ljrp4rU5VxwwQZUZ2wqrI=; b=WL9U2gh8F+Q0C4lXR+afRs+zqGh+FPBrUs40scRLrKQd4EvfleOolIHvL8hM4So4Ne J8r634wVeu58/LtIbqdinzq8oRvMke8ufSXAE3iW82wqIAunSdignFeKq9Tsp/wrY13k kaqev66SvZWxOk+YxXYkqTE5e7j+PxQ69wTrPBOYW6A3EdWKeEutQ7J/8sjv1SStDrJH zJKLAnDBzWmcM/c0thqWl157sbLOTRf+e73MEKNiaMKlLsU4K2gGAeS/3LH5B/LNga0a kExP94ZvprXOcZb/EZtejbgndlIcq29dVU3Bschg5L/lhKLjwVqieBB96Nj2qNE3WfHm yRKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=hBjPJaEP; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i8si3597504edj.519.2020.06.05.07.19.25; Fri, 05 Jun 2020 07:19:49 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=hBjPJaEP; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728010AbgFEOP1 (ORCPT + 99 others); Fri, 5 Jun 2020 10:15:27 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:13629 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726553AbgFEOP1 (ORCPT ); Fri, 5 Jun 2020 10:15:27 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1591366527; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=wedy4cKwLDkJueE39OQ5A/Ljrp4rU5VxwwQZUZ2wqrI=; b=hBjPJaEPLutlToyvVLnwUek1PoBAX/LmfRcCpw2Bx0j+y6en65SMd7rOGiJPG3gZNmb6KHpO 1EZXrSPRJVceoiehjZBODlDZLw0CW0v2bfL5J6arsFrqj3sE21vIxdC9alX1dYLdx2InqyRn 1lJsy4H9HWlKnjef8hs0l5oRNnI= 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 smtp-out-n11.prod.us-east-1.postgun.com with SMTP id 5eda5368ea0dfa490ee91cc7 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 05 Jun 2020 14:15:04 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 00B07C43391; Fri, 5 Jun 2020 14:15:03 +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 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: saiprakash.ranjan) by smtp.codeaurora.org (Postfix) with ESMTPSA id 4ECBBC433CA; Fri, 5 Jun 2020 14:15:03 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 05 Jun 2020 19:45:03 +0530 From: Sai Prakash Ranjan To: Jonathan Marek Cc: linux-arm-msm@vger.kernel.org, Andy Gross , Bjorn Andersson , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree-owner@vger.kernel.org Subject: Re: [PATCH 1/6] arm64: dts: qcom: sm8150: add apps_smmu node In-Reply-To: References: <20200524023815.21789-1-jonathan@marek.ca> <20200524023815.21789-2-jonathan@marek.ca> Message-ID: <66453e142fb3798b86159a5d473efabb@codeaurora.org> X-Sender: saiprakash.ranjan@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-05-25 15:07, Sai Prakash Ranjan wrote: > Hi Jonathan, > > On 2020-05-24 08:08, Jonathan Marek wrote: >> Add the apps_smmu node for sm8150. Note that adding the iommus field >> for >> UFS is required because initializing the iommu removes the bypass >> mapping >> that created by the bootloader. >> >> Signed-off-by: Jonathan Marek >> --- >> arch/arm64/boot/dts/qcom/sm8150.dtsi | 91 >> ++++++++++++++++++++++++++++ >> 1 file changed, 91 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi >> b/arch/arm64/boot/dts/qcom/sm8150.dtsi >> index a36512d1f6a1..acb839427b12 100644 >> --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi >> +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi >> @@ -442,6 +442,8 @@ ufs_mem_hc: ufshc@1d84000 { >> resets = <&gcc GCC_UFS_PHY_BCR>; >> reset-names = "rst"; >> >> + iommus = <&apps_smmu 0x300 0>; >> + >> clock-names = >> "core_clk", >> "bus_aggr_clk", >> @@ -706,6 +708,7 @@ usb_1_dwc3: dwc3@a600000 { >> compatible = "snps,dwc3"; >> reg = <0 0x0a600000 0 0xcd00>; >> interrupts = ; >> + iommus = <&apps_smmu 0x140 0>; >> snps,dis_u2_susphy_quirk; >> snps,dis_enblslpm_quirk; >> phys = <&usb_1_hsphy>, <&usb_1_ssphy>; >> @@ -742,6 +745,94 @@ spmi_bus: spmi@c440000 { >> cell-index = <0>; >> }; >> >> + apps_smmu: iommu@15000000 { >> + compatible = "qcom,sdm845-smmu-500", "arm,mmu-500"; > > This should be qcom,sm8150-smmu-500 and also you need to update the > arm-smmu > binding with this compatible in a separate patch. > I tested out this series with my coresight patches for enabling SMMU translation for ETR on SM8150, it works fine. With this above comment addressed and with Bjorn's comments on commit description addressed, Reviewed-by: Sai Prakash Ranjan Tested-by: Sai Prakash Ranjan Thanks, Sai -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation