Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp539002lqb; Wed, 17 Apr 2024 04:14:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWj6tQT3vYdhxXOMXfcXqjXZNEnN6ANKJrHRxPzb4OJGv/063gdBfNjfpqXy/fMYUb4wmSk5+rRUpzVD/zOxvLT62JBwnZEkheDwMa7Jg== X-Google-Smtp-Source: AGHT+IHOf5vYy/GojPrDelWKjBLbj/k0ANMIll2cQuTMb/0b90oKoqbXjLQVMUZ93T1jrklJOSAZ X-Received: by 2002:ac8:5e08:0:b0:435:de21:84ae with SMTP id h8-20020ac85e08000000b00435de2184aemr17895169qtx.57.1713352497346; Wed, 17 Apr 2024 04:14:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713352497; cv=pass; d=google.com; s=arc-20160816; b=qaNewbIp4hGiZgC++bKZ3aUIaSzPyj4/LNP/LFeKbaXXQ/Q2Ffuf5qVFXOKLtuFbgb xpNh3sLy0bMV7IDgqeK1qqRfSu11Aeeb2gbIbNjg5pXNGes2kCTZx14ps459JbXiYd7Q HKQQXFkrCI7/vk+tNdUS2P65dfGO4R4HBcNpP3QxEz3x2Kwwo1GdLmQlHGuTKdpD2+VR P5Kr95V32n6tHQDzywlafiqh1TbpdHyfD4WftTqF1R1Vff1f9ivKx32hgwrDGB1ioJPx /o/BILlROBssP9N+X+WI8dqAEPBb32NTDDrVxhYvygQvW2R/w+kFWhW/0lDSbpGqng+y eA8g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:subject:cc:to:from:date:dkim-signature; bh=9qetcGYbbxW7Mka0eqSOqOCk5bTyuKbTpcBGYCaSs8A=; fh=PmTVSoPKnskmtaI9RlaFolxfcFfvudj3OXniKOmU1N4=; b=syKszZM018T8wnjunQXNKNHZVeAi6Km67OVDkvFoKQ2uP2pRvwzk4+UuenkW0cOAF/ 0aGMM9qjCw2Dj9dIndbapMh+vrdYHsgZkmiap4SbcbKqMzYklMLJcvtYOWWKe9hc6U6t CaG4DOA2ZQ8KmDp5amOOPpADQHZwc0pp71m99bIuHAbQlzID+FNTx8UTAm0a17HFZq17 2ug/oyvs3OZQe/+UkEd1gZBB9V40MQmA4t6u6ozRob74puSbhR71uiIEKBvnXxxOO8EO Nl4i1sJYVrK8utDMmV6zQO1sgCF4SuQIQCdo9scmqaZAS1tgDBZflNuLlxCCSt98mhJe WGJw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XCU3DgYz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-148385-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148385-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bp35-20020a05622a1ba300b004347d192386si14884406qtb.107.2024.04.17.04.14.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 04:14:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148385-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=XCU3DgYz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-148385-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148385-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 15B961C21463 for ; Wed, 17 Apr 2024 11:14:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 002EF13C90A; Wed, 17 Apr 2024 11:14:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XCU3DgYz" 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 1982313C80B; Wed, 17 Apr 2024 11:14:37 +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=1713352478; cv=none; b=A8ATGn/0PwOirnVPnpVrOvebEL/RyH8PV93QS77KzsRTVO8FO6YJglXmBF8BAAPylT9pUZ8S5WWytQFRKU6nrDODJqKrRYcxh67zF94FBSid5F/+XIm5CJA16rfdfjJInmrk5pUkXrC2+fKodgXuTVoQpvnAGSCydDXZJYgHpFk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713352478; c=relaxed/simple; bh=fT3fYl303jdSQU2wOrHLkWojdTgxis/f2aI/wa4Ne4g=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=Yz3UoC80Bw5qMHRu+JWvXwTQD/k/uVBuoOhDU2HY3GWT7f0OX/p7B6Q1NlrQcKI51+f99Oscd/Fc0pyMPdBaQlreBzohKwolXk1B2UkI64lznXJ6VkiyldnGiPzsA+qR2m6TiTbj0M7majsa9Q5gDJTSaaZPJ36/X0ZausrVdAA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XCU3DgYz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F3E7C072AA; Wed, 17 Apr 2024 11:14:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713352477; bh=fT3fYl303jdSQU2wOrHLkWojdTgxis/f2aI/wa4Ne4g=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=XCU3DgYz/jX4ZV3jTocjUICRtT+4xfLATcreV0egGqAKhNZntfx1IXnmTwizis7H7 tpaS81VdSiIpWH1LFk99/V7gM71s72GVdw0V97nCbTVVQVQF3HXVv28LP24XmFnKq/ 0RlMTm6E2z/BmCY0xWdoaIFX4e0FHTpOBoccScNv+MEkt/ODZhFm0rsrg1TO7WjOJ5 JJXCKUA8xKszpH4gvheweCAoSly6jDjuyxFCpy7Sn0kJyKUI2zKIgD3odIe3yBS+c4 FEoJlxs/sh2hbLaFUKmkSAIe1crrFKxoD+pTUMTNCotjbKYzdqsHUUnAYqv1MHzepF BZxI5Z1xVlNUA== Date: Wed, 17 Apr 2024 06:14:35 -0500 From: Bjorn Helgaas To: Manivannan Sadhasivam Cc: Frank Li , Bjorn Helgaas , Jingoo Han , Gustavo Pimentel , 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 Subject: Re: [PATCH v6 4/5] PCI: Add PCIE_MSG_CODE_PME_TURN_OFF message macro Message-ID: <20240417111435.GA187921@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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240417075655.GF3894@thinkpad> On Wed, Apr 17, 2024 at 01:26:55PM +0530, Manivannan Sadhasivam wrote: > On Tue, Apr 16, 2024 at 12:02:42PM -0500, Bjorn Helgaas wrote: > > On Mon, Apr 15, 2024 at 03:33:28PM -0400, Frank Li wrote: > > > Add PCIE_MSG_CODE_PME_TURN_OFF macros to enable a PCIe host driver to send > > > PME_Turn_Off messages. > > > > > > Signed-off-by: Frank Li > > > --- > > > drivers/pci/pci.h | 2 ++ > > > 1 file changed, 2 insertions(+) > > > > > > diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h > > > index 19b4227a8a7e8..1f6d54a5a7cfc 100644 > > > --- a/drivers/pci/pci.h > > > +++ b/drivers/pci/pci.h > > > @@ -30,6 +30,8 @@ > > > #define PCIE_MSG_TYPE_R_LOCAL 4 > > > #define PCIE_MSG_TYPE_R_GATHER 5 > > > > > > +#define PCIE_MSG_CODE_PME_TURN_OFF 0x19 > > > > This is defined in PCIe r6.0, sec 2.2.8.2, so move this below the INTx > > #defines so they're all in the order of the spec sections and add the > > I think it was me who suggested moving this up to keep it sorted in ascending > order :/ OK, the order you suggested is fine. > > spec citation to follow the same style as the surrounding #defines, > > i.e., > > > > /* Power Management Messages; PCIe r6.0, sec 2.2.8.2 */ > > #define PCIE_MSG_CODE_PME_TURN_OFF 0x19 > > > > While you're at it, tweak the [1/5] comments to be: > > > > /* Message Routing (r[2:0]); PCIe r6.0, sec 2.2.8 */ > > /* INTx Mechanism Messages; PCIe r6.0, sec 2.2.8.1 */ > > > > since the "Message Routing See: PCIe ..." comments are run together > > and need some punctuation between the text and the citation. But please do add and tweak the comments. > > With these, > > > > Acked-by: Bjorn Helgaas Still fine to add this :) > > > /* INTx Mechanism Messages See: PCIe r6.0, sec 2.2.8.1 */ > > > #define PCIE_MSG_CODE_ASSERT_INTA 0x20 > > > #define PCIE_MSG_CODE_ASSERT_INTB 0x21 > > > > > > -- > > > 2.34.1 > > > > > -- > மணிவண்ணன் சதாசிவம்