From patchwork Wed Feb 21 14:04:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: root X-Patchwork-Id: 20735 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp1055432dyc; Wed, 21 Feb 2024 06:05:56 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU/XaBOpzFSJvBL/Ure1bx7UpK0Xf+/cTycEJh5c25Lb6oxqTw3NHVbns9+lxNJ1ZbjvbuJFNbOfyvy48QFM4Kf2P3jEQ== X-Google-Smtp-Source: AGHT+IHAA9oKiuBV+05H9V2pJwSkHwl4JEe/3rSQyiJ6czKdWZDtfip5ZK8TXAT1DzGSdnpMu/wY X-Received: by 2002:a17:906:b106:b0:a3e:e83b:10a4 with SMTP id u6-20020a170906b10600b00a3ee83b10a4mr3806432ejy.44.1708524356398; Wed, 21 Feb 2024 06:05:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708524356; cv=pass; d=google.com; s=arc-20160816; b=Gvp02AkkwdmBuBtvFipSRohqf0d/UvLXn/XiLlCX7op6XRZ+luHbWZ+1Fn05+zwhro nrbOiUC2qnttr2rEx8rCI+w8VZXWOx78R6hyplGZO4I2ic4xAPqmgxnPSI99jLkLuX2u LYLjWUpFqrrqrHSi+f1LKlaOHl/cmW0o02bmSHIwyGLkD60t469Tj8wXkEpwKx3UMtdz 5lsJRsYcb75KWVTYAiwKfh8cMsrPtVfhEVF00XfBZEE0HnERBqipWgjO6uRwbhnsLmAs Jt4XFmMiZYEOqwbTgbqgr2hno3WU8+xYC/IM43GxQ+AOI4C6WmEMqyyg8lQhO7KC6+X5 d3yg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=D/XNoT3LVPg+OC19k7J9BFPd0mH4TA8Vu07Ukic7bnY=; fh=lEpjFHfZZvDrFHrG/SnE+6N3J7csRUHM97BX7+qUiB8=; b=V5cNz0/QXMnovMNTSDyBs55pXB+gCcfC4DNOaxzaekNlqPzUUW/QAa7DyJ9o762aH0 fZoFx+MCGQ7aeXHMARh9Z7/z0Z1Upxq37J0lcLt5sIYD9ju0c0o0uAnMC0DFBCI3xUfc vMqycgh9m1/ayvtdW0ioNyZNoEelRRLhRMcqnvGew3J38aXG9uOlV1zkZ+rwq7WrBt06 lWveWAyqAo4zjh9mCZLF2t6elWbud69Q6xcNdS2sHfthaoSJK24RMzFsoZD4SnEA4Bha FpkHIyNxWr+qHecukiassko4luYGFVMj62t0UpSbBhOx+kbatzJxibwSvL1KueEUQt+N UPeQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=fiUyo0CB; arc=pass (i=1 spf=pass spfdomain=qualcomm.com dkim=pass dkdomain=qualcomm.com dmarc=pass fromdomain=hu-msarkar-hyd.qualcomm.com); spf=pass (google.com: domain of linux-kernel+bounces-74848-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74848-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=qualcomm.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ka13-20020a170907990d00b00a3e1a96a237si4124224ejc.335.2024.02.21.06.05.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 06:05:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74848-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=fiUyo0CB; arc=pass (i=1 spf=pass spfdomain=qualcomm.com dkim=pass dkdomain=qualcomm.com dmarc=pass fromdomain=hu-msarkar-hyd.qualcomm.com); spf=pass (google.com: domain of linux-kernel+bounces-74848-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74848-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=qualcomm.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0B7061F22F15 for ; Wed, 21 Feb 2024 14:05:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 48B927D414; Wed, 21 Feb 2024 14:04:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="fiUyo0CB" 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 E4EF17C09A; Wed, 21 Feb 2024 14:04:33 +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=1708524275; cv=none; b=Say+d2Gw5tK+s/BOdjJUYYwaunlSrAgumcsOP9N2EJsAv+AEyclmJiESSYBxtDNF4N/kyO8nOvsfQ1AmUq5B1VM9Of6Q1x9niel842dcObVcRVzOzvBnBQOql0TOp/OaLoKheO/toN+H4qSwW8L5Gc3FWrSxrfGT/Sc7gg+2f3s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708524275; c=relaxed/simple; bh=BKrPxKcNueFBfyqfTI+yCXKdSZ6PsLI13qpU7crpEYA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=gOMA6qcvPNSTOepzWADAMvolEnovh4vLwQiNlQz/h3m+gKXlrzNqc5lgh6zyk67rbUEK3kauG9P5mqDpZ+aRn7XIv0JQsykRuhQM/djNIvbImPHdyMKXlZCV8bUoXuJBRytpmUI4IRZY27XImOSsFYpHjTsCjHCBMjfe6ouHuRI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=hu-msarkar-hyd.qualcomm.com; spf=pass smtp.mailfrom=qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=fiUyo0CB; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=hu-msarkar-hyd.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=qualcomm.com Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41LDxSpe002944; Wed, 21 Feb 2024 14:04:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=qcppdkim1; bh=D/XNoT3LVPg+OC19k7J9 BFPd0mH4TA8Vu07Ukic7bnY=; b=fiUyo0CBEkUM8JKD4Qi8H67a11fejD7I6E2o O16MmHx29ezTcis0LaWzEqXVE2d00+ry3MUgW1hy6YJp4WwfXCtv45aOD7Sa7uCD 2Du3zdBNpxaneHlcZtnDqNzko7OKfB+V/7eMD94Z+hzL0JbDA1GjUnb/3EkfurA/ hE+wUo5lPFcuahsgsQ68cKa/t/mqzekjW9lzp1mwGcHj1mi1aHcJxXjbHEo4y49b jqqCxs7Usz4Z+W31YjxG3Yt317S5PxkKsO62JGZVSmnLDclyrLEVj9C9Gzvp9IKV shtFJFTH9EkaH0gzQssnfblb6YAUnW7ibZHaqNeM6Ns8D7FpOA== 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 3wdcrs0u77-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Feb 2024 14:04:15 +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 41LE4AUb013235; Wed, 21 Feb 2024 14:04:10 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 3wanvkycen-1; Wed, 21 Feb 2024 14:04:10 +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 41LE4Aar013227; Wed, 21 Feb 2024 14:04:10 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 41LE4AKF013215; Wed, 21 Feb 2024 14:04:10 +0000 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 0) id 7965C39B8; Wed, 21 Feb 2024 19:34:09 +0530 (+0530) From: root To: andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, jingoohan1@gmail.com, gustavo.pimentel@synopsys.com, konrad.dybcio@linaro.org, manivannan.sadhasivam@linaro.org, conor+dt@kernel.org, quic_nitegupt@quicinc.com Cc: quic_shazhuss@quicinc.com, quic_ramkri@quicinc.com, quic_nayiluri@quicinc.com, quic_krichai@quicinc.com, quic_vbadigan@quicinc.com, Mrinmay Sarkar , Bjorn Helgaas , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84?= =?utf-8?q?ski?= , Rob Herring , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 0/3] Add support for detecting Controller Level PCIe Errors Date: Wed, 21 Feb 2024 19:34:01 +0530 Message-Id: <20240221140405.28532-1-root@hu-msarkar-hyd.qualcomm.com> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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-ORIG-GUID: dAK7buY6I60OWndzdRr5nyyKJdwWyjCk X-Proofpoint-GUID: dAK7buY6I60OWndzdRr5nyyKJdwWyjCk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-20_06,2024-02-21_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 suspectscore=0 impostorscore=0 priorityscore=1501 spamscore=0 mlxscore=0 adultscore=0 mlxlogscore=851 bulkscore=0 clxscore=1034 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402210109 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791517635436523759 X-GMAIL-MSGID: 1791517635436523759 From: Mrinmay Sarkar Synopsys Controllers provide capabilities to detect various controller level errors. These can range from controller interface error to random PCIe configuration errors. This patch intends to add support to detect these errors and report it to userspace entity via sysfs, which can take appropriate actions to mitigate the errors. Also adding global irq support for PCIe RC and add corresponding change in PCIe dt-bindings. Mrinmay Sarkar (2): dt-bindings: PCI: qcom: Add global irq support for SA8775p arm64: dts: qcom: sa8775p: Enable global irq support for SA8775p Nitesh Gupta (1): PCI: qcom: Add support for detecting Controller Level PCIe Errors .../devicetree/bindings/pci/qcom,pcie.yaml | 26 +- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 12 +- drivers/pci/controller/dwc/pcie-designware.h | 26 ++ drivers/pci/controller/dwc/pcie-qcom.c | 350 ++++++++++++++++++ 4 files changed, 408 insertions(+), 6 deletions(-)