Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6411497rwb; Mon, 14 Nov 2022 20:25:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf56GRKGU7FbDVfdp6pXnqOzuFc53JUTg9xTWmZ+BhjgmJ8Vx6bZimSWrGNmNU0lV8t9Pt/C X-Received: by 2002:a63:a47:0:b0:46f:b3e:4d46 with SMTP id z7-20020a630a47000000b0046f0b3e4d46mr14319221pgk.265.1668486327189; Mon, 14 Nov 2022 20:25:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668486327; cv=none; d=google.com; s=arc-20160816; b=W86/FDnqUE7/7HoVKBGxjnQFi/7L291ZAsgmU1L+D60EK5F4SmQ7Y+/VnaYGLh4hif rrB4nNaXfawFRsneaRi0GPTcKWfgAJ32VZZySH2ksqa4IzRHJOZ16T0Nb4cVpwdBfx6a q+Gkb5UT2ctEOGo4S48YGO0Mic335mNdUAx6ZO1RrF5dtHbiiy0Th9frbUZHpIBdLMDT vTWJoKgNU2bSAMnKE1ailwzszrD+KKZs+8K5NqUKbU/lbmZt9dK0Lq+r6U0D8F1k1vW3 CONUOEhGcACmjjBVKmGWbbygEF/x+gibm7h2ZRTCEfuuTXqVn1goREQLN0wT4SzyfqvT CiNg== 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; bh=4QiisiSyblsHafy9PT9j574iESrH5ZYcQFs4RCERJNA=; b=eyyEXAAiZuMDUOzJSxstTqpZuAYJ8aNfUe1WkAN3gCXap+/m9aUhGfJIRIqYEsi6zI BAQxVBiX/TQV3GPPU7TizbA4QJfJDqdJuqFS53WuVeBTC9kROb9lzOKXWZa9YoJY1pDL cRv2BTMvD8U1KQ3gAjl5CE3iT1hQVBKvKVxe5v4U0DLlaCDcpuubkZ9koOSnhlvbmWEX 49x5utgue9LBWyBc57H2ik7jEKd/R+OF+kpATKzESkyFDSajgXRUCCyIYChe1XIthSne CQIlsn/vMz9+J1yMlAfIegvSPMh/1np4ucs0BxKeupOKy23pReac9DOVHh+6Y+p065ae o0/g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g2-20020a63f402000000b0042b57d7bc14si10892118pgi.763.2022.11.14.20.25.13; Mon, 14 Nov 2022 20:25:25 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230336AbiKODL0 (ORCPT + 88 others); Mon, 14 Nov 2022 22:11:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231602AbiKODLX (ORCPT ); Mon, 14 Nov 2022 22:11:23 -0500 Received: from mx2.zhaoxin.com (mx2.zhaoxin.com [203.110.167.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D89192DCF for ; Mon, 14 Nov 2022 19:11:21 -0800 (PST) X-ASG-Debug-ID: 1668481878-1eb14e7e6389870001-xx1T2L Received: from ZXSHMBX3.zhaoxin.com (ZXSHMBX3.zhaoxin.com [10.28.252.165]) by mx2.zhaoxin.com with ESMTP id 5A9uGEdVIYFdYG38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 15 Nov 2022 11:11:18 +0800 (CST) X-Barracuda-Envelope-From: LeoLiu-oc@zhaoxin.com X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.165 Received: from ZXBJMBX03.zhaoxin.com (10.29.252.7) by ZXSHMBX3.zhaoxin.com (10.28.252.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Tue, 15 Nov 2022 11:11:18 +0800 Received: from localhost.localdomain (10.32.64.1) by ZXBJMBX03.zhaoxin.com (10.29.252.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Tue, 15 Nov 2022 11:11:16 +0800 X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.165 From: LeoLiu-oc X-Barracuda-RBL-Trusted-Forwarder: 10.29.252.7 To: , , , , , , , , , , , , CC: , , , leoliu-oc Subject: [PATCH v2 0/5] Parse the PCIe AER and set to relevant registers Date: Tue, 15 Nov 2022 11:11:15 +0800 X-ASG-Orig-Subj: [PATCH v2 0/5] Parse the PCIe AER and set to relevant registers Message-ID: <20221115031115.1666464-1-LeoLiu-oc@zhaoxin.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.32.64.1] X-ClientProxiedBy: zxbjmbx1.zhaoxin.com (10.29.252.163) To ZXBJMBX03.zhaoxin.com (10.29.252.7) X-Barracuda-Connect: ZXSHMBX3.zhaoxin.com[10.28.252.165] X-Barracuda-Start-Time: 1668481878 X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256 X-Barracuda-URL: https://10.28.252.36:4443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at zhaoxin.com X-Barracuda-Scan-Msg-Size: 1247 X-Barracuda-BRTS-Status: 1 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0485 1.0000 -1.7092 X-Barracuda-Spam-Score: -1.71 X-Barracuda-Spam-Status: No, SCORE=-1.71 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.102147 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 From: leoliu-oc According to the sec 18.3.2.4, 18.3.2.5 and 18.3.2.6 in ACPI r6.5, the register values form HEST PCI Express AER Structure should be written to relevant PCIe Device's AER Capabilities. So the purpose of the patch set is to extract register values from HEST PCI Express AER structures and program them into AER Capabilities. Refer to the ACPI Spec r6.5 for a more detailed description. v2: - Optimize the description of patches. - Adjusted the code logic in function apei_hest_parse_aer. leoliu-oc (5): ACPI/APEI: Add apei_hest_parse_aer() ACPI/APEI: Remove static from apei_hest_parse() ACPI/PCI: Add AER bits #defines for PCIe to PCI/PCI-X Bridge ACPI/PCI: Add pci_acpi_program_hest_aer_params() ACPI/PCI: Config PCIe devices's AER register drivers/acpi/apei/hest.c | 117 +++++++++++++++++++++++++++++++++- drivers/pci/pci-acpi.c | 92 ++++++++++++++++++++++++++ drivers/pci/pci.h | 5 ++ drivers/pci/probe.c | 1 + include/acpi/actbl1.h | 69 ++++++++++++++++++++ include/acpi/apei.h | 9 +++ include/uapi/linux/pci_regs.h | 5 ++ 7 files changed, 295 insertions(+), 3 deletions(-) -- 2.20.1