Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2577465rwi; Fri, 28 Oct 2022 08:38:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6xuF7YB04SFZPtWYfYikFpYbBLUGki4/wYMeYdUoWj/J/c1QaV/HW83tQE3Oihy1FTj6NU X-Received: by 2002:a17:90a:6347:b0:212:fe4a:c363 with SMTP id v7-20020a17090a634700b00212fe4ac363mr16626193pjs.176.1666971529030; Fri, 28 Oct 2022 08:38:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666971529; cv=none; d=google.com; s=arc-20160816; b=Smdj4O5gJk4oxkIWw4nTF4ZZQ+TBXY5Wn1fX0eVkPHkpeBRXLNB1QqkKbnybjNdRF+ CC7O070fQl2w4A1GURw8Jl6+V2pTwS+Mu2v47AbhkqOclnM4tLkK0NctBgfAF8F+YIdz kSKeqYIgZlAoNmfaDCnyCiDzEDN3X67zV/Zu2Mh2iKTDgbtsduuU1OlfElwiFo808NVZ s1hKMHv4fqyYld1fViIx0fz6KBTEqEh+mz8dZW1zPNQ0GxBAZI7S1b2PgUAnHjppH9h4 xSD1iS8Gpa4CEj0yMa5sM3rXEnlv6dDnJXtO2IHhb/d2zDvoEGp6PCo5vZjFXCO5P/0L sQ7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=ZUovW1d+7sTcc/AfHT4pcvEiQ7CpZL2VPcmIKCitxIg=; b=VYWzTOKSxPIjeAmEFevqFp050yFceezGFvOHk/abUY7B5PZh3lcMlXANpEr4G4cjrh XvD7A1FNAHbvlTHD8YWMhkJBmU6840L0rt0jiSx8y5NmmBm8gfEqNkDryzwbOnU0LI7v DNzo8G5T9d0774W0RzMYEWWZsLJNe2Pm9y700bNQIhUFnEfu7zDiacJF/oCMo/Swf1og /mXpU1QiZIWSqkVYzvNUGt8/wip/aMSFZUf38cN4njJMgofHqDR0t+uVkCnll4H92nbI EfHDp2+iaCV7OjxklIdciZIj/la51qTBDcBKB/APYyCztNLs1zQO3vm4kUPMNzr8gITR JAXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="kv5tY/oJ"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t8-20020a170902e84800b00186f224d754si5436191plg.12.2022.10.28.08.38.35; Fri, 28 Oct 2022 08:38:49 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="kv5tY/oJ"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230292AbiJ1Pbj (ORCPT + 99 others); Fri, 28 Oct 2022 11:31:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230188AbiJ1PbX (ORCPT ); Fri, 28 Oct 2022 11:31:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDD131D79A7; Fri, 28 Oct 2022 08:31:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 65DBA62909; Fri, 28 Oct 2022 15:31:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97DF3C433D6; Fri, 28 Oct 2022 15:31:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666971081; bh=o+0VxdeJq/RrjjyfIgZtufz0J9g1ssl2n7lLNfU1zXY=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=kv5tY/oJZ7o4kVBbnvIlQva20qfJo6UMxlFlo65R879C6o5OGVtVvIDiYCgNlicNV tADg6W0Thkl41z6xDB6xGueHoNydEkPbLsZUkegUGE/6KgXalH5kd0db9qZDImUjR8 99LY8vI77AKFye7RHI0vCj+em/L2J+6YLQCN5Fp4tuu4neq6xsPfWnk0u0ciL1RwBz cavZWLrLOXhWGETw52z9qEInzx3H8Otl5odYPnIKoivVdxaFaXSs/mdtCfw0Q0o8Hn 2OZTxkUE20pycBloaf+OsRUNc1lNK5WaCyut690DcIVUATtStSfGy+0PpqkozycaHO kyNDovOmuvRmA== Date: Fri, 28 Oct 2022 10:31:20 -0500 From: Bjorn Helgaas To: LeoLiuoc Cc: rafael@kernel.org, lenb@kernel.org, james.morse@arm.com, tony.luck@intel.com, bp@alien8.de, robert.moore@intel.com, ying.huang@intel.com, rdunlap@infradead.org, bhelgaas@google.com, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, devel@acpica.org, CobeChen@zhaoxin.com, TonyWWang@zhaoxin.com, ErosZhang@zhaoxin.com Subject: Re: [PATCH 3/5] ACPI/PCI: Add AER bits #defines for PCIE/PCI-X bridges Message-ID: <20221028153120.GA891635@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8472b248-11ac-2148-e39f-12647044332b@zhaoxin.com> X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Fri, Oct 28, 2022 at 07:56:43PM +0800, LeoLiuoc wrote: > 在 2022/10/28 5:56, Bjorn Helgaas 写道: > > On Thu, Oct 27, 2022 at 11:15:54AM +0800, LeoLiu-oc wrote: > > > From: leoliu-oc > > > > > > Define PCI Express Advanced Error Reporting Extended Capabilities bits. > > > > > > Signed-off-by: leoliu-oc > > > --- > > > 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..3662106fd8dc 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 */ > > > +/* PCI Express Advanced Error Reporting Extended Capabilities for Bridges */ > > > +#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 */ > > > > Can you include a spec reference for these? I'm looking at PCIe r6.0, > > sec 7.8.4, and I don't see anything I can match up with these. > > > Please refer to PCI Express to PCI/PCI-X Bridge Specification, sec 5.2.3.2, > 5.2.3.3 and 5.2.3.4. Thanks, I had forgotten about that spec from 2003 :) I wish they had incorporated the material, or at least a reference to it, into the PCIe base spec like they did with a lot of other similar material. Please include a short comment in the header file, e.g., /* PCIe-to-PCI/PCI-X Bridge Spec r1.0, sec 5.2.3 */