Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27586744rwd; Tue, 4 Jul 2023 05:13:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlHNfRDscRmIla6HRaHjmSM4x7WcM2/WAv7dso060z9vlVE2N1bVNb0RSIzpSPBOIgh+jpVf X-Received: by 2002:a17:902:d2cd:b0:1b5:49fc:e336 with SMTP id n13-20020a170902d2cd00b001b549fce336mr13524397plc.42.1688472802204; Tue, 04 Jul 2023 05:13:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688472802; cv=none; d=google.com; s=arc-20160816; b=giYo9YJr9/GnB8CKw3bh2RgGqXKAdL9l2W0QWAZQEbzcSBWQNxfQ0NDe+ako/XHEAY qHI7ULwH0I684KPlGWH6yqNH9eV/wai1EMVmakDK11bnVgEhA9+NeZ13E6ICOi1hfj4M P2N0XleA0x930C+lVFQYIYhGfV1PnJzqGq61tYFbqR9mmKOnttpL48x3GjSZwHDDih3P KA1tIRmwGWFbVbcAndkW4gBweFJ/sHmGEOuXywlUdspLoFnB0fWh+42SMa8iAD+QGV7B x2axsZVUhZ0wsILAKmTz8k6tlDXm5BpQcZJ/qsi28NQDg142lbyVXzydqbPvT0pZ29XW TMDQ== 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:to:from; bh=2bMSa6se4/k1LJ1HVEPVxEj8f0UYawbt1B7t6PqUeVQ=; fh=iIV36Dgdh4LzvyKE3JHia3Vj+ViV+F528zNAqnPmggE=; b=l/KzB4oJhB9GyN1+vwulVbFxkyRlPDhqmziccU9g0sGw7VIkOaM2A9ZOVtNqtOiQq/ q40x+MaoDcySmXpfcYDlPn1NqApzB2av5dO5UytlwqANuCuX9CnmyrJcTPpk+H3w+LKD dDB2cA5knj2ep/u+dnXrJ3Na7qpcge+d0z4wPYD0bpZRoRdNr05CSyxwZOhGhFMXc8Rn 2qB7dnXQFOCZXH47tWkwmyHOsbKsb3BOBeFrtGCvuovkQJ13AitAuXdYcBYQkL/6CAAF vjZGdIS4khvzpu5EWVYrf6pxJfl73r0W4+w3mHyQSig5xlWWQzM70QTPp92B+hhFYJ1t 28aw== 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 k1-20020a170902c40100b001b84c7d4716si12875978plk.32.2023.07.04.05.13.08; Tue, 04 Jul 2023 05:13:22 -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; 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 S231409AbjGDMGp (ORCPT + 99 others); Tue, 4 Jul 2023 08:06:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231428AbjGDMGn (ORCPT ); Tue, 4 Jul 2023 08:06:43 -0400 Received: from mx1.zhaoxin.com (MX1.ZHAOXIN.COM [210.0.225.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D682171D for ; Tue, 4 Jul 2023 05:06:24 -0700 (PDT) X-ASG-Debug-ID: 1688472381-086e23149914920001-xx1T2L Received: from ZXSHMBX1.zhaoxin.com (ZXSHMBX1.zhaoxin.com [10.28.252.163]) by mx1.zhaoxin.com with ESMTP id 55EaRqoPMr21gjIz (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 04 Jul 2023 20:06:21 +0800 (CST) X-Barracuda-Envelope-From: LeoLiu-oc@zhaoxin.com X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.163 Received: from ZXBJMBX03.zhaoxin.com (10.29.252.7) by ZXSHMBX1.zhaoxin.com (10.28.252.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Tue, 4 Jul 2023 20:06:20 +0800 Received: from xin.lan (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.16; Tue, 4 Jul 2023 20:06:19 +0800 X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.163 From: LeoLiu-oc X-Barracuda-RBL-Trusted-Forwarder: 10.29.252.7 To: , , , , , , , , , , Subject: [PATCH v3 5/5] PCI: Config PCIe devices's AER register Date: Tue, 4 Jul 2023 20:06:18 +0800 X-ASG-Orig-Subj: [PATCH v3 5/5] PCI: Config PCIe devices's AER register Message-ID: <20230704120618.1322425-1-LeoLiu-oc@zhaoxin.com> X-Mailer: git-send-email 2.34.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: ZXSHMBX1.zhaoxin.com[10.28.252.163] X-Barracuda-Start-Time: 1688472381 X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256 X-Barracuda-URL: https://10.28.252.35:4443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at zhaoxin.com X-Barracuda-Scan-Msg-Size: 793 X-Barracuda-BRTS-Status: 1 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 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.110906 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,T_SCC_BODY_TEXT_LINE 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 Call the func pci_acpi_program_hest_aer_params() for every PCIe device. Extracting register values from HEST PCIe AER structures and programming them into AER Capabilities are implemented in this function. Signed-off-by: leoliu-oc --- drivers/pci/probe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 8bac3ce02609c..8946d35fcc416 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -2274,6 +2274,7 @@ static void pci_configure_device(struct pci_dev *dev) pci_configure_serr(dev); pci_acpi_program_hp_params(dev); + pci_acpi_program_hest_aer_params(dev); } static void pci_release_capabilities(struct pci_dev *dev) -- 2.34.1