Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2160751lqa; Tue, 30 Apr 2024 09:34:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXqyCK1qVxlUn9eWMOF8epwRjrQFy3VM/vFtqZkuKP+B9h5ipnS7TqwmMGebGuGOW7kllOdBMsxX9eu7TTXGXGXHV3oh2ELth06hzg2pA== X-Google-Smtp-Source: AGHT+IED2W/YzvsBOshvHSeAmtAihEcut5XpZdgOkXYDAupIyBOBg9QXCDof/vi3+o0S0lTp1z9E X-Received: by 2002:a05:6a00:2d9a:b0:6ec:ea4b:f077 with SMTP id fb26-20020a056a002d9a00b006ecea4bf077mr199913pfb.16.1714494887258; Tue, 30 Apr 2024 09:34:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714494887; cv=pass; d=google.com; s=arc-20160816; b=hkTnAazqgGFPJQRHnkB8SGrpKoQhqqdg+2VUtrOq1jQ3BO0p3+OGbW5XmY5XAbklHu 6SMpkVUhvJGD2ejMzClv6Q7ZZ1h/tz6lGynqAcUlVYTPz8G/4CBMKbCjcf+cluIFnsV8 IvPrs8KJaHshnSobrf3BXIDelc6p0aTNc0fIdKpVgeA0ldd6hphBUlPS2xfrt5YdeDp5 LqfI4xy+5PRzMfl9upDzCrTsoqsiMi1MiJhX8+ydd26hFITsHBPNqpq87ZPVBq3h0Gdi wr2n9tbOH8D9LoRjZxuR6KqCPxAIq0jmxqPEs/t9p3f/X4QAH3iBkc2xcEngxtAiSeXT ODmw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=BVApZpi3cm00qmCTLAAK7bHPM5npIeOaJG2v2/YaX2g=; fh=fqaWK3Gr158FrJWGn3KEvFLOPv9or/jORzMvVV2e26A=; b=ilS4onWjVLDd545FV+I/KtaAx4xx5fLg8yKDLXZHQQzAAzcD25fIubKb3kyP1T8/zu vUEJxBGUSbbNdGcTKtRCqNoqaVanlRQmfIr3wiT09fdKUQIhU1zJfk3sCelg/TUzv8EF kndFPjsbAtpx3ai5qqCZpiqwHKYev1f8a1+QtL/Awn2m9m7jqXX7OcZC7t2kx+0ZsVVR lJ7mKvUfUj8UYeKWDGxYRJtLaJOBdLqgJ2mRH/iPdGkWgVYlc2v37EAJzR17gh7+KkYY 8gH9H09kipJhQCGINZqb8LxQ/ACrR0a5uBgOcZZqefVvndAU8wR33Cl0Mi/GdAvCPZ/b QvYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=A9RdBZHN; arc=pass (i=1 spf=pass spfdomain=qualcomm.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-164387-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164387-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id jw34-20020a056a0092a200b006f0a192b1d3si22093110pfb.98.2024.04.30.09.34.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 09:34:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164387-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=A9RdBZHN; arc=pass (i=1 spf=pass spfdomain=qualcomm.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-164387-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164387-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id BD36D284C00 for ; Tue, 30 Apr 2024 16:33:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 72D6A184108; Tue, 30 Apr 2024 16:32:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="A9RdBZHN" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A292180A9C; Tue, 30 Apr 2024 16:32:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714494726; cv=none; b=JpUTlXpnr5j3Vb9+OhZDY+GPDEUjXdKQdxcEHbA+spyGQDP71VdfDQkMdFPFhaM42hshtCYJPdgkzvObh75BRAOxs7vqBBsqAwUnkwJJ5OBCHNz/QL3fVYkSsCLHfBk+k2tEL+KbYA4qUmHCSlD48nFkV9MuWghijb0myh0MxQc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714494726; c=relaxed/simple; bh=qG3GsTd0IpwBap3hqKmO0EpwtMawAshN9LAhOnrp+SY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=lHb+MDOrWwo4oC6KRCiRkJ0FecFnF1PMqGuKt6wY80PSK+cnqp0fDJIXi3SkCVulvbPuulP1dF6d6B/CUwILQO8yNxCHQCIrvbUr0BJAcD+sB7rkSnJ5gQMb/3CTKxuF1EYOmJOWUwpw2igjEBVQb4MxJdofNLILp/DPY6MZUoY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=qualcomm.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=A9RdBZHN; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=qualcomm.com Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 43UBLQ9R005821; Tue, 30 Apr 2024 16:31:59 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; s= qcppdkim1; bh=BVApZpi3cm00qmCTLAAK7bHPM5npIeOaJG2v2/YaX2g=; b=A9 RdBZHNXMmbJ/0weQLDUcsa535G1JMhrN58MKqp/qixNUmdq4+mBNmK0ePam2D6n7 GRnn/j1DiywH1E3IlLlazC+XWEP6maey0n4vAe8vTchEJLWDDdSkUQtVmDCf2D/s +Lo84sateLRSSk0pr3dt7f9uCjWdPpmdIIQz9u4/KR50QZF+qNU3Qy7l4oagWNZf +0xMJm11Qqggx50uau+Bcr80+ZXGYGjTPLq5ztuMpeTCiIsuPVDQ9wqZJbbAAMIk j2cbxC5UITs/fSRb2K8euxqBM+AqizErYNwXF/qPd2c+chrl/qoq1oGnXDJVLBHy B1VuzIP78GmVT7lqWFUQ== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xtyptgs7b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 Apr 2024 16:31:59 +0000 (GMT) Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 43UGVt6O003699; Tue, 30 Apr 2024 16:31:55 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 3xrtem1f83-1; Tue, 30 Apr 2024 16:31:55 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 43UGVtAv003693; Tue, 30 Apr 2024 16:31:55 GMT Received: from hu-sgudaval-hyd.qualcomm.com (hu-msarkar-hyd.qualcomm.com [10.213.111.194]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 43UGVtjA003692; Tue, 30 Apr 2024 16:31:55 +0000 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 3891782) id CBF0B2287; Tue, 30 Apr 2024 22:01:54 +0530 (+0530) From: Mrinmay Sarkar To: andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, konrad.dybcio@linaro.org, manivannan.sadhasivam@linaro.org Cc: quic_shazhuss@quicinc.com, quic_nitegupt@quicinc.com, quic_ramkri@quicinc.com, quic_nayiluri@quicinc.com, quic_krichai@quicinc.com, quic_vbadigan@quicinc.com, quic_schintav@quicinc.com, Mrinmay Sarkar , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/2] arm64: dts: qcom: sa8775p: Adding iommus property in pcie DT nodes Date: Tue, 30 Apr 2024 22:01:50 +0530 Message-Id: <1714494711-10322-2-git-send-email-quic_msarkar@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1714494711-10322-1-git-send-email-quic_msarkar@quicinc.com> References: <1714494711-10322-1-git-send-email-quic_msarkar@quicinc.com> X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: qvNGy0O7bEYfPFxgDqASkWCNr5F8V5jv X-Proofpoint-ORIG-GUID: qvNGy0O7bEYfPFxgDqASkWCNr5F8V5jv X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-04-30_09,2024-04-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 priorityscore=1501 adultscore=0 clxscore=1015 mlxscore=0 suspectscore=0 malwarescore=0 impostorscore=0 lowpriorityscore=0 mlxlogscore=999 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404300118 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 'iommus' is a list of phandle and IOMMU specifier pairs that describe the IOMMU master interfaces of the device. Specified this property in PCIe DT nodes so that IOMMU can be used for address translation. Signed-off-by: Mrinmay Sarkar --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index 9065645..0c52180 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -3666,6 +3666,7 @@ <&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_PCIE_0 0>; interconnect-names = "pcie-mem", "cpu-pcie"; + iommus = <&pcie_smmu 0x0000 0x7f>; iommu-map = <0x0 &pcie_smmu 0x0000 0x1>, <0x100 &pcie_smmu 0x0001 0x1>; @@ -3822,6 +3823,7 @@ <&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_PCIE_1 0>; interconnect-names = "pcie-mem", "cpu-pcie"; + iommus = <&pcie_smmu 0x0080 0x7f>; iommu-map = <0x0 &pcie_smmu 0x0080 0x1>, <0x100 &pcie_smmu 0x0081 0x1>; -- 2.7.4