From patchwork Mon Apr 15 19:33:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13630589 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2087.outbound.protection.outlook.com [40.107.6.87]) (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 56137157468 for ; Mon, 15 Apr 2024 19:34:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.6.87 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713209651; cv=fail; b=gDbr0biM6ftsmK4c81++WO1ZkW0PCYmFNmpGKB8CN4hOKS6FBWOXJq4JnkM+d2LFv7XXGA4ayUb8BX/hqyWELr5ShDX5FrIJLhVo5Rd68IT2DNm+US7OogFayyTaSw76uvolEeBLG/Ko0EnITJO6PZIaIJRB4+kJOV60Q10eNzY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713209651; c=relaxed/simple; bh=IvTQligpMXKWtQKY3rue7KFieXPNIHaS5ARIXkddXi0=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=JL+xVmXnEMTatkJR/aCAGOpGSSyP9OPR0jQFp6UCuhvEkrTaqD3yQaNGD9K3cGoaRN8LeTPOhm3svpueKwwfqFAPdNlR3aEh7a9wNgzIfeKvRhd9MpoFZwhRMTP0TKyV4IuD2RguxsRc3VVPNHRGKr4if8yCaEsm6v/N+ty8qrc= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=C2hUY+7O; arc=fail smtp.client-ip=40.107.6.87 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="C2hUY+7O" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JI5OjbEy2igHP/3t97CkkeKNxp3wnlaM/JXk0SYMUV5U0QKDG7AsJFtVo1VOUgcN415X/kVE4v5PeaNJw8+uQBffqq9frgoHKUHh05INgabR02F0Ybd8+O+umxMOI+02FHggEFCOnCO4NU1EWxcIBdlWaH0xWa9YteS/3+LfTI1WnZAxfrX4B3Hq1VLFhqSsAtv43SDXCfzJWLIKCyz84QgZUrct0vDKP4mnybJ9aBA5ySPx9si6V8aLDs//7jrK8GZeojsCkU9cM8rFf0y19G1V9iiTjo36Bmc7z0mlEE9svDFEuqBBG0bFnUJyZlb3h/gho0JjgOIGFYGImfAZSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=z2pjL9n5tGmlUWggrS+YCiQGS6S2MWnHDrjBnZIQRoI=; b=Xc+FpeZv1akwy/MO7hlE244zZUwOaIi0Pahh4c3PAL1wdJvjFe6LyEFCz1ouPB9RZzSKUTsTtB0IhvxCDnSD28Qq+k9rdSdP1av+F4uEK2wWaaJyIylpuxSEurP9MHLv4bL2XgHiPwF49c2xc8yf9Sxegkb7VS75HZrnVBWxsKfbCXtqpNmEb8Su5M6OcwQl+04QadJV0MJUliINC+c3NhT1wJjcrKbsPKCIE6JuTmBBKqotR/1VZLhj/DSLFBZorjoMZydh99BfpSkSgG078OI7qPRZuaaCFWSiIzKWxA+ly3BTAV5dDizMeZlNtFKutalUwrwHp6v1NtFv1iOn/A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=z2pjL9n5tGmlUWggrS+YCiQGS6S2MWnHDrjBnZIQRoI=; b=C2hUY+7Oaa22gvmzv2VW9IK91H5m9yJP9Xv/BaqGN78yaKDkUHdpnL/GoO5dW3oTNpowi/TA5bEstuhH5PyBav+SJRcjOSvOhOSpYDXaLllsQybe6l6LJ0z1o019jFoL+lo46BvquLd8S9ExiA2G1zUDfncHdvfai+LbxT+N4eA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by PA2PR04MB10279.eurprd04.prod.outlook.com (2603:10a6:102:406::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.43; Mon, 15 Apr 2024 19:34:08 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58%7]) with mapi id 15.20.7452.049; Mon, 15 Apr 2024 19:34:07 +0000 From: Frank Li Date: Mon, 15 Apr 2024 15:33:28 -0400 Subject: [PATCH v6 4/5] PCI: Add PCIE_MSG_CODE_PME_TURN_OFF message macro Message-Id: <20240415-pme_msg-v6-4-56dad968ad3a@nxp.com> References: <20240415-pme_msg-v6-0-56dad968ad3a@nxp.com> In-Reply-To: <20240415-pme_msg-v6-0-56dad968ad3a@nxp.com> To: Bjorn Helgaas , Jingoo Han , Gustavo Pimentel , Manivannan Sadhasivam , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy?= =?utf-8?q?=C5=84ski?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , imx@lists.linux.dev Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Frank Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1713209628; l=652; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=IvTQligpMXKWtQKY3rue7KFieXPNIHaS5ARIXkddXi0=; b=/sJleCQxCQNzeMnByvWoiRGRTJTUBnnLxGkQB9oRBlGlKa4H0G2IgsW1UozWK/GT1RhdOsKXe fyHMJu90FHIDSSt5BgP9/4L/phlWoI2r721k9rVyWHsb1YCyjMyrPIq X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR13CA0102.namprd13.prod.outlook.com (2603:10b6:a03:2c5::17) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PA2PR04MB10279:EE_ X-MS-Office365-Filtering-Correlation-Id: 61be0b71-5c18-4b12-1d3e-08dc5d83048b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BESTg7W/3bN/za8a6IAiyGIW7oE09qJzO0ULFKWWIt90m8iL7oJiLZWYyvtuVgk1r3J9HAj3nFSlLf/g98IEuJlrT8rvXCyPqqmk183y1m14Q1mOmw7Z6zQ0XC/ZjyJMq4l9XqcFCHCUYth8iJGv2YcPxY847W395a5brvCTuWFQrsC0q9DbTThtc+drMYwLjliCbhdhNyDMhYrTQoQTI2lrx4KlOXSqsQhuOm4eMrjyaGRy6AD2ZoGLfL8JSET99/Sr19L+YW4KnMfRaqTlauekCOn48OWcQ3N3TBG0V734WW9y2aWN/KcUoxz19ogs4o4C3Kbt33cHSW0dMVE3VrkLsPdWwsA7Mi6tjr8F77YY0O0w3Bddhp6ttdD1MhPEoQOisRlHbMCnT40jcPr+8L0Ei4nqC6YdbltQqisXcdJsoe2rhUf8W1Ryn9ZMupnBkdNx4b3KPbvF73BzvsJzeKYOtCzoya1h5yk4rB5cH3gS7FJmLoFMpVB43ghzCrxs2p0ABXEWCEYlKjPZDZ0o1cfK5PeTY/lyOKP1PlN1WLq2qX42D9vaLUBYZVle7YwYSxyh0VhPqCaeNNQZO3Q20zovo3IVhfexUH8oCJj830P51VqhG/ARlUSCmOPc3h3RbIWHuWOhHtAvHaXPTJXgajl+aDkHmCsgiTHXgT148dU2GAaeTB0bNVIqVT777cXEKfT54GPjM6WbXb4Ghfl/vgf+xT3KQid9Vn3vFv1o1xo= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(366007)(376005)(7416005)(52116005)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?/V6aKMl5cLSwVpeVBdfWXfXLjQTI?= =?utf-8?q?ptCQXpnx5r4GtLhNAa+JaOCqrbDz7hc5BZLrVaOBYX++/LtTAbQkga6My/v4llhfc?= =?utf-8?q?l1AE8Lra4IxP75+5tRoZwEo9jexe5aLDtDUACfNbTqWKwh+u/lcG9wUx4cM37dzd6?= =?utf-8?q?GPddwGlgR0nxTs0XVqKklIJPtDgp83PWiGHuwp+AC3NXeL0fJ39oPJa453agdlEaJ?= =?utf-8?q?19MAOmVGK9mknI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vuHhrB7STQLXWDCBVlgRwR2WC5TNv?= =?utf-8?q?sy1L0YC2oSpp0F2wicQDN0loS+lJEERTyBnDgkoszejTPDoPsJ+q4G2hlqLq8oJ0F?= =?utf-8?q?EsvSQ2zE0VtgI9qdwRTDJbngjLYcLmXxNfD9Sd6qjKAkmUQFRP8PkDZVJ+9mxJekl?= =?utf-8?q?QU7W2lOk0T3wrHEki7a9fJv8h6XUjyV/6lbEyllSh26VPuFCJD78knpZqoL2ffu76?= =?utf-8?q?YZjlQAmCwq3bCkEjN5xo15ImVkGks7m4qsvFEj6swuv0sOJP1jO1fE18H5O4eTq6s?= =?utf-8?q?TLS7e2UBbYmvbm2td9EUHhfjfbOj5IEHhZqUwXmeQG+VGoJoLKnW76N+O7P4sw9IE?= =?utf-8?q?oc6MXXUOCBwrioNdSoPpfxC6h4Oxn+53MbU/QRlloU2AksI2sB2/H6Rs=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 61be0b71-5c18-4b12-1d3e-08dc5d83048b X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2024 19:34:07.9105 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: q1NjJza77Xi35mJK5t8BTgqR7rZyAtXLyP4d1fOGR+3ejaCBNm3Bp1pzHduyZwOoOUeximxzUDRb+n0Yq1Jsug== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA2PR04MB10279 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 Acked-by: Bjorn Helgaas --- 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 + /* 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