Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp469507rdf; Tue, 21 Nov 2023 07:33:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IF/2k9vj1fyZUDiBINnzyP+H4tLmfm4S6q8zGXNKr0YucpS/EEl5gRfAwsgQb2BxDpkKNPH X-Received: by 2002:a05:6a20:4427:b0:188:bcf1:c218 with SMTP id ce39-20020a056a20442700b00188bcf1c218mr10929490pzb.60.1700580804957; Tue, 21 Nov 2023 07:33:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700580804; cv=none; d=google.com; s=arc-20160816; b=UbNFTSN11ADJNAUbTClEAhn+MsHzVKlA8HIeeLqeyha6GzYo0xkSK23irxkysA/iOC WuPOly6yq+eEMMQLfjNUGfrfiL7jQ1bVx0aTBbl4wQ9DWU/SMNOnY9heU9EbJJPSYks5 e0rF2TfYqJfhtcNkckCVpve6fIeeoamMgPDm3bKqa6AEOMHLXTbAGTY7okpDiH+CeE6F iyk+H0dr7DL1hAFoLxlKyEw5Zs83MKiKhzF0K1NL2eAN33ZytCNnyT5JmH4XRIkb05xU lf6N/uLsS1+y3z2Wf8c3nikKmYsGe8Q5PVd0JkbHZXRSjxDZw8MGdfiMD08P/sSPNgEJ 51ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=84V9KsuHbDFjDxL6Jfp4/mRg7EWR+9eO9oj9y9l8Ykc=; fh=9bLvk8HEq646jEvbaUoYHKT93k+SzYJI+Omaz8MmZCU=; b=kZIq3Z86luaMSzkZN99ws8kFs1XANV47GzA2/t5suCj+p3vA74JjFVKc3PW/Zz69UH 2vhTOEqVTB2NLNw8OwcWBvRTktHwDfgnosruI7xhlr+3qkUv1Khf6cqcMUAAflvuFWVt XTDRvj3U+QqOWy/jXKIJa0DcEcr3khFlfiFKBw9WSLrU6mi/iVqcd5cC35pYCoO/roJh XoW18sgCuQKHOh+TJ2JGs9bEU2fgsqrENKH4rumvT+U+rgzihuNxUcm6T6vsivOy5zTR Ys1bfQ30ASICfKGra4JUdY9SMzWQY5PWpl/e+ohY2RUGB+575sCwdbsttKXkNW7fw37J 2O6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Gqi9G+n7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id k14-20020a056a00134e00b006cb8c11d641si5474731pfu.53.2023.11.21.07.33.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 07:33:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Gqi9G+n7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 9E7A5805B208; Tue, 21 Nov 2023 07:33:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234555AbjKUPdH (ORCPT + 99 others); Tue, 21 Nov 2023 10:33:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234432AbjKUPdG (ORCPT ); Tue, 21 Nov 2023 10:33:06 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EBA6124; Tue, 21 Nov 2023 07:33:02 -0800 (PST) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3ALE21Ti005024; Tue, 21 Nov 2023 15:32:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=84V9KsuHbDFjDxL6Jfp4/mRg7EWR+9eO9oj9y9l8Ykc=; b=Gqi9G+n7j8J7xN3N2m3gpgbeKMyMqW2pF8cj2DY4PbB3QlmJKkuUJ9K+1IB/9R/QQj1K vRB0iYW66smpVEPbjDFy2GE7UJX52whkDqraGSZy/jwcR9WPxMnM6ydmGE5TrKP12nwp kTFBVOF5Na2oYJ79L7aO/bjAExKV1bgoQvFfhNLU5uPPwMMkQkZTnF4Pv25/lh97rV/h OfgYvQU88cgMwlYSKxBTPPWtHpwQ0PMgZV5KNx5Pskp1VuKyAx/ZEamKIVrTkmrGPxav VxboWsFmmka5SuvaWtgKAmrvzOoD3GAMqJUjxfN1LEt8T7ZEJAEGAVHQylT06DM+TkPK UQ== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ugrk21f41-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Nov 2023 15:32:55 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3ALFWtLJ028275 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Nov 2023 15:32:55 GMT Received: from [10.216.11.95] (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.1118.40; Tue, 21 Nov 2023 07:32:45 -0800 Message-ID: Date: Tue, 21 Nov 2023 21:02:41 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v4 3/3] arm64: dts: qcom: sa8775p: Mark PCIe EP controller as cache coherent To: Johan Hovold CC: , , , , , , , , , , , , , , , , , , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=c5=84ski?= , Bjorn Helgaas , , , , References: <1700577493-18538-1-git-send-email-quic_msarkar@quicinc.com> <1700577493-18538-4-git-send-email-quic_msarkar@quicinc.com> Content-Language: en-US From: Mrinmay Sarkar In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: l0e2n5NgW5BvyY1OBQPcD9ZbpGR_564t X-Proofpoint-ORIG-GUID: l0e2n5NgW5BvyY1OBQPcD9ZbpGR_564t 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_09,2023-11-21_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 spamscore=0 lowpriorityscore=0 impostorscore=0 adultscore=0 clxscore=1011 bulkscore=0 priorityscore=1501 phishscore=0 mlxscore=0 mlxlogscore=993 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311210121 X-Spam-Status: No, score=-2.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,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 groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 21 Nov 2023 07:33:21 -0800 (PST) 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 >> Reviewed-by: Manivannan Sadhasivam >> --- >> 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