Message ID | 1611041711-15902-1-git-send-email-peng.fan@nxp.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <SRS0=BTt4=GW=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> 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.9 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, 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 B1E8EC433E0 for <linux-arm-kernel@archiver.kernel.org>; Tue, 19 Jan 2021 07:47:49 +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 37DEB23131 for <linux-arm-kernel@archiver.kernel.org>; Tue, 19 Jan 2021 07:47:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 37DEB23131 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=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=ll5/Vc3qoPpueBWJqZ6dFPJEF+pShF0a+JMpz2uWnBU=; b=aQC6VCmQKaHbV6HlmTqhy2FvQp jM5xiCeLvnh8EiT+Q5uCZnZ58uklWl5OleJeQFt9Q5pfx7QaYspn+RT+Xc/U9+eXae/OSi7XOmQiA HsIH4+aAtWArIjMBbAfhZli+uQUCkbwW1VJAsZSmw1i50GByLojkSHu6f84IR9WpMiKpD9MQnhgID lHfbLBIABmrHgLk7Ms/ANJzOyf2nZXoBo4eFDJmAIEMWL4/Y6y4cqDITuJa134QUPkTJqjpewANZo JB2JcooBEFF3o+ip9d69aeqBjnGinaLkT4FF2xCE+YsUV9j9LpwBQIS7/XloJhRAZQf700KP/zRIo kEc2dTcA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1lhw-0005GP-Tb; Tue, 19 Jan 2021 07:45:44 +0000 Received: from mail-eopbgr40081.outbound.protection.outlook.com ([40.107.4.81] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1lht-0005FH-D2 for linux-arm-kernel@lists.infradead.org; Tue, 19 Jan 2021 07:45:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gRopq9xtcslSgOCYu/HuCC+9Vb1cV/CBKtpLT1ABbxdn89EbWRrVWK2NX4UiWUZjWVlQbzwhyxpFBVKBlv+b8Wu+T+pLIlrKOoqE9rusIPXyoU89VIAMGWwd3LCgL+DmQgCii+E599IZbQapVj2usyb6PLVu1awUUwrNXAHEJo+wY7as+JriwRQNaBMYlKDvjCnpnbxg8MzooUZY/sOvKvAYj2BNTOjYl8/0ssvpQuciTx7mDTNYaO+1ZLKt+38MAg7ZDVqQWVFW4SdHFKa0j4VC6sB+Uh1Q8VS/zMOKIDa8fBLnK4Jfz3W1olj06jhZ27LJH49euNvamLXKInqG+g== 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=4zpipmheotYKR4QF+DbiELFBamVa3QmXkYcS1XjQKVo=; b=XWUQLtuuVzE3yjtH2T/H4a6Kih+N2qUp1H2EKFrTm88pSw2spdLOker5lmhSPbH9T/dOK4I1JwO5/7WVnByPxTHJCWev3EUqzkv2pNrCC0FzzzG/zKii+fJVYfNdr8xJ4DHo3v9M/eh9Ssz7jId5+4wJQxRmP9yrtw5ksufcnvplyaVESofjE8R+6dCAlBe0t7vdWFZTnUJHIfGMM8EVv+FIuZ1cTQUHUos5G7qPdEiBzX3N+SaNOvk14P+y8Fza73AOVdY1KFa30A29kLH5xKEoreUPJEIsXhh3f6PJlzr7IwfIUs3iJD+r5OF+H/EtkNjFHDfSkkl1zRtr/zX/GA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4zpipmheotYKR4QF+DbiELFBamVa3QmXkYcS1XjQKVo=; b=EqlZHE9uPbEZ1w8BzNp1jXXndB3RBG9uY602aq/vDGNsLi8/4hBcxUUj5Q5EaPFt7818CfMZA2Qn5ZRN6PSrGojyxHhOf4AJRE+PfVQM9xFhQZ6J2kAgAfQ7y1XL+nombTxNkIqWjLarwqufolhjeUz/riPBIz7bbyC3EtW1Kjs= Authentication-Results: wizery.com; dkim=none (message not signed) header.d=none;wizery.com; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB7PR04MB4492.eurprd04.prod.outlook.com (2603:10a6:5:39::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.10; Tue, 19 Jan 2021 07:45:35 +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.3763.014; Tue, 19 Jan 2021 07:45:33 +0000 From: peng.fan@nxp.com To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, o.rempel@pengutronix.de, robh+dt@kernel.org, devicetree@vger.kernel.org Subject: [PATCH V8 00/10] remoteproc: imx_rproc: support iMX8MQ/M Date: Tue, 19 Jan 2021 15:35:01 +0800 Message-Id: <1611041711-15902-1-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 2.7.4 X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR04CA0161.apcprd04.prod.outlook.com (2603:1096:4::23) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SG2PR04CA0161.apcprd04.prod.outlook.com (2603:1096:4::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3763.9 via Frontend Transport; Tue, 19 Jan 2021 07:45:27 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: ebc5bc51-7da0-49ba-72d4-08d8bc4e338c X-MS-TrafficTypeDiagnostic: DB7PR04MB4492: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DB7PR04MB4492E53FB92CF53C6E75A57888A30@DB7PR04MB4492.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GeF58wx/o/dZzisNAL7Hzc7e/gNhOd/sdp11ypz78GFJ8kOhV7MKfyCoarAu1WlQidxfjjM+gnwmcYzs73gsxUIy5PPc/KKS4KU/9FJycXyawsFOdszvpjZszsy7JYBsMlGk/CrwqQAs93XqcuzhfjmopmKLOPnvF6fssj9wAsrGZfPB1HMq8mCU+SECJWUVVQe6h9KzdypPlhrVLGn3Q9JoMJy1YVmx7VGwADzgdztDZorGe4e/u3Kon501BQIgGvoaMZ0wK5G0fUY6L41Wf2q/Hqqb+4ZDK5jNwzG7feJAFVFg+7Rdn8S/XX0FCgHrz231/7q2qHlnOEjOjlGVLKUyBbnVnYX1+cwlKxaeMpmxGE5wcmew5LGdMb76dkEaZndd78SzVRhoYPq+cpTg30hQ8jyUVtB1vxaKVJzKKMAYRNWL1mBwtbzE536tM7F54i1HNo9G1Zph3d5Vrl2pZfbdPsa5qLD+jwO47/1bfFOoZo4HXS+b1oGZNXV0fwcUQ2Izt2OTt6lKi4zbbqifXf+fPhPSef4sypT3EOhbbpI= 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)(366004)(5660300002)(2906002)(66476007)(26005)(69590400011)(4326008)(6666004)(66946007)(186003)(83380400001)(6486002)(966005)(4743002)(6512007)(2616005)(86362001)(36756003)(52116002)(8676002)(6506007)(498600001)(7416002)(9686003)(16526019)(8936002)(66556008)(956004)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: SgxRfS2MdLiap5sMVItIxmEiy9fVD5KDKBGggYO2CuA5YFVjvV4++gISLOOhegvz9K/PADKBMVSjp20I0h2eyeYMPomI24p/Ycady/x76Qb61/2sJS9M267gE0lNWq5zRIJjLR4YAGd8PmrRPz+PLrlrtXqK+9ktyS49GPgD4izJtdz0FzC0UIGIsSNNE4LkT5mz5Y2DV0b3okM4aWeyIB2nntOfGFXARrLGJ4N/1p1VMrVLuLjhwqQN3BIpZMh7VbsQ39U1tdaLQ2zVHEeow3oylPRP1j24ABcBck0ETDOS1gOSp8y+1f8Yhs8+Js2ZBYBlNCZvpXB1ZaF0fUw8Kj4NgbQkruXOFA8zwbGNN+c5eMT0bpFyNTrCMxuEDVcjxy9DCe755fDqmT4F6//vYFK3jy6cigC3khYrSvRMpPMAqaXk6Anr6RdqyirD3RNS8o1jVl+6xRlQuCrp7+LXeC9qfDEcVLUqZBjxutWpmHl/tEZzj6S8k/6LvYt0yjTvCftAWTZUNzEQtmZUdxYpam3wbkkgPey+dRaU+gdU0rHsTwLHeHU6ko4S6lbZtoHASMC1FxLRyGY4fWyfGDoSnAf2P5B2eF+k2LiYB346IafG8ItwOfUHjbxL3syMU2mJvoLirPdinb8WVFa21ozML83nd3Do97QYQHDDR+a7P6RnMlG0VPBlmNh8VvQYTDwnr1WMmyBPaK2YqPyXWSItokL2huR+bbjvQ9AdNGyLDluwkKmf960uQYxBZNwmfSJx5GXEs+AzQbBDimIfTN5005nJrefea+MWwI3iep2BjyDJhL3koYT5D58jIIvE4uH18tSpQU18JzXzGG1tCrSRZc3jA+oO1Y3wWBFt4AppIpzTam8QWU5So0fbOYTp1zqXy741KZVMmN/xEWF0vqEENClhnmgwxsng2qsXFzN7lwkJzVVc5zWQGd/C3SQGAC7wVaFIbA6wN1aDz0EadlqMaAS3qt+hE41nls8CCJRk9JYGl11ny1+pvQ42UQPvkFZL X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ebc5bc51-7da0-49ba-72d4-08d8bc4e338c X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2021 07:45:33.4137 (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: XeyMwgB5kaTqlsAle1XloLJefx9SUUi2XbO8zTlqeew0MnoTvgqWaLCLUVe0pATgcz1IJF1wqX8L86PfM8EolA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4492 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210119_024541_662542_0ADDA14B X-CRM114-Status: GOOD ( 13.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Peng Fan <peng.fan@nxp.com>, 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
remoteproc: imx_rproc: support iMX8MQ/M
|
expand
|
From: Peng Fan <peng.fan@nxp.com> V8: Address sparse warning in patch 4/10 reported by kernel test robot V7: Add R-b tag from Mathieu vdevbuffer->vdev0buffer in patch 1/10, 7/10 correct err msg and shutdown seq per Mathieu's comments in patch 10/10 Hope this version is ok to be merged. V6: Add R-b tag from Mathieu Convert imx-rproc.txt to yaml and add dt-bindings support for i.MX8MQ/M, patch 1/10 2/10 No other changes. V5: Apply on Linux next Add V5 subject prefix Add R-b tag from Bjorn for 1/8, 2/8, 3/8 https://patchwork.kernel.org/project/linux-remoteproc/cover/20201229033019.25899-1-peng.fan@nxp.com/ 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 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 https://lkml.org/lkml/2020/12/4/82 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 (10): dt-bindings: remoteproc: convert imx rproc bindings to json-schema dt-bindings: remoteproc: imx_rproc: add i.MX8MQ/M support 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 .../bindings/remoteproc/fsl,imx-rproc.yaml | 108 ++++++++ .../bindings/remoteproc/imx-rproc.txt | 33 --- drivers/remoteproc/imx_rproc.c | 260 +++++++++++++++++- 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 +- 22 files changed, 407 insertions(+), 68 deletions(-) create mode 100644 Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml delete mode 100644 Documentation/devicetree/bindings/remoteproc/imx-rproc.txt