Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2682193imj; Mon, 11 Feb 2019 06:59:09 -0800 (PST) X-Google-Smtp-Source: AHgI3IaB50U90NIoCNcw8qMlXVqDePJoI6bpC2bgRlN656vxmsLi3tWHFODj+skvPqTxaGMGWF6c X-Received: by 2002:a17:902:b10c:: with SMTP id q12mr13711291plr.210.1549897149304; Mon, 11 Feb 2019 06:59:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549897149; cv=none; d=google.com; s=arc-20160816; b=GNPN+qMRajJLGT3gipVZdWULFaRwkBtfcY+5Dd/kuVVcu4W/3qB+/5+0vlT/jT1cab 3HYz2IuxEANYlYEeeRprScrjf+KCTYcHDeDywNHeTP2gO6U0727sHeriYGPMlob3nasP zTo/t1/qZjhVLh1JhaRg9BWsr6uF8dR8tIML7QLpaqaYo6uiXt+lUb5KpF8+NfzS+VTU E6Dh0WnmGzusJzYKG/0UMc3LdJE7Qy9u8TZ5uSKCrBKucP036XDAsy6E7iMn7jHUAGnJ wsVHvfz3DCN5aMreo4qqD35vaTOnrFPytmWtOBZ3Wb1gXzlL6IBR9NBxNzGYrTRg5zvL 6r1Q== 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=5YM92WRJcfj2Q1Pv6Glr0+JOu53Spi2Qt4vrubNtYOo=; b=qGXudQlkgJs5Z75AAY2L+hvBMm+L+sYoGaFgOE+asV2oYF7NmqG+Fy5x6ekjutFdVp lHSpJ9BpibvzRiWC0nnTcTfZ3bWuz/2M11/NomqxkCGNNFGf6tf1Yi9S5vITN0vUxbME 5Rpox/oi1q4rxjJ/yLe4tipRB63ptvKtStV2Bi87EzwwH49Ezjfmt6ZelSdTBsnukk2/ assU9RW/q4QaKpdipHOdEPDAxoV8v8SJMSF60UcdwoVvpb6bqrJ38bOP19JsLM0X2Xvv vncnaetjeEuW00nbQnO++TnWdHXgwNPk7mcYAxgMtzxiurLQenjBATKI0wg9F4WdK6hU 6l5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="s+m/xwBv"; 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 j1si2450312pll.219.2019.02.11.06.58.53; Mon, 11 Feb 2019 06:59: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=pass header.i=@kernel.org header.s=default header.b="s+m/xwBv"; 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 S2388036AbfBKO54 (ORCPT + 99 others); Mon, 11 Feb 2019 09:57:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:45390 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389434AbfBKO5w (ORCPT ); Mon, 11 Feb 2019 09:57:52 -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 23926222A6; Mon, 11 Feb 2019 14:57:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549897071; bh=U7LR63ZSzI2Xjdt2CfgNmaf5ND3CcBHgQOeG0QerLro=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s+m/xwBvp2LslsEg9PzCn0vp5GI++JWUAkTbqnmKRK1oVhnZVINPS17QS3vAj/COV zE1swZ+DNoXzEkhYqQdUBO1n3wnv25Mp2yZz/HiHvHPkFdtLVHN2kJu6N8kBJwbNA+ r/Hync5EAvhP5GXXXwher+JxfRYdaTsWXHEj01Ag= 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.14 080/205] iommu/arm-smmu: Add support for qcom,smmu-v2 variant Date: Mon, 11 Feb 2019 15:17:58 +0100 Message-Id: <20190211141833.929504633@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141827.214852402@linuxfoundation.org> References: <20190211141827.214852402@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.14-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 15b5856475fc..01a6a0ea2a4f 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c @@ -117,6 +117,7 @@ enum arm_smmu_implementation { GENERIC_SMMU, ARM_MMU500, CAVIUM_SMMUV2, + QCOM_SMMUV2, }; /* Until ACPICA headers cover IORT rev. C */ @@ -1910,6 +1911,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 }, @@ -1918,6 +1920,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