From patchwork Fri Oct 14 22:10:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Melody Olvera X-Patchwork-Id: 2876 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp397742wrs; Fri, 14 Oct 2022 15:13:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7TFrr+5qA9vmcb2L91oK4p0ZkA7n5Y9nBInyDklTkON0Y9GbaIZRAtor3IBeqEF+Dq+8Cg X-Received: by 2002:a17:907:7d90:b0:78d:bc5a:913c with SMTP id oz16-20020a1709077d9000b0078dbc5a913cmr77317ejc.390.1665785614799; Fri, 14 Oct 2022 15:13:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665785614; cv=none; d=google.com; s=arc-20160816; b=B7lN8KhQwtQjoFf0Zrl0frwH2mVcomItPpMM5/G0kqewZOF2NX9adQnkS9WQuRpwOt zOXEfD7+AelTqy+V3fKeFNsJNSeT0NvnAezR6gCz49Whu/z+RiruJnhW+kCTXMKbUrIj OLeNbKCBkTdE0dPDd2G60cSx8A7GpigjmiLdTSICXHrmyrvAP2caSglrKwzs+hfFXTel YaYi1rHGURhPWnMEv2Iw3XC38WrwOqIG8CD/LTppeBxIe5u75W0hwUZNhVnxQtouQKsT BAnVrPKEwXVKzkiN+48EYgTicKr8Gpm77LKagf+CzIjM/O26Afz94fyKzUlafhO1q/v4 veiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cLbR5wfAwfwHKb62tJT74DF/f2ENW7hVMPV0Lb/qiB4=; b=FkvIAlZjhfdIU3aXD8c7wvdJMYOD2V8ZoWb5FrlKpuVrBK2ghBVZh60Xo2p9182kTK mnjB/97jRwy5cbIwyTZVM0qmcdQanhAFh2MztQkWqivMmlmRIKbiXxWGQM9jLfs4nW6u 596LIeJWx3t29U9eHqtGYcWl/AY3aHb17Ui4m4wrmx7Z+/n9zyOlryp2a71DH21pFLHS WSDYtSJQ4dSBpEpiCDvjRd1ac3NkuSsFuEDtk8/lb8I+fAeaKMBf7V5FMrA/CcLQj0fw fUVNvZxPkp73SqOTaJdh9YoCU8FeVn5FznNU5WqWxWGlex8Xw2dSuks2Za03J0WC5JhG pEPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="A/D6SxFW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dd17-20020a1709069b9100b0077cfec3a52fsi3472523ejc.839.2022.10.14.15.13.09; Fri, 14 Oct 2022 15:13:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="A/D6SxFW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229982AbiJNWMi (ORCPT + 99 others); Fri, 14 Oct 2022 18:12:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229804AbiJNWMC (ORCPT ); Fri, 14 Oct 2022 18:12:02 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BC7B1DC4CB; Fri, 14 Oct 2022 15:11:40 -0700 (PDT) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29EIEB8H010260; Fri, 14 Oct 2022 22:11:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=cLbR5wfAwfwHKb62tJT74DF/f2ENW7hVMPV0Lb/qiB4=; b=A/D6SxFWseRveUUq2JKPn0EbE4I2Ni/XB62pJb0/4pEEW7lPUT2Qu7ZzBcTwCc+E4e0J tepzcDK457H6edQliLpu0G4saNfWgaoIqzg8el4QwrB+9E+IFCNeNAGlVYnS9OI7O0xa mkInLD/2Kfmd7OxyfgVAxT7qskFj3UbkxCEJ35Nh7cWWtHK9OQVLt8/+1k3PyqAZsO64 gAk5Gagu+imt6HL/cKcbEWZKltJsWdzsldTlts1oM4sZVfegBjMocGvZ9mhvtKwdjOxj sZSL+L1m7jhgsDYZ5iY0E/y4Ny7XD/V6ULKfkMOgR5E/eLX4TC1JbKFB5JbNCC+r9L0A 4Q== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3k73h6kaub-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 22:11:13 +0000 Received: from nasanex01b.na.qualcomm.com (corens_vlan604_snip.qualcomm.com [10.53.140.1]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 29EMBCiF005979 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 22:11:12 GMT Received: from hu-molvera-sd.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Fri, 14 Oct 2022 15:11:01 -0700 From: Melody Olvera To: Will Deacon , Joerg Roedel , Rob Herring , Krzysztof Kozlowski CC: Robin Murphy , , , , , Melody Olvera Subject: [PATCH v2 1/2] dt-bindings: arm-smmu: Add compatible bindings for QDU1000 and QRU1000 Date: Fri, 14 Oct 2022 15:10:50 -0700 Message-ID: <20221014221051.7434-2-quic_molvera@quicinc.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221014221051.7434-1-quic_molvera@quicinc.com> References: <20221014221051.7434-1-quic_molvera@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: zK6Sr78aDVqJbrumiz0TdkQi7_OCd9wP X-Proofpoint-GUID: zK6Sr78aDVqJbrumiz0TdkQi7_OCd9wP X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-14_11,2022-10-14_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 suspectscore=0 mlxscore=0 impostorscore=0 spamscore=0 mlxlogscore=749 lowpriorityscore=0 phishscore=0 priorityscore=1501 adultscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210140122 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746702816780831847?= X-GMAIL-MSGID: =?utf-8?q?1746702816780831847?= Add compatible bindings for Qualcomm QDU1000 and QRU1000 platforms. Signed-off-by: Melody Olvera --- Documentation/devicetree/bindings/iommu/arm,smmu.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml index 9066e6df1ba1..ae314436eddb 100644 --- a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml +++ b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml @@ -34,6 +34,8 @@ properties: items: - enum: - qcom,qcm2290-smmu-500 + - qcom,qdu1000-smmu-500 + - qcom,qru1000-smmu-500 - qcom,sc7180-smmu-500 - qcom,sc7280-smmu-500 - qcom,sc8180x-smmu-500 From patchwork Fri Oct 14 22:10:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Melody Olvera X-Patchwork-Id: 2875 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp397744wrs; Fri, 14 Oct 2022 15:13:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM65hcGUK5SvVTHj6I+8Zxjh4ueRU5ryFi+QYYMEs8uMeenj0tCPrP7QLXs1vv3vN03yQtRC X-Received: by 2002:a17:907:724b:b0:782:f2bb:24d3 with SMTP id ds11-20020a170907724b00b00782f2bb24d3mr53007ejc.555.1665785614870; Fri, 14 Oct 2022 15:13:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665785614; cv=none; d=google.com; s=arc-20160816; b=FoKDgoIEa2fR+VG4UCoLZnUdHTHMZoPTqXoBhxqBd7TxVGqF/AwX5q3hg885p24I6w nSGU2eOG2PEO7FIj6FXA0kxeBdLCepiv0R02au2MEcwOfVic0NcDX8q3OySapPbWx18o vyzJt3mgiZrBqKHeBKtXBzOatdiujSiKW7+ViATlEX8KOdSYdWNa8gKT4A1AxUNjzpA/ 1oPxBhi3uVT7ha/KUXi10IeFYKIC2yTTEZ/wifblAj8LhBlOBmJ3ZB/vQ17RzVGIYNkY gtjxb+7h0vV3L2E3vY/I0QegV7cOKNYbN0uJDs2ooEPaMMiUwPoR/b2d8sJHk9/UVBZO Ldbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FPyzwEtcJbBPcIiJlL3YvkFOzDcHrcosjSjnmq1JvJo=; b=vLHbTjgqVKHxDPcCkgmZ5NqLn9s1f7gALAJz17U3cZ6wTXNy23cxpzSwYToxLAusu2 fTqJay7zJJABZJvJefTIyyGD670aVByoOHNEMWxLpU9BAjDNch0naWcvfvGxl0G7lxiq 1K7LBcWA8CqMap4X74o2L3FfTqyVFk2U0wPGfMa/JtRA5aitMruKCJuLUgt2CDhyWk3S 4PtuBNKoFKVkr3Unx8yMO0mpxbd5a9+fy+SsyhiYQ5tz+JEQ8bZXK6WYaD8BAP698Xyu ygI/pga5lBMxPWfO/0gOY7SmOoN9RUo3H0+SCZbGFiJnFc6kvDvRZ/U79Uj4/tz95Z9W 85/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=I6leZrbZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15-20020a056402254f00b0045d4b7ad0e4si234267edb.400.2022.10.14.15.13.05; Fri, 14 Oct 2022 15:13:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=I6leZrbZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229772AbiJNWMZ (ORCPT + 99 others); Fri, 14 Oct 2022 18:12:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229662AbiJNWLw (ORCPT ); Fri, 14 Oct 2022 18:11:52 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 182101CA598; Fri, 14 Oct 2022 15:11:39 -0700 (PDT) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29EIE0Uo011559; Fri, 14 Oct 2022 22:11:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=FPyzwEtcJbBPcIiJlL3YvkFOzDcHrcosjSjnmq1JvJo=; b=I6leZrbZp0Jl0zTZz1enbSAr2kl3Lc2Y7vOfAXXUAjdJIXYFieRVvb3YWD5LOAK1XzzS XSM+EnvEpVgcGVmJFloFtN5hbxrlhizQkyxv8K2CxDKQY6vyPl7Be0Qll3dX9vA3LpWa Pllolgms3SGa4J9yvQ0KYkHc4aIPVkepY9g5g1mKvMq9CGewaXjHrrUbW1X9BMB3OKLg 0xCMuxy7AVUL2UGlrFbGWfNGh/dOqDXS7CqBy79F/MAvu9pJYBkatfHTDCB/NTznS/2C 8ErmXpuGi/6G+QaRN/9BK9XfRzGIXXgYyvWoXEyhUtuiIeL4zhBWQNchpkCJ5wP2jeH0 uA== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3k74eck7d8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 22:11:13 +0000 Received: from nasanex01b.na.qualcomm.com (corens_vlan604_snip.qualcomm.com [10.53.140.1]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 29EMBCiG005979 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 22:11:13 GMT Received: from hu-molvera-sd.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Fri, 14 Oct 2022 15:11:01 -0700 From: Melody Olvera To: Will Deacon , Joerg Roedel , Rob Herring , Krzysztof Kozlowski CC: Robin Murphy , , , , , Melody Olvera Subject: [PATCH v2 2/2] drivers: arm-smmu-impl: Add QDU1000 and QRU1000 iommu implementation Date: Fri, 14 Oct 2022 15:10:51 -0700 Message-ID: <20221014221051.7434-3-quic_molvera@quicinc.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221014221051.7434-1-quic_molvera@quicinc.com> References: <20221014221051.7434-1-quic_molvera@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: MmdzQArU2WKSIxMi2N-yoRe0Gm0P11cN X-Proofpoint-ORIG-GUID: MmdzQArU2WKSIxMi2N-yoRe0Gm0P11cN X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-14_11,2022-10-14_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 suspectscore=0 phishscore=0 spamscore=0 bulkscore=0 mlxlogscore=851 mlxscore=0 impostorscore=0 clxscore=1015 malwarescore=0 priorityscore=1501 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210140122 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746702817209535519?= X-GMAIL-MSGID: =?utf-8?q?1746702817209535519?= Add compatible for Qualcomm QDU1000 and QRU1000 SoCs to add iommu support for them. Signed-off-by: Melody Olvera --- drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c index b2708de25ea3..4f976cfb20d4 100644 --- a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c +++ b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c @@ -426,6 +426,8 @@ static struct arm_smmu_device *qcom_smmu_create(struct arm_smmu_device *smmu, static const struct of_device_id __maybe_unused qcom_smmu_impl_of_match[] = { { .compatible = "qcom,msm8998-smmu-v2" }, { .compatible = "qcom,qcm2290-smmu-500" }, + { .compatible = "qcom,qdu1000-smmu-500" }, + { .compatible = "qcom,qru1000-smmu-500" }, { .compatible = "qcom,sc7180-smmu-500" }, { .compatible = "qcom,sc7280-smmu-500" }, { .compatible = "qcom,sc8180x-smmu-500" },