Message ID | 20240719-imx_rproc-v2-0-cd8549aa3f1f@nxp.com (mailing list archive) |
---|---|
Headers | show
Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11011061.outbound.protection.outlook.com [52.101.65.61]) (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 5307B6EB7D; Fri, 19 Jul 2024 08:40:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.65.61 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721378408; cv=fail; b=HemKcUix6yILypr868Fz0f1Wj7hQi6wzxYCV4w2V6FkkIFzK+AyG92a4xXDnf/VWGUrenAG0GHzTY26zaCvhuI6FGpDcMTEsMfFWyxdJjHsq1Vv3S5vcp7DKjnHjsgZmY3O+jLb/7kQ4AgSeT80bsLK79IqTo+FUvoLiF60wHVQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721378408; c=relaxed/simple; bh=pyLXoGKfN+cr12IIXgnVFa4xXqdfkMoy+eADLcv9SsQ=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=NmguV1OXJyvhO1b04BdNQxzlu5LoVxT9VLB6o5KxHEDmE1Lz9hNdisofn2GRytA/eiSq36vX+2CyK7Q3MKq+lg4VMTD8ZI9xFEY4DPYQTIZyP3i/ILToPlWyqNLdD+Go49U6EisNdwmrQdd/WL9UOQ+Aqn05JMC6nwGcFP1cujY= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=dRr94l+Z; arc=fail smtp.client-ip=52.101.65.61 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="dRr94l+Z" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=zCD8O2960si4yBSJ3d5htylaK4y7usQ3I4OCL2v3ClzRjf9p/oz1ofj/OIQjSBQnQxrsYCn1lDioVX1dWNw6b0MagWIUsfDlxakJr8Zfv1a0s4NFSz3JtxWR9j25lTUeFu5Uvw2RoT8xcuNsYhXUPJ7w5UAgTYgIOf5fT3Jz8vOSXEM3YOmlOVa5xyIfsX6QuOYirLu1UrluArPEyDchGw1mW6Sfub8E4s2g2kj9yTjXLMmVZKh7ul1c/VSuG30d03D7CtNXnnlNjofC7RnDuDljEbzewGwpIXH4MyvWhYTK8Df7L14exCrE7jp/0Ozgm1eE9NimC0iCB3X2nUqHdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=FbHCPyB6vSj7mzlSEbnqu6DWDnvQa3wUMAtCk6a40Gc=; b=FKuozmplw1vHJuPRsBYRHELfWE67dyUD1Sq2a9Lw+Qfai8IS39WZP4JBQRGET38DcLBa9SZCdeMRAphnOciN7YsfViRLjzdse4+RSqWVSoYbH+IAda5ufHAlGefR6fwb8Cyc35Bv8IfS2GijQOgFJc/jnrOXLHp853t/dCcsJ5g7dHm4KzrPSE106ZlGRncO25nGDcN4WHOPVNXejqM/SaOpW+Ky4V7g03JkdPiJd3r9YCZHl3RbTIuvw7y6o6gTZW2mivbNhYoIsKKNymwCs2edy/a56V++0Ixtdg7f4PPTeC9GlwV1DXyRCetUbxhufX2lf9JP+BSNVWXwf+0Ihw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FbHCPyB6vSj7mzlSEbnqu6DWDnvQa3wUMAtCk6a40Gc=; b=dRr94l+ZJX9lvGNymjdnSyMwKtSVsPJR8/31DhM6kAeVOK8nmEiPvmFvXe67TMm72QtdcdVeL8TVd6X5Weh85PeAvQzxI0HVRRjsabLXu9aZHi3CfruabtppX1GQhtD12pgQwvOxOmBzWRrL0XVcN7nsPLANe3pS2/EFXcnrgbM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) by DB8PR04MB6812.eurprd04.prod.outlook.com (2603:10a6:10:f8::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.18; Fri, 19 Jul 2024 08:40:03 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%4]) with mapi id 15.20.7762.020; Fri, 19 Jul 2024 08:40:03 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> Subject: [PATCH v2 0/2] remoteproc: imx_rproc: support non-blocking tx for i.MX7ULP Date: Fri, 19 Jul 2024 16:49:02 +0800 Message-Id: <20240719-imx_rproc-v2-0-cd8549aa3f1f@nxp.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAH4ommYC/22MwQ6CMBAFf4Xs2Zp2ayly8j+MMbQU2QOUtKbBE P7dwkUOHuflzSwQXSAXoS4WCC5RJD9mwFMBtm/Gl2PUZgbkeOFaIKNhfoYpeMtQdbIxWkmrKsj /KbiO5r11f2TuKb59+OzpJLb1XyUJxpk2tiu1xFZidRvn6Wz9AFsj4dG7Hj3MnuAtx7Ky2hnx8 9Z1/QISzzQg2AAAAA== To: Bjorn Andersson <andersson@kernel.org>, Mathieu Poirier <mathieu.poirier@linaro.org>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, Daniel Baluta <daniel.baluta@nxp.com>, Iuliana Prodan <iuliana.prodan@nxp.com>, Marek Vasut <marex@denx.de> Cc: linux-remoteproc@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan <peng.fan@nxp.com> X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1721378951; l=1415; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=pyLXoGKfN+cr12IIXgnVFa4xXqdfkMoy+eADLcv9SsQ=; b=yiZB1yvyIYD6WTRxB7fSoYG+znDEbpfSJHzm0HMRUJFoR4oCyYXQ0slCPFnPGW/YAiSXR/pru IluqiY5tf0qAy8bqyS3mYxOSJOx/yjdyJ5D8wEdNWIBBBATee2Sc/Zc X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR03CA0129.apcprd03.prod.outlook.com (2603:1096:4:91::33) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) Precedence: bulk X-Mailing-List: linux-remoteproc@vger.kernel.org List-Id: <linux-remoteproc.vger.kernel.org> List-Subscribe: <mailto:linux-remoteproc+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-remoteproc+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|DB8PR04MB6812:EE_ X-MS-Office365-Filtering-Correlation-Id: ddb8699d-646b-448c-3147-08dca7ce6234 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|52116014|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?fl/R6HU8NERFU46v2PGnlsEmV2ZtqZg?= =?utf-8?q?4KvmIrzlcM2BXJ84Bdad3nv3guk5rdi4CX2uVs7+Ncpf9ihBbHS+hyDHMgC17+1N4?= =?utf-8?q?s9XaaTPKVH9n9aXtMu8O5X9E7rLYWL/Oen4B+Dn4agku3cFj8hV8I/9x7DIBWxO9m?= =?utf-8?q?q8BfacMyS7cWY+ZcW+N43K21LRLBe1LiuMdYYNzp7FxIJPVTrte12aPiYNiw9Vqld?= =?utf-8?q?SwCoijXjNrBBGlwq++ysxOJzFp5UV/OUhM3NvY0XNiw2lRUZJ7z1OY6yMYNlwa+XJ?= =?utf-8?q?4FGwQdMJTt0v+hvx7S2s87sUGQaiTc3Isu6oDxNYnxv0wSZMgvfUTEHct8XuhzNV7?= =?utf-8?q?irKSDNGzq8DI0Ca3glqRrLUt0jL1p1PgQJByBykCxz25f99x2HUUiENfHCko+ttOE?= =?utf-8?q?lyBZcZ3lMz/0v/VOOZ1xFRkkp7gpXt9uknJzkyjTgqLx8kSwhxPwp7Fsp7LWag4LB?= =?utf-8?q?R+yGi/oszYxrgAI28Ro8W67fFso14Fu1SXFAG02J4C7ZXSXmXGwVk5mYNKaOiAIfQ?= =?utf-8?q?yieA3V+010FHwxQc3F4sy/Taf9DFH+k1r2GozHGebVlYQNH6GhGbcaxxQr+e95AAe?= =?utf-8?q?EC1+wrWiByQugp89ljaBXng/eQ1W6TtYY5cZm3+lGottTcRVMQoUO8iTQgJA0reEB?= =?utf-8?q?Q+nnQVwYgywGbtq/j9I+r4iguNS3hL5lurP2gyHIFe/LTE5ZRf4cYgUm4s+wFCkjs?= =?utf-8?q?ym+BNRKR1bM6HvNYsZwOD4cihuzzO0AqSji5jSqcqsxRLdygEKVuyLWw4Mvw8UTo7?= =?utf-8?q?QAkC/7JagcEgYKlgXwz89fYsx94tzraxOL7s5IW4tdOvXu+KLDfMEgdfVfokYKT99?= =?utf-8?q?RyfyckGm12YQhPXgoS+EKnFinAwBCDXrFcB2ZBN4C2oQUnqBv+dopgJbpSG4MbQVQ?= =?utf-8?q?bTJbQJ8Z1C4NHkdzHfieH+fYJr4nr3icA0qSELQrCPwiSkkZEAAIFxayM5iHnft4g?= =?utf-8?q?WkRPgitZA6PXfv9Y/v+7gIOtJGC//UrahxwYumG3ghwzem512Tjc1Q/YTnA6mHrgF?= =?utf-8?q?DrgM7/t4yafWTFADvAwZJ7qscKhYkXzJRq1p01DQVYx60gLm7XxbRS3J/dwe4Z5qL?= =?utf-8?q?D+yuGKsBjT1HjrBDC2zz9RQzpVOpCxFWY56397hzBqZtgo5MaOphwqmS4BP/kRBfD?= =?utf-8?q?5gVkiMcD2whN1HycMPI5KfZdWkO/eIWk1vq0ad3IoVMmrAslR+qcxHNKp4X6myToM?= =?utf-8?q?pN6AV+i0gnoRjcjcIOF/FsHOh99EjbiLciXOaAsELhPt44TRyQCGT2G2Swds0NCDA?= =?utf-8?q?c3ubnHVg8PJAaj3vBoF+GATE8U0bnl9hovQPbyFlgfW7P+iyLJLomUhk=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8459.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(52116014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?oW6MTldvh9fxZtNGKBqYZ4HeiAfw?= =?utf-8?q?H5UP+blHDXzWBQPh+IwC/So0g80zKrhaiCTm/r5mjWT3un6KfoQimDrIwvgqKTB8I?= =?utf-8?q?YLX0+/qXrqastMlYZwFK3AesN6cTUP1JX8A/Fm/0aBoqpxP7DmdnoVJTRLpyhyLUu?= =?utf-8?q?tci60JSr7KOzn9AHUwouGBn4I8lhCZ1zjWhlf0RKq2xzi8rtjbluiKSomovaQBiqq?= =?utf-8?q?i49q44VsEs2NDeFedBxb5bpHBnYWtijDRWtwu61e6Ano++8D/SB41HFhS2NrUN8jA?= =?utf-8?q?rSvKaFn9C5QrjjYg1ZxApV+CYaXpZpXTjPijXAG//JoQ+iM4IFczW9QNaBCBGdzKF?= =?utf-8?q?Pkztj4Qk2zcxxnbUddvJiMEICu/savLXREG88Tx+axFg4YWYrKSYPeyOXsz+6To+8?= =?utf-8?q?zAOQdCVuE+htCI8ED32c9doSVS6Xb+L6DhBMxjXzsyEkY/Oc2CInZN3+npxTaaUKK?= =?utf-8?q?COveVrR/D7QTBh5pobZSqxZRlrIpo/InkRwGh+yLWnqNZJBTlmMFpHipNpH7vizgp?= =?utf-8?q?E0fWkiXBrd9ZNuUwjigrQhVNsdRSQFQr85qrn6lv3hrbkxmWlCylpfbSvCwcYIAKU?= =?utf-8?q?ANJ+u+d/R52NXM++FgNM6UBocDKFU5gqY4rNjxWUIwSITo5N7Ibu11+u0wntss3pw?= =?utf-8?q?Hc0ac3GwkDi1nl3D4VXZUYtshp+npn7ocxiY6uulDZmob0U2J1smjDbH8dVDRA45r?= =?utf-8?q?lU9+qd18oWT9sKdOdD9XZqKJboGIeJMPzA3YkEz1vdIhiJXgYTjnX+XScpt68hJPO?= =?utf-8?q?DUUAv4szd+L4t8A04d/+NSeeb/yl/9x2tksGOgbZcNfzINbI2CQK9gSSE1JeCxoFR?= =?utf-8?q?BhuTkXvLkfxFDAvLxduTG2uURGpkozWCFb/zt1MuspJE8rq5InGiujUbPe8yDRbhd?= =?utf-8?q?o7hVIeaHJRiSuwwvwMAcp52Wyv+KPfiGtdIiB9JTBzbl/f746xrBzQlzU/5U4LNIS?= =?utf-8?q?H21xmgecOX82PRCibGMBiHqMLppcQ0te1F7IFbXP0eiThUSAMPucxmSWJpBRBf+8P?= =?utf-8?q?fCFCwYpDUfbKqxhJv0Iqs6pSiwUDpQZpPiDIRFJoac0wNWCpM8rhYG3zLFKiWwSYJ?= =?utf-8?q?0URMWQj8svteTALeM9yNia1efGK3E6N2VYpIj3+56CkKNTVcJqTMRk/fvUgqYnztn?= =?utf-8?q?xjZkBErRHtPL9Q6UkFCyCP0RuYJqBlqXUb+QDr7oCrgS7MV4QIzGL4Rz5uiXLHtom?= =?utf-8?q?PEu9YG/++JBiwok0OCl8e4wAEKXqQ/U5nKP20XIVn98R35dxQB43qzht6UkcMSQea?= =?utf-8?q?E8LhHPkLXg+ly9nHQ9XAU071TXiqnnsZqY7ERy36a6ZlQ7qTcRTurmrlARQ1KZF3F?= =?utf-8?q?sVXXAgCzPXG0GVqlGlVpozk6wIccjNaktXKBVehuk3qRaTXpvKPffzxk5ca1Ki1+X?= =?utf-8?q?sth4tBlkZSERJDLUPdqSic7T4RHuCR2c0Ow1aasncNzDfLpbK8X/ThFhiIC5d0Eb8?= =?utf-8?q?3upMDceYrpDQEdOglYtGmwS6pb36syzYzxGUx4jp3vItGl50hhmLff5RO/EelnV7V?= =?utf-8?q?IIIQv5T15r0H?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ddb8699d-646b-448c-3147-08dca7ce6234 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2024 08:40:03.3460 (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: H2wnpuU+Kodc8bNFdtXLqEVNURc3ZOYgf2QnEw0rp/t+VIi1XxJIPy2b66q58MGHHCbTmHi1gz5CswQwkCWXEg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6812 |
Series |
remoteproc: imx_rproc: support non-blocking tx for i.MX7ULP
|
expand
|
On Fri, Jul 19, 2024 at 11:40 AM Peng Fan (OSS) <peng.fan@oss.nxp.com> wrote: > > The i.MX7ULP Cortex-A7 is under control of Cortex-M4. The i.MX7ULP Linux > poweroff and restart rely on rpmsg driver to send a message to Cortex-M4 > firmware. Then Cortex-A7 could poweroff or restart by Cortex-M4 to > configure the i.MX7ULP power controller properly. > > However the reboot and restart kernel common code use atomic notifier, > so with blocking tx mailbox will trigger kernel dump, because of > blocking mailbox will use wait_for_completion_timeout. In such case, > linux no need to wait for completion. > > patch 1 is to support non-blocking tx mailbox channel > patch 2 is to switch to non-blocking tx for system poweroff or restart. > > Based on patchset: > https://lore.kernel.org/all/20240719-imx_rproc-v2-0-10d0268c7eb1@nxp.com/ > > Signed-off-by: Peng Fan <peng.fan@nxp.com> Series looks good to me. Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
The i.MX7ULP Cortex-A7 is under control of Cortex-M4. The i.MX7ULP Linux poweroff and restart rely on rpmsg driver to send a message to Cortex-M4 firmware. Then Cortex-A7 could poweroff or restart by Cortex-M4 to configure the i.MX7ULP power controller properly. However the reboot and restart kernel common code use atomic notifier, so with blocking tx mailbox will trigger kernel dump, because of blocking mailbox will use wait_for_completion_timeout. In such case, linux no need to wait for completion. patch 1 is to support non-blocking tx mailbox channel patch 2 is to switch to non-blocking tx for system poweroff or restart. Based on patchset: https://lore.kernel.org/all/20240719-imx_rproc-v2-0-10d0268c7eb1@nxp.com/ Signed-off-by: Peng Fan <peng.fan@nxp.com> --- Changes in v2: - Separated patch 5,6 from v1 - Update commit patch 1 with adding "No functional changes" - Link to v1: https://lore.kernel.org/r/20240712-imx_rproc-v1-0-7bcf6732d328@nxp.com --- Peng Fan (2): remoteproc: imx_rproc: allow tx_block to be set remoteproc: imx_rproc: handle system off for i.MX7ULP drivers/remoteproc/imx_rproc.c | 48 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 42 insertions(+), 6 deletions(-) --- base-commit: 0de2e1d9af457b2eb010636d59dfef569659783a change-id: 20240712-imx_rproc-25f3ab753c58 Best regards,