Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2392050rdb; Wed, 21 Feb 2024 06:25:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW3u0tB3Q3Xz7lEw/ZhZpD2B3DWZFMRE/HvnwhKQOkoHh4a0VN40t0HBxBkKspwQsPFonF4KMa9gUP/IK6XkSa9obq9VtKcM7ZNYFv1bw== X-Google-Smtp-Source: AGHT+IEzVxK/r04Hkpd7Hgh+hv13hGosxHdc9xKHBmr1axdU9XdM9jdsR3PJT6Lj4MJHN3QO+C+x X-Received: by 2002:a17:902:da87:b0:1d9:2158:1308 with SMTP id j7-20020a170902da8700b001d921581308mr22863862plx.28.1708525539738; Wed, 21 Feb 2024 06:25:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708525539; cv=pass; d=google.com; s=arc-20160816; b=K6mf/4zoraqBLLjmOk7qW4Q9WN8lNOa6skVNCby51QDmmKkR1GK62dX2sN88ghkO0t MXjhCuJNVik2hrJfCpVTr3hu9wu+6gHvWG4clN4zjGTuYgFLdRaBfFAbR6Kq4Aveh3rN UwQyw5SxhjPgy4q+3kt38Rq+9Gm5cNT4eVrOrTpwoQSB15c9bcMS+jdfbfZ8AY8uwvx5 IX0yPdBg/Wq4KVRHIwsddZH7zAWHMndNJ/3hEbR+97byndP3NX12+KzL9L/Uym6mB8g1 5YPkrE6hmc/VCBEpV3XKXMm8HCAXM5EfuE1VKnNxwX7haZ27Vk0dUdnWqclB6Up6PTDC d3Iw== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74848-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=qualcomm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id w7-20020a170902e88700b001dc2d9a3328si1548788plg.398.2024.02.21.06.25.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 06:25:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74848-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74848-linux.lists.archive=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 33E80B2766B for ; Wed, 21 Feb 2024 14:05:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 68D857E79F; Wed, 21 Feb 2024 14:04:36 +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=20Wilczy=C5=84ski?= , 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 Content-Transfer-Encoding: 8bit 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 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(-) -- 2.40.1