Message ID | 20230127092246.1470865-1-peng.fan@oss.nxp.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp737617wrn; Fri, 27 Jan 2023 01:27:38 -0800 (PST) X-Google-Smtp-Source: AK7set8DKQQlUyF+dH+OMB5pWkcVnajD625G7LTT84XWScU91pFmBhVwn4E8fyU7ITmrepp9WnZ0 X-Received: by 2002:a17:903:1107:b0:196:191b:6b22 with SMTP id n7-20020a170903110700b00196191b6b22mr15574961plh.59.1674811658290; Fri, 27 Jan 2023 01:27:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1674811658; cv=pass; d=google.com; s=arc-20160816; b=Q3NvlTHRomjmqzghwMxHQnLxbeE7Z4qH0tI30CgcnYpHV26emITOgnA1moTGHq8JK7 44mh2hEJ36exDPBpqdtX/32SfsFro+L9txfYeFHvcXbv6P5ELX4bx/UH4VAw3VUZlw9C 9+ulB1vdV8dGYQI/YZQIfJ3+kZcKQWc6CV5YQ1QTQiOzaBxCXxJcFhPb3qqQjrd9XZkc vmbWc2Sbq4TRw0qFQ0LaUO0uzfHRMknwcpBxFNBg3Vms9VWon9H/oHD3Z4EcuuuZtQc4 oHMxASTOF1SY0v7uNzCaUk7xaPbRmLHTek+UdsNSA9JBy11MHeru3egSqs0+l0AU1FFv zg5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=ukuik0eSXzAL8MMKPEtlsRuIFnRGwhLBcfERop83VNk=; b=S12WL4dY4qIiTb3PnaYxETb/54LMBNOsKD150F7wcQlR9ULYfe0T9x3JWDLSxq29E5 5un4JoWlcTTcpjzvgDItYDIQYaUlOveVZ8PYV18SbnAxQuyI0YRdfibW8VUiQ7hCpyWV 6Y3jl+DqL3YK3cy+u0DGJpoEVqrTdvEa6WykYPaudmBgn8Eh0AUiPFNl8IsAaVae496i sPFmuFWIhHUPZrwTtli/xj9dNmk/H7McdMhm9S4NCXP5mXlAFFgOHOctIIqDdP+ZFXy/ oljavBr53RV2gkmk+YEYDRWBWfAr6H222CnmWX4yV4SSNdpL5vEKl1ZAkNYCYzaEsxX0 WgFA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=RN9d1AsK; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v20-20020a1709028d9400b0019649a3d364si2621317plo.485.2023.01.27.01.27.26; Fri, 27 Jan 2023 01:27:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=RN9d1AsK; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232084AbjA0JVg (ORCPT <rfc822;lekhanya01809@gmail.com> + 99 others); Fri, 27 Jan 2023 04:21:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231527AbjA0JVe (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 27 Jan 2023 04:21:34 -0500 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2080.outbound.protection.outlook.com [40.107.105.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 207DE5BB0; Fri, 27 Jan 2023 01:21:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g7wv8QyQIFqM+RB055QLtywDgx9rMfwor4xTQB+6jO+Gucd479IxKirXZl0CF5rTzKHLz+7o+Rir8Pj/DWj5JgKYQNBRB3guwfiL3NAZOU4xfJ0ZTy2q/nFO5J5xFgBS87Tityr2k3wjXT+PAhNSLMHTt7ky48qmNKRCF9AzUOSMsRIj8Z2WxM2zda+TCgOzbu9eVxm0KYv4eeb/puNfE/YY/GGIRhq9tfh5G6jTQuyz6Q0/pHC2dROkLD/+Ky4iQW+OvtOZ+pmojZM8n5jaANHXBATV6FH87Jcw50DlYAVl5USFINQ0aH1h+WTMNyZsn53JEmMkjtelNqLsmtnZFg== 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=ukuik0eSXzAL8MMKPEtlsRuIFnRGwhLBcfERop83VNk=; b=BB7dC/kNWvvaefoMsxXp6JSGvz07D/5JeTgyf14WlwHeDi+7g/x8hac6G5bpMiNkyF4oNWKGBJuHw/ZedvdemZZji/m38lldo4uobg6GhVX7t5uybZrarc/zPF5pahLJNc9ENfxjEOFlHtzUqdAMpLUE62ShWeR7ZVBI7c+tj3qaaVDaA3Zjkn3wYFtBrZ4i16AIP5BxWhRtOy7m8UXrux769WhD05sZYahlENqjnL1FePpCDhBxFAqXoaKZ2Z7So7QZbubVGyPo4QsS2/cCXa9RPK8+Evfr3lwbczLMDFpAAkWXhvrPJ8L6e1oN6Q4P28xFFABM9ijINe8lj2BkIg== 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=ukuik0eSXzAL8MMKPEtlsRuIFnRGwhLBcfERop83VNk=; b=RN9d1AsKLfq4oW+7egPiBfSc3DhcW1GtUjiDJgum/SS4ClV0YhhwYV+q/icB7BgPQ3RjVB5DPpmjO+NBglC3zW1h6jCGo3mF+bVXGOVcUbcfmCOWG71MtLYENMxSZcq22NhgBuldGbYz22NXYIikprLt4sWexbxSQ1+vBPjVdC8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by PAXPR04MB8926.eurprd04.prod.outlook.com (2603:10a6:102:20d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33; Fri, 27 Jan 2023 09:21:29 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::e203:47be:36e4:c0c3]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::e203:47be:36e4:c0c3%9]) with mapi id 15.20.6002.033; Fri, 27 Jan 2023 09:21:29 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> To: andersson@kernel.org, mathieu.poirier@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, arnaud.pouliquen@foss.st.com Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan <peng.fan@nxp.com> Subject: [PATCH V2 0/6] remoteproc: imx_rproc: support firmware in DDR Date: Fri, 27 Jan 2023 17:22:40 +0800 Message-Id: <20230127092246.1470865-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR02CA0019.apcprd02.prod.outlook.com (2603:1096:4:195::13) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|PAXPR04MB8926:EE_ X-MS-Office365-Filtering-Correlation-Id: bcd58447-b28c-4bd2-4ca9-08db0047deea X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JiPqjXB9Z4T7PxTeS7yDZJMx6nUxBVO5iQF8JhWgnCDADGN8CYTvD+pYs8f/ze6ynJkAk8fZNu1f0/Sl9ZgxODaZ4A4fTIHPwMK2ydNfaHbUS9AMY60rbfmdVspH5KJ5+cmAlbV5BxBLup/hN7AbIZKhDRxGIL+UbhfS2dCcR8gfpbM7tfkPJxOTZTLMD4/k1O4kSphjMdfXLRAztycgs6FBAVA97iVcZmheQcRzyvsRn+hzCf9qjPqslnFmn5xsww/eyGCHQRUINy6XEfl0XevPeO/UqDmbEmdVjuCc6Vy3J1JJdVpHAG82d55p9UPiU2Gx6xgM9Xmyfvqz4IhkFTIqFw0wtRKhGl6a3ZJ+E9JfS59VSmPyyrswKwvJlPmcdQX6HZV6tePB4gJkBxLHxe2Nkxln49jhrEOdDUFU89IvD6RsAvShbnRjNe6C6kj9T8IleEtsKRv5YqHxVBBGcS4rSaNEJWsCYZSy3oLmoqarBkF4BQW0IFIXfsN9ZrLRwurO38ljI/WsoENhXi74vFCn3T82Ec1I5sijJpZXkKkSfHjemrYrOMZyR9AWPYjk44GyEMUzkVpiHI+k+UqPBajXC6Vwtv+AnnC7HC4C5TjgLX165pSePKkmvXKd8dkDtkWaVHH65CeIU0vdflGBRwQaIu6ZoT/kJn0hWf1p4e1PR/6ho0OtZcjK36PTC7ttd+AKTHydqRBbBewjhRhoCg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(39860400002)(366004)(346002)(396003)(376002)(136003)(451199018)(86362001)(66556008)(2906002)(66476007)(1076003)(2616005)(4326008)(8676002)(26005)(6512007)(66946007)(6506007)(186003)(316002)(6486002)(52116002)(38350700002)(6666004)(38100700002)(8936002)(5660300002)(7416002)(41300700001)(478600001)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: j2cQCli2EdYcj4qSMzwMjYUbBdpGCld/1Ge/LmretqAkK/qCzIGgD5Ze3fRKaNre4jHHlTeIdQ5MbT92yYfZG8Mok/lF6+ylgLiaykjhyYDcE5SbXw9sD2qiHnIpyykbguZwiawpeVvE8ffF4rlKuGdDSmwMNFF22/rXboq0rWE5KE/tRLrtgGppfbxwWlXf+bYC2GC989RQCcweCCIcS16P32kGfFLxyYB25+0QVdm3eFxSsjl06HvAfANQv+1FWETsGq7WnnSu4XbcEnSt1Gq4QpDt+NpjS4B3l8p7YtdCVYCN15UJjhO54znrkmzKdE7dRH1kJdPL9aMEoRj2e+1GSZc8dJBVDtGf5CjYtLwpKGF5V7uorep1SxYKmGW5hpkGZt2egSZXC4Q1URnfNSqwqRZk3eul7J4cdxU9Pj9PByHREEDJPP8vUZUaEVAoIpTSm7E2kTmsh18G6yJnukFPQ0HcDd6fZ5ECOa8tU2eNDZe8L12ICfpF8tI8yc6SP/XFGnmrG1hiktKt3/SIVF9hDhcpztekYNNp8wwRNNWP1eohGEoK02xmfLZ3Waggth0R+iJw1Ly5bEs4L8D6mFthx+jz5y2qffQ9DSQwLRGS4PMst4I/od1foUcVM8wWFlFnz/2tJJqwFiJk0JCNV+L7eG5NZ3KRSVRoDwV02K+mfssfx1YRPjA23vlE5YqscnHmL6Cp/sBF94ZKrqti0qV1ORBGX2It5JgGAlILz5GbSEyztFWgzSTqWuB9AvkxYKwB9RUFqYgFgbDgq05M18G4gyZByWKC2LMTACL1abt5kgd7bSaMtpTGdyn4Nftggmjzh9t0HJTGBGKfLirs2s2z6Pg3ISqUG+moYdnk36ONy1Ln46p/EvriwukeZk/JTdtuAHwsTl+1wAmWq4e4DrSRXtDdm41jNIlYPTXXZ9BsITaVgURwLVZ8deELI9bu7xWscbRN1nT9/uMTQDg50orh7ZO+TipMnhSyzCRNRniwC7icte0hURMD4aGPLTpSmG8Wl9BXBp5Vk1DZ847EN1mcD2q7WrQj9bEvoAVG4tS4kcMv/f9BNy7qGcf/udepqm9wCo5TlzodAYDWxZBMUVmPC2J6LLLwpblxCS1QEMK75nVyVxIJSHHGazBYhymLHpshxQ74Pl0Fcgx3fbAmiryN0fV2jt2m0uB4AiwEBmg35JfgwWerN4hTjcRznvQ5wsow8wT1YiDPH7CMZtg3GYVpxSbpZdGkksdTRnEZhwuOHy1LdKyy7b6s5Px3PK8rJZq2umJt0hGoa9ER8eaeE3O2lVvJz8IFRrAoRTiLd/zjUmnTgyGtSsJz0qG18rDYVdXXUzevMxlT3881zO7OpdxrZHbQ5T8TpsmR5DhudmOLWsiZvWrtXladfUdIA+63+gotCUqmP6t0rqxzhpyj/TiEvEpKPbahLZVxYEaR3LxFmQJSyBpp+ik5SAzcHr5ERDb4XFzz6vKKvgWhrfg2366HQqOLsTXRUE1IWjqSyQUCQxFWvT1qa5mTxuOcJr0HsAZRy4lFObRXahnq/Rf3vz37vOzU2Z8mHFycwO/8btC+wiSNH4mBm6QU8mRogX4K X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bcd58447-b28c-4bd2-4ca9-08db0047deea X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2023 09:21:29.0318 (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: BjtYHkgnqOLoIq7NBA2rJhIVwxpU0QXTaj5j3vBuk35OqI340N7eciYW4LJNTztG3jZ3rZsj6E9NWsRt5CeifQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8926 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756167309454371867?= X-GMAIL-MSGID: =?utf-8?q?1756167309454371867?= |
Series |
remoteproc: imx_rproc: support firmware in DDR
|
|
Message
Peng Fan (OSS)
Jan. 27, 2023, 9:22 a.m. UTC
From: Peng Fan <peng.fan@nxp.com>
V2:
patch 4 is introduced for sparse check warning fix
This pachset is to support i.MX8M and i.MX93 Cortex-M core firmware could
be in DDR, not just the default TCM.
i.MX8M needs stack/pc value be stored in TCML entry address[0,4], the
initial value could be got from firmware first section ".interrupts".
i.MX93 is a bit different, it just needs the address of .interrupts
section. NXP SDK always has .interrupts section.
So first we need find the .interrupts section from firmware, so patch 1
is to reuse the code of find_table to introduce a new API
rproc_elf_find_shdr to find shdr, the it could reused by i.MX driver.
Patch 2 is introduce devtype for i.MX8M/93
Although patch 3 is correct the mapping, but this area was never used
by NXP SW team, we directly use the DDR region, not the alias region.
Since this patchset is first to support firmware in DDR, mark this patch
as a fix does not make much sense.
patch 4 and 5 is support i.MX8M/93 firmware in DDR with parsing .interrupts
section. Detailed information in each patch commit message.
Patches were tested on i.MX8MQ-EVK i.MX8MP-EVK i.MX93-11x11-EVK
Peng Fan (6):
remoteproc: elf_loader: introduce rproc_elf_find_shdr
remoteproc: imx_rproc: add devtype
remoteproc: imx_rproc: correct i.MX8MQ DDR Code alias mapping
remoteproc: imx_rproc: force pointer type
remoteproc: imx_rproc: set Cortex-M stack/pc to TCML
remoteproc: imx_rproc: set address of .interrupts section as bootaddr
drivers/remoteproc/imx_rproc.c | 58 ++++++++++++--
drivers/remoteproc/imx_rproc.h | 6 ++
drivers/remoteproc/remoteproc_elf_loader.c | 93 +++++++++++++---------
drivers/remoteproc/remoteproc_internal.h | 2 +
4 files changed, 114 insertions(+), 45 deletions(-)
Comments
On Fri, Jan 27, 2023 at 11:26 AM Peng Fan (OSS) <peng.fan@oss.nxp.com> wrote: > > From: Peng Fan <peng.fan@nxp.com> > > V2: > patch 4 is introduced for sparse check warning fix > > This pachset is to support i.MX8M and i.MX93 Cortex-M core firmware could > be in DDR, not just the default TCM. > > i.MX8M needs stack/pc value be stored in TCML entry address[0,4], the > initial value could be got from firmware first section ".interrupts". > i.MX93 is a bit different, it just needs the address of .interrupts > section. NXP SDK always has .interrupts section. > > So first we need find the .interrupts section from firmware, so patch 1 > is to reuse the code of find_table to introduce a new API > rproc_elf_find_shdr to find shdr, the it could reused by i.MX driver. > > Patch 2 is introduce devtype for i.MX8M/93 > > Although patch 3 is correct the mapping, but this area was never used > by NXP SW team, we directly use the DDR region, not the alias region. > Since this patchset is first to support firmware in DDR, mark this patch > as a fix does not make much sense. > > patch 4 and 5 is support i.MX8M/93 firmware in DDR with parsing .interrupts > section. Detailed information in each patch commit message. > > Patches were tested on i.MX8MQ-EVK i.MX8MP-EVK i.MX93-11x11-EVK Hi Peng, Few observations: - bugfixes should come first in the series. - in case we want to patches to be pushed back into stable releases please add "Fixes: " tag.
Hi Daniel > Subject: Re: [PATCH V2 0/6] remoteproc: imx_rproc: support firmware in > DDR > > On Fri, Jan 27, 2023 at 11:26 AM Peng Fan (OSS) <peng.fan@oss.nxp.com> > wrote: > > > > From: Peng Fan <peng.fan@nxp.com> > > > > V2: > > patch 4 is introduced for sparse check warning fix > > > > This pachset is to support i.MX8M and i.MX93 Cortex-M core firmware > > could be in DDR, not just the default TCM. > > > > i.MX8M needs stack/pc value be stored in TCML entry address[0,4], the > > initial value could be got from firmware first section ".interrupts". > > i.MX93 is a bit different, it just needs the address of .interrupts > > section. NXP SDK always has .interrupts section. > > > > So first we need find the .interrupts section from firmware, so patch > > 1 is to reuse the code of find_table to introduce a new API > > rproc_elf_find_shdr to find shdr, the it could reused by i.MX driver. > > > > Patch 2 is introduce devtype for i.MX8M/93 > > > > Although patch 3 is correct the mapping, but this area was never used > > by NXP SW team, we directly use the DDR region, not the alias region. > > Since this patchset is first to support firmware in DDR, mark this > > patch as a fix does not make much sense. > > > > patch 4 and 5 is support i.MX8M/93 firmware in DDR with parsing > > .interrupts section. Detailed information in each patch commit message. > > > > Patches were tested on i.MX8MQ-EVK i.MX8MP-EVK i.MX93-11x11-EVK > > Hi Peng, > > Few observations: > > - bugfixes should come first in the series. > - in case we want to patches to be pushed back into stable releases please > add "Fixes: " tag. You mean patch 4: sparse warning fix? Or patch 3 is correct the mapping? Or both? For patch 3, I would not take it as fix, I just think there is no people using this ddr alias address. If you prefer, I could add a fix tag for patch 3. Thanks, Peng.
On Fri, Feb 3, 2023 at 2:55 PM Peng Fan <peng.fan@nxp.com> wrote: > > Hi Daniel > > Subject: Re: [PATCH V2 0/6] remoteproc: imx_rproc: support firmware in > > DDR > > > > On Fri, Jan 27, 2023 at 11:26 AM Peng Fan (OSS) <peng.fan@oss.nxp.com> > > wrote: > > > > > > From: Peng Fan <peng.fan@nxp.com> > > > > > > V2: > > > patch 4 is introduced for sparse check warning fix > > > > > > This pachset is to support i.MX8M and i.MX93 Cortex-M core firmware > > > could be in DDR, not just the default TCM. > > > > > > i.MX8M needs stack/pc value be stored in TCML entry address[0,4], the > > > initial value could be got from firmware first section ".interrupts". > > > i.MX93 is a bit different, it just needs the address of .interrupts > > > section. NXP SDK always has .interrupts section. > > > > > > So first we need find the .interrupts section from firmware, so patch > > > 1 is to reuse the code of find_table to introduce a new API > > > rproc_elf_find_shdr to find shdr, the it could reused by i.MX driver. > > > > > > Patch 2 is introduce devtype for i.MX8M/93 > > > > > > Although patch 3 is correct the mapping, but this area was never used > > > by NXP SW team, we directly use the DDR region, not the alias region. > > > Since this patchset is first to support firmware in DDR, mark this > > > patch as a fix does not make much sense. > > > > > > patch 4 and 5 is support i.MX8M/93 firmware in DDR with parsing > > > .interrupts section. Detailed information in each patch commit message. > > > > > > Patches were tested on i.MX8MQ-EVK i.MX8MP-EVK i.MX93-11x11-EVK > > > > Hi Peng, > > > > Few observations: > > > > - bugfixes should come first in the series. > > - in case we want to patches to be pushed back into stable releases please > > add "Fixes: " tag. > > You mean patch 4: sparse warning fix? > Or patch 3 is correct the mapping? Or both? For patch 3, I would not take > it as fix, I just think there is no people using this ddr alias address. If you > prefer, I could add a fix tag for patch 3. Yes, I mean patch 3) which is definitely a thing that stable versions could benefit.