From patchwork Fri Jul 19 08:36:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13736989 Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011045.outbound.protection.outlook.com [52.101.70.45]) (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 A71ED6F2F1 for ; Fri, 19 Jul 2024 08:27:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.70.45 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721377646; cv=fail; b=r4Zfek1dYrHSd6adyMpHuSUIsZadgihcpGzIYWd6oXFnZVTe8xA59SS+hW+CipQeHvbkX7wfWRR9lhM3Skc547N3njAlYDJxoBUjScUlA97scbUgGCHOs9ohWxqxyqeAci5R+N1V3MKBVl226Eu5XLR0/w2TU99GeTX5iyTUKFU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721377646; c=relaxed/simple; bh=R8aBL3QPkVrZdjeq8x9uskqcqPl5jnlhX5VlNA58F2w=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=B/PA2XH2wZahNmKh1oUKXcnjlDS8lfZvQJPt0JMFJSt+cT+IMLeDY2/spCA3rP5dse29+w0vipPuoButoa/JPy6JJAmln1yg3v9ITSHkUJYMJoF1VNFfdurVn1vP4zyGCqI831G0bjnPLU4GNWtN/s286smnFAD2PI7WJS8u62w= 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=GcRAKUfl; arc=fail smtp.client-ip=52.101.70.45 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="GcRAKUfl" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=o8mdILnsZK4kGX/PaA1KvFYH3WjkjfMTQOuVPrTej7bTbe80ZIgKRkxlMeSyNTCAaQlhpj4l7Tyk847tJNwR4KoyXUaqEb3Jw1GxmxM2/cuQhH4m3nfpLRW9HyPCXurDIXr/bcP6aackr/+qLWPCWyXoqMsSsGekYUJeiu6zw+SIAE8JBqsp6NZOgvLcM+JX8L6xxJpke6YWrfU5TKdTLb+1f+8O2342FS3CHiHjCb66/iCDK1b2arhNVst5DofgK/ZE2hjCqcng+5JlNvfWqBTBGkA+3Ta/mrGlmJ6ofnv1NWotLO/3i1BlQwNjSkZU95gm3ByYCZKx0ozJzdScmQ== 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=5KGp9RUMuUPxnlpT+PWpHyg4BDIPCIdKgksXXP3LlOo=; b=NFE+kHXnzIGN3kob38qEgCVzT3m++82wl/+AcXQU48wsxQAkyvEbuL4WLakApW11ZB1Z/nB53O8TirpaH2dtGvL3JD+YC50hwjX2PBOYnvZ602JwpCU+nuUtA1gOvaw6+F5K4WGxDqxP0mmJGPVNzGqNqFPOyNhsPMbU6gXj1InPEYM/tAQsAzWfIrvWltdirZwPsIINmwWlEXXScR5v8PFZr7kp/bF4YbAX2pj5Ke0+uxujNNB/MYCzOZvGq4suSGQNQ1mOUKVhPRUvzre3L8hYUenmrYAZNmj/qp1FDCYugq/ROdIVR5GOIn/ANZo7rllCNiueiprQq4H/r+GyzA== 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=5KGp9RUMuUPxnlpT+PWpHyg4BDIPCIdKgksXXP3LlOo=; b=GcRAKUflwcQOq/wz5DZZnv+W5S4ZR/yFgSpOROZhLunL+yt5kUmvgSraABTWqS/hT1mzYPu43UKilOA5YtEi4GL0kT5gUMgy1n8nHPiPDnrT5ytRK4YazXIV12zh3kD1kpQx4+nKSdQG7eRdOxEQWGnXx2u2ovkbAM32TJmc1As= 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 GVXPR04MB10993.eurprd04.prod.outlook.com (2603:10a6:150:226::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.31; Fri, 19 Jul 2024 08:27:22 +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:27:22 +0000 From: "Peng Fan (OSS)" Date: Fri, 19 Jul 2024 16:36:11 +0800 Subject: [PATCH v2 1/4] remoteproc: imx_rproc: correct ddr alias for i.MX8M Message-Id: <20240719-imx_rproc-v2-1-10d0268c7eb1@nxp.com> References: <20240719-imx_rproc-v2-0-10d0268c7eb1@nxp.com> In-Reply-To: <20240719-imx_rproc-v2-0-10d0268c7eb1@nxp.com> To: Bjorn Andersson , Mathieu Poirier , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Daniel Baluta , Iuliana Prodan , Marek Vasut Cc: linux-remoteproc@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan , Terry Lv X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1721378185; l=957; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=wWEx2McL2LONXCkf0QOrfTTU4C0iAcwUurLrnODylhk=; b=hAP2tWcq9bN6KQibdznZjlzGZ7u4q9DcG+ZrcJbXbbPYeHtpr5g+i4SLOEH5vlH4Tv3x4Jq6o DVwEUE/U/p4DfXNIJhuSYyETkzaaNihMJFxJ4Fe5nx8P5jT55dwFw3E X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR06CA0232.apcprd06.prod.outlook.com (2603:1096:4:ac::16) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|GVXPR04MB10993:EE_ X-MS-Office365-Filtering-Correlation-Id: bddeb0ca-ff14-4f2e-0e33-08dca7cc9cc0 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|7416014|52116014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?XZoDv507dMps/p2yM2N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?T8tdjj1S9f3Il0VLeuYjHXacHFpRR5WswnZKub75Y/RClzcUpo7AB7cChXe/j3sDp?= =?utf-8?q?a2f+YGhEDNwgsKdSvZaLJPeneN4uvAqNXP3BvmV3+jkctmDJ2+qLqPt+evLuOiEpl?= =?utf-8?q?Rptr4uPOQoyK0piFqaQqPY4XYDY4OXKHxLjWY1+RP9XL2FapslDZ5SySb9FsjKwYA?= =?utf-8?q?UINAXVs0j4PYZ2pJZwKH/R412gkEEo3c7Y9jGvBYAFeq7aaOF4lTu2li8fsX9QJnn?= =?utf-8?q?kUNO6cdGs5fVYo6ec+Kz00C93X/vipGmtsmt2aXJ/G5i/n1LzsT1+6iV7xgV5rB0I?= =?utf-8?q?OuokjJ5p/6LTkWwaYSBOw5dH8DahYb/SyAP9yLK/CecNva9J96cKODZ/81EpTdhg9?= =?utf-8?q?9Sd0coiFYak2x04aS7zqYAZR2jXsQLQBBvPuu02EfIoFBhmduNN/KTUPUxZwEISMW?= =?utf-8?q?P49T+uatjF7McbreSaiI9wwsCGKBTQPY2g=3D=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)(7416014)(52116014)(376014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?cqJ3bu1J+UcIo6jNG1D5PmL4SuD7?= =?utf-8?q?bJM0fruDMGIx/0C3gLQYFeisONNZ7o8z8pR/9SIIXufIFJZu7no2ncre+rxZpGU23?= =?utf-8?q?f8+vVxzjTE/qcIYmMP9o2E+5d4uJmyjt9NDauYZX0OWqiAMJ5ocQM8RzTjdzD9JbD?= =?utf-8?q?6gN+wfqc3ggQYtMIFd9PEG1nNQF4PAPoHfHAbAWHU9A9zLXxASsM+s0tUukP74MfT?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IpG6EAdANMt0jBfKBEdrHzMnEbiqMaiOz3Er+fL8Y+h2R43aUbsAbxfE3?= =?utf-8?q?uj/rV/xODXJsmK87Xl5vdMY1XWbNJSP+Qlu+FT/bTnoRLJWAXupF7Vr1V+XU//EMh?= =?utf-8?q?yeiCmnetrP2rJaJngtoY46WESnVEklb+xtd4uW1fSVc5yj8Qi67RarAyQlY03Swxr?= =?utf-8?q?jXe3MKvkQgmAoOYugA391We9qI67wf/PRBWY5cNb0WZOezno9i+J54wz1QntVEXGw?= =?utf-8?q?kcmu90Sx8vZrzQQooJx95C2ixJUhgZFvhIomqrTRjEJV2ZV+h789JzqrEK9fO0zY2?= =?utf-8?q?MYoQ8r1t7goOrrm8sDDXmaNkaNmmFs8zR/tP6NxEZ2owU4mfFXPr3L6ZxSsHRiqgy?= =?utf-8?q?w8PntUsLfxoriaGRR7wXGAxv8apgdvKNnqo6W++JUE6B/QedAeHboQVseNcdA4OND?= =?utf-8?q?HeNqajGnVlEh?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bddeb0ca-ff14-4f2e-0e33-08dca7cc9cc0 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:27:22.5654 (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: A+nTEAsTIF3PwYeLlMMPV4pO0F7uoQ9jxMv5JCoLDxmh6u+XFHVks1fURngsx67UooJvoNU595TESQnlBVRJaQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB10993 From: Peng Fan The DDR Alias address should be 0x40000000 according to RM, so correct it. Fixes: 4ab8f9607aad ("remoteproc: imx_rproc: support i.MX8MQ/M") Reported-by: Terry Lv Reviewed-by: Iuliana Prodan Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 144c8e9a642e..3c8b64db8823 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -210,7 +210,7 @@ static const struct imx_rproc_att imx_rproc_att_imx8mq[] = { /* QSPI Code - alias */ { 0x08000000, 0x08000000, 0x08000000, 0 }, /* DDR (Code) - alias */ - { 0x10000000, 0x80000000, 0x0FFE0000, 0 }, + { 0x10000000, 0x40000000, 0x0FFE0000, 0 }, /* TCML */ { 0x1FFE0000, 0x007E0000, 0x00020000, ATT_OWN | ATT_IOMEM}, /* TCMU */ From patchwork Fri Jul 19 08:36:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13736992 Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010063.outbound.protection.outlook.com [52.101.69.63]) (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 37A1681749 for ; Fri, 19 Jul 2024 08:27:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.63 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721377658; cv=fail; b=rDQkFSCrr6YVRQWNbxgZjufcxogN1RFAsX91plyFQm2AfW3CN8SVf+mewq/lCwKKZnphRuHsoFlEvbnRtH2EYN9XMgKfWBihBmw3rypeJM4Bf+Bsv7cA9bzq+Vzt4g7KJt5bZo3jFhMCR4PaMpxOezh/J256B8hYieGRPPD2ImU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721377658; c=relaxed/simple; bh=KcE2Uu/odF2E0tU1n03ysWU1QrPJ4yDr0Gk84AlRTYs=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=PGK2z7y354CT6fO067eUL+XatquIl7aGWHg9dzXu1sjl98jNwrmcSjmSCZHsf2pxe2hmlIz+nMx3/aCpP6rgrMxeEhf0RWP4qq6Hrs7W7S3Zywz3wAPcNOJlqEKAoM+Aftq/4c1D9SHTgPMfFODgF4LGOSyeFt9kf3XFyM0Lyd8= 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=hdY1e9ag; arc=fail smtp.client-ip=52.101.69.63 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="hdY1e9ag" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wB60dij9esiL3gTpL1guP+Snvn0AovkFr8375RnJ4MrCV1mEcki0pY0pVnjoF3g8tYr7oDROcMnqWj3DaDx0NyHNUS00dTBnRADXNBN/Hv+46psF5jj0/nJnWoYX30oejdJVmyaYN5T3FvhO5LA5okRPJ4IdxwnGfV4xbrPsrUaU8BMQAZIZMrajdsS9VF00qncfu0GEZFUKmYhJVYNThp9o4aXw60yakXvN7sS5Lr18JakloSQvMDi3J8RY1EHlEzVz3kEbi9uQSHSfICDFzipvBpD7lCF7DHMR+J9GR1jmKd67fR3VXncxW6WGxw1X4+gYg57CoWDOhDsQ4G6etA== 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=PNKaS7fUoM3FwI6TqITKPI7NTovw6Ya4YHiU8stizyA=; b=IKPEoVD8VvvV7BBlTUAb9LM4WAgHcec8aXNbJxdVBiiqJC1KqJtjp5zkTHthQ16zqJiiZlvNiDvjbGXyHHtuUayjNuj7cs0NreuQLlnLC9Y3SQKCvmVfOmFPHVAOBCYiMOZU1z68gTzi0OBAmucdMQ05+COeXWvRvQ757YvXdxmc//ToNzfwkT8kFA/TZeIFiimTByYrujp3RTzE9CQkhkPTuz37bCjSIrZLJebYB72rxEiZXBcMdvNxFkQeAm7+EAVMF/Z6YLovA88cvLjvVQHRUV28AkrhYDgL7823VYOeDbPDf+5yB3am2AXRfL57qmFzVz6/krbMpydmBMK+tg== 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=PNKaS7fUoM3FwI6TqITKPI7NTovw6Ya4YHiU8stizyA=; b=hdY1e9ag3YLmWMS5IX64JDmNDL/mnMUcy5LzAmoit6/IgZmCi4uZX+i/sYUOS2d/CsfpxLAfOZMZLQkKgt+RApuRgNg06RMzNkHtdtczA8vtcR6DIS8tNN2vLjVZy+XyncN+A07IikUzGIuu+eVYsrgGKbybjmgyoKkufaWe4i0= 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 GVXPR04MB10993.eurprd04.prod.outlook.com (2603:10a6:150:226::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.31; Fri, 19 Jul 2024 08:27:26 +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:27:26 +0000 From: "Peng Fan (OSS)" Date: Fri, 19 Jul 2024 16:36:12 +0800 Subject: [PATCH v2 2/4] remoteproc: imx_rproc: use imx specific hook for find_loaded_rsc_table Message-Id: <20240719-imx_rproc-v2-2-10d0268c7eb1@nxp.com> References: <20240719-imx_rproc-v2-0-10d0268c7eb1@nxp.com> In-Reply-To: <20240719-imx_rproc-v2-0-10d0268c7eb1@nxp.com> To: Bjorn Andersson , Mathieu Poirier , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Daniel Baluta , Iuliana Prodan , Marek Vasut Cc: linux-remoteproc@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1721378185; l=2234; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=wd7mw4EohSzycQxzYHfyQ3npQrgFZ41qvhJqdiqbWFo=; b=sdWoq91BF4xlQ5RE0ILY3LiDuz+cJxZl7nRrpVytgq21H2CrMXameWq8DvnDABdyIeq+84kD8 saY6iUCCvgSCuCksiU1N9JGJdTRkkI87DFSJNzfa+l/bAyqT2ytqyaK X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR06CA0232.apcprd06.prod.outlook.com (2603:1096:4:ac::16) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|GVXPR04MB10993:EE_ X-MS-Office365-Filtering-Correlation-Id: f4c31cb1-dd48-4d7a-b14d-08dca7cc9f16 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|7416014|52116014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?t9HSEyzyqVDoHf8SMt4gfr+REE70oAa?= =?utf-8?q?Lvp0QsOiHVrz7ynJkeRj7qNwWAAuWijzazqDfDiVpdm/C8uMm+6kDwIOSe3lcApVp?= =?utf-8?q?joEAtdE3dX+VRKubeIIBgE0CNeIl//BpYiGqSfuFT99q0XQqSqB11MzFJxbUjt0S2?= =?utf-8?q?61WvdCsdGZyJu3ULR4LFsLsJk4aHyR7zj664Gvuwvod9b1LLkZPsfSu1rpBeKUfhA?= =?utf-8?q?3xvmKGXm2co22I6kdgpa03tKMVDIHcRwnftvpILf5eXLQL0pwfMvqulR7IZigHdV3?= =?utf-8?q?HCQNCuT0URp/hk2cMxabuROP4O5kw67z+nX6eAizZVrB4xZxnVKdrN4bqVfWmmv7o?= =?utf-8?q?defYHk6BBs9Eo08lOiOvJLIYfWolsQXgMU83rMWT87bWs6LZx8SHIxK1dWTRBoNk5?= =?utf-8?q?e7EkA4nMwAzcm3eTtF7eLclZpw03NmxFCKaLSHMZ1AWjql+xXn/diNiIi4mdd7iAw?= =?utf-8?q?UjuVh6x5nS4YBxLHQLTl5tE55MrEroR4GnFTc517Pu9O+MqUICGjRcAuZy76mHvJC?= =?utf-8?q?3phdHTFDvff0phMONHeRnR+TPnJyiDR41b52bMwBsDs/irpfxEqSwgmeNcbkgLwpA?= =?utf-8?q?wmQh2Yz+yDINuSeRqIaXWnTq94qC55eViaTI134iXWtxGqkJqQI3si+/iMgV7uh8+?= =?utf-8?q?rh+78wb+MSueePsFDdYIB9dCoplu/3ckhYb44A6crxBhBmJJivjXyRx7VYFliwVwN?= =?utf-8?q?jMS6BMdbloIsjdR1+PiFsCKIH8reeYZKJwy7VAlmW8zz8nq8zwSxwUzH15dfMpnfA?= =?utf-8?q?rlfxkKWUYmdPL6HjiGnUFuJnjPUCyJdE02lFDpYu68xpUX9UES1kuoVybqDgLFzKt?= =?utf-8?q?9DAydiF7SzkTyU5/84+AhMjxpIAD7CuKpUAysF7CgvivLxAfVKnCVHZW+26AooPBF?= =?utf-8?q?0lHH5c02QDg6LdYRb37ohkDEpr6fGAKbNB7Ma64iabEakiOHt+GdlerN3K0+YgNkC?= =?utf-8?q?96m9N2rCHVrBwU/AgPqdq/p6yi0slqCGZlals+t81Gd7RCnG7t5ouvhYXON2M4t9L?= =?utf-8?q?pLHdmMk/X4MDmDPfL/e2RYzPgYB+/Xbak26ovIUDe/Rbi6U3OqiPrET2NRrRnLzEt?= =?utf-8?q?tW3T5Un8FcOk3f5Q1pOqTGu3MsPp6+mWAoFejQ7WuxDgX2KdUySu4yu8XWxJLyNTI?= =?utf-8?q?3xx2X2APV3309Z/4V8zqosXZMpIwYZp3YnTUlpKrpbkXaxzWEal9WW3UHvSiSiNjL?= =?utf-8?q?gJ/zDeHHy2qB9O2yNwnP9SbQ0hxbAH+nc7lR83cgfNREWT1G/VBgQQaz/ThShnK1C?= =?utf-8?q?J4LRHwergZbEwllRC/P3H5eWyjw/pzqclXdtjBLKZXDj142JmPqQUqZu6S9WALjFQ?= =?utf-8?q?NUrdQtPnh0tUf/weAxioXC3plvT4F7X3VA=3D=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)(7416014)(52116014)(376014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?5K9XbgqA5AAItptCYto+kzS32ajp?= =?utf-8?q?anH4Exi5W+5f9BwyRR2lT91lu5v5xL8ivtwvvRf3ExuOt5MobpbAWhA5o6Ke4Rzuf?= =?utf-8?q?JgFwYFMmsZEUmP9r2n28TySengXFTgRAb+dqMM/iummMB+zJbel97GWBAyPd0rKm6?= =?utf-8?q?Fax951t99K22WI/Z08zyhffnQAHqIn/YjjnZTmpoFrgQOBaWylz1mg27PF7h6xDya?= =?utf-8?q?LOBui6oqw8DtxysHNOmDUTA+FywGdeo79TMvrXqhPr+/t2rQixLGhylq5Jev65yk7?= =?utf-8?q?VoQO55sdTvWkN9o/UGL0zx+zCKAdrAU5g0dT/jtGHtT3ZHKaGDdzMOU6qXav4tz/G?= =?utf-8?q?hlQe/0MnxHoQEbyVwUAs+DMPicyYCMzVzUJFTtEPKQs4F6Z+q3TZ4bDEDC7CreVsT?= =?utf-8?q?KMOe+HvOO5Qp6lcXjVUx8hzrbq6VvTi5ionKb8LRDt8ANe2//KMBVY2yEv9opOGV2?= =?utf-8?q?2/er/nyum04T6z1K0Asg7HKfAHq0878U4FowuGaL3kO5Ze3+7AwmEyVAwHTn+qunj?= =?utf-8?q?KUyShgPP9Yhw50QhC8Hi+BUj/nzANWxa3r/7FutKwE9VeF9JZPrjEbDOgmusP3XgE?= =?utf-8?q?RY/XmIIlQFpIJZD7BpXBlKR4dMxhW1pRrWDFKqJQavie22lZvdCbFl+FMf4c6t9Hb?= =?utf-8?q?FXtOSEIgN928JS/YEkHXXk4BBTn2Bk2jxEZT9sA/iVAuo8jiWlk9L4kpGEYr22vbz?= =?utf-8?q?VMGo2bye0Mhgluxd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f16 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:27:26.4805 (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: 38wrAw1PRwyLnew/H8SVZXGBvNarRK9rj/4cYOzzeCsDXPszuS7y8t2JSofkvRd5g0baPyPOyFdDiAAqjRD7Bg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB10993 From: Peng Fan If there is a resource table device tree node, use the address as the resource table address, otherwise use the address(where .resource_table section loaded) inside the Cortex-M elf file. And there is an update in NXP SDK that Resource Domain Control(RDC) enabled to protect TCM, linux not able to write the TCM space when updating resource table status and cause kernel dump. So use the address from device tree could avoid kernel dump. Note: NXP M4 SDK not check resource table update, so it does not matter use whether resource table address specified in elf file or in device tree. But to reflect the fact that if people specific resource table address in device tree, it means people are aware and going to use it, not the address specified in elf file. Reviewed-by: Iuliana Prodan Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 3c8b64db8823..48c48b53a3aa 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -666,6 +666,17 @@ static struct resource_table *imx_rproc_get_loaded_rsc_table(struct rproc *rproc return (struct resource_table *)priv->rsc_table; } +static struct resource_table * +imx_rproc_elf_find_loaded_rsc_table(struct rproc *rproc, const struct firmware *fw) +{ + struct imx_rproc *priv = rproc->priv; + + if (priv->rsc_table) + return (struct resource_table *)priv->rsc_table; + + return rproc_elf_find_loaded_rsc_table(rproc, fw); +} + static const struct rproc_ops imx_rproc_ops = { .prepare = imx_rproc_prepare, .attach = imx_rproc_attach, @@ -676,7 +687,7 @@ static const struct rproc_ops imx_rproc_ops = { .da_to_va = imx_rproc_da_to_va, .load = rproc_elf_load_segments, .parse_fw = imx_rproc_parse_fw, - .find_loaded_rsc_table = rproc_elf_find_loaded_rsc_table, + .find_loaded_rsc_table = imx_rproc_elf_find_loaded_rsc_table, .get_loaded_rsc_table = imx_rproc_get_loaded_rsc_table, .sanity_check = rproc_elf_sanity_check, .get_boot_addr = rproc_elf_get_boot_addr, From patchwork Fri Jul 19 08:36:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13736990 Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012038.outbound.protection.outlook.com [52.101.66.38]) (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 003BA81749 for ; Fri, 19 Jul 2024 08:27:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.38 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721377655; cv=fail; b=uzjH5ahSo5AL2r9Z7N/rHzSjNy1SGDwdnY55J69B/vDP1bO+gZA5AdyWoqQb08ZvkpwzDY1jkiCZ0+eUMMlja8KMgv+tCij6kzASOv5ILkcrVVCx252XJJ3y8GLvOt5I61IalQej9F0Fn9s6OKIwumb+D89wHz1nUe12PAKBrqI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721377655; c=relaxed/simple; bh=q0Gek6k+OjnV6338kq2OtybrLk8NEEN+c3BxvHLABcA=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=UcXWk3PX95+KaYKl93t2NLPURtkZv+spIimBQJa+EVgk1EuvizuLM13rSn5ypW/5ex0p9RWtTftIgB5L/zt36wBjevMGwM0/bm52Ab5YzoBNh45l4/RqndKFKCiaBXdVWHnOT+61aT89U2eA7T++CPm87ks2mxanUOzXmXVuj3A= 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=N1VvrUJZ; arc=fail smtp.client-ip=52.101.66.38 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="N1VvrUJZ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pc3zMcISoH3TIUhUel4tLaLAEB618jGt9Qd0TmcJXt1xS/J0r9UJpmJ8Pp8nF1EHtc0yMxA+0aq3ni4h+KCwhXmlG97WOJ7QchfzqJiLtesvo76kBV896rq5Y8EWDzfJypYm90rp6v/qgGfn+r/hNiXJ87ZTVzvxk3KDgKWe/JRuBut77gtWC9QeNHc+DIvqzVYNSX/kkZFyUjxZAd2jFahhhNt5bSIdh6xG+4rn8qbwOQLStHmUFHwxnVtJ5/avGLM1DOg1kN6SNexDQikK13W/pEL4remcQ5AxUjZCRpi8v5+X88q2gAo8+f077rcJSn4kQOgf/26WKpSFY7ZstQ== 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=CueRkbqhz48rnYutf4T4ktNQ8uvs51G3cYlzWCavKy4=; b=wLi+Agj+AEWGKd15hmc6iBnurFINAQWVsqG6lMocOzvFY5yn4RZIUwsfAwnAyJk4OpBn6XI6cV5oyCyiIIkLO+A4sg5KzkaCB94tddJroUC63YExS7JEP+b8tSTMtfiahQf/lhEynu7gMcUpIP1/g/lZHb+eA0D93xHPZGC7wfm3zFZ8HICu5+748teTluzo5M0xAvDZtMEplALuv6lA4ElbUja+xo9jDDpX3dBTUJc7+Pq5S/HZb51487GtqjPwHS+jL21pHepBsVnwxCUd2/eKsFi1EGV4AEDmSLNcZa+F95AoVfyGTYxqp2C146DbxdVVW8QhYvEw/nx1cKmmHA== 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=CueRkbqhz48rnYutf4T4ktNQ8uvs51G3cYlzWCavKy4=; b=N1VvrUJZsbz2mcITqawEOU9ssbMJ4k59Kr06m6bguZNk23weMTVXXXd4vVuMFqWZhjs4QHQO/OQctjuwCRpPoVWp/iw0Jv4iEIAJMXASJ3Ce1mj2CTAnwRCdDbXZjTnRiFyK+2OZHExzX+STHst7SiKbshob4kj7YMKtXhqaYW8= 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 PA4PR04MB7904.eurprd04.prod.outlook.com (2603:10a6:102:c3::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.20; Fri, 19 Jul 2024 08:27:30 +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:27:30 +0000 From: "Peng Fan (OSS)" Date: Fri, 19 Jul 2024 16:36:13 +0800 Subject: [PATCH v2 3/4] remoteproc: imx_rproc: initialize workqueue earlier Message-Id: <20240719-imx_rproc-v2-3-10d0268c7eb1@nxp.com> References: <20240719-imx_rproc-v2-0-10d0268c7eb1@nxp.com> In-Reply-To: <20240719-imx_rproc-v2-0-10d0268c7eb1@nxp.com> To: Bjorn Andersson , Mathieu Poirier , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Daniel Baluta , Iuliana Prodan , Marek Vasut Cc: linux-remoteproc@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1721378185; l=1109; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=ZF4X2mUEk5W+41kIPzV6kV8qVtCKJb1wG6vsUcranFg=; b=4oAil4sBNmb1moRx98l0b6xH8MYeYSCp2w2N22BuGbvTcWaP6DA6eQJsaGXvefgknaX80A4wx E+HOMRnkxpMDvMGLqPB8ILsZgbvwkY7EK3S2Jkrb36waN4fcAfa/0uH X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR06CA0232.apcprd06.prod.outlook.com (2603:1096:4:ac::16) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|PA4PR04MB7904:EE_ X-MS-Office365-Filtering-Correlation-Id: 2080e538-6677-4de1-c57d-08dca7cca16b 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|366016|52116014|7416014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?h+ss++5WJIRDv+reK96jOMuuWslCcuj?= =?utf-8?q?u4ZQa0mexHL8+xnosxfR6Upa8AOL7l10fd1j8r7VOudBlNObOhDogqywPEt+npRH5?= =?utf-8?q?Fm5s4igC/lIVvrxT8PGr4eOvao/CXvEFeANvkitbndeqTmQtMEEnmcCXZGeH61/2z?= =?utf-8?q?E8cZBtHlicFasryB+45gYWse6bPiD9emlyD8lkmfY1ELEddMkAaU8dmzQx6C84ypz?= =?utf-8?q?xnh8UktjMZGuvXltoKbx8/ruTNxmu5iZxDnqdkD4+ixrKrVqv4do9I48+p/kT0+mT?= =?utf-8?q?eLGImw5Se4STYap3xlFrGSDpHWM9J+bZ9+PIK7UOa5v4e34mwZUvJxHNpAwXaNz6F?= =?utf-8?q?zfv3/xMvuZqxg43g/gH241jfnZ63xm1uJDW4qxJWhF3HwOYmVgUGJMkyNrXVAnxHp?= =?utf-8?q?M91zN/X1XxWKIdvRwlCDzuaQp1RwF+yfEGpiYilcr4gZ+9qHH5yofJ144WbYBXVLl?= =?utf-8?q?8hG6pH5aDlf5wuNt48kBSKcG87R4V6Dt3S/09Eg1nYd1++WOYQzSsxW/6PAA8wgvg?= =?utf-8?q?YQIX04GWpCK0I6JFsfKzYsCR1WGiQXunke8Hgka9QnrLFbiXHfOaWFLbtxrqAEL1e?= =?utf-8?q?ENlMxIK0QIXRLx0ISkfp0Rh8jCCk/2f0rD2aEGEtyoS8cdGG/exIR1D7yrhvR4+Ba?= =?utf-8?q?E2Ry3LXUgXlt89SsoxqBwmMHpBXDpiv2t29fslIAinDevdj1Kc0jCJm5BWMGosD57?= =?utf-8?q?Xbt64j2sH/POT7iPKZztHCsdi60YjK5dLojbEUrEarzYJgZ14+cyn/FijU/GwKOxB?= =?utf-8?q?E9+TuNDAn+TuFv/rjdxlKAwwXYnJnkDv9wi2Lsh5gtKt1Ki8DR7Cr+3yUvCjTaGoi?= =?utf-8?q?AwQwkV5lZJ9hbh58cv/M85IU+xWroYsKdD5RqmEZrpMz2UwjU+8aIPAuOgL3gJo9S?= =?utf-8?q?/+yGnSBKHRR+HbRGF+SkL6JmiLsLD8h+rIWN3uvNXEaALHWTGAUI6YY7s1UdrDeLf?= =?utf-8?q?xjBF15CY3PJcLj2oWFuUTcWGQd3DnnhjloFd74u1HY4JAgpdRt2uPiJqvlHjSNheI?= =?utf-8?q?sLNM/dAgnDlhXE9dMrzFHmyIVj/NuwMNK9cyEhFBjx2gHOa+o/XQz5dL/APpfQBRY?= =?utf-8?q?k9DFiVBgwNt0Ww7J0bqG5bvzYsWKDQrIvYJt5cqOi5DdVRCwIF7zbBwNViqX95kv2?= =?utf-8?q?u/P468IZ93V7feZ/XBnFwZL5fnk1k5edLoWXodmfWM5wphErn2MEvu/qlEfTArhm/?= =?utf-8?q?JaG8+CLzGVXWKszubwvoTRJLcXTbmgD9z0d0Kiovcz8cjOBxBfV1MhqPW6o/bLlwg?= =?utf-8?q?jbF0B0/guYrIpXqlAQKmQ+nj5RCveSJQu/SnZlj4PiFQnagFFCGgQyNuU08PeuIcv?= =?utf-8?q?dGuFyuFayuptCgExZ55RcdhBHLkXvif5hQ=3D=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)(366016)(52116014)(7416014)(376014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Ex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b3qTp9ppKrqUjHw0ObyCxusgVLzYHZ7TVhlxmc+H0jD/jaDUhu06a?= =?utf-8?q?qSiyBa572LXXcMqgLrUecGOCea5JUJ5ud7Sfzk3woXP1j2OKVtPhB1WeME6mBg709?= =?utf-8?q?rbY9BLydS3MzpOn1+SdT7KPGJpVqXh12IzhvfSYFNurgC5b823IXBxAtSPfOCGmZN?= =?utf-8?q?NeANri3XQ3AAT1FmJ2Fgk4YHUmmzOCiUeSDmviS73V+P4tXpYsfA26CVi1G6OBOPK?= =?utf-8?q?j96jIEh1UpoDbYPwEFxT+GTABr5jbPZuzoZJd9jwxbXAnrjMoqgpKqbU7vJyLjbWu?= =?utf-8?q?IFaR/n9jvCu/vby1aQCbqJ5vdmepqk8OZGW08BspVRteGcGJrJ+7mDnU/ImNJKsY5?= =?utf-8?q?kfZYwRZc1p8EKMgpBHfotWRNPptNB0nRZl/ykZvn8q19a0RyJp5Re86F2Ge5Nc/0c?= =?utf-8?q?kBNoCWD1LjP9BnyAUPUB0R2FnVOZMYIFCBJI+5K9RO+pT81573phwklwUjFErSwvP?= =?utf-8?q?qa3ULOLK8rbKzC8NFP4yHzUqg5nXj82FI2elzHx+hZXh6cJUA2tzZHySqJiuyYR7Z?= =?utf-8?q?X+wuRU5HhPEG/amWnQmWbJDkbMGZPoxaSu5AP+lMfuEK//p0v0DPSEyTltCs5uFhi?= =?utf-8?q?cyT9i660/XlxqgAE/NJt4vl8+D1aYyVKzs79Z/563qsTGaIV0+pZL9lTswXT0+0jw?= =?utf-8?q?SnqIWiDmkXO4?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2080e538-6677-4de1-c57d-08dca7cca16b 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:27:30.3996 (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: BBEz7bNy8sbKL2aBbiklVt5FJ2/N7qelYU+CESif0gEcHZfM0vsD+KO+7pH3rVasYj0Jj4hsatzWScI6fLBzxQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7904 From: Peng Fan Initialize workqueue before requesting mailbox channel, otherwise if mailbox interrupt comes before workqueue ready, the imx_rproc_rx_callback will trigger issue. Fixes: 2df7062002d0 ("remoteproc: imx_proc: enable virtio/mailbox") Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 48c48b53a3aa..9e99bb27c033 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -1087,6 +1087,8 @@ static int imx_rproc_probe(struct platform_device *pdev) return -ENOMEM; } + INIT_WORK(&priv->rproc_work, imx_rproc_vq_work); + ret = imx_rproc_xtr_mbox_init(rproc); if (ret) goto err_put_wkq; @@ -1105,8 +1107,6 @@ static int imx_rproc_probe(struct platform_device *pdev) if (ret) goto err_put_scu; - INIT_WORK(&priv->rproc_work, imx_rproc_vq_work); - if (rproc->state != RPROC_DETACHED) rproc->auto_boot = of_property_read_bool(np, "fsl,auto-boot"); From patchwork Fri Jul 19 08:36:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13736991 Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012038.outbound.protection.outlook.com [52.101.66.38]) (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 2A32078286 for ; Fri, 19 Jul 2024 08:27:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.38 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721377658; cv=fail; b=kJ9uw4SZtVtX7EQ9FMke5uI9Fi415Teh8W3TGYyYR4k+DPaEbbi3dMxlI58DP0LP7DYFOXBbb1lLqypp1eBTtvUfICn4ZDcn9V/tgfuka9oYykgKRWVZ06YSbcLmVfpNuocinnXAbRA4tWwMmFE78JxaKZsLtC2hb/POPeLQ7UI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721377658; c=relaxed/simple; bh=jZVnl9XcBHalZXnzqQCsSUORoLgsgpRkBxF+3FisBJk=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=AVhT3E1Pl/NoLmhLNHetOFhdI01axRTJPSMQ7YYztu/9EH0LMnu6FjcFEpSotMr0gitWC1FLvRNraO1jEABy8aGUoGDOBmLYLffIGgJ64Hx+c32ABP9jFnVMzIr1SbNsKseTq+dAEMbe3LL5p2XGhzTLsvRIMa60ioD01adK+DE= 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=i6MkVP5J; arc=fail smtp.client-ip=52.101.66.38 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="i6MkVP5J" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pjaVYGTpr1oZQ7H9jDTTpUAgFdVuQyrzoFQQ32BIjPigSdqXGZHTVcxnzDJ/oJdsWUplxpg0/N5qV/ZOsIP2+1O37xQn9zNaauh8KdCMyA/JRVHG949yx45GuB82DuVtTSnPX26cLrMFlLphLsO2lzfz7zXLvakTuuAh90gVcJWG5qHfgel88RV6uY+gW38euTNTy/ijh/zTlFKiOhXsEOM+orB1yU28YrcOhONa4sonjf9sAtNguAumDsyUEQuQcSemAM9bcFZvmxlcoODQJNyYSUkz5XmVqaF276kbXV9cbD9HdxCcoPpdGFDO08LHEaxoIWWJKtAdGCSoO8ypOg== 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=yluKM98VRAVJ1KqisBOblnpoZWZRa7/8SY5GxFgqCKg=; b=V+DuR7mIOeK7ZbmVxkWWHj1fArgXrzHuXxjZtEcnvyMhlHt4JKlYgmkJhxzjPiHVLywPlhh1HkKmRSYo8VX/N+3Kr4v+VyB92vhUJhLYR52KzhQ6Qct9QDfILinUcthA83o+SjluzLE3eS27MIMHfSuQ3YWHJDQPjWEc7cpop3FcIqGff5ggGrwTVqSNhcL57+66B+4AbSLztwOsM3tcfh0iqefPr/TSsblKtTQjFFAUbGyCOWO7JnpmFQIrLYtihsq6KvSCJEzMPN99lO8lyalGCGTC9bu0jvu1UibLYyFbox8F/fePXzMU5OEY4cnPzGdKgL6difgBIzCL+7aC6g== 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=yluKM98VRAVJ1KqisBOblnpoZWZRa7/8SY5GxFgqCKg=; b=i6MkVP5JkLO7YXBSMBFHtDw1U1CRPxhTTO/IDh5NpRwvT5A+z7eIvEgaqRfDWScscLV9s4JZn+6FJf10tuN+fDKsUxO6osNZckInvH3jvKh0332maWSTE6oQQ6a3vRAgQ32pZF706sP+/6/DY2WqDt0DwiFuDH/Jz3wp4wfIe6Y= 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 PA4PR04MB7904.eurprd04.prod.outlook.com (2603:10a6:102:c3::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.20; Fri, 19 Jul 2024 08:27:34 +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:27:34 +0000 From: "Peng Fan (OSS)" Date: Fri, 19 Jul 2024 16:36:14 +0800 Subject: [PATCH v2 4/4] remoteproc: imx_rproc: merge TCML/U Message-Id: <20240719-imx_rproc-v2-4-10d0268c7eb1@nxp.com> References: <20240719-imx_rproc-v2-0-10d0268c7eb1@nxp.com> In-Reply-To: <20240719-imx_rproc-v2-0-10d0268c7eb1@nxp.com> To: Bjorn Andersson , Mathieu Poirier , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Daniel Baluta , Iuliana Prodan , Marek Vasut Cc: linux-remoteproc@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1721378185; l=2145; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=FUNk7E9jxQGO19ko7cs2/p1SFUwFfbbIwFiGTwmT20I=; b=72pClawQzESXbycoJ0e7X6Ge9oMG3iupyx+26BBT+nht2NWSpPb4K+LhkfGSiRZeHOkgEZxmY R19s/s9ATkPArvq9kv9UkY8sSMYFK8BMQ0LSuAEHsp2gRB2BIqpD+iX X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR06CA0232.apcprd06.prod.outlook.com (2603:1096:4:ac::16) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|PA4PR04MB7904:EE_ X-MS-Office365-Filtering-Correlation-Id: b7d7dcec-779b-4ece-52cd-08dca7cca3c1 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|366016|52116014|7416014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?vC8imyPtRU+AlLUWI1uSlQkq37zOyid?= =?utf-8?q?Ep5as01FAbqEjTAM2W7qf1j/1VDSpC5mwvJ80D70Ywd5LdXP8eemdhuoLn1MwGjyM?= =?utf-8?q?hnZBZdEHybtOqovIFwBFzTrRcj7HmEuEsOhUiZTAfEWEJ26BwSEkv76mb5oDy7pB7?= =?utf-8?q?Hk4GhSEjuBBFQlnILjvUrildSZ+9NR+Ufton1Lp2zogW721LmGXMDjB6ZT5fZ15PQ?= =?utf-8?q?/dVLIPd1egWYIL08lJ2KI60Vf9mGc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T1dK+Wz3CkJanJv+9hG9A06Xu/hy1zrVMsePh4iI?= =?utf-8?q?DsRnhChAKmkKlBL/0Glbzbz+oFoffRG8HWsiBhBb8OAV/Zc7VKX4hX+ibgvYijprr?= =?utf-8?q?Rc8br5Fk8vkciqOzhg+2QfzaPfEbwKxqBWYAqkMJx64kHGTNdyguab7Bv420wh57I?= =?utf-8?q?fM5Cw3zAdt3j9smMlYZhDF5rlenm0pv0/KzaeYyKbvdj26z4j3S3kjN2c9g5IaYbZ?= =?utf-8?q?OOuslF6s6eJ8+j7lMijreAG3+uQYKjj4Xg=3D=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)(366016)(52116014)(7416014)(376014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?/5avhidSYtdExmb4WexlR0RERUR1?= =?utf-8?q?xLIFRNLfHbbBPQKE0ylitY4FXAc55ZI7LfgkEqTPgqm35EsfRGeaT1RIHCJvmcVi6?= =?utf-8?q?Zzn/y7s94n/HwwIIA3pBJGvWFfHRgpQF5HxruqlHutdyQOOYeLkB6F1yJQ5rs/keY?= =?utf-8?q?FdwOOuj9pG5Xo5410GQ4D//+pagWbItrUsfvG6XJXhudksdtESxOTvbWD9XTdI6wn?= =?utf-8?q?4T9EMcBRi6oDRDUNfNCL5v45pSamPP04/cEo0sfdwhZcat0rIguoEmxVtdYx4t0up?= =?utf-8?q?xP5xGPBUqyI0Z8W7AexqIXO8ERMHwDlePQa88rLXzJi6Rtpp5F5hEjDq+ROVI/4IZ?= =?utf-8?q?wilg9E78uI/cZmYbJhaI3RaailzJSeBbgS2YI2oixue/lnh7jotf248J7LEXL/HfO?= =?utf-8?q?7GD98yP8Z3d0UlIJGk/oR65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GiCZJpRDTC11NuND7UuN1s1H7fFngx8a98wvYR4r1g?= =?utf-8?q?0QLDPXgmcWARRQvbMVtpqXEnUkOoIXARBFbIv7hWnVs67cgesVOXBnmPFOPUJ/Dzk?= =?utf-8?q?vbIf31yoLfhM0ikHL5+2akiMjf656PinoeGAsz25eEi1UW6sulmMfDD48FG5y2mP/?= =?utf-8?q?vYWAQK/kkUURzVuIoHEpQ+Dzb31zpvlhEMwnKEogGS+PgmjhNka1du2iFE28MPMVy?= =?utf-8?q?83pa5dWBhjn6?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b7d7dcec-779b-4ece-52cd-08dca7cca3c1 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:27:34.3035 (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: V/nK4MZD/zHmUtwrdrrU3HxD2IakgV844NeMrcCWWtkhIJ326GyP237GMZPRJqIsTkv9h5/94ljMO+XkBDldtA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7904 From: Peng Fan Merge contiguous TCML/U regions into one to avoid load elf files which has large sections failure. Reviewed-by: Iuliana Prodan Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 9e99bb27c033..552fccebf7e2 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -119,20 +119,16 @@ struct imx_rproc { static const struct imx_rproc_att imx_rproc_att_imx93[] = { /* dev addr , sys addr , size , flags */ /* TCM CODE NON-SECURE */ - { 0x0FFC0000, 0x201C0000, 0x00020000, ATT_OWN | ATT_IOMEM }, - { 0x0FFE0000, 0x201E0000, 0x00020000, ATT_OWN | ATT_IOMEM }, + { 0x0FFC0000, 0x201C0000, 0x00040000, ATT_OWN | ATT_IOMEM }, /* TCM CODE SECURE */ - { 0x1FFC0000, 0x201C0000, 0x00020000, ATT_OWN | ATT_IOMEM }, - { 0x1FFE0000, 0x201E0000, 0x00020000, ATT_OWN | ATT_IOMEM }, + { 0x1FFC0000, 0x201C0000, 0x00040000, ATT_OWN | ATT_IOMEM }, /* TCM SYS NON-SECURE*/ - { 0x20000000, 0x20200000, 0x00020000, ATT_OWN | ATT_IOMEM }, - { 0x20020000, 0x20220000, 0x00020000, ATT_OWN | ATT_IOMEM }, + { 0x20000000, 0x20200000, 0x00040000, ATT_OWN | ATT_IOMEM }, /* TCM SYS SECURE*/ - { 0x30000000, 0x20200000, 0x00020000, ATT_OWN | ATT_IOMEM }, - { 0x30020000, 0x20220000, 0x00020000, ATT_OWN | ATT_IOMEM }, + { 0x30000000, 0x20200000, 0x00040000, ATT_OWN | ATT_IOMEM }, /* DDR */ { 0x80000000, 0x80000000, 0x10000000, 0 }, @@ -211,10 +207,8 @@ static const struct imx_rproc_att imx_rproc_att_imx8mq[] = { { 0x08000000, 0x08000000, 0x08000000, 0 }, /* DDR (Code) - alias */ { 0x10000000, 0x40000000, 0x0FFE0000, 0 }, - /* TCML */ - { 0x1FFE0000, 0x007E0000, 0x00020000, ATT_OWN | ATT_IOMEM}, - /* TCMU */ - { 0x20000000, 0x00800000, 0x00020000, ATT_OWN | ATT_IOMEM}, + /* TCML/U */ + { 0x1FFE0000, 0x007E0000, 0x00040000, ATT_OWN | ATT_IOMEM}, /* OCRAM_S */ { 0x20180000, 0x00180000, 0x00008000, ATT_OWN }, /* OCRAM */