Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp338831rdb; Thu, 1 Feb 2024 09:53:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IF4q5U3h+/HtKNt9zyslFBe6agW3TwW063PCSy70iHNCqCPmh0QCRunHQd7Phg5vMy35vNa X-Received: by 2002:a05:6102:488:b0:46c:f4f2:f261 with SMTP id n8-20020a056102048800b0046cf4f2f261mr2017855vsa.29.1706810008518; Thu, 01 Feb 2024 09:53:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706810007; cv=pass; d=google.com; s=arc-20160816; b=d2Cr6aMKbWX8jsnRxOo8o/jtePKPxJHLcMHGgYw8J348dJvikZuoPm/ZXEiG0oCPrB QwckPB6omfjWTKFa08xqHzh58B9djWYmU1pScQNkjl5NFz9/T20toH33N7Bbi8iEmRiV TmpY5zLexK6wgLLuQxiFu9u0kCOOLLJBlTFXE0ohq+vVa9thTw37uceq3OdzOQCF7DUN 2lvT+oLZ+ZJBg+Z+/qfa+oO+6pRERnRwMLKJQT3tLvU6icxi5tnQz/8chtW76UwmXMHB 8XUwWziUIG2eql4UkOn2j8j08u3wTbqrvUY4sUPnWYpvTJApx0aCVqURreatgaNiNtUE 8xtw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=Zs1M02Cm25AC7YLa4JXxuJptV5mUQ4kv107ljeQ+uLE=; fh=EQeo7joKykbMR0bdoLXqMbHn3kHBh48xJTzln28g93c=; b=CFEPGl+Jyc4tfe0JzoDIR4/vRjcrS0PXHjtaDBicoXp5PrqG1S1df87am0+bleBSN4 BetyUPbLLUMGuF1M2TGc8qRh7DviVFvdkzV+wOv41Vd1aA0BeV0VtbP8NN7nH0UK0lpV e6Ly2OD+FQeYzJo7tU3GrHHhUoiA4t8Jdz8y9D6gJOJ9WbWzaalnSfdhqyVovqNbKAlQ hyM07JF2+NYlTzSLiGsDG3AbMzBxhST/HMHDpmLtheQykb7b7g3w4lBhXdlrQcMRFVVS vttsTE7RUWIo8gwpOb3wn+vCSvtrRCPhL6eEiBIqHr/EyrYu+M+yZhEAMDubkLzaekOt wICw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="EGk/ElPD"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48621-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48621-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCWXwYRSuQhHUpCVH4LWv3Ixq0/HVhnkF1fz8qLsi3XrY7KXp4m+YmQvH3Oava2DHP5/pQpl63BDUuM2TP/3JcX84vMcbk7Ywv6mh5/DKA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id kd24-20020a056214401800b0068c6f6b6b9esi3359643qvb.42.2024.02.01.09.53.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 09:53:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48621-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="EGk/ElPD"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48621-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48621-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7DAFD1C23B33 for ; Thu, 1 Feb 2024 17:53:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58ADB7C6F9; Thu, 1 Feb 2024 17:53:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="EGk/ElPD" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 728357C6D7; Thu, 1 Feb 2024 17:53:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706809996; cv=none; b=bITKmfJlrh04zec9CZ1KsS7Eo5YKwG3tLd9nvrWSzFDbED6rbpSwZ1wPdfV+48HmjIdmtoQeCNdcYamMGSvi5aCyiud7vSQ4HRBxu/fWRvc4+SXSZkdqp0YzFg2fkvCTCR5AFa62Cex3yVp0HLKCiWw80VxM8Dl5wD+wlKhk6jM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706809996; c=relaxed/simple; bh=1KYxgr9o1ratY9lp3ssW0x8kI1CSjAd9LYfS2K9oLK4=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=dc9cmpo1qs8rLO7X3J11yNbEIq5JQ7kgvFQ2bLk3jt2IwhWcGNv0k4mmuSs4YEiaUsfr00EqjKETuwZmhy5Xuanbdg9PRofHtwB5yK3l8j7QLiiPK5Bpk+7y4LwrFYC5Hl4pYXbrh/RROOwgrIcWV97QnusLEZw21jg+0WtvQSU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EGk/ElPD; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14D1CC43390; Thu, 1 Feb 2024 17:53:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706809994; bh=1KYxgr9o1ratY9lp3ssW0x8kI1CSjAd9LYfS2K9oLK4=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=EGk/ElPD1Rngo2t5Fea3WJgs3oOw3dFABk2KXVs9k0spSKDDD6tWXwsUWIV+djEWw ydzkwWPkNoEkxTCJLDERyFbNlRPkss3WMzoAlf9sGG1FYEO5fQ3325NxAxrHRTtfEt f9NpjAyHt7a3wN3aK4hyCTo9avMkZiSxxRCxQYl0rsKwRc0u2chEQH1p9j5iRBe4q3 dnmC0u4Lk6ilJLIWWoRC/1iuwZ8pi9z6bbz/r0MV+bE8qUucoT8Rrmj24TbNqIuduW 55xYKXsJbm7wmion1MlVfvdih7xTkc1QccaUdaf4Q/jcLgXMCqOmD+YzY5YH0jcsYu 2EWhv46jGyc4A== Date: Thu, 1 Feb 2024 11:53:12 -0600 From: Bjorn Helgaas To: Frank Li Cc: Bjorn Helgaas , Jingoo Han , Gustavo Pimentel , Manivannan Sadhasivam , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , imx@lists.linux.dev, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Yoshihiro Shimoda , Serge Semin Subject: Re: [PATCH 1/6] PCI: Add INTx Mechanism Messages macros Message-ID: <20240201175312.GA640762@bhelgaas> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240131153748.GA586693@bhelgaas> On Wed, Jan 31, 2024 at 09:37:48AM -0600, Bjorn Helgaas wrote: > On Tue, Jan 30, 2024 at 07:45:26PM -0500, Frank Li wrote: > ... > With these updates: > > Acked-by: Bjorn Helgaas Sorry, I should have mentioned that there were more comments below. > > --- > > drivers/pci/pci.h | 18 ++++++++++++++++++ > > 1 file changed, 18 insertions(+) > > > > diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h > > index 2336a8d1edab2..fe42f5d10b010 100644 > > --- a/drivers/pci/pci.h > > +++ b/drivers/pci/pci.h > > @@ -22,6 +22,24 @@ > > */ > > #define PCIE_PME_TO_L2_TIMEOUT_US 10000 > > > > +/* Message Routing (r[2:0]) */ > > Add citation to the comment: "PCIe r6.0, sec 2.2.8" > > > +#define PCI_MSG_TYPE_R_RC 0 > > I think I would prefix all these with "PCIE" instead of "PCI", since > they are specific to PCIe and we already use "PCIE" for some of the > PCIe-specific timeouts. > > > +#define PCI_MSG_TYPE_R_ADDR 1 > > +#define PCI_MSG_TYPE_R_ID 2 > > +#define PCI_MSG_TYPE_R_BC 3 > > +#define PCI_MSG_TYPE_R_LOCAL 4 > > +#define PCI_MSG_TYPE_R_GATHER 5 > > + > > +/* INTx Mechanism Messages */ > > Add "PCIe r6.0, sec 2.2.8.1" > > > +#define PCI_MSG_CODE_ASSERT_INTA 0x20 > > +#define PCI_MSG_CODE_ASSERT_INTB 0x21 > > +#define PCI_MSG_CODE_ASSERT_INTC 0x22 > > +#define PCI_MSG_CODE_ASSERT_INTD 0x23 > > +#define PCI_MSG_CODE_DEASSERT_INTA 0x24 > > +#define PCI_MSG_CODE_DEASSERT_INTB 0x25 > > +#define PCI_MSG_CODE_DEASSERT_INTC 0x26 > > +#define PCI_MSG_CODE_DEASSERT_INTD 0x27 > > + > > extern const unsigned char pcie_link_speed[]; > > extern bool pci_early_dump; > > > > > > -- > > 2.34.1 > >