From patchwork Fri Jul 12 08:34:57 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: 13731391 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 BAEE2C3DA4D for ; Fri, 12 Jul 2024 08:28:08 +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=nfk6hYeTvAVbb6NwTf8pjeY4ISq3NZVDlCa/ldb3uc0=; b=g2YmZ0+rIJBEvrBVry0hWP2Igv Rphb4aSa1ZHrNBGU7oovkZZt7G7ppGPZ2sgiulBdOT0r0asN6jkUxwjoFQoRYBTkyG/tKLBEz5ZQG +dtEzMCoLZU8tvgKrZ8iX6nIuZubLfDdwpuq95ipGzjrVgaN8psbT3sO7T/ejlaAm/OHg1Ix72cRR LAVeGBoltLIeneh2O6BeOEIMtVNC0hXjiTMGlgQohpeRMGAOptpdb7bw1haSBg7K+p24tu1unBjFo mbNI34J+6t+XplX5lxvxy+zU/lgG813Zq2DXA/qVBiy85mhqV8Se4huUfkGIRptuIQUMwY0itgbU1 PhJx9dcA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSBdH-0000000GtVM-0CFg; Fri, 12 Jul 2024 08:27:59 +0000 Received: from mail-northeuropeazlp170120003.outbound.protection.outlook.com ([2a01:111:f403:c200::3] helo=DU2PR03CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSBbd-0000000Gsvt-1Njj for linux-arm-kernel@lists.infradead.org; Fri, 12 Jul 2024 08:26:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BRJPCQB3vdXsbbho7rI3u+YFk4SIMLMuMRhV4GHEavG4g4DzkVeWAIeYk+TxGSwRG4YeImXbhFXFJwgd8jGhcHGXzQhw19/Sx8JuRML/oriUMtwC1Dq9iLpL9vqdGT5v7N7JeXN7bmmfwnZ/i03Bs9JvaKrQMV7w+hy9r1oOiVK8w6cX5BHWsUGJIv1XzbwKnDTzU5DWOmnNnrPzJm5EUqfwXc+AjFVoZ1nB12JbUUq9KrGfXq73CxKirniNd2QKDXLzeZIkYpnv9yQ7EbwlI700rmYoxg0OL6ZSykNa1VwrtqQrPSvKl6vBnpQBO3qIMY+x9JM9u8Yc5doeNmZHYA== 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=nfk6hYeTvAVbb6NwTf8pjeY4ISq3NZVDlCa/ldb3uc0=; b=n2j80f8/ujImEDasriMK89KfgHAn2YOW2l3LZuP33c7PyGN1ipbyLhC2LBD1cKBHcp4pSDdox69kRGGymtPSJcxYs+oXWSk0hp2Kl9S5WvUwY6tXC9n70jHZfV4e8zuQOkWp6c0sT11BRDc5lUUbwv9GMGLmNytEaN6DTvG/ekZOkL/r7w92R3bEgsBEWTWJWm0WYRtWSFFGAfep4pESoCS6wLxnbgp1V0Oi4xw4vUh4hVwPH0xZUc6A6wy6uRtTS9x19TYYr2R13Vm+vvnf1FQxctxHY6ylQOsPLD8tK6ibdKYfulcWNxOzM3YRomUYjAlrQe/WEJu38abRSzy9wA== 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=nfk6hYeTvAVbb6NwTf8pjeY4ISq3NZVDlCa/ldb3uc0=; b=Us3yOxJ1Sj1gL1i0DPD5Op7u25K83uw6y8QOCCDvMey0Gda7NpUaYKbNOTTMTF1ehcuHAGYE73nFB+EqW29OjjXjPYvqbWNKCgUxXRtD7aC00k1RZz4bUbL5ETHh033aSf9XSlA4RRznaPCrYT9/n0xek3ROIjB9+nz9SMkzn40= 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 DU2PR04MB8709.eurprd04.prod.outlook.com (2603:10a6:10:2dc::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.22; Fri, 12 Jul 2024 08:26:13 +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, 12 Jul 2024 08:26:13 +0000 From: "Peng Fan (OSS)" Date: Fri, 12 Jul 2024 16:34:57 +0800 Subject: [PATCH 4/6] remoteproc: imx_rproc: merge TCML/U Message-Id: <20240712-imx_rproc-v1-4-7bcf6732d328@nxp.com> References: <20240712-imx_rproc-v1-0-7bcf6732d328@nxp.com> In-Reply-To: <20240712-imx_rproc-v1-0-7bcf6732d328@nxp.com> To: Bjorn Andersson , Mathieu Poirier , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Richard Zhu 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=1720773307; l=2091; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=7XLi95a2fj18PTwvd4aD+z32TmYp3Rvrd5HBV+VL3fM=; b=i9yJfrRLWdMmwag9n5JrflmCc+5Ej4tw+7rRXfX7riI4j/O/t9237XsVxMJVX4n2kOaHqYapQ RtTTvaEls7JBLxiDPms8ZWfjYKg7h3RBbnnlQWEyaPZHOZ3wGd9NeAH X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2P153CA0013.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::12) 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_|DU2PR04MB8709:EE_ X-MS-Office365-Filtering-Correlation-Id: 20273a52-432e-46e8-ca5b-08dca24c4a5e 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|376014|52116014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?xa294EFv8pPtEFC1GaKY8CjLeiWgy37?= =?utf-8?q?SdRRliX8sdyeyyqvHZVzuGs31yKAoiR/rz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oJPCDUOeUiP7VWANCjG74lEG++gIIc+JMZB+p?= =?utf-8?q?N8YP8ggZRQqcDpGn+7Q+xfD3TeCF9O9oim0eKhLWI/P3uOQF8PLnoEYFLhB0BwCW6?= =?utf-8?q?uQ5hwKuXb3Xm+85+MCy0ye0vpgi6QimRrNVDnJBsg7IZ1o1+37n8CXBlfjqTlOIlD?= =?utf-8?q?fan3VtaGFdHZuZsrurfoNRS5XR8iEg2XshV+6oq59gnNG9UpZqXcWc7twec2AoNuy?= =?utf-8?q?3hzhjLMJjKkR4YYs/Edl9ErSWFStUORuCjMj35mwnVaIFWVhSa0EVa4lthihjKJL5?= =?utf-8?q?1YwMCrogWNVvLfIIdLoOyzQrdW+g/Nb/l+7QHGCvpru0F+JzyQYTVGLGqW08h4etn?= =?utf-8?q?Kcpc+WwbS2Q4+pPjZBu7sdg+YxmPDTj2f92mS/ayGZUMJSvT6dQp2iQQkMgwGUNld?= =?utf-8?q?zUTHddUeMVX9+tzY+TqrYGwYgFbHBugvrQ=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)(376014)(52116014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?67Qp4JgSmVWAsjioaL1A/B6FRi2n?= =?utf-8?q?2MU/x9vW9dGRs5PgsbC4f5LuFBABxn/7mVovC1WV4+OPrhUa5FBQjdLCNVtK2NNQO?= =?utf-8?q?YjYuzjFy7qCtr7ugEvvfMVFhrdyYrCC8sOdRo3YjkJEL7meKkkJMA15G5IuGNUHZG?= =?utf-8?q?kLqvyur8MzCAphovyoUA/MTLHow8MV7EORF7QEcZSJ20Ty7gs5Vpnoi4yNO2RSgbs?= =?utf-8?q?vVRD2BXEHt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QMYpVJlHqtNTDLhtMxJFAAe/N/ZmljxM/uhwUIbFu7JAV36vXXBr1AJdl?= =?utf-8?q?QKxjdZMkfw4Ges9BGYmmMYdyuP4Wfpgf2UbExM0N4oCr1EvwOqFW3gLRdCs9OxXQ4?= =?utf-8?q?bikXFxoD97xhFV0s+shmExqxmmMRK82CJCNwvupuUQRNPL9FJu2nwNJtlM5WgCjw8?= =?utf-8?q?QUYjf1Bbk5Rdl6dUcs7gvx/jSEaC3EmOuEDiTr5s3wATEIpNyUm7ShPkJKR/4igqU?= =?utf-8?q?Q4Ywq6fvgUqVzgQuYIeI7nG/yMUxab4iRxY7Pl+ThyWb0+EwkJdeL3sF+3zv8zszP?= =?utf-8?q?zi7Q5WN+9NDVdnAkA+phmgi1cxzw35PhaUFa3H+tW8pk01D8oFat5LnL9NBND+RS1?= =?utf-8?q?a/zGXPa0kcqzFsRSW3DN8daXBvfDK0CB04LD18o2+9jSMVpjUuGDYvB8/e2bXrj0G?= =?utf-8?q?lgQkKBtnWHzo?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 20273a52-432e-46e8-ca5b-08dca24c4a5e X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2024 08:26:13.0250 (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: UvFAmn9h12OxwDvlHKcqsq0xa8QRxRaADApBavgpyQjAJuvKcJ95n+O/Am+rgG8w2xO1i7OdE7X20JWQ15GUXg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8709 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240712_012617_413355_F32EABAD X-CRM114-Status: GOOD ( 11.04 ) 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. Signed-off-by: Peng Fan Reviewed-by: Iuliana Prodan --- 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 */