From patchwork Thu Oct 27 03:16:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: LeoLiu-oc X-Patchwork-Id: 11536 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp16322wru; Wed, 26 Oct 2022 21:06:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7UIjH567YcYIaAKux8CpTseMgH8bogHf7unsHlC6Fy/k9mtop/cfUkt7HBEvqEKea48kSq X-Received: by 2002:a63:c104:0:b0:459:c6a1:15c0 with SMTP id w4-20020a63c104000000b00459c6a115c0mr38908579pgf.588.1666843585146; Wed, 26 Oct 2022 21:06:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666843585; cv=none; d=google.com; s=arc-20160816; b=gN0xUcPTubv8kPUPl19yY0txIEw1P474jYl5w1AIX64wLII7JT5SI7wRmpoxS/nIwN XAtW7+6E9QJeTf3LI9T00v9qRoexK87k6Sc3PdrGFUYkmjmjLX+i2132jQoBikKHFbTy VtY6VwDt+H7nPWbMJL5OQVzbQfyRsCvsfAtgUkGjlf7E58F0ayJoXuOrZ85eGesvSpSe /uVJC3Rm2homS/ofxlD5DNDpPHVN/PuZtWnle0b2zuVO2rdq3v2sTYObZflHJ6S6YErG uOMvxLezAoHGDGlSHc+eEpw2Wczx/lwo5dOQuCTuSRMn8Dzg8+nYitE1B8oggpo6jzdd tJjw== 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=xeAEqRFcx9CPIRXOfOdEII/WYB4MQcBOmDIPHquOJUo=; b=sghcGZ1lXQexQZFYFvSCsFJSOA0VdhT9xmZOhYeIZZubRJP7uZoYdHnLOuTgqcUacg CnQIw/xvcKjts3qnvp/QJh0jLpiclqNfTcJIh7MGyGybq9bNanP+fS3Vm9eEjjL8JR0j RdkAz+5U+1KDzGfI7j2gAJXCtDL8x3TrNaXqGz3iSzlkORpza5lrmJCs4uYlw59iJZw5 bO5HRQUnX/io4aniqwsp6gD7d+BeWcANYXDPyndiqVZXf07qtDjQhWvp5MC97dSpkQXR HWAgsi0QoBvQFWkg+8fMCubTDamSaKnB48dZgDRWLfWDAxmE6Rf6PRO65o+F0JbdWqDs 21hA== 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 15-20020a63060f000000b0044fb27b64c7si227553pgg.326.2022.10.26.21.06.12; Wed, 26 Oct 2022 21:06:25 -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 S234337AbiJ0DgM (ORCPT + 99 others); Wed, 26 Oct 2022 23:36:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234343AbiJ0DgE (ORCPT ); Wed, 26 Oct 2022 23:36:04 -0400 Received: from mx2.zhaoxin.com (mx2.zhaoxin.com [203.110.167.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BF6D47BAF for ; Wed, 26 Oct 2022 20:35:51 -0700 (PDT) X-ASG-Debug-ID: 1666840590-1eb14e7e6353350001-xx1T2L Received: from ZXSHMBX2.zhaoxin.com (ZXSHMBX2.zhaoxin.com [10.28.252.164]) by mx2.zhaoxin.com with ESMTP id dcSdmVLfPpBzSFVa (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Thu, 27 Oct 2022 11:16:31 +0800 (CST) X-Barracuda-Envelope-From: LeoLiu-oc@zhaoxin.com X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.164 Received: from ZXBJMBX03.zhaoxin.com (10.29.252.7) by ZXSHMBX2.zhaoxin.com (10.28.252.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Thu, 27 Oct 2022 11:16:30 +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; Thu, 27 Oct 2022 11:16:28 +0800 X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.164 From: LeoLiu-oc X-Barracuda-RBL-Trusted-Forwarder: 10.29.252.7 To: , , , , , , , , , , , , CC: , , , leoliu-oc Subject: [PATCH 5/5] ACPI/PCI: config pcie devices's aer register Date: Thu, 27 Oct 2022 11:16:28 +0800 X-ASG-Orig-Subj: [PATCH 5/5] ACPI/PCI: config pcie devices's aer register Message-ID: <20221027031628.2856297-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: ZXSHMBX2.zhaoxin.com[10.28.252.164] X-Barracuda-Start-Time: 1666840590 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: 774 X-Barracuda-BRTS-Status: 1 X-Barracuda-Bayes: INNOCENT GLOBAL 0.4589 1.0000 0.0000 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 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.101705 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?1747812179339282202?= X-GMAIL-MSGID: =?utf-8?q?1747812179339282202?= From: leoliu-oc In order to write the PCI Express Root Port/Device/Bridge AER Structure record to relevant devices's aer registers, call the func pci_acpi_program_hest_aer_params() for every pcie devices. 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)