From patchwork Mon Jan 29 12:11:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suraj Jaiswal X-Patchwork-Id: 19591 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp521958dyb; Mon, 29 Jan 2024 04:13:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IEQCjUj6dq0k+RSxdLblaiyt1IZXH7pqluzt/b2kzqqctmixVm3vrhG2Kug/ZlMacsCYRpg X-Received: by 2002:a17:90b:14b:b0:28e:79f9:b6c3 with SMTP id em11-20020a17090b014b00b0028e79f9b6c3mr5037657pjb.15.1706530437791; Mon, 29 Jan 2024 04:13:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706530437; cv=pass; d=google.com; s=arc-20160816; b=YDd+UdhBqmJDYmssKe0yraNJEku2ZUCr29gRzhcxllUqo6C1RniZ2+meO79OkOpqeA flcNnHIa3VGoXbMW009i4cdGhQa9YP+vMKJ+kgtLe6WSDZMKVsfDzrAIElVOaDzSR6/P vcNLGB2/r4NHzBHAv0bqfUN5Xz3gkmrFek/V+CDHAM5d2kOEqLjXW+6P/OynrUGwimE7 B+OZsL/4AvopMgqVnO8eEUQdWYaAZFY4LnL3bS0p7tgTgX1a+chn6h4w2a6B/k5shM0F lEzK6SN36PUQ8GGlcWQkEm9V+nv6Hp2pk57Sb+3bf8IzMSNlSzN7SMWI1uoV1IFztflQ 3mqQ== 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=AbNKmiJNTRVU/tBq36ysiUQ3MmyL1LwSWkWkl4M+C5o=; fh=AO1athPla3jqhCn4k6adBHi7gs3A5EcpzQmM6u71SYU=; b=YAwGp84fNoaQ5hjFjXp4GjgWs3hTC+p+102Jn26PyWdDszvat/Od8lRDAxvHzrlihK cdcxnV0UxoFkYXrM5YmS5YGsZrzG3tt2VA/SAI2XMK723+ScsxaL1yauYKIfilm9eRdt yr0AT8HMp++MRs+KTOjPZEZQZW7N3JUmQKThN3JP46mcS3Uz9kClSpKWKg8azP6wFx8c CMFWW2uMDWNhS46q9glcWhOM2Q7BsLuaFuAxdgqEM0GHM+n1xMQav1osjDVnZt7/A9Zp YrLrexKK0lv5otG1oby7WP8mwpeI0lWhnHJvPt+D1sua78/ZYuUitfuxcpQN+DgBa9v4 J3og== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ZND2vu2O; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-42673-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42673-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y19-20020a17090aca9300b0028caf24a3cbsi7562342pjt.100.2024.01.29.04.13.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 04:13:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42673-ouuuleilei=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=ZND2vu2O; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-42673-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42673-ouuuleilei=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 8F456283A56 for ; Mon, 29 Jan 2024 12:13:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B81260EC4; Mon, 29 Jan 2024 12:12:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="ZND2vu2O" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 44FD260DC1; Mon, 29 Jan 2024 12:12:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706530357; cv=none; b=UFtvKUYjdWZme4PcxjrOAtm8sQ7QbFddX410WJDZ3nPGYnjnI97K+C4sfp7sdHUKBZ/Nv3XBDEa6rEH/jDPXiqxf5bqs2eTil881Xg0ainpwRY6ASvUxo+FNL8c1GPGcwEiGgledn9Zr31VlzqKJoh1EbEv0XvlTMU92PZ4fnBQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706530357; c=relaxed/simple; bh=D3zG+4hD2sT228dFOqw1L83HsPwyb5IykHEPgivCucM=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=FRXkHam81u9Atr2fXp2pca3TpB7zfx15DB+8t89cW1ZWE90Y6eJ2iXSYeSYlZWGsLQa/C+5h//SfbRZRQVVjcoJ/J5N2dZgWws/TBva7gQ8aUJ0WFQ6RQiTx3DbD5P1X8h31okAkg0e4/+MBoEDlggK8Wrd05+fN4oxrdThKVbk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=ZND2vu2O; arc=none smtp.client-ip=205.220.168.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=quicinc.com Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40T6gMYk025007; Mon, 29 Jan 2024 12:12:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=qcppdkim1; bh=AbNKmiJ NTRVU/tBq36ysiUQ3MmyL1LwSWkWkl4M+C5o=; b=ZND2vu2O356PMYlc+tXmtpp KGEbBS/d6FcV8TfX9JBC0tsMm+k+F+IaJpr3xybha2hi4sd+DBJaECzxzpgeLkP7 LX+UWD3waxyZ6+Lb8o1agVkPLrVvxPmeGTVA4FxcGlQgbpwPuSVfBHqyQPB3u43J 1Ho2FB2kK/Aln4o6CMGipjceYAKhJamn/hGyr3Efp+4nLFZahDJuYrHuarr+Q1Dp iR/JUAIoITt/NHAZNC/nlIpb+iYzaIqaZeWgAkbTf3gIWbYXzJQhkChBUSadW210 StKT+uuQfNdpQkxf06mQMUw1/KfI3CTfp6uyEok4/iO41kAYEMAxvuzgn8DyevQ= = Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vvtkmbhe0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Jan 2024 12:12:23 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40TCBqld009691 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Jan 2024 12:11:52 GMT Received: from hu-jsuraj-hyd.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Mon, 29 Jan 2024 04:11:42 -0800 From: Suraj Jaiswal To: , Vinod Koul , Bhupesh Sharma , Andy Gross , Bjorn Andersson , Konrad Dybcio , "David S. Miller" , Eric Dumazet , "Jakub Kicinski" , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Alexandre Torgue , "Jose Abreu" , Maxime Coquelin , , , , , , Prasad Sodagudi , Andrew Halaney , Rob Herring CC: Subject: [PATCH net-next v10 0/3] Ethernet common fault IRQ support Date: Mon, 29 Jan 2024 17:41:26 +0530 Message-ID: <20240129121129.3581530-1-quic_jsuraj@quicinc.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 1dKb6_-dB6eYWhcQI7GIMSoKkc3kkSJD X-Proofpoint-GUID: 1dKb6_-dB6eYWhcQI7GIMSoKkc3kkSJD 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-01-29_07,2024-01-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 lowpriorityscore=0 mlxlogscore=878 malwarescore=0 suspectscore=0 priorityscore=1501 impostorscore=0 spamscore=0 adultscore=0 phishscore=0 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401290089 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789426860282428411 X-GMAIL-MSGID: 1789426860282428411 From: Suraj Jaiswal Add support to listen Ethernet HW common safery IRQ for correctable and uncorrectable fault. The safety IRQ will be triggered for ECC(error correction code), DPP(data path parity, FSM(finite state machine) error. Changes since v10: - Update commit message Changes since v9: - prevent race condition of safety IRQ handling Changes since v8: - Use shared IRQ for sfty - update error message Changes since v7: - Add support of common sfty irq on stmmac_request_irq_multi_msi. - Remove uncecessary blank line. Changes since v6: - use name sfty_irq instead of safety_common_irq. Changes since v5: - Add description of ECC, DPP, FSM Changes since v4: - Fix DT_CHECKER warning - use name safety for the IRQ. Suraj Jaiswal (3): dt-bindings: net: qcom,ethqos: add binding doc for safety IRQ for sa8775p arm64: dts: qcom: sa8775p: enable safety IRQ net: stmmac: Add driver support for common safety IRQ .../devicetree/bindings/net/qcom,ethqos.yaml | 9 ++-- .../devicetree/bindings/net/snps,dwmac.yaml | 6 ++- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 10 +++-- drivers/net/ethernet/stmicro/stmmac/common.h | 1 + drivers/net/ethernet/stmicro/stmmac/stmmac.h | 3 ++ .../net/ethernet/stmicro/stmmac/stmmac_main.c | 41 ++++++++++++++++++- .../ethernet/stmicro/stmmac/stmmac_platform.c | 8 ++++ 7 files changed, 67 insertions(+), 11 deletions(-)