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: 13736997 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 326ABC3DA59 for ; Fri, 19 Jul 2024 08:29:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: Subject:Date:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=yluKM98VRAVJ1KqisBOblnpoZWZRa7/8SY5GxFgqCKg=; b=kJ5O1WPQZNL/atDGwqCadTu6Om 9h+5IgmaK91m+qUr+JG/SJ7XfWpge+u3wvspeV2EhDPgZ2CvnwUtuE/Mg9Oy+yhOk1AljOvw6uHtO xF16aJuGsp4voDHK8A0ujxLfPNnlrvm3VUquYxN7xCCDbgPC3GcTkngvngh3bhqGi27cpfQaKqxnO oIuWg5ct25as84O9VZMOp2lLAeKBrl7ARKLQNu7lSXNWAHxkKaX129AEijI7QOYVtp9jFDS19N+CL kX2LLsqZBeAfLPT4JEoynbN9QDGYHBxE6FVkFWOknkRmkNiD5aPdgNh4Hpr2t2edQqWX37gdG/C2h 8/6aQ00A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sUizI-00000002515-3dEG; Fri, 19 Jul 2024 08:29:12 +0000 Received: from mail-westeuropeazlp170110003.outbound.protection.outlook.com ([2a01:111:f403:c201::3] helo=AS8PR04CU009.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sUixn-000000024LD-0Bm3 for linux-arm-kernel@lists.infradead.org; Fri, 19 Jul 2024 08:27:42 +0000 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) 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/1VDSpC5mwvJ80D70Ywd5LdXP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WWyNSd31fDaMuE8?= =?utf-8?q?TWFvi/XwGI0OlUUA2jlmsCKwMaEpNBmxVBmt98GIAj8hBIuy3G6sq0yXMRE0gwC9h?= =?utf-8?q?Xhw3mKPL21+Dmpx6GsAECBjXm2cUl0+tKWx5Xlr8LaZKJxWzi+OzoYuP1Ce5+XMqU?= =?utf-8?q?C5KcJSvbD4BDMjkQLvPP3umQyT1dK+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/cEo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AQlTiH9+Tl88WkWnRuaR?= =?utf-8?q?XmOxGJI/7a/Zi9BFv/ZxnQk31jvFEdoOB7V5r+Gl1HWPnzQVqdkhaJWrY6489JVae?= =?utf-8?q?ig2fKLVcx+nBpjexp7Td2VvHOkxv+1iHWwSmTax6X4JOkQ++QUjoB1WEO/dxyLry8?= =?utf-8?q?/MkRxVlEhcrQm2iRu0MaU+xGiCZJpRDTC11NuND7UuN1s1H7fFngx8a98wvYR4r1g?= =?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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240719_012739_422762_CBF612A1 X-CRM114-Status: GOOD ( 11.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 */