From patchwork Tue Nov 15 03:13:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: LeoLiu-oc X-Patchwork-Id: 20163 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2494248wru; Mon, 14 Nov 2022 19:20:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf57VeUkodRMKLV8pdbpoY1Dyymj0HuCNWOGzmax2hyIARigX3kDBZgcIG7KExXBJaRwKDQY X-Received: by 2002:aa7:d553:0:b0:458:f012:bacb with SMTP id u19-20020aa7d553000000b00458f012bacbmr13472178edr.345.1668482424988; Mon, 14 Nov 2022 19:20:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668482424; cv=none; d=google.com; s=arc-20160816; b=ixYcanWECbKwAdDNLD8/8kVPFEE6Y4kQrhz5aqsBGe7+HvIZcbZYu1JMPNKWYv+QA4 BKhUaJ1hifZgPmplG7WiAv4h8jP0OZCh71S+RLLKWuvtFvri4w1sTl9tKRBkeWhelt0A 23Up7rCu6F/Phe6JcIIRcfVxbGlUuSuk1BD3K4+gMOIu2lbyFY86wd1zMsxbAPXbxk6V /qcLWDl0rUOwL73v0zcoQJFlEX22WSgoTjV7J+2OC0ACCQquFH9luxLIpiSAppYiMMuU 592fzqM6oQxJTGW7IbidvqqhnpeS0l7hrIIjCCSdZ7w6Aqc49H38P6yAQ0wN1zWQ1f4j 3WZA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e18-20020a170906315200b0078fcfc5d24esi3212444eje.618.2022.11.14.19.20.01; Mon, 14 Nov 2022 19:20:24 -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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749530627434342610?= X-GMAIL-MSGID: =?utf-8?q?1749530627434342610?= 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)