Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2651092imj; Mon, 11 Feb 2019 06:29:20 -0800 (PST) X-Google-Smtp-Source: AHgI3IacAd+PszWKZ4ijmcdHoKjCMKl+hUgUx9tNmMmsO8B7VY99CwmyGI1HU8nOcnQ5XY//EteC X-Received: by 2002:a17:902:8690:: with SMTP id g16mr34184046plo.81.1549895360840; Mon, 11 Feb 2019 06:29:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549895360; cv=none; d=google.com; s=arc-20160816; b=JZR02+eQysiAAee3K4gYoEyN4jq3dP6/KD60xy3FGarT2QnCaliBJvsJ3frzUGGpXk v6Lo2LL46IET6Qv5Cyv2q3B8DHINCqEJQmIMkjoWqTMOgsWrx3XjqCX1Ekinvsp+PlAP pAIX9xrpXgSO6Q+y/Dt89oQWSiPQeLxhzW7kR6BKs+gwXE5/RCJY9eX1pCgJk1Kn3rUl vGg5fNgXB1+BtLtVILYB3gerJ5fbMh6cTn8q0ZNyvXGbUqc1dQNeUVKQhmbibS4iit2C QxpzgYUQu1rqoTRWPC1QRpe78sVSF7H/vx8FbGyLKkED4pKS0YL8ejPlFB7Pw7b5cJLV ie4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5t9rnG+6y/RKX3S32Sjegh+ULap4RJSn3pQcRht7eHQ=; b=pgqw+aS9BeTkrElUnZ0EM2lAew9BlErvmPHw5XL6+HlfULs1XJ1l3kfZ93DyHZkE1k rjv6D9kePP3h0YHmD+KzXLdFmSto03TyCu3V10btIfZ5ZncUpzBe/cfr5ZS4ZCMhRqnL xAJG3pjD708V3x9GYgnuTXbyGD4tuTxuDtjHE6e+0PTfh0zZ9RJ1rEuPMzN/w9phken2 eTZ9Wppf1bNNX38RXr7ijsUfvNV+A9TeJ3sgSi7LLFEGp0B2Xa3RB42SzCJKBbdneHaA dX2iolDvCp7VOJG2AG/C20YZm8AZuxGW3Q9wyE8jS6JdEktplEFCsdSkPE5p5WOs2c4J t91A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Fv6Yj4f8; 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 2si10907108pfd.154.2019.02.11.06.29.04; Mon, 11 Feb 2019 06:29:20 -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=pass header.i=@kernel.org header.s=default header.b=Fv6Yj4f8; 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 S1729779AbfBKO14 (ORCPT + 99 others); Mon, 11 Feb 2019 09:27:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:33764 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728767AbfBKO1x (ORCPT ); Mon, 11 Feb 2019 09:27:53 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0608F20821; Mon, 11 Feb 2019 14:27:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549895272; bh=QRDGIsoHQws2DsuSmSP5WKuIF1YPoBYafHdq9FZj9z8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Fv6Yj4f8/utTbA9AW3LG0JhjpNNcSvmKDOyErobCgzyK20nuNIdkv38ylXScG1gbN XPljykehIZLXMneU/L+zWGHDMyxEPEPHxiKN9MUnBC1o74z9nE98B8zaeTt9x6R66r T9Od0jpWTbGN4S0IhD7vviIapZpI7ot47507tyNQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vivek Gautam , Rob Herring , Tomasz Figa , Srinivas Kandagatla , Robin Murphy , Will Deacon , Sasha Levin Subject: [PATCH 4.20 143/352] iommu/arm-smmu: Add support for qcom,smmu-v2 variant Date: Mon, 11 Feb 2019 15:16:10 +0100 Message-Id: <20190211141855.632771114@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 89cddc563743cb1e0068867ac97013b2a5bf86aa ] qcom,smmu-v2 is an arm,smmu-v2 implementation with specific clock and power requirements. On msm8996, multiple cores, viz. mdss, video, etc. use this smmu. On sdm845, this smmu is used with gpu. Add bindings for the same. Signed-off-by: Vivek Gautam Reviewed-by: Rob Herring Reviewed-by: Tomasz Figa Tested-by: Srinivas Kandagatla Reviewed-by: Robin Murphy Signed-off-by: Will Deacon Signed-off-by: Sasha Levin --- drivers/iommu/arm-smmu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index 5a28ae892504..e23aa7f6c4ad 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c @@ -119,6 +119,7 @@ enum arm_smmu_implementation { GENERIC_SMMU, ARM_MMU500, CAVIUM_SMMUV2, + QCOM_SMMUV2, }; struct arm_smmu_s2cr { @@ -1954,6 +1955,7 @@ ARM_SMMU_MATCH_DATA(smmu_generic_v2, ARM_SMMU_V2, GENERIC_SMMU); ARM_SMMU_MATCH_DATA(arm_mmu401, ARM_SMMU_V1_64K, GENERIC_SMMU); ARM_SMMU_MATCH_DATA(arm_mmu500, ARM_SMMU_V2, ARM_MMU500); ARM_SMMU_MATCH_DATA(cavium_smmuv2, ARM_SMMU_V2, CAVIUM_SMMUV2); +ARM_SMMU_MATCH_DATA(qcom_smmuv2, ARM_SMMU_V2, QCOM_SMMUV2); static const struct of_device_id arm_smmu_of_match[] = { { .compatible = "arm,smmu-v1", .data = &smmu_generic_v1 }, @@ -1962,6 +1964,7 @@ static const struct of_device_id arm_smmu_of_match[] = { { .compatible = "arm,mmu-401", .data = &arm_mmu401 }, { .compatible = "arm,mmu-500", .data = &arm_mmu500 }, { .compatible = "cavium,smmu-v2", .data = &cavium_smmuv2 }, + { .compatible = "qcom,smmu-v2", .data = &qcom_smmuv2 }, { }, }; MODULE_DEVICE_TABLE(of, arm_smmu_of_match); -- 2.19.1