Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6396754rwb; Mon, 14 Nov 2022 20:05:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf4NF2XwmO/y3GuiBW8Jh27zuuo5nSUINaO0IzDP931Ui1JQ/zcuQUItTXhptgbJBuDjw/Yf X-Received: by 2002:a17:902:ced0:b0:185:5453:5e01 with SMTP id d16-20020a170902ced000b0018554535e01mr2188494plg.113.1668485135614; Mon, 14 Nov 2022 20:05:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668485135; cv=none; d=google.com; s=arc-20160816; b=k/7YWdWc629YWVKK5p/OfkIiEWGyCVC+cnyTcxINVwsFvnXmyiSo0k1CRumVbUegT3 DikPDVNbbnQrU7Z9ywtfDmlXygnqJMNj1CDSad/OWAreZDc2mHoPSjsAdFBI8TDhlClb kOiDuSBkaXcua5hoVhBMpqVMzwJVlaN5NudazBUrdWleC9KGXMAv5wghxYVCbaIelfUD kHlZE1gkOrdUnZo7iG2RGdFA090G41YyLmuqFPsz0dXUQgjPGc4LKntn3gGG+Jhn6lAx t/tcvPTOgTAj9IlZ5G74gwMgQ1PXsC/kGw31GzN6biFJBTKZLnGRfJu90TdxEaebNhP4 CjDQ== 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=Au/ITZjPkAP8SPxl2DjjdQD5urGKyXSnHnebvQ8cesc=; b=rxGCFf7fI/4Pv17lA8Ktd/KgfjanCEIJ3598oUVzUS5DjXgW6fVLczCTdleapfQw+d oEvrdM2TLM4EPBEOLfvB8NBbJOPOD13DC2Vaif8lGXqMccpDMPAUTc/4EtqJMM2Z/RiT VZnHIhq5RYh5VgmidujyJw3zvojLvRtkStfVOkux8Nh6P49R1jqYRM54K6WuTpGTmbZG K7j2Pgqr7ck93I26v2J/2E4sMANv19wbn5jZ6v+NDgSDTtD8JSRMoVWOvMuCMDHGLKxI ye09VZRUCIG+x96+GWiKWDf5pTN7TjGKzgSswTTHSRYIpHguZsOQL0m7Mx7DmGPCtIDZ YjCQ== 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 w21-20020a056a0014d500b005627d896458si12436388pfu.142.2022.11.14.20.05.23; Mon, 14 Nov 2022 20:05:35 -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 S232377AbiKODN1 (ORCPT + 88 others); Mon, 14 Nov 2022 22:13:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237062AbiKODNW (ORCPT ); Mon, 14 Nov 2022 22:13:22 -0500 Received: from mx2.zhaoxin.com (mx2.zhaoxin.com [203.110.167.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4196FE097 for ; Mon, 14 Nov 2022 19:13:21 -0800 (PST) X-ASG-Debug-ID: 1668481999-1eb14e7e63898a0001-xx1T2L Received: from ZXSHMBX3.zhaoxin.com (ZXSHMBX3.zhaoxin.com [10.28.252.165]) by mx2.zhaoxin.com with ESMTP id AEK4qm34JgfWn1ro (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 15 Nov 2022 11:13:19 +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:13:19 +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:13: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 5/5] ACPI/PCI: Config PCIe devices's AER register Date: Tue, 15 Nov 2022 11:13:15 +0800 X-ASG-Orig-Subj: [PATCH v2 5/5] ACPI/PCI: Config PCIe devices's AER register Message-ID: <20221115031315.1667355-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: 1668481999 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: 791 X-Barracuda-BRTS-Status: 1 X-Barracuda-Bayes: INNOCENT GLOBAL 0.3900 1.0000 -0.0264 X-Barracuda-Spam-Score: -0.03 X-Barracuda-Spam-Status: No, SCORE=-0.03 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=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 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 b66fa42c4b1f..02bf9180e96d 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -2263,6 +2263,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.20.1