From patchwork Thu Sep 17 08:26:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 313006 Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp227779ilg; Thu, 17 Sep 2020 01:26:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrlXjkACba8ahKhIP1uJCSdVr0ETw//OwnP+pxEazwpdlTuHDMiD4YyN0q8ZvqOzi5eKt2 X-Received: by 2002:aa7:dd11:: with SMTP id i17mr31014452edv.170.1600331198821; Thu, 17 Sep 2020 01:26:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600331198; cv=none; d=google.com; s=arc-20160816; b=JBucCbszzpxNbphHwDZnlpIvOshj4efCCcqfbPz7nScaRxSm+3kA+ljqjjrBEyZWuZ YVTEYNq7qFc7GmAa5MX0faBFRQ6Mb+Zq5bnFEOC130Wu5GV0eF8jD8s00RSaomclWxo2 0ZHCO1a3WbahsCGb5a9CPZWpccZ3y/kW1Fm06rlyz76bbBVEG3X6WClbXFFDnh4pP3he C+p2B404m8Ow7AcqA0xWdC8WYwx2gxnFwC/BHn/Y1bzkgZEOTUHRPLyV7xTMdvI4quZD 34fzJAHXkJsKhCT/AWF7q0IAvZIUUs9aentC3nO8lzFxgFONjqj2/4FsGFprlcTUnh/G 112Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=D6h+xKCe0NuczXnbv5vYewO0odIcXWf9WH9+tSHUU4s=; b=NZ9F/BcNG9Q5m9T7UJ6D/akF+4kBWkUc3KdXI/60CWbqGbmQ/0eC52sGobgIayZpqq JZcnmEpUrOsqfYyfw9LIxDsdXgCeO9Hs7tgHxH2MXZm9/6/SnA0Pdp+8Ec8fKCQewNEb znzUfm59QgUiS04hl4YB1UpXD3rac0Ku8upUZ5v5WqWFxh+HhPqKFkPHuAyUfJ+n2Wx6 dnHp6aSxuWPOytuDDNgrsR6qYvgggXzdseqzNhaTa/QDmh2Xrxr2yxzQUz/TdcoiebC2 pSBzVVDQI6bazg6nKP6opvlUoF9BEh5ZxVaNS7445aZH+YXKcSxTTbaCW/B4XjhkWkK3 8aaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jeRzzBbG; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d17si13320024edy.180.2020.09.17.01.26.38; Thu, 17 Sep 2020 01:26:38 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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=@linaro.org header.s=google header.b=jeRzzBbG; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726244AbgIQI0f (ORCPT + 6 others); Thu, 17 Sep 2020 04:26:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726358AbgIQI0e (ORCPT ); Thu, 17 Sep 2020 04:26:34 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 801B4C061756 for ; Thu, 17 Sep 2020 01:26:34 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id k8so759888pfk.2 for ; Thu, 17 Sep 2020 01:26:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=D6h+xKCe0NuczXnbv5vYewO0odIcXWf9WH9+tSHUU4s=; b=jeRzzBbGla5iVfHIc+qJ9qx4GzGPi/zWJQ4LIVyclPcn9BrNnPMvbWAcAFa2KDmwmT D7RcmoRqojesewmgDOr1s+NTJPLqP1odGzqJ60qq30YO0yiTGMec1QrnYd+V1Igc/F+g tzW1xtkI7QrIRm7Rhj4QsihBAn7X9LFT/blGUPz26kUoCacIyASTFxOI+P8qXLrcTnD8 1AmG6L27t75St2az44hf+92q3IPbpA1I171NADTszerBFuS7MC7cLkuaaXInGly43CQj fGx1NmqxEwqA3xb52c/RXOE0dhKnUZirxV0KrpOFo3Tk8ABQkSKBE0b9LXM/So58BAly 24MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=D6h+xKCe0NuczXnbv5vYewO0odIcXWf9WH9+tSHUU4s=; b=p2whz2NJ4NEsDhpq4VPBPo7vParzWHJP/++hsKGwMVGBb2fXazXpWTxiHv0WWCk4Zn NAlNa5+YfKM+k1Pkb80fAW2BNWjO1yyCNM5KafgqBZPaEnmUsJlhjYSUSvxG6OOGKN7b G2BMEvzdyWA+hz3/3OfCPR4GhPXaQxbR1ln6e0dKTlu07hLyY+Qrq9AVcsiVBiWGgZk9 0OaLKZb32k35p16MSJ6YmfldN+QsmIn6e7+9RFi6UxN1zPn94ZfwPOouYbLB3tZ6Si40 CJ5grP8uuamBWtQ7J39Ho68+uNM6Z2M59XaHa/fa0TxyVypRvw7q1SzyIUBPwYRIwUso PL8A== X-Gm-Message-State: AOAM533ktX0C+giIM9yy6+LLd5rf0G8iXQfaufTnTsEg8lkEqXd3j0OG cmq5Bu58VceJ/U2Qdq4nI1oa X-Received: by 2002:aa7:8ec7:0:b029:13e:d13d:a080 with SMTP id b7-20020aa78ec70000b029013ed13da080mr25243462pfr.23.1600331194008; Thu, 17 Sep 2020 01:26:34 -0700 (PDT) Received: from Mani-XPS-13-9360.localdomain ([103.59.133.81]) by smtp.gmail.com with ESMTPSA id g129sm8233194pfb.9.2020.09.17.01.26.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2020 01:26:33 -0700 (PDT) From: Manivannan Sadhasivam To: agross@kernel.org, bjorn.andersson@linaro.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmitry.baryshkov@linaro.org, Jonathan Marek Subject: [PATCH 1/3] arm64: dts: qcom: sm8250: add apps_smmu node Date: Thu, 17 Sep 2020 13:56:20 +0530 Message-Id: <20200917082622.6823-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200917082622.6823-1-manivannan.sadhasivam@linaro.org> References: <20200917082622.6823-1-manivannan.sadhasivam@linaro.org> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Marek Add the apps_smmu node for sm8250. For UFS, now that the kernel initializes the iommu, the stream mappings set by the bootloader are cleared. Adding the iommus property is required so that new mappings are created for UFS. Signed-off-by: Jonathan Marek --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 107 +++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 357e4bfba70c..3b3eae732da7 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -1163,6 +1163,8 @@ power-domains = <&gcc UFS_PHY_GDSC>; + iommus = <&apps_smmu 0x0e0 0>, <&apps_smmu 0x4e0 0>; + clock-names = "core_clk", "bus_aggr_clk", @@ -2125,6 +2127,111 @@ }; }; + apps_smmu: iommu@15000000 { + compatible = "qcom,sm8250-smmu-500", "arm,mmu-500"; + reg = <0 0x15000000 0 0x100000>; + #iommu-cells = <2>; + #global-interrupts = <2>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + }; + adsp: remoteproc@17300000 { compatible = "qcom,sm8250-adsp-pas"; reg = <0 0x17300000 0 0x100>;