Message ID | 1700577493-18538-4-git-send-email-quic_msarkar@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2b07:b0:403:3b70:6f57 with SMTP id io7csp667473vqb; Tue, 21 Nov 2023 06:39:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IGWqd/CuoOUd6bA5yjRfIgJRw8utfw+Ox8lrC34prAH3X3A935Y4P/lx6M1xkARzFrtp6tr X-Received: by 2002:a17:90b:3ec4:b0:27d:20ca:1156 with SMTP id rm4-20020a17090b3ec400b0027d20ca1156mr8370385pjb.34.1700577546973; Tue, 21 Nov 2023 06:39:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700577546; cv=none; d=google.com; s=arc-20160816; b=uLVpqHwgFwLmzJDBs9c4dEl8Z/iV9fCo9anMlF8lQWJSgabeq8Ht9ymHoX/JcFN3s9 57cX1OwGXlBg9w0ZO/ETxNNKm88irz9bJn6eitvjKgfNFvmj79sx/zM+Fqt8K72NzAo8 M9a4YclCXNSnRVZlU8jLXJXCRtb+P0m2LWHB+oFGGSuUu92H8uxw+6MHElLROjay22ex JPtdoxmcgDx4qHuxaZsWxE8OPRKPJwvI+x+48KvWi8vdkvgVjZJQCEx9eCazijz6I3GW VeWKU8XbYbfyKJtw+o2pbin8GI/g3UldkmPPyZC0fcKGBqXZ8AuWU8SujgAQQ/+aQzSA ev0g== 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=aUPxlfWznkWempLYw6sszPrFHrjowYGFrJvEebgYjRc=; fh=Pk1D+TX8j7yMhBoMDvb6Z0dI8+uPCwWwrh/XHSBJc1k=; b=UuTSTRKkaSFfVKd/Ykj04sOtEzCJx23Upc7qMA8rdLhIi+hZrmzFhfY6gZHgCfAHwa 8o22PdHNOd2flw1QEFA9SkVYK/3ptgG84EhoOOqFNiAHFVpjilYMSNTBZlHiTntW9U1U SaF9136ktQVvVVp3Y5ux1gBicwq36/L6SA7uvS98wuhuFg7NBerrN8aR+U/5Tet2edck t3iZI+J9SXu7vYannsjCsYlEhkPKQ0Wgjd+8DytWJQwjRB2nlL7oBR7XJOBMGofB0mtt YlJHjPsTHDPTnvgg9L798ybQ5z7Hut8ku6curQxsnqPvvWI0HtqE5qgl+uH6XLxZJlcq DX1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ZRmh5d+D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id oo5-20020a17090b1c8500b002839679c23csi10970164pjb.122.2023.11.21.06.39.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 06:39:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ZRmh5d+D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id C2A0F809A741; Tue, 21 Nov 2023 06:38:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234560AbjKUOiq (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Tue, 21 Nov 2023 09:38:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234637AbjKUOil (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 21 Nov 2023 09:38:41 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FA37D79; Tue, 21 Nov 2023 06:38:36 -0800 (PST) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3ALE2ce2003390; Tue, 21 Nov 2023 14:38:31 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=aUPxlfWznkWempLYw6sszPrFHrjowYGFrJvEebgYjRc=; b=ZRmh5d+DeO+5Xlf3cI3N0Hrtr3Msb/LgJPrUEZytC2172+Q/tohDAeBscj4P61uQ/t9L A32EjBLh+eWJAGd/yZyjuEXla1/yPQ+gOqfcGCcSCLTCb1/hfJ2ofqQVNiGe4Taff8gX kaV74dt8ptu4GtF+NUQi3H4eT3lspY4pAqHLEPj8uAHkftbS0uR91GwtHEOtrR5VlGFP GYbYupxvHVehsKy7FoqMxkBH8VD3TtvChp20GQexn3NCXbNz+29+rU3Ik+Kjcuakt/Fv WUZ3dTp+p0PauAhOJo1KyQ4u29RaAG+UhKL4xb3/U5Sj6NVvQt9v2m0rabqGocyc+p4C 2w== 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 3ugssks5bj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Nov 2023 14:38:30 +0000 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 3ALEcL7I006121; Tue, 21 Nov 2023 14:38:27 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 3uepbke7qq-1; Tue, 21 Nov 2023 14:38:27 +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 3ALEcRPG006143; Tue, 21 Nov 2023 14:38:27 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 3ALEcQVM006141; Tue, 21 Nov 2023 14:38:27 +0000 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 3891782) id BD7A74C8C; Tue, 21 Nov 2023 20:08:25 +0530 (+0530) From: Mrinmay Sarkar <quic_msarkar@quicinc.com> To: agross@kernel.org, andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, konrad.dybcio@linaro.org, mani@kernel.org, robh+dt@kernel.org Cc: quic_shazhuss@quicinc.com, quic_nitegupt@quicinc.com, quic_ramkri@quicinc.com, quic_nayiluri@quicinc.com, dmitry.baryshkov@linaro.org, robh@kernel.org, quic_krichai@quicinc.com, quic_vbadigan@quicinc.com, quic_parass@quicinc.com, quic_schintav@quicinc.com, quic_shijjose@quicinc.com, Mrinmay Sarkar <quic_msarkar@quicinc.com>, Lorenzo Pieralisi <lpieralisi@kernel.org>, =?utf-8?q?Krzysztof_Wilczy=C5=84?= =?utf-8?q?ski?= <kw@linux.com>, Bjorn Helgaas <bhelgaas@google.com>, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH v4 3/3] arm64: dts: qcom: sa8775p: Mark PCIe EP controller as cache coherent Date: Tue, 21 Nov 2023 20:08:13 +0530 Message-Id: <1700577493-18538-4-git-send-email-quic_msarkar@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1700577493-18538-1-git-send-email-quic_msarkar@quicinc.com> References: <1700577493-18538-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: Kusuuj3FmIf-Kk3r0ZK-13XGQjharu6P X-Proofpoint-ORIG-GUID: Kusuuj3FmIf-Kk3r0ZK-13XGQjharu6P X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-21_08,2023-11-21_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 mlxscore=0 spamscore=0 clxscore=1015 malwarescore=0 mlxlogscore=999 priorityscore=1501 impostorscore=0 lowpriorityscore=0 suspectscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311210114 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 21 Nov 2023 06:38:57 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783184802007644318 X-GMAIL-MSGID: 1783184802007644318 |
Series |
arm64: qcom: sa8775p: add cache coherency support for SA8775P
|
|
Commit Message
Mrinmay Sarkar
Nov. 21, 2023, 2:38 p.m. UTC
The PCIe EP controller on SA8775P supports cache coherency, hence add the "dma-coherent" property to mark it as such. Signed-off-by: Mrinmay Sarkar <quic_msarkar@quicinc.com> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 1 + 1 file changed, 1 insertion(+)
Comments
On Tue, Nov 21, 2023 at 08:08:13PM +0530, Mrinmay Sarkar wrote: > The PCIe EP controller on SA8775P supports cache coherency, hence add > the "dma-coherent" property to mark it as such. > > Signed-off-by: Mrinmay Sarkar <quic_msarkar@quicinc.com> > Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> > --- > arch/arm64/boot/dts/qcom/sa8775p.dtsi | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi > index 7eab458..ab01efe 100644 > --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi > +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi > @@ -3620,6 +3620,7 @@ > <&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_PCIE_0 0>; > interconnect-names = "pcie-mem", "cpu-pcie"; > > + dma-coherent; > iommus = <&pcie_smmu 0x0000 0x7f>; > resets = <&gcc GCC_PCIE_0_BCR>; > reset-names = "core"; What tree is this against? Both controllers are already marked as dma-coherent in mainline so this patch makes no sense (and the context also looks wrong). It was even you added them apparently: 489f14be0e0a ("arm64: dts: qcom: sa8775p: Add pcie0 and pcie1 nodes") Johan
On 11/21/2023 8:25 PM, Johan Hovold wrote: > On Tue, Nov 21, 2023 at 08:08:13PM +0530, Mrinmay Sarkar wrote: >> The PCIe EP controller on SA8775P supports cache coherency, hence add >> the "dma-coherent" property to mark it as such. >> >> Signed-off-by: Mrinmay Sarkar <quic_msarkar@quicinc.com> >> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> >> --- >> arch/arm64/boot/dts/qcom/sa8775p.dtsi | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi >> index 7eab458..ab01efe 100644 >> --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi >> +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi >> @@ -3620,6 +3620,7 @@ >> <&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_PCIE_0 0>; >> interconnect-names = "pcie-mem", "cpu-pcie"; >> >> + dma-coherent; >> iommus = <&pcie_smmu 0x0000 0x7f>; >> resets = <&gcc GCC_PCIE_0_BCR>; >> reset-names = "core"; > What tree is this against? > > Both controllers are already marked as dma-coherent in mainline so this > patch makes no sense (and the context also looks wrong). > > It was even you added them apparently: > > 489f14be0e0a ("arm64: dts: qcom: sa8775p: Add pcie0 and pcie1 nodes") > > Johan Hi Johan, Yes both the RC controllers are dma-coherent and this change is for PCIe EP controller and it is inside pcie0_ep node. Actually the pcie0_ep node change is yet to apply on linux next. I just made this change on top of that and the same I mentioned in cover letter. https://lore.kernel.org/all/1699669982-7691-6-git-send-email-quic_msarkar@quicinc.com/ Thanks, Mrinmay
On Tue, Nov 21, 2023 at 09:02:41PM +0530, Mrinmay Sarkar wrote: > > On 11/21/2023 8:25 PM, Johan Hovold wrote: > > On Tue, Nov 21, 2023 at 08:08:13PM +0530, Mrinmay Sarkar wrote: > >> The PCIe EP controller on SA8775P supports cache coherency, hence add > >> the "dma-coherent" property to mark it as such. > > What tree is this against? > > > > Both controllers are already marked as dma-coherent in mainline so this > > patch makes no sense (and the context also looks wrong). > Yes both the RC controllers are dma-coherent and this change is for > PCIe EP controller and it is inside pcie0_ep node. > Actually the pcie0_ep node change is yet to apply on linux next. > I just made this change on top of that and the same I mentioned in > cover letter. Ah, thanks for clarifying, and sorry for the noise. Johan
diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index 7eab458..ab01efe 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -3620,6 +3620,7 @@ <&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_PCIE_0 0>; interconnect-names = "pcie-mem", "cpu-pcie"; + dma-coherent; iommus = <&pcie_smmu 0x0000 0x7f>; resets = <&gcc GCC_PCIE_0_BCR>; reset-names = "core";