From patchwork Tue Jan 12 09:39:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 12012943 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=-12.0 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=unavailable 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 0FE5AC433E0 for ; Tue, 12 Jan 2021 09:51:15 +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 9D1C1230FD for ; Tue, 12 Jan 2021 09:51:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9D1C1230FD 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=hgcq3FM6FISOndkYNC6SzM9mSDV/0J3AVFv05J5dJsM=; b=avFLl+nGJx9Kzc6Ew5iVeJD0kF U265HvabnLYldDDb5IfP4+DdX5ToNmKHEsS4zFY/pUKeqGYLUN2OwxFxtlTpdcmtTIsWwh8hOmJk2 qCB40oFBCL119m3PxVdEEL816NH0NrPjewWStcW3FRbclbRYpQUFLkyetoUxe/gzzWBwdE8iAOWD4 QNy8sCQxb6QcaM8C9HbZLdrG4Xh0Mzz+6Vo2jVTqb0AWJkMV2maStEcMNwVh4LpYnynnm0abhMOjZ mR55AamkA0P+p7M84j3+8pRUGqLycVhFJMevQoKaz6b4LShj0m5iQ3/XIOG6Oj8rOfK/VyTDeDBtm RVPzoqhg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kzGIs-0005Ll-8N; Tue, 12 Jan 2021 09:49:30 +0000 Received: from mail-eopbgr130082.outbound.protection.outlook.com ([40.107.13.82] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kzGIm-0005JD-GH for linux-arm-kernel@lists.infradead.org; Tue, 12 Jan 2021 09:49:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aZS/5kQmOep4IqO7PNhkJrXoibdxOGEEfsTpS0hNsLHRdCrOD7oiAfriHpSdCLumpHLgngby4lNfeV/DvUYvmDUP/6csIB+NnLvfqAmV+9mkWmmAOt+/FIkVf56LFodBHeqcwEXdmaucn/d6x1CxoxV4aFDoIf73IjreawSA2bWBZlTE6CPQq71yPG9QlJOgXIVrFrGWe0L86Vo2TpSjxvfAMAyDkWzsOPcmXR2IajZIrrP648CjKS4C8LuaMkWRK306xdOVKj7r6mIJBuxkUoVpLNvZQ20L/vnTR2h9dHKMqd45nxgtvycVJc3UoHfuGjBDciZUjLKSuHsHtoGrpQ== 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=pkaNWyaZe4q3GuTCuwEV3h8Cr90yLi6v+UipBnd4tjY=; b=CAUZ+lwoI0rdArqPxopW4DlHlnN35S4IECXhIkm5aXDBT35z/jFgg+t/9dNakchBvzY/DTwgw7mlAVdakCN+R0AcoNOLWdhW3l6oCWTxMEnkqcAPYOUMZGA6n4PAGw5veMUBBu0pd2uNBCrYU4TurFLGA2sqAgZ0npzg9/UBLrQXHrJn0aPKHd7DHlSmDToZYd1bcogrgKEM4pR3ZzhTTE2O8iIOyG18JjbGNNsAVZfctXDrtqRq9I3ERJM6qYcdvypnrs6vXfL2WkaPZ0jpTTfVvxfpWUEA0Xb7J/ZE/oLgZAC+7+KfSE6XGPLbF3N57IusnjIlqMKGTJK5OAKr+A== 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=pkaNWyaZe4q3GuTCuwEV3h8Cr90yLi6v+UipBnd4tjY=; b=CiCG9x6KdiprBto2vHxofNM534kAnIU04PAKgQmeh5F7XdXNiAG70azM4/MzCXYVCxi15e1ufvcpkEm/GkodTKwFAi9nu6t3nKR4omRhwUhCoD/4luj+D+9w8rtAm2L2tAa2RFiGcuFstAT2CBVNDQTSRNY8/Iz+to9ugm6Ja04= 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 DB7PR04MB4089.eurprd04.prod.outlook.com (2603:10a6:5:1b::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.6; Tue, 12 Jan 2021 09:49:19 +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.3742.012; Tue, 12 Jan 2021 09:49:19 +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 Subject: [PATCH V6 00/10] remoteproc: imx_rproc: support iMX8MQ/M Date: Tue, 12 Jan 2021 17:39:09 +0800 Message-Id: <1610444359-1857-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: SG2PR06CA0212.apcprd06.prod.outlook.com (2603:1096:4:68::20) 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 SG2PR06CA0212.apcprd06.prod.outlook.com (2603:1096:4:68::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3742.6 via Frontend Transport; Tue, 12 Jan 2021 09:49:14 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 419f27bb-c5f2-4722-9f8e-08d8b6df5514 X-MS-TrafficTypeDiagnostic: DB7PR04MB4089: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: c9oG5z8DRPGI0xPzOIQRNRMy7RXcozLdih2YcPZ98ONb5uEY1FI0GCC4bh/C1g8Al/pZ3paOFkEzvbHL8tf69p9+htKzFZ8DA/0V9/+lU5I0djthOwO1AsSHQGk5pFZ8POTFpsptpB+WsSmjb3eHmbFAumahRuoerhxw7f/YsVLkbBszDJtZLXLgAgGHIaGxzP5V10mdzEArIxdZeE8OvXGymnPBrTc0Ia0saeihEo3jKhXcaJdXjqSqwggxE022899NHhMap4QeH/uzDyg2pKdqjxIhtN0+6Ee/982XJnBc+ZgpQc8pP9kOjkDQOv6ALjmZzKRQDEqdTp2/8hafGy95NNbfw7kknkiMo/HQvWCLFKKH3p101KasIlQqhUy8bIKEJvnMJn5irvyH8R26U5gSCqdzsvj0axo8vODH9bn5uwKmKlEfriZw2FtUf0l9geWVu6niWzS/PCSOaHq01/ObQ9/h2E/89GZkSLZQym158krmi3ObojFgPx/bPiJcV+oD2Xto0VJg2eqJq67oOuRoLCZtGqe4ROgcdInh3r8= 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)(86362001)(36756003)(8936002)(186003)(66946007)(66476007)(9686003)(26005)(6512007)(16526019)(5660300002)(4743002)(4326008)(2616005)(69590400011)(52116002)(7416002)(8676002)(6506007)(2906002)(956004)(83380400001)(6486002)(6666004)(66556008)(498600001)(966005)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 1sXEDNKPXXIB4PX1x4D5CSoqnH2rvv9jjjNP/LnC2QwvXqUjYGmfnB0MtICB1F//OWPOSpmQnY56jjib1T7dloAzH3qB3QGpKOqZB0sVNeMmvoUA/WSKxd/RcA+nG6m7jSFq5d3HmH5Ln54CpTz36GlVmAMaPDyTFMaFGE9CjqLte8Ze9NjeY8S9ZLn4IFJwa/y+NIYgMsbPR5QOqV7bSkI7OR3cbt2tR7XUqEWduS9+eSz+UUgvcR9juB+YJQGP9nRDWZynwJeluuvNiHrIL6i03Z160RhIcPQz8JjLczJiH9s0AH121agCFQHS3QRVmnch0ll9hhk5biWfuxKL/7POdL2GbVcZjlG0eQHloXb/ZAnOLhkHZNs1EqX13csm7jgkelTHogPx0gGBJqJ7OSptYVnNrosKWzaSbAYe6AN7IW2uin3SR/qnRC4q84JLQrx/UWOmqotn8lL3qp2xsJObCq5ER0Gmma9m6pRMIqJjTXJeeyqOKGLizD04BPmFYD54gO5ChAH3PlP6PvRnI9Ql4oNK6NdP5aCi0MT9UH6q4jzDDr5XxskHLb2kAENR59YeuJcQZvAX9zbS8BxSqOXezS9ZamSz0GWbgvKubxqJIj29z8sN/cfXpx09MtSxkc1qMiBoP13L+Yqw67L7McYxG1mXpIz9Xtjs4bqQHwj7yFbBMCg/NNee2fk5XS80k3zwKIKTH5qkPj52ttSYmH8RNcw+cIijmnoY6HD1TUA9xeTygF77EgfWvqg0+Ry75RimR2cAMUfKL2gDzzDU3jm11KvBJAbQ0ZpEevxZtPG4HJ40dMz11n9jFxdT+3jyk8beuvdgG9xFXn8aj5Cyfv+DgN7alHNhxpVVfp3vTNrWJ5kkCP5I7qdnfcBNHvMdH2v0L5rjrE8yHjiK+Jiug/8PW8ju5HvJf8ayULrRNMAzeGoyBFjSJzRZY4LnUcOB5M5PTxbW3A2WR39QSbvV43p4nQ6lluwWDasF2KPGYXOxIjRF8CkLoYpOYLenX39u X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2021 09:49:19.2853 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: 419f27bb-c5f2-4722-9f8e-08d8b6df5514 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: eb2d6kkj3uB8bt0iBULzWxhd0VJrlwqPxAbHc6845mtYe1lgFcLc8t70yLsEGkp0btxJrcgHK12dJKN9HHfXGw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4089 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210112_044924_605199_F33E6439 X-CRM114-Status: GOOD ( 13.01 ) 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 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 | 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 +- 22 files changed, 406 insertions(+), 68 deletions(-) create mode 100644 Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml delete mode 100644 Documentation/devicetree/bindings/remoteproc/imx-rproc.txt