From patchwork Mon Dec 21 10:06:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 11984377 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF12FC433DB for ; Mon, 21 Dec 2020 09:39:51 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8987022CA2 for ; Mon, 21 Dec 2020 09:39:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8987022CA2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=Tp8P/1vtyFBXkJrXxSpcOG1OJrZqzQdX7Eq5ZM6earM=; b=NYaA9u0UYtrsG37ks9x5JRY0Nj xNMS8XT3JIu28ANga+f6/5zBOuy3aIw5q1y+fFkz87uf6Tca5tKp6WPD8eY61RMCehXzVN8nW3EPG 0CzhEGuC+Hm7UftRkP6WDT6z/MB9wfR7+ANwidWOuCEP1FGRGtPh1djoFdRNiWABOhCcHS8Qg8fno viC5+gsnaflQh+U/en2WFlAQpk0S3X4uzWC1he5/aBOZN0HF+rEsKkgra1auCo7806dZGiJGEQOuC iA1juTHwTyl7KY/8X9VATF4zQ464f1RuwUjIYca3S67sEb88HmU6mLHVE1RlGC5AvX76VOMxd8GAR 0DtAkFvQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1krHdw-0005xu-NT; Mon, 21 Dec 2020 09:38:16 +0000 Received: from mail-am6eur05on2049.outbound.protection.outlook.com ([40.107.22.49] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1krHdu-0005xZ-MD for linux-arm-kernel@lists.infradead.org; Mon, 21 Dec 2020 09:38:15 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ndDn42gF2Zxk+4e6Rgx3JDYVgEn7GpSmg0LzrTcwGsLF8bYZjPmWsvK9eObkjIOe0Tzl4XiwTJZ5U1K4+lxyQY74CnRy3DQRWeQUJQgXkKwuvjvhpdFr0BrYMhTZOfcVkwqlToVZyItwUCoSVAmYm5MLU9Snw5Or3vsy6XcO1e/KffSkYKZPM3vcTwsowM+mlMfthAjf3A84CNAniTGBcuF3W/jU5BVOyxIWK29lHdakuNUM48dlKIbvidE9N9sqxBAW7pjziky/v8B0cIAUm/e3g/DHGlDedGtYP0JqLW0YVqnG/RBD+ODBbGuuABBlFrR2hDu1ht6liX/4msL0bg== 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-SenderADCheck; bh=kxyAEYC9fNgncJU7wK1Q2XHfhkIatQ4PvMXiftmtP3o=; b=R1So1vTiyJVQ7Eea072T2BTeFimqsGexiSkdXZXrKj1vrXC1XDmZLUkJ5r/gJlzyOoxqRSI99c/fDPEaoDHoeTaY/v6zpCdicFcmIFTyB9BqJNus9CI+reNiFEvzzu+Y5LUwtfbH46AI5znTO1jFQxT6b/lvv52j8hZb4a8r+GDfWDYRD3Ynno0UTZIjbA8ULRk2Hru/1YSIh17R1p4N53ZjRlpR+KGt1/QDasxYAwQUr3s4/2ppZ94tm37btmw1NbPCcQ1iZ7I7isCu/SWtu+p4i4x+fCGOXB1UI1oariQMkUn+QtLaUPu+vHlI9poYh0ye2S8FIdKS8eSX/Z6Tvw== 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=kxyAEYC9fNgncJU7wK1Q2XHfhkIatQ4PvMXiftmtP3o=; b=JkU+DnE/m2lHBSsvhO8sAKiAtrcw0Yy4vidETxkzxfuH+89E46XzFJ1QYrisVrZMnFkMH9VANpSBzKVsS646FoqDY1lCsl1DB8QNUP4JqesdybS+kK6M9PYwFo3wCroygcvzy/UoQsh29Nmpa3nZ6uiVk/46BamOdn3x0C5HoXQ= Authentication-Results: wizery.com; dkim=none (message not signed) header.d=none;wizery.com; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB7PR04MB4633.eurprd04.prod.outlook.com (2603:10a6:5:36::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.33; Mon, 21 Dec 2020 09:38:10 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c964:9:850a:fc5]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c964:9:850a:fc5%10]) with mapi id 15.20.3676.033; Mon, 21 Dec 2020 09:38:10 +0000 From: "Peng Fan (OSS)" To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, o.rempel@pengutronix.de Subject: [PATCH 0/8] remoteproc: imx_rproc: support iMX8MQ/M Date: Mon, 21 Dec 2020 18:06:24 +0800 Message-Id: <20201221100632.7197-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.28.0 X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SG2PR02CA0110.apcprd02.prod.outlook.com (2603:1096:4:92::26) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-1xn6.ap.freescale.net (119.31.174.71) by SG2PR02CA0110.apcprd02.prod.outlook.com (2603:1096:4:92::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.28 via Frontend Transport; Mon, 21 Dec 2020 09:38:05 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 945f31dc-7d2d-42f3-c335-08d8a594212f X-MS-TrafficTypeDiagnostic: DB7PR04MB4633: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jUFEKEV3d045/3W3Za5IKin22MEVRj2X5jnaeGljr3WAjZSgRmQikJH7jJp1Eg/JitZwboADlASOXg5vc/oB1zuG17gyIP3HOWNOmRf22R/2e4W9XI54JGZPp6vX7v23djKa8fo1nkcMb6c8Ff/R2IocBDe9kUX/hw620c+Y5haZPjYIlb+gkxey1AwSRajsIjhLNFsRWGvxNWdSiJt5zxvxu+CGTL2Qb9HSYGzjEn8GvNeWcl7oobFIYYwjW9TNB9Abpn4NIt+a4aRhGkAPGPvL83bKg2G2fp6GGzYoTiEU0S7TL4e4dRp11qT1IKefqRqgDOPCpi2HNEOEdLMfKFN1sf/A84rpNUNleUjHxfbgmdwyynUTefjFlKlniuIkNibB59n/Y+AGom1v7+O+uaCnUKH8BNJqwQh3dNl0YQJnaN5HYiGP24ZDEcEAozPfDVyV8K3pX5yMxOI35S/i4xlLMchooGp0n2KXkmYY6G8PNt7Tte4vSsvWlR1SvLaaxLgjQTNQTRF6IpLxE1Ua1w== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(39860400002)(136003)(366004)(396003)(66476007)(2616005)(4326008)(66556008)(16526019)(86362001)(956004)(6666004)(5660300002)(6512007)(316002)(52116002)(966005)(6486002)(66946007)(6506007)(7416002)(83380400001)(478600001)(8936002)(2906002)(8676002)(186003)(1076003)(26005)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: H89vXQDKaFjepkHNMhJ1rmMSfsWirg3TT0HHOepG6Q9Q865FgzfEd+bPiqm+tHKN9M41/p4udS3p2d5Z5UjMT8awtnzE8H0kJj6DApQ38tq6xtGfrl86yFz3Z64QtmZr4je+x+PKwr796iek2kAIE9JXsMKIfo+90CBF7HAQQXgo9M3n8kEoZTDlM365Uy8to25MMJ/o7iUMLfoZ3lHjUMjSGKZv752qqXRUScNL7IM8fcwn+fDbpJeIDoV2982JLrn07sMWkIV8TbLgAIS1IUbarYXTCH48SHtvGXLVWpIycO+nWD+wBeGdLxyyYD2H8Tfw3uUwquMUPeWtgeaffTVnu1yekXr4APMdpF+QkGVsIfpjCxCVznBhBCU9An9zQpLNWseB9ulW4aa6owJiiA6xRDwFZj+q+Y3u7wZ2clFXU7ZkUDqn1i2k6C4dzWIeoS8R/Fn/ZaHSuSKKtCoCxaoiVV3rfncg451qAwt/u4jdM3ErHSGXe7sdnxD9q2icWnNDbaoX0cJ1yWVaK6GyCxP8A+bXGtsf6cFaPA95rJeh67x91pznbpeJO0TgwBfAxS9EJfhrSpxxMCRrZ5jcKCpqsOHIJwNw0olWyl1Z3QRAuFwAAp0+aw1FXZzW+oQC1DjU2H52f4JEdAm0aFvptxAbnKAhXxPHLwG7a4+XDxCSfICbiwPaiqx5jyUUATalfSHIp1ersFMABkkB2uXxwVnSgXtoUWKYXvOnwf7ru6CTeAAwcSpICTuauRYIV7Zwh70VtAL0bgU6uksIReWpxGEtNIQwKDJj81Vs+CnoVAVr78FdMt9EJQ1eIfePHgP2ABb3znyFBHJQC5/6A3CnHKrUIQ8u5ExBvtSTGaGnTJ8E9BYYC3TS+NxmAheUahhYDJIZkUnOlbTy5oGfj2EkizQj1WzFlC1S8woDTitIu57IvSZj4Vu85PxhgA/Y1Z1dY5+Czf1lLsFkC9NRfT/eP5d9/PeiAiZdDn6JpskH1C4IHnWQPItVcrL59r9Kn2lC X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Dec 2020 09:38:10.2346 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: 945f31dc-7d2d-42f3-c335-08d8a594212f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: nfXhBxD8mZf0l0ZEzym3gjRycLof7t1vKhVtu9QDucA9lVt+QZiHgVyKtJOQhWqolKqwOzP6krKO2UjBRTin3g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4633 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201221_043814_769760_85EE34CF X-CRM114-Status: GOOD ( 10.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peng Fan , shawnguo@kernel.org, s.hauer@pengutronix.de, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, patrice.chotard@st.com, paul@crapouillou.net, agross@kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, matthias.bgg@gmail.com, festevam@gmail.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Peng Fan V4: According to Bjorn's comments, add is_iomem for da to va usage 1/8, 2/8 is new patch 3/8, follow Bjorn's comments to correct/update the err msg. 6/8, new patch 8/8, use dev_err_probe to simplify code, use queue_work instead schedule_delayed_work https://lkml.org/lkml/2020/12/4/82 V3: Since I was quite busy in the past days, V3 is late Rebased on Linux-next Add R-b tags 1/7: Add R-b tag of Mathieu, add comments 4/7: Typo fix 5/7: Add R-b tag of Mathieu, drop index Per Mathieu's comments 6/7: Add R-b tag of Mathieu 7/7: Add comment for vqid << 16, drop unneeded timeout settings of mailbox Use queue_work instead of schedule_delayed_work free mbox channels when remove V2: Rebased on linux-next Dropped early boot feature to make patchset simple. Drop rsc-da https://patchwork.kernel.org/project/linux-remoteproc/cover/20200927064131.24101-1-peng.fan@nxp.com/ V1: https://patchwork.kernel.org/cover/11682461/ This patchset is to support i.MX8MQ/M coproc. The early boot feature was dropped to make the patchset small in V2. Since i.MX specific TCM memory requirement, add elf platform hook. Several patches have got reviewed by Oleksij and Mathieu in v1. Peng Fan (8): remoteproc: introduce is_iomem to rproc_mem_entry remoteproc: add is_iomem to da_to_va remoteproc: imx_rproc: correct err message remoteproc: imx_rproc: use devm_ioremap remoteproc: imx_rproc: add i.MX specific parse fw hook remoteproc: imx_rproc: support i.MX8MQ/M remoteproc: imx_rproc: ignore mapping vdev regions remoteproc: imx_proc: enable virtio/mailbox drivers/remoteproc/imx_rproc.c | 259 ++++++++++++++++++++- drivers/remoteproc/ingenic_rproc.c | 2 +- drivers/remoteproc/keystone_remoteproc.c | 2 +- drivers/remoteproc/mtk_scp.c | 6 +- drivers/remoteproc/omap_remoteproc.c | 2 +- drivers/remoteproc/pru_rproc.c | 2 +- drivers/remoteproc/qcom_q6v5_adsp.c | 2 +- drivers/remoteproc/qcom_q6v5_pas.c | 2 +- drivers/remoteproc/qcom_q6v5_wcss.c | 2 +- drivers/remoteproc/qcom_wcnss.c | 2 +- drivers/remoteproc/remoteproc_core.c | 7 +- drivers/remoteproc/remoteproc_coredump.c | 8 +- drivers/remoteproc/remoteproc_debugfs.c | 2 +- drivers/remoteproc/remoteproc_elf_loader.c | 21 +- drivers/remoteproc/remoteproc_internal.h | 2 +- drivers/remoteproc/st_slim_rproc.c | 2 +- drivers/remoteproc/ti_k3_dsp_remoteproc.c | 2 +- drivers/remoteproc/ti_k3_r5_remoteproc.c | 2 +- drivers/remoteproc/wkup_m3_rproc.c | 2 +- include/linux/remoteproc.h | 4 +- 20 files changed, 298 insertions(+), 35 deletions(-)