Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1046012rwe; Thu, 1 Sep 2022 11:33:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR6G0iKdeu3tQXIInv9oMm1Nn8lFSa5Lk+v4E/XLMohb+TTye8yzkQamWdohYvxHEX+Aqiv2 X-Received: by 2002:aa7:dbc5:0:b0:440:b0d6:7586 with SMTP id v5-20020aa7dbc5000000b00440b0d67586mr29142824edt.85.1662057197876; Thu, 01 Sep 2022 11:33:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662057197; cv=none; d=google.com; s=arc-20160816; b=JQ1OGvpNzhVl01+P9qJoMBfzq8Amk0iEAuaCo3bW01s2uwcfkt7GLBXsGgitaSEVv1 BZf4AV1grYQkBTL0j2XweMuro+WyCfGX8c52M5ptvNatdkZhdrUBRcdCtN6nHxlgsHaR sSzTm4mj692OTpAWvPpIZ3/cs5uihFvLjR047+3GFOJ0t32BsXSay+NKZY3lo++mrsnA Dh1eQPkW/PuoLqEZifGp0Xw73VS0iW0sfGwwiR8HiHQvvVO+62LyHPJISqr6K29VPCiE ZQ/I4z/dezQEpo6Gc2MnBKfMXyXCzQ+fJVm2iEhuwZVV6wTU9SCdeAxTeyUNBo2nOPhT YpZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=UHJ+wNg6rHSLjNi/6t6DVtAkUVcspchblfn/eFkKqsw=; b=E49zEt1LRaNchyGxZI099wLas9J/Oqiro8O9rNlGbnv75tHWHAxEv1ZeHTfYJ3l3LM dgt/P+FF9+bxsiIe2twwzdIK68IeX+vr6eeiFM306+2ZUivtElQX/h+Ct9LE98tD78uV djbKHBk2Y7sTfW5sDjE5X1xW0dg8b4ZbZJJuiunu0qieCR9JiYgaCxqyU4Sey06UAX2M VrpKpgBHpG7zaE3d51+32jqRFqAH9DcFEPlOhwEed2m7ZdZCs9ZHBloLt+R3ZjNfScUq VUwkjNN+/Z0JzE3217b0zjChRz4l98fkCa/7oR1w7Jpqd960cGUl0ZfTRTx8jIhFAji4 0YNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=HrJjbOMA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c14-20020a0564021f8e00b0043c12e736c7si2333324edc.485.2022.09.01.11.32.50; Thu, 01 Sep 2022 11:33:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=HrJjbOMA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233577AbiIASQ5 (ORCPT + 99 others); Thu, 1 Sep 2022 14:16:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232490AbiIASQ4 (ORCPT ); Thu, 1 Sep 2022 14:16:56 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E1AA754BC for ; Thu, 1 Sep 2022 11:16:54 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id jm11so17792402plb.13 for ; Thu, 01 Sep 2022 11:16:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=UHJ+wNg6rHSLjNi/6t6DVtAkUVcspchblfn/eFkKqsw=; b=HrJjbOMAscprcYO5PohMvHxByNRc1LKXTo6sQZuSzgC2XApf6bfM9LFErgYqRzoCgj dxDAMu9X4lyR7NRhOF5reb+70GOQgQhspYNlzgiePz3BU2vBiOTc/wCgQOTBX1nvY3rl gRAOXKbMZo6iWwdxi5XCFMyWAK0sm8241MmfzJSwrIHCME8q/lKFVw54cv+mMAQPeY+I CceuLNc7YMKHS9J6H0rqi3cuooZ6w2KLQeRcyB+ueRMsAHpJMRLidojb13a8cxBWurte 4EKxdLd+1K5ihRfvnqll1rCH5Gk6uP70mqHUGIq9SNVjwOl+S/rBWIvlyRybEnmgp4Fk MA/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=UHJ+wNg6rHSLjNi/6t6DVtAkUVcspchblfn/eFkKqsw=; b=oSexxFURDGhnGeY5DHlW1cGKzyDWBV4apOdxDJ21a/gON/EJ08nQ3jCEGXzWzKPRoa dBQxWSTDA9YWkhTvfhOhNgWrF5fVFdMlDxf9InlBpcm6H0wELapE29eGb35MhNOgS/q8 RRxaLDRqgDdKsQ+IUpFy+fc+z1Y4Pfo5wmKeT4Lt8xWnZYeJ+kLG4uO7KR4PIFqAaYVC pKLj16+eNY2IpxUaM5+8+UsiE8A7vXB54Qt8a5kC+JrW3foDtKB5qPs9zdLq6KvrmRUQ KiXDMFms6m2fKgTFMKnK/svGpoToMeHtusZ+xz4jTUIkSUnjxyEf0jtI1gdjTdDKVdsu BQpw== X-Gm-Message-State: ACgBeo1tArQZUpe2xEo2xIWEzzr+AgNYHQdOGtbuPi/NBn+AXP+XgtnM 3P5B9jzux5gTRsBWGg1cFfG6BZOUuHIIWQ== X-Received: by 2002:a17:903:22c7:b0:175:3682:9cf5 with SMTP id y7-20020a17090322c700b0017536829cf5mr11191184plg.150.1662056214062; Thu, 01 Sep 2022 11:16:54 -0700 (PDT) Received: from C02F63J9MD6R.bytedance.net ([61.120.150.77]) by smtp.gmail.com with ESMTPSA id b13-20020a170903228d00b0017519b86996sm6320538plh.218.2022.09.01.11.16.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Sep 2022 11:16:53 -0700 (PDT) From: Zhuo Chen To: fancer.lancer@gmail.com, jdmason@kudzu.us, dave.jiang@intel.com, allenbh@gmail.com, bhelgaas@google.com, ruscur@russell.cc, oohall@gmail.com, james.smart@broadcom.com, dick.kennedy@broadcom.com, jejb@linux.ibm.com, martin.petersen@oracle.com Cc: chenzhuo.1@bytedance.com, ntb@lists.linux.dev, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-scsi@vger.kernel.org Subject: [PATCH 0/3] PCI/AER: Fix and optimize usage of status clear api Date: Fri, 2 Sep 2022 02:16:31 +0800 Message-Id: <20220901181634.99591-1-chenzhuo.1@bytedance.com> X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, This series contains some fixes and optimizations of aer api usage. We add some process to clear uncorrectable error status, then add distinction between fatal and nonfatal situations in pcie_do_recovery() and reduce some redundant code. The series involves pci driver and vendor driver. Thanks, Zhuo Chen Zhuo Chen (3): PCI/AER: Use pci_aer_clear_uncorrect_error_status() to clear uncorrectable error status PCI/ERR: Clear fatal status in pcie_do_recovery() PCI/AER: Use pci_aer_raw_clear_status() to clear root port's AER error status drivers/ntb/hw/idt/ntb_hw_idt.c | 4 ++-- drivers/pci/pci.h | 2 ++ drivers/pci/pcie/aer.c | 30 +++++++++++++++++++----------- drivers/pci/pcie/dpc.c | 3 +-- drivers/pci/pcie/err.c | 8 ++++++-- drivers/scsi/lpfc/lpfc_attr.c | 4 ++-- include/linux/aer.h | 4 ++-- 7 files changed, 34 insertions(+), 21 deletions(-) -- 2.30.1 (Apple Git-130)