Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp454112lqb; Wed, 17 Apr 2024 00:57:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWJwU9KkHUqa48HIPd3rMXCqLcGADTxFwmHMgRfOz9vFobxV4LaPVgGJ8BhH5jBzPGR6xzm+0PrkhOv6UJXSgIgX/XpRin2TvVFrGb1qQ== X-Google-Smtp-Source: AGHT+IEvGrMriApeBMR2ZqHn2TUQoizGzKCmT2JSzfBuhrzJX/68hOsXz+UAmfUp0SrTEy3ZU38e X-Received: by 2002:a05:6512:48c:b0:515:c17e:ddb1 with SMTP id v12-20020a056512048c00b00515c17eddb1mr11390294lfq.50.1713340638019; Wed, 17 Apr 2024 00:57:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713340637; cv=pass; d=google.com; s=arc-20160816; b=icgqTJ4u8rBz5YFv7y75/t6KlyvUfHBw4boI9rrDI7NcZQu7yrh/BYmEIK5RZZrWCN gwZ86dhKRlHb/J8Ve2vzQjwxiFytfVt86TEAwbTx/5/DfLTHjoyJ+RvKw45qlDPmXv02 Kat0BbG1G4vuRzbN/1Im9e910zMds3a+hAvyCDYwKEzTFMkc4ZAqhSyCqx3mswgIIQAS 53TKva5FXYdQTDr6HQQUeT3aUlk17SF9pkghFSJ4E6d43DVJjGxIdF+ZWLwWiMpppJa1 zBYoYKCPMSxidBshVgRy3mz2+AhG18u/Q5LLV4uT55VAWGp9wUbbXGvBiCovO1eLSEs2 smFw== 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 :references:message-id:subject:cc:to:from:date:dkim-signature; bh=evO2aNxdV+lvu+Wvrf+ju2Hc2q46w9zOfTh+m4DkhcA=; fh=9auM6sSj4NQaHnHaEPrXapnJp90MFH1ipoAZbsnq4j0=; b=hzvBnnPw6s6Udcu3sQT2CnNscf6zrCZk/tHVqbIkfmhuBUpMe14lXXnsw1E2NMH4TV tkYMJoypMzXw0VHsrjK/NsJGN9Snojy6nZCRuSjXYn2ASC/seTPJ5pmMMz7cRP3+sVV9 kHfltHuue7q8xbqrkCGFu70imNYIBcggKFIXv2+56hkuxNbNUJybFnQgm2c4loUxaY3q iIzW6ZyrMvCwwMDxZIC/VtYPFYwN2cdqEr1eLSWiguZGrwDrd5lH4WqT4Ewo2CNxkjr8 0s71PernagR2QeLj51TGqlyv1H2f3h7P2I8QSqKaK81ffi86ZJjxQ2jO6wvJ8tarl1Yv 5TWQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hg32gfzy; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-148086-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148086-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t24-20020a50ab58000000b0056e0dffc7casi6419751edc.19.2024.04.17.00.57.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 00:57:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148086-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hg32gfzy; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-148086-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148086-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 am.mirrors.kernel.org (Postfix) with ESMTPS id B20491F22452 for ; Wed, 17 Apr 2024 07:57:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CB2C96FE21; Wed, 17 Apr 2024 07:57:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="hg32gfzy" Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 06F4B6EB7A for ; Wed, 17 Apr 2024 07:57:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713340627; cv=none; b=Qc+1VJmtAH7mZFtbfBE9Z1AXQtCTM2r90FXDF9SbQ6e2bYVygxUaIqikCyoB1ZMa5boxDezY26f+Mecsbj7OVCieWZyqG8IqFAJd1Nnm1JFwOVinFiTKTnKpK7xGjnsgT8pU+l4wyJ46JnbOeKRvswXfZ2gbP0wNU6kCPpVLeKY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713340627; c=relaxed/simple; bh=g0N0u9gOAf2wFG4BUbQc7PqWearIDSNnGlyMV7BlUPM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bfkwmRFvcIdWHjlEDQWCN6vpna+az7VbNzflUEGlDPbu0o7BAGDUHoBYwC9KW64aZ/MqWlZUvJyyc829ImmiQAIjLgeBc+jebvEkO6vRa+IjgiIHajJ+e/pgpS1gGwazGch8URi3jCN5JK4hODq9JGYGXJ11HD9OOWHc/bZ9eEM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=hg32gfzy; arc=none smtp.client-ip=209.85.214.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1e5aa82d1f6so3577505ad.0 for ; Wed, 17 Apr 2024 00:57:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713340624; x=1713945424; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=evO2aNxdV+lvu+Wvrf+ju2Hc2q46w9zOfTh+m4DkhcA=; b=hg32gfzye+pWS0YIXJsuIVmUN3xFLP8bEpzZKxw2xJAMyEYG2RFfulK34Mp+PlXM+x w4yQ78zfrmIEpdILRpBqvzifbm8IUwpxoDwHA7IYa5ShqU2wy2lOj/8gTUV1gwDYzEbk 7xfGFqhYL1yTSuQ/rcHY59hos0nYmfXqscgPyIZEfPiYUU01hnFuLy14oRwDadV/HCTU 79/gZaUDi9+vj6EaMLDD48M1AmuqSPni96K7AeOII8Eg6aVPlGPKe4BhqrvaMLylEZYn tAmXIxhi4v+S3yshUbnrjLuvD7LdU/cGTvIDum9wLgcMlXyeRRTqPr/tUU1yE4wgfWcJ DicA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713340624; x=1713945424; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=evO2aNxdV+lvu+Wvrf+ju2Hc2q46w9zOfTh+m4DkhcA=; b=Lkmh8DPjRCbO77+Dm1Y34hMBDI3sdM5UC8ag3HI/trq0rwQ93sZsiKB8n5lOz06ZBr gdI++LV0CFJ/SYJkzL7mKjal2bGZ2mp0lOqIrAZcZdCpa5zLIX8/OMAyioWHKi/S4Aec HfZj09m+TFW4MEFn/8gBhhwHzAqtfrE+OEPawKKT1btyio9JAe0AMTmU+/IMj848Zrtt zfA05sNht6CfoVQzmt42i52lbOpxzJ7fnh5i1KtRE+/pVTuD5VgoLOfb6vplSQ1+bKI1 Q1Oz4Ek1eeHkynkQTW4J2+QEF+2x7YpRiF6MJlyOKujHCiJYeJy+HXYbAgTBYonBYvz2 N+Kg== X-Forwarded-Encrypted: i=1; AJvYcCVU6m8q+rRJIpKbYwW23mgW4bmhwkTAJyu2SB6DxvbBBYPbhTTn2p/F1zRAZGCR6Y8Eju03s8T1RLQQQisNv4mluVbgShForL5HLeWV X-Gm-Message-State: AOJu0Yx4YhlXGpsvAwA002YKBdaJdz/rnOK7mgddn2HXTDXp/uy2NmU/ 1Jf1JJVoTZFdWc42jTWgEbAwXjRaiBCcyX6WjJ/51ePNIaww9ZqcHER62hvSqg== X-Received: by 2002:a17:903:120c:b0:1e0:c0b9:589e with SMTP id l12-20020a170903120c00b001e0c0b9589emr7827576plh.25.1713340624053; Wed, 17 Apr 2024 00:57:04 -0700 (PDT) Received: from thinkpad ([120.60.54.9]) by smtp.gmail.com with ESMTPSA id u9-20020a1709026e0900b001e4753f7715sm9622249plk.12.2024.04.17.00.56.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 00:57:03 -0700 (PDT) Date: Wed, 17 Apr 2024 13:26:55 +0530 From: Manivannan Sadhasivam To: Bjorn Helgaas 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: <20240417075655.GF3894@thinkpad> References: <20240415-pme_msg-v6-4-56dad968ad3a@nxp.com> <20240416170242.GA164032@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: <20240416170242.GA164032@bhelgaas> 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 :/ - Mani > 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. > > With these, > > Acked-by: Bjorn Helgaas > > > /* 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 > > -- மணிவண்ணன் சதாசிவம்