Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1439975rwl; Fri, 7 Apr 2023 16:33:47 -0700 (PDT) X-Google-Smtp-Source: AKy350ZqwT0NSjsDB+PBDaURQ9jsQFdoR8HUifMrm6KiBKUdStI8RVZwrOueJdr4sTKvfUqxPqKN X-Received: by 2002:a05:6a20:3b1d:b0:dc:e183:26cc with SMTP id c29-20020a056a203b1d00b000dce18326ccmr3447512pzh.23.1680910427629; Fri, 07 Apr 2023 16:33:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680910427; cv=none; d=google.com; s=arc-20160816; b=ngHFBMWnhGfqyeElShjksUw/+2yFObsHd/ItsBrEd0ldsQVFMSjQq+R5ybJxjdDQNz X9UebDD9mBLCQhbC/1pYw3/KK8+NPAaYyFjm/lm56b/7TZkGx9wNr7NruEBIzH43xOZS N2G4N0VSQswwV9xEROXsyK7dadkvS8XeWJ083w9l6Qw3AVNIKAXstOWM56alDbGVos67 lt/gTqrqFYDzPVZ6GU1BCTwpcBFxeZl1AOaV1Eknk75iX+OPY/W1MLXnUR8uMjw/pzIV LD3pC79eF04IkjyfYTXHSOBpGo4Y36gc8fHTFCQUd59woVqiXZmQlw90+S8eSbHEuxt0 swdw== 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-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=WgrQ+X6RtM6l+0oVyi0FWGrgXh1jZwmenXXjm+PLdEY=; b=SnwSl5mdhSYlMAMCoaPCc9kd18YXotw6Ui4WdNzIQZ46Pde6n45P2vlIMh488Md7kQ nifwXTfc+VqZnLyRAZS7oX2/QvfYL+308ZqBPlfvtZGBwUe0pSfzZvOhps0Pb1ZsIigP 6iXizrJo3YNQ8LrDOHKeqXe+imSENbqK4lCoO4OHZoDBcKhdBOWZaA8F1TuUoFeqhMWr icDR7bEgltph3AtsJOAKnFIJbZ0OKznQee1m0irlTwZ88q38LaIPtkcWbGGlS0tm6qQr HUcTemTJd44rNON8TqY7+tYhzo7USEOOh0J/3G0dDyKQbifY3Qri7NoNKVYBxTlNU5Fl SOeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=THQlngYY; 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 i18-20020aa796f2000000b006282169cc74si4683488pfq.222.2023.04.07.16.33.32; Fri, 07 Apr 2023 16:33:47 -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=THQlngYY; 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 S229847AbjDGXWZ (ORCPT + 99 others); Fri, 7 Apr 2023 19:22:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbjDGXWY (ORCPT ); Fri, 7 Apr 2023 19:22:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9752683C6; Fri, 7 Apr 2023 16:22:23 -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 318396544B; Fri, 7 Apr 2023 23:22:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5915EC433D2; Fri, 7 Apr 2023 23:22:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680909742; bh=EcxiF2UXwEWR7VpQjbAAVUwoAR1kiJZYatKMeEE79sI=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=THQlngYYhxla3VzVFIKXsOkEFrR5vrsA3ZE8Y1dvYZBKAa6gqziTZ56bSwQyyCdcI EwFQWmyTFrUBFtHkrUp0Moi1TpSh1FYS7cSekX2DS9AQOttmeXM89Q6l41EzTjvBoS CQ5GXSLpoX5btrpDd8jFvLFO9pD/TEZnnKChb5ot25wgw/831OH3fvvtk3KXXaFxJH ASI07gaCPd05jorEzihVdwpZkshyb3KVRdddNUbhglHcsmwKAApDiyicH9/rFvFRt8 ESUMnzSzN5MvPdiR/y4ajNBbt12uzismyNJRoXfFcNcsS5ZEtZhXm/QnDnGKznLEx/ Ho5GvgHq9zYxg== Date: Fri, 7 Apr 2023 18:22:20 -0500 From: Bjorn Helgaas To: LeoLiu-oc 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 v2 3/5] ACPI/PCI: Add AER bits #defines for PCIe to PCI/PCI-X Bridge Message-ID: <20230407232220.GA3830804@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221115031244.1667093-1-LeoLiu-oc@zhaoxin.com> X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,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 Since this patch has nothing to do with ACPI, update subject line to: PCI: Add PCIe to PCI/PCI-X Bridge AER fields 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. > 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 */ > /* Virtual Channel */ > #define PCI_VC_PORT_CAP1 0x04 > #define PCI_VC_CAP1_EVCC 0x00000007 /* extended VC count */ > -- > 2.20.1 >