From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA33CC433EF for ; Tue, 5 Oct 2021 17:19:05 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6B2F161381 for ; Tue, 5 Oct 2021 17:19:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6B2F161381 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.linuxfoundation.org Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 3D5C4404BF; Tue, 5 Oct 2021 17:19:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6KVgWpvfzNdh; Tue, 5 Oct 2021 17:19:04 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp4.osuosl.org (Postfix) with ESMTPS id 5AE52404CE; Tue, 5 Oct 2021 17:19:04 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 475EAC000F; Tue, 5 Oct 2021 17:19:04 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 8B95AC000D for ; Tue, 5 Oct 2021 17:19:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id D47FF605FC for ; Tue, 5 Oct 2021 17:19:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ucQgQnI0wOMZ for ; Tue, 5 Oct 2021 17:19:01 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by smtp3.osuosl.org (Postfix) with ESMTPS id 103E560C19 for ; Tue, 5 Oct 2021 17:19:00 +0000 (UTC) Received: by mail-pg1-x52e.google.com with SMTP id q201so7750936pgq.12 for ; Tue, 05 Oct 2021 10:19:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qQT+mDvkkQCJQfW4l8MXueOtWGmReSv26PNLqJ69eIE=; b=SAKUQo0n36vAvd2dP1867PQKEdhRlgvmbuzGuIjn6ExEt33l2DZ+FZeddFfsxZhPoN pE1xkI3/fiwkKoL3lO3xSRKeT39B5otGFTRCa9aZtDn1KSLn8LY32Q3jEUGqnrGQhrRf FEtTYTJWYMEm+plrrqi7vMw6tb1+3M+HUHAEaCbcIwP/maFCEilzUAFRDi4o/D4gskpb dHH2tz7jl/EJDxM1lPpu8WUPW8FJtFq2xv+1kXuWmLX4IEXmoFtix8X8sQDIXBkTXUg6 X/01cjlj1ILLP2ZCI0eSAjTkX/SUAk97sQ0ISZoae2hjQQVoyJioUA2bq18o/TxQ8bFD viIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qQT+mDvkkQCJQfW4l8MXueOtWGmReSv26PNLqJ69eIE=; b=7j5wKe9RSjlEHI8+mImfEkR4CpWVQAYdvLADcQuEu5JWixcxqsOjZ0jPLoPIw6HBMR lGn5mXDCQt7zoaae3gt4u47H1vaExwreY2aW1hBt2M5NaxkzYBB8stYKJNZx8yEhkMPD ubdf5I438w3dbTSjPEWQ+RxdH3Me64HdnEPe6XK6MJ4ta/zUHb+D/ACkwUG/WLvKIqez mYf3yXuy4EQQayeIjFJOQ9L1cgfXZSRA8Yb8KiE5nFU9E7Zo1EkwC/Qzf4f5EoLoiJ+B MGz/hDH+Em9uiNvHWDQPHD+2tb0dbqDBqcKKLfGAqli6p/7R16dLJuwjIY7PAig7t3nZ G3yg== X-Gm-Message-State: AOAM533C6R8cdF81WA+Menwy9GzzcY+UyHfbUDmYxQ31D/RERkiuYmPW rW2C1FuAHRaqUpJq3A/7/7Q= X-Google-Smtp-Source: ABdhPJzEWfjabqzm399k9sgiMDMfZMs8fGUj9h1G1NasJnjVQm0jliPuqYwmVa/JBUHJf7aVDXzsGQ== X-Received: by 2002:a63:5717:: with SMTP id l23mr1322508pgb.87.1633454340207; Tue, 05 Oct 2021 10:19:00 -0700 (PDT) Received: from localhost.localdomain ([2406:7400:63:f69:1127:b4ce:ef67:b718]) by smtp.gmail.com with ESMTPSA id f25sm18476722pge.7.2021.10.05.10.18.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 10:18:59 -0700 (PDT) From: Naveen Naidu To: bhelgaas@google.com, ruscur@russell.cc, oohall@gmail.com Subject: [PATCH v4 0/8] Fix long standing AER Error Handling Issues Date: Tue, 5 Oct 2021 22:48:06 +0530 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel-mentees@lists.linuxfoundation.org X-BeenThere: linux-kernel-mentees@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-kernel-mentees-bounces@lists.linuxfoundation.org Sender: "Linux-kernel-mentees" This patch series aims at fixing some of the AER error handling issues we have. Currently we have the following issues: - Confusing message in aer_print_error() - aer_err_info not being initialized completely in DPC path before we print the AER logs - A bug [1] in clearing of AER registers in the native AER path [1] https://lore.kernel.org/linux-pci/20151229155822.GA17321@localhost/ The primary aim of this patch series is to converge the APEI path and the native AER error handling paths. In our current code, we find that we have two different behaviours (especially when it comes to clearing of the AER registers) for the same functionality. This patch series, tries to bring the same semantics and hence more commonanlity between the APEI part of code and the native OS handling of AER errors. PATCH 1: - Fixes the first issue PATCH 2 - 4: - Fixes the second issue - "Patch 3/8" is dependent on "Patch 2/8" in the series PATCH 5 - 7 - Deals with converging the various paths and brings more commonality between them - "Patch 6/8" depends on "Patch 1/8" PATCH 8: - Adds extra information in AER error logs. Thanks, Naveen Naidu Changelog ========= v4: - Implement review comments - Make "Patch 1/8" commit message more meaningful - Fix the code comment error detected by kernel test robot in "Patch 6/8" v2 and v3: - Fix up mail formatting and include the appropriate receipients for the patch. Naveen Naidu (8): [PATCH v4 1/8] PCI/AER: Remove ID from aer_agent_string[] [PATCH v4 2/8] PCI: Cleanup struct aer_err_info [PATCH v4 3/8] PCI/DPC: Initialize info->id in dpc_process_error() [PATCH v4 4/8] PCI/DPC: Use pci_aer_clear_status() in dpc_process_error() [PATCH v4 5/8] PCI/DPC: Converge EDR and DPC Path of clearing AER registers [PATCH v4 6/8] PCI/AER: Clear error device AER registers in aer_irq() [PATCH v4 7/8] PCI/ERR: Remove redundant clearing of AER register in pcie_do_recovery() [PATCH v4 8/8] PCI/AER: Include DEVCTL in aer_print_error() drivers/pci/pci.h | 23 +++- drivers/pci/pcie/aer.c | 269 ++++++++++++++++++++++++++++------------- drivers/pci/pcie/dpc.c | 9 +- drivers/pci/pcie/err.c | 9 +- 4 files changed, 209 insertions(+), 101 deletions(-) -- 2.25.1 _______________________________________________ Linux-kernel-mentees mailing list Linux-kernel-mentees@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E9B97C433EF for ; Tue, 5 Oct 2021 17:19:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D166B61381 for ; Tue, 5 Oct 2021 17:19:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236487AbhJERUw (ORCPT ); Tue, 5 Oct 2021 13:20:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234938AbhJERUv (ORCPT ); Tue, 5 Oct 2021 13:20:51 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7745C061749; Tue, 5 Oct 2021 10:19:00 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id s75so2369126pgs.5; Tue, 05 Oct 2021 10:19:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qQT+mDvkkQCJQfW4l8MXueOtWGmReSv26PNLqJ69eIE=; b=SAKUQo0n36vAvd2dP1867PQKEdhRlgvmbuzGuIjn6ExEt33l2DZ+FZeddFfsxZhPoN pE1xkI3/fiwkKoL3lO3xSRKeT39B5otGFTRCa9aZtDn1KSLn8LY32Q3jEUGqnrGQhrRf FEtTYTJWYMEm+plrrqi7vMw6tb1+3M+HUHAEaCbcIwP/maFCEilzUAFRDi4o/D4gskpb dHH2tz7jl/EJDxM1lPpu8WUPW8FJtFq2xv+1kXuWmLX4IEXmoFtix8X8sQDIXBkTXUg6 X/01cjlj1ILLP2ZCI0eSAjTkX/SUAk97sQ0ISZoae2hjQQVoyJioUA2bq18o/TxQ8bFD viIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qQT+mDvkkQCJQfW4l8MXueOtWGmReSv26PNLqJ69eIE=; b=q53FjND+vqd+IsLbmVrMROuyL2ESxOhAqyr8htxf0Vdcl7H7YzVb8wbSlxM5FWpfb4 HlCV7QH1YfHPPihkaHnSIC03dxr6687qNhgV47zo6Xav99KI4cb0G289/I9zhVa7utX5 vJAwvHd0L0VubNVTLyXdm6wVlByUaOWeAn1t4XUl3IWnLOBlInqBPeupKrYR5rfrhfno TT4C0Kmv2srD9YUeZHYeQEnP6E5k90B/HoroqfIh1lBmwUpRMx1SG+VHt6ga8sYRiJE9 4JYH97VSMG5FThIaxT19JxbqgmybUVgvrWdBuM4GXjB4K5rNy79YjP08Z16UxiJJ/VJw V/7Q== X-Gm-Message-State: AOAM531CunmcfL08+gb26pb2yRLK2w5uVfEgRsloQfzYfnFEZ8uUAT7O 9uxqRI8TGVlXKVQ1WCfCSno= X-Google-Smtp-Source: ABdhPJzEWfjabqzm399k9sgiMDMfZMs8fGUj9h1G1NasJnjVQm0jliPuqYwmVa/JBUHJf7aVDXzsGQ== X-Received: by 2002:a63:5717:: with SMTP id l23mr1322508pgb.87.1633454340207; Tue, 05 Oct 2021 10:19:00 -0700 (PDT) Received: from localhost.localdomain ([2406:7400:63:f69:1127:b4ce:ef67:b718]) by smtp.gmail.com with ESMTPSA id f25sm18476722pge.7.2021.10.05.10.18.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 10:18:59 -0700 (PDT) From: Naveen Naidu To: bhelgaas@google.com, ruscur@russell.cc, oohall@gmail.com Cc: Naveen Naidu , linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH v4 0/8] Fix long standing AER Error Handling Issues Date: Tue, 5 Oct 2021 22:48:06 +0530 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org This patch series aims at fixing some of the AER error handling issues we have. Currently we have the following issues: - Confusing message in aer_print_error() - aer_err_info not being initialized completely in DPC path before we print the AER logs - A bug [1] in clearing of AER registers in the native AER path [1] https://lore.kernel.org/linux-pci/20151229155822.GA17321@localhost/ The primary aim of this patch series is to converge the APEI path and the native AER error handling paths. In our current code, we find that we have two different behaviours (especially when it comes to clearing of the AER registers) for the same functionality. This patch series, tries to bring the same semantics and hence more commonanlity between the APEI part of code and the native OS handling of AER errors. PATCH 1: - Fixes the first issue PATCH 2 - 4: - Fixes the second issue - "Patch 3/8" is dependent on "Patch 2/8" in the series PATCH 5 - 7 - Deals with converging the various paths and brings more commonality between them - "Patch 6/8" depends on "Patch 1/8" PATCH 8: - Adds extra information in AER error logs. Thanks, Naveen Naidu Changelog ========= v4: - Implement review comments - Make "Patch 1/8" commit message more meaningful - Fix the code comment error detected by kernel test robot in "Patch 6/8" v2 and v3: - Fix up mail formatting and include the appropriate receipients for the patch. Naveen Naidu (8): [PATCH v4 1/8] PCI/AER: Remove ID from aer_agent_string[] [PATCH v4 2/8] PCI: Cleanup struct aer_err_info [PATCH v4 3/8] PCI/DPC: Initialize info->id in dpc_process_error() [PATCH v4 4/8] PCI/DPC: Use pci_aer_clear_status() in dpc_process_error() [PATCH v4 5/8] PCI/DPC: Converge EDR and DPC Path of clearing AER registers [PATCH v4 6/8] PCI/AER: Clear error device AER registers in aer_irq() [PATCH v4 7/8] PCI/ERR: Remove redundant clearing of AER register in pcie_do_recovery() [PATCH v4 8/8] PCI/AER: Include DEVCTL in aer_print_error() drivers/pci/pci.h | 23 +++- drivers/pci/pcie/aer.c | 269 ++++++++++++++++++++++++++++------------- drivers/pci/pcie/dpc.c | 9 +- drivers/pci/pcie/err.c | 9 +- 4 files changed, 209 insertions(+), 101 deletions(-) -- 2.25.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E55E8C433F5 for ; Tue, 5 Oct 2021 17:19:46 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 201F461502 for ; Tue, 5 Oct 2021 17:19:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 201F461502 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4HP48J4F6Wz2ynN for ; Wed, 6 Oct 2021 04:19:44 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=SAKUQo0n; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::532; helo=mail-pg1-x532.google.com; envelope-from=naveennaidu479@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=SAKUQo0n; dkim-atps=neutral Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4HP47X5Xm0z2yPY for ; Wed, 6 Oct 2021 04:19:03 +1100 (AEDT) Received: by mail-pg1-x532.google.com with SMTP id r201so14477369pgr.4 for ; Tue, 05 Oct 2021 10:19:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qQT+mDvkkQCJQfW4l8MXueOtWGmReSv26PNLqJ69eIE=; b=SAKUQo0n36vAvd2dP1867PQKEdhRlgvmbuzGuIjn6ExEt33l2DZ+FZeddFfsxZhPoN pE1xkI3/fiwkKoL3lO3xSRKeT39B5otGFTRCa9aZtDn1KSLn8LY32Q3jEUGqnrGQhrRf FEtTYTJWYMEm+plrrqi7vMw6tb1+3M+HUHAEaCbcIwP/maFCEilzUAFRDi4o/D4gskpb dHH2tz7jl/EJDxM1lPpu8WUPW8FJtFq2xv+1kXuWmLX4IEXmoFtix8X8sQDIXBkTXUg6 X/01cjlj1ILLP2ZCI0eSAjTkX/SUAk97sQ0ISZoae2hjQQVoyJioUA2bq18o/TxQ8bFD viIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qQT+mDvkkQCJQfW4l8MXueOtWGmReSv26PNLqJ69eIE=; b=De8l0sHe4aXkhETquKAWjJ62Ut2veMllpoNCRdCsCZqcxwefxxVcQPOSIIdnEb6HdA yZkYpDIlqA1SifpCzDJWJxYvUlQ9xG9YdZyL0t6LBjKrsgElvxSi26c552QGtLirRtnl XmCJm4YlY2sc/2yFUw2Y6qYN+xmCZN/rCMdEvZ34n7YVLMz+KNvHIgfdX47R/DXOZ2eM 7eUx/W4D4y1g/GYuRbWBzQkrJ4DNjRx4j46OV2z7rTQmUJwiCkw5sAMEaMXz8fzYq+sN i1RFnpY1u1lA0QSI1FUikXHypTG9K0rfdN1SGCkfo55pUEUq1Mc5dYfMFpbYWdnQ8wEp Hl4A== X-Gm-Message-State: AOAM531jXXrEPiwUXdVPBbR2FHbVelN9NxUD803W+dME9upGsfvRD5Vd 9DvM9O/5OPV63KwUSLe458M= X-Google-Smtp-Source: ABdhPJzEWfjabqzm399k9sgiMDMfZMs8fGUj9h1G1NasJnjVQm0jliPuqYwmVa/JBUHJf7aVDXzsGQ== X-Received: by 2002:a63:5717:: with SMTP id l23mr1322508pgb.87.1633454340207; Tue, 05 Oct 2021 10:19:00 -0700 (PDT) Received: from localhost.localdomain ([2406:7400:63:f69:1127:b4ce:ef67:b718]) by smtp.gmail.com with ESMTPSA id f25sm18476722pge.7.2021.10.05.10.18.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 10:18:59 -0700 (PDT) From: Naveen Naidu To: bhelgaas@google.com, ruscur@russell.cc, oohall@gmail.com Subject: [PATCH v4 0/8] Fix long standing AER Error Handling Issues Date: Tue, 5 Oct 2021 22:48:06 +0530 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Naveen Naidu , skhan@linuxfoundation.org, linuxppc-dev@lists.ozlabs.org, linux-kernel-mentees@lists.linuxfoundation.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" This patch series aims at fixing some of the AER error handling issues we have. Currently we have the following issues: - Confusing message in aer_print_error() - aer_err_info not being initialized completely in DPC path before we print the AER logs - A bug [1] in clearing of AER registers in the native AER path [1] https://lore.kernel.org/linux-pci/20151229155822.GA17321@localhost/ The primary aim of this patch series is to converge the APEI path and the native AER error handling paths. In our current code, we find that we have two different behaviours (especially when it comes to clearing of the AER registers) for the same functionality. This patch series, tries to bring the same semantics and hence more commonanlity between the APEI part of code and the native OS handling of AER errors. PATCH 1: - Fixes the first issue PATCH 2 - 4: - Fixes the second issue - "Patch 3/8" is dependent on "Patch 2/8" in the series PATCH 5 - 7 - Deals with converging the various paths and brings more commonality between them - "Patch 6/8" depends on "Patch 1/8" PATCH 8: - Adds extra information in AER error logs. Thanks, Naveen Naidu Changelog ========= v4: - Implement review comments - Make "Patch 1/8" commit message more meaningful - Fix the code comment error detected by kernel test robot in "Patch 6/8" v2 and v3: - Fix up mail formatting and include the appropriate receipients for the patch. Naveen Naidu (8): [PATCH v4 1/8] PCI/AER: Remove ID from aer_agent_string[] [PATCH v4 2/8] PCI: Cleanup struct aer_err_info [PATCH v4 3/8] PCI/DPC: Initialize info->id in dpc_process_error() [PATCH v4 4/8] PCI/DPC: Use pci_aer_clear_status() in dpc_process_error() [PATCH v4 5/8] PCI/DPC: Converge EDR and DPC Path of clearing AER registers [PATCH v4 6/8] PCI/AER: Clear error device AER registers in aer_irq() [PATCH v4 7/8] PCI/ERR: Remove redundant clearing of AER register in pcie_do_recovery() [PATCH v4 8/8] PCI/AER: Include DEVCTL in aer_print_error() drivers/pci/pci.h | 23 +++- drivers/pci/pcie/aer.c | 269 ++++++++++++++++++++++++++++------------- drivers/pci/pcie/dpc.c | 9 +- drivers/pci/pcie/err.c | 9 +- 4 files changed, 209 insertions(+), 101 deletions(-) -- 2.25.1