Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp712160rwl; Wed, 12 Apr 2023 03:04:34 -0700 (PDT) X-Google-Smtp-Source: AKy350ZSPlwE7PQpDo5ILc6MmHHSJB8IKkVozepHvYVihSAEVZvIH16BZfOu0SozG/kFIwi7uZlL X-Received: by 2002:a17:906:eb85:b0:94a:658e:1180 with SMTP id mh5-20020a170906eb8500b0094a658e1180mr11203283ejb.26.1681293874199; Wed, 12 Apr 2023 03:04:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681293874; cv=none; d=google.com; s=arc-20160816; b=sPb0VTaRcwwKBDDxkJbwp5ucNNRdL6rzaSiSsIFxWgeERVH5URe3glbdzxNwrexthk BGR3CwhnH4VzFJJiFTRDsn+iRdf/Onk7u47l0/x/4V5FDaeXvae5cKTFpTyZeJImoWix ty6/FRvW2aFuul+Mnu4wKfoqOqXyfFI5JbI5cteXYikKsYeP5z5aWJ7BIOpMSdK4TXIm rK73xO28yMAasj7EViHVePOR3d2i5knseV84mpjgnkN6+/eWZA9tXuoJfYf5RIyMS0k8 v2aW8cCJWFDgZ73iQ1w0yvApHCUn8IvQpDoPDXG0HLh0cirJ5kZivLEAe226vtLb9bjw 5rPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=Wr8dfoVj4zE0C0yrepRKwvuILkFm/amkfBhlVgQpeM0=; b=TwvZ9gHQW48J9Oq+sFEqmSzvCiduinJLihMvaWa8fR5RVzHxfnT0+8uYxbV+k8Euju BQHCgrYZwrTuHOelyIgVBc/mY1dLiZ/jRT4UsRwr/stMl3vf2ZaO/YHPsKcIvwRin4KR Ps9/KgzyEyFIAEHbDzJz3SKDM5glWy59DVsNIn+aZndanSz+mvqnciROzBOM4438e1cx 1HDI2QFjryVkpzYhnVVPvUc0tDPZij9vGRa3xA0iZwnHp8EwHbAUsaHwqWRvHYR2Slwp FTZ9P2mNStTU8esQYvIjuRnTQixNY0BXjp4vNbkj543Zz64FTXlLGYRCeCkzEUcJuUwg V9Mg== 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 e17-20020a056402089100b005021cf63eacsi5255357edy.265.2023.04.12.03.04.09; Wed, 12 Apr 2023 03:04:34 -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 S229783AbjDLJuL (ORCPT + 99 others); Wed, 12 Apr 2023 05:50:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230345AbjDLJuB (ORCPT ); Wed, 12 Apr 2023 05:50:01 -0400 Received: from mx2.zhaoxin.com (mx2.zhaoxin.com [203.110.167.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A778035B5 for ; Wed, 12 Apr 2023 02:49:59 -0700 (PDT) X-ASG-Debug-ID: 1681292997-1eb14e6d7a6f5b0001-xx1T2L Received: from ZXSHMBX2.zhaoxin.com (ZXSHMBX2.zhaoxin.com [10.28.252.164]) by mx2.zhaoxin.com with ESMTP id 4kBpg2Oifq8Tdx6B (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 12 Apr 2023 17:49:57 +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.16; Wed, 12 Apr 2023 17:49:56 +0800 Received: from [10.32.64.2] (10.32.64.2) 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; Wed, 12 Apr 2023 17:49:55 +0800 X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.164 Message-ID: X-Barracuda-RBL-Trusted-Forwarder: 10.32.64.2 Date: Wed, 12 Apr 2023 17:49:55 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH v2 3/5] ACPI/PCI: Add AER bits #defines for PCIe to PCI/PCI-X Bridge To: Bjorn Helgaas X-ASG-Orig-Subj: Re: [PATCH v2 3/5] ACPI/PCI: Add AER bits #defines for PCIe to PCI/PCI-X Bridge CC: , , , , , , , , , , , , , , , References: <20230407232220.GA3830804@bhelgaas> From: LeoLiuoc In-Reply-To: <20230407232220.GA3830804@bhelgaas> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.32.64.2] X-ClientProxiedBy: ZXSHCAS2.zhaoxin.com (10.28.252.162) To ZXBJMBX03.zhaoxin.com (10.29.252.7) X-Barracuda-Connect: ZXSHMBX2.zhaoxin.com[10.28.252.164] X-Barracuda-Start-Time: 1681292997 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: 3198 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.107310 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 在 2023/4/8 7:22, Bjorn Helgaas 写道: > Since this patch has nothing to do with ACPI, update subject line to: > > PCI: Add PCIe to PCI/PCI-X Bridge AER fields > Your description is more reasonable and I will update the header of this patch later. Yours sincerely, Leoliu-oc > On Tue, Nov 15, 2022 at 11:12:44AM +0800, LeoLiu-oc wrote: >> From: leoliu-oc >> >> Define secondary uncorrectable error mask register, secondary >> uncorrectable error severity register and secondary error capabilities and >> control register bits in AER capability for PCIe to PCI/PCI-X Bridge. >> Please refer to PCIe to PCI/PCI-X Bridge Specification, sec 5.2.3.2, >> 5.2.3.3 and 5.2.3.4. > > Capitalize register names to match the spec usage. > Your suggestion is right, I'll update this in the next release. Yours sincerely, Leoliu-oc >> Signed-off-by: leoliu-oc > > Assuming this goes along with a patch series that adds uses of these > definitions: > > Acked-by: Bjorn Helgaas > >> --- >> include/uapi/linux/pci_regs.h | 5 +++++ >> 1 file changed, 5 insertions(+) >> >> diff --git a/include/uapi/linux/pci_regs.h b/include/uapi/linux/pci_regs.h >> index 57b8e2ffb1dd..37f3baa336d7 100644 >> --- a/include/uapi/linux/pci_regs.h >> +++ b/include/uapi/linux/pci_regs.h >> @@ -799,6 +799,11 @@ >> #define PCI_ERR_ROOT_AER_IRQ 0xf8000000 /* Advanced Error Interrupt Message Number */ >> #define PCI_ERR_ROOT_ERR_SRC 0x34 /* Error Source Identification */ >> >> +/* PCIe advanced error reporting extended capabilities for PCIe to PCI/PCI-X Bridge */ >> +#define PCI_ERR_UNCOR_MASK2 0x30 /* Secondary Uncorrectable Error Mask */ >> +#define PCI_ERR_UNCOR_SEVER2 0x34 /* Secondary Uncorrectable Error Severit */ >> +#define PCI_ERR_CAP2 0x38 /* Secondary Advanced Error Capabilities */ > > Please squash these right up next to the other PCI_ERR_* definitions > so it's obvious that they overlap PCI_ERR_ROOT_STATUS and > PCI_ERR_ROOT_ERR_SRC (which is fine since one device can't have both), > e.g., > > #define PCI_ERR_ROOT_STATUS 0x30 > #define PCI_ERR_ROOT_COR_RCV 0x00000001 /* ERR_COR Received */ > ... > #define PCI_ERR_ROOT_ERR_SRC 0x34 /* Error Source Identification */ > #define PCI_ERR_UNCOR_MASK2 0x30 /* PCIe to PCI/PCI-X bridge */ > #define PCI_ERR_UNCOR_SEVER2 0x34 /* PCIe to PCI/PCI-X bridge */ > #define PCI_ERR_CAP2 0x38 /* PCIe to PCI/PCI-X bridge */ > I don't seem to understand what you mean. PCI_ERR_UNCOR_MASK2, PCI_ERR_UNCOR_SEVER2, and PCI_ERR_CAP2 represent the control and handling of individual errors that occur on traditional PCI or PCI-x secondary bus interfaces, these registers are valid only for Bridge. Although PCI_ERR_ROOT_ERR_SRC and PCI_ERR_UNCOR_SEVER2 have the same value, they represent register definitions for different device types. Yours sincerely, Leoliu-oc >> /* Virtual Channel */ >> #define PCI_VC_PORT_CAP1 0x04 >> #define PCI_VC_CAP1_EVCC 0x00000007 /* extended VC count */ >> -- >> 2.20.1 >>