Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5068182rwb; Wed, 21 Sep 2022 02:44:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM47MmmZ1px1x6eNO8eFqkejlM75VqDA/A+rqMVZ3X6XW5/GJbtbaAEQpRU9ux073CaiyUfA X-Received: by 2002:a17:90b:4a85:b0:202:4f3f:1f65 with SMTP id lp5-20020a17090b4a8500b002024f3f1f65mr8483775pjb.241.1663753464676; Wed, 21 Sep 2022 02:44:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663753464; cv=pass; d=google.com; s=arc-20160816; b=rOzhd2uSXrHszrUSzKBrZxqD8GMy3ZPd3av25ctnNSEYwSpplTI5cCjfliHA6TPeBs h7j7nYTChe7g0pQLWIjKIzT/kZfVIXWsh5KdjOzKkrg6RZ/KCD4jDFREfbpeVPDbXc+K sy+KDHU/xmwdSGZ8xB5FYmZ7Zn6qWUQvZ6tZst5XxIjEjlZchDYYsGYpEcxtTZcAcWkP 3UEauLY4SYVWq8tZzHFGJmREhz9rwszUvD0jVpD38x5pM7fqCsz3XphtGuvkQg+wIgPS Vyy4DBgqd961TBM4HsLQ4u95IG6APwsXTPJJ4gMy8whQFqI1f7Xfduusj6vOLrkyX6bf o8RQ== 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 :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=bH/yDjDyjezgHafcm4ewqLj1UnQPZZrODOHneejChvE=; b=B04FObyqfZ7NULFfmfapOMgJFpudGMVLrbm9p6bi1vAU+/Nj5wefUtntjhf0czZSX3 n7U269gfaBlijFmlTpWowAtH8vbgGMG7JiL7Z67GDzjBL3ruxIeJzaYt5KFaUooeBFm9 zbj1seLh2Yd8KUHYRGbErF7eyvFAFrbl6pHsXTFRIcvsHC0EqM1ovJIIzi7Nyv6s0Cie jnKVJcQWPNgJZQNVBmTaI94MlCjO1Lo5z9MDmSY10etPBRqP3uNg4cRMmPv+36SnRlXa XuHspZ2+SjqMNyqJJ9fCA/dPFdBPxeu5AcoO5pNqR59/8Nk/7v7CQcMLOTngyrjQjWIc /vlQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=dCM7Bn96; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d1-20020a634f01000000b0041a77ebb731si2320403pgb.294.2022.09.21.02.44.13; Wed, 21 Sep 2022 02:44:24 -0700 (PDT) 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=@nxp.com header.s=selector2 header.b=dCM7Bn96; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229677AbiIUIyq (ORCPT + 99 others); Wed, 21 Sep 2022 04:54:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbiIUIyn (ORCPT ); Wed, 21 Sep 2022 04:54:43 -0400 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150087.outbound.protection.outlook.com [40.107.15.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36A9E63DD; Wed, 21 Sep 2022 01:54:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SxgxdITpe2AmWH7zGfFIg3SmHxbg6oiZdtFrl5XvtJeuIzvK+eb/t1xyhuY+yDa9oNT9Y95kD7GVeRZrOLboi77LSvAU2PglH/lU+L8lJKR+8J+TjLnQRIm8mfFGr3I/a/e6nbq/hlcv2dMWZjRso4d5ix9tzcnM+Jm1dwkb0vJn7LCwHxKiIR9TQGzDzrJiFhCcRc+Spk0PDFrrCFrGVIMW0mMcig5dBajQ90bJzCVlF3KSTVxu+sKrx08FEvJ+lg1rKYc0wxjvJuEnFCbYep9QDLzO7fIKxC7jlkH7yVSUEVv+vnfCG8/CeAcDXKI4Y7mBUaJdqQJg4S8XPcj42g== 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=bH/yDjDyjezgHafcm4ewqLj1UnQPZZrODOHneejChvE=; b=WbKni7NcWxnPyUzc5x7/Nmi2lQYwL5IPIuuhgvmsrXRpr2ndLCsw1ZJi6uft4woq1i46jPhZw6jNSy1ft6uFcFHvHbErhtZXX9XP8n9Z3wXoO1z13EAour3XbTAY03MD+PHzjAuO3jr3EtBFUGgS5o/wd5hO7FFEEHYiN0zZVY12ozFi8ZJzRy3zURd4L8KnFahoOoiRqvf7aGG7AcPQVPl4yORxrJDLn9dzbjV9tn9mHOwaCBBaiN/Z6QaXndcZlfoH6iQke4af521zMd49Dnkp1zzYW/9cd6KgR3PSYOR3v2gCGpyq3N7/sXwX2SpM/p45yiFeV4UXdIpLwi1E5A== 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=bH/yDjDyjezgHafcm4ewqLj1UnQPZZrODOHneejChvE=; b=dCM7Bn96CV9PRHobDf5hGwjgwu3240beVsMc80V6jYUIFu8/UvxWLBni76gqYefy+UVxlbo0VS9QjAi6RfokKiTxXEwe+mL0mB6jG8g12b6FkZJzVcUChXp1JY7IlpPKBjzTvdRYbHc4V0cfPZNSJA0AErhAUQNyD9chkmHx9hI= Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM0PR04MB7185.eurprd04.prod.outlook.com (2603:10a6:208:19d::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.14; Wed, 21 Sep 2022 08:54:35 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::1eb:dcf:8fd7:867]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::1eb:dcf:8fd7:867%5]) with mapi id 15.20.5632.018; Wed, 21 Sep 2022 08:54:35 +0000 From: Peng Fan To: Arnaud Pouliquen , Bjorn Andersson , Mathieu Poirier CC: "linux-remoteproc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" , Rob Herring , Christoph Hellwig , Stefano Stabellini , Bruce Ashfield Subject: RE: [PATCH v8 0/4] remoteproc: restructure the remoteproc VirtIO device Thread-Topic: [PATCH v8 0/4] remoteproc: restructure the remoteproc VirtIO device Thread-Index: AQHYuUJ7PUmHIPxwNE++nUAZwqhxoq3puwPQ Date: Wed, 21 Sep 2022 08:54:35 +0000 Message-ID: References: <20220826115232.2163130-1-arnaud.pouliquen@foss.st.com> In-Reply-To: <20220826115232.2163130-1-arnaud.pouliquen@foss.st.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DU0PR04MB9417:EE_|AM0PR04MB7185:EE_ x-ms-office365-filtering-correlation-id: 5c110705-f1f6-4b8a-c7b9-08da9baee8ba x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 6b0W0zfi0JHgVCyhUgqu474TBMac3mZWXKmkd1bUYtNp+AEY0mM5ra/cRFBUuo6adrZ3rX4GGJjLuv8pu+FU7eoo5wMyQ6/VoGvZsjqDoO4UKZjDweKnnSCBmZExH4x2Fu2TCu4tnZ7dZ3VktRQEroCvwarbnwhfG0y9A7mJd9wF79as2z6dd2zTMrXCFeb5E4LpNc9HMDLcsdkLVUhEtCbzPqE7HVEZsoIXUga/vKz0mzvXNWulFtpXCr1nxyaoBtz7VAAMlgRu9Xo6BKjx3+TgS2ZaI1kxuoQ8AzJT2nET5rASRMxRu8HW5nVc6LsnK+B1SNet1+81CSfRAGZPHE0evOZn4eKPpZoC0RIQQuaAeLmBpXMVaOrrnSWddBME1mDYtVO9+ExpvhUnMUcuTKFmWYIZpGG5KvAZX7OGWoT+gk9AcceOYFW7qb/Xk8G9R2vyVX1bYt7OomHuiwteTyowbrSUsCS6AFdRfug1qn3iTlQgC6ZhLtyaHTLfNHpP4zk2U2qBQ7PUecKGbYyo5BQROjG/K4Q31b6seacrFOLiWr2ImOZZNQTUl1nmhQYsLnqdIN1QAgkvsmvkaWg/Sda23zX7suWXglJhlO/9BXEr0W1X9x0EkqvoSF7AJVnQwySVMJ+a47lA6uq/fGxN359UUD+B13nbBRxGVSV0S0BCNSbatjQIe4xwTwtMGZeoWaHVaGMVHX9NK0eeidL3qLnrN7syU+UdMWTJsxwAt8lubbvhpwHvrwPUjVux4CxoUAD5cL3m+c0LC5jc5qz/32nGlRglVr+qT5K+ldd2Zkv+KQg16w7DKlOpta7cKj8Mzri3HmXU6HISFDrk6d3JsQ== 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:(13230022)(4636009)(366004)(376002)(136003)(346002)(39860400002)(396003)(451199015)(52536014)(478600001)(66446008)(45080400002)(66556008)(54906003)(76116006)(66946007)(110136005)(966005)(8676002)(33656002)(71200400001)(64756008)(4326008)(86362001)(6506007)(7696005)(66476007)(38070700005)(8936002)(41300700001)(26005)(122000001)(316002)(5660300002)(55016003)(38100700002)(83380400001)(7416002)(9686003)(186003)(44832011)(2906002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?KFA58m84d0JGwdwJzraZNZiXg3RWVU0rUJOGFonsTXZmXYeZYOTU1DPSWNua?= =?us-ascii?Q?BsEtSD3zKjVyJVTqdM1dHXnFuFx2M9pds9DsE8vFcZTmtunbsCwfeTCA3vdJ?= =?us-ascii?Q?d+kYEfi6rwl2nc5PYICaWXqoAHv6g8LKrPqwqL/dez+4cH2ov8xcXcHtAGbl?= =?us-ascii?Q?DPJDoDhSoXJy5oQhVy9Lm17tUpnK7iDB3a1e9bn75twRzb8kDASykECPEoZ9?= =?us-ascii?Q?RkVCvhgUJ42/J8khJmjvGNoS0XIY/F8B3LdY5gtH9654lo/nvLA4QZW6t8Sn?= =?us-ascii?Q?w8lz1o1DZn+XpNf9e6wdLgNvfExDvB2DGFgKmQZTbj8Gckd9HmEMaL8+9hJ8?= =?us-ascii?Q?BDIcyLu95JlKYTEj0n7zTojW2DlAWU1S/6+vA/CujLk6l0OZywklg4tSftjp?= =?us-ascii?Q?pnx8HF42Af7UbiZL3Nr6m77TM3Zj1YZFfxAOjP1gMKtuKjQPr3oIOKhO8phR?= =?us-ascii?Q?RYCdUYTS3WaQShbkc3Ooor99HMyB3rpBe4vuPds1EXjVMLJR7K0VQaFGjhpZ?= =?us-ascii?Q?BQXBkoZZoUx1CUzjRrfK6SATkOGPO++yUTm01IEG3AhSioFWHxD2FEtJfuLc?= =?us-ascii?Q?BMxQPRdEJTFwoaMCi0H24WD3fCLIEp6cFN2kkdv/AwomVzQ2x0wolc5CChA8?= =?us-ascii?Q?TKDn9zqKuSIygnujr1XQCiIlkvveViD/49yQtyRlofhzZtxgMNqVS5EIFdvK?= =?us-ascii?Q?HTqxGua2cqrwEz7qZJctjsWcLh4SJQk234n/wrq37Q8w2GRUW+gVX0EzhFdc?= =?us-ascii?Q?SyvCCT3XVIfVLXNvUBXp+lQqdUdk7vT1rHlxNwf2oJZb+vgWftO6YazKdEA3?= =?us-ascii?Q?nYyXhgJq/jW1IzMIHazRtVuiFhteM3CKWg0K/05JG2AOTjupF9d9R7Dsw5Bo?= =?us-ascii?Q?jN+oxqKLrm1c74pa4Po6evx0DyUBeyxOK/izAdQY0BKe4WpcUyLNuCXsSs8B?= =?us-ascii?Q?FZKBFTKkAG4Bq6qnP9xo2+iU9L//eYptP/j3v2bbuJ1E9q4NOqrH8HMqPc2q?= =?us-ascii?Q?Lk5cr8qBEUYetX41LWBtez/7lWMKo1iuJ56hpbslkvbh7fAxoQoGH/2RT6L6?= =?us-ascii?Q?dK7x2SljIVOgtao9/1bE0zv6SlDP5Y7kgQ4fxPxcMRTAKPRag0iQN6vGDQcy?= =?us-ascii?Q?58bIJ5jjJQ9Hd6RLRfOcdcpRTGqS7yk6zuaV7kmPjcUSgOAaynuhdcepYdRu?= =?us-ascii?Q?tmnUYaY8c6EEakXJexFvtNKPCcP9rjT+rTgdJI2eWqAXihAuhrW4l2BTZ98K?= =?us-ascii?Q?+8rYguxD3WRl/dfwOtaJoLLOuuiTrdDC72XwdU7Wn15FV7tWv3bpzi4AMj5I?= =?us-ascii?Q?2RYvHHD5DY0jYYSNIBJnF7RA9bGD2Qc5droffnfVUVrzE5jznoIBUc2iOPSo?= =?us-ascii?Q?J0xqvDWFwZSDgEOFx3Q6FS/GmGTbUxg/pg+JTNGkiSsti7o0Uhbj+uMzs3co?= =?us-ascii?Q?P/LuOArtaRjYNR7lwX+xdgX5wITBkqmLpnfennXXsYIea0MnHXMTLaVvwA0U?= =?us-ascii?Q?6y/WlTE6pdJRYzuBjjz6uAFwAX9lgpMpQ7Gd+kVtJ+FyPuJdxG5Z2gJV0CgC?= =?us-ascii?Q?2NGLzYpFHN/GUIyZTjw=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5c110705-f1f6-4b8a-c7b9-08da9baee8ba X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Sep 2022 08:54:35.7203 (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: Ifj2czsApxPTZBSRzIiBa3K9d8uOYCmFMJZTKGfs0c8CrlqO2DIf7FWqMh2m4J/K1xuhEPhiAyeYpMz7A2Ng0w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB7185 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnaud, > Subject: [PATCH v8 0/4] remoteproc: restructure the remoteproc VirtIO > device Sorry to get in at this late time, just try to catch up. Not reviewing comments, just have a question, Does remote core firmware requires changes to use this new feature? Does your 4 branches listed below still work with linux-6.x? Could the multiple vdev still share same mbox channel? I not own i.MX remote core firmware development, so if no need firmware change, I would like give a try and see how it works. Thanks, Peng. >=20 > 1) Update from V7 [1]: >=20 > - rebase on rproc-next branch [2], commit 729c16326b7f ("remoteproc: > imx_dsp_rproc: fix argument 2 of rproc_mem_entry_init") > The updates take into account the integration of the > commit 1404acbb7f68 ("remoteproc: Fix dma_mem leak after > rproc_shutdown") > - add Reviewed-by: Mathieu Poirier according > to reviews on V7 >=20 >=20 > [1] > https://eur01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Flkml. > org%2Flkml%2F2022%2F7%2F13%2F663&data=3D05%7C01%7Cpeng.fan% > 40nxp.com%7Ce0e5200d739a48e7439508da87599d14%7C686ea1d3bc2b4c > 6fa92cd99c5c301635%7C0%7C0%7C637971116202643149%7CUnknown%7C > TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiL > CJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=3D77pEuwAI7Lh61hx1%2B > Hs79Cu0G5KOa6mzQ0PnTC5r8Xk%3D&reserved=3D0 > [2] > https://eur01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgit.k= e > rnel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Fremoteproc%2Flinux.g > it%2Flog%2F%3Fh%3Dfor- > next&data=3D05%7C01%7Cpeng.fan%40nxp.com%7Ce0e5200d739a48e7 > 439508da87599d14%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7 > C637971116202643149%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjA > wMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7 > C%7C&sdata=3DiWUSzKkN9BpHwqbO62awIcyVf9PXcftcdt2kytWVR78%3D > &reserved=3D0 >=20 > 2) Patchset description: >=20 > This series is a part of the work initiated a long time ago in the series > "remoteproc: Decorelate virtio from core"[3] >=20 > Objective of the work: > - Update the remoteproc VirtIO device creation (use platform device) > - Allow to declare remoteproc VirtIO device in DT > - declare resources associated to a remote proc VirtIO > - declare a list of VirtIO supported by the platform. > - Prepare the enhancement to more VirtIO devices (e.g I2C, audio, video, = ...). > For instance be able to declare a I2C device in a virtio-i2C node. > - Keep the legacy working! > - Try to improve the picture about concerns reported by Christoph Hellwin= g > [4][5] >=20 > [3] > https://eur01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Flkml. > org%2Flkml%2F2020%2F4%2F16%2F1817&data=3D05%7C01%7Cpeng.fan > %40nxp.com%7Ce0e5200d739a48e7439508da87599d14%7C686ea1d3bc2b4 > c6fa92cd99c5c301635%7C0%7C0%7C637971116202643149%7CUnknown%7 > CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWw > iLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=3DoPWSfUweLdhUFK5X9 > 2YcGHem8s%2Bfelcr%2FHx9JAlKG%2BI%3D&reserved=3D0 > [4] > https://eur01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Flkml. > org%2Flkml%2F2021%2F6%2F23%2F607&data=3D05%7C01%7Cpeng.fan% > 40nxp.com%7Ce0e5200d739a48e7439508da87599d14%7C686ea1d3bc2b4c > 6fa92cd99c5c301635%7C0%7C0%7C637971116202643149%7CUnknown%7C > TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiL > CJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=3DHPpnlaykes8R1Kz1dEN > nirEHkDNr7JvRs%2FcsaDPuLdI%3D&reserved=3D0 > [5] > https://eur01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fpatc > hwork.kernel.org%2Fproject%2Flinux- > remoteproc%2Fpatch%2FAOKowLclCbOCKxyiJ71WeNyuAAj2q8EUtxrXbyky5E > %40cp7-web- > 042.plabs.ch%2F&data=3D05%7C01%7Cpeng.fan%40nxp.com%7Ce0e520 > 0d739a48e7439508da87599d14%7C686ea1d3bc2b4c6fa92cd99c5c301635% > 7C0%7C0%7C637971116202643149%7CUnknown%7CTWFpbGZsb3d8eyJWIj > oiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C > 3000%7C%7C%7C&sdata=3DGtNruefDreOoogL%2BlntAC7GBfk6E1Goq4j% > 2BYXt36RdI%3D&reserved=3D0 >=20 > In term of device tree this would result in such hierarchy (stm32mp1 > example with 2 virtio RPMSG): >=20 > m4_rproc: m4@10000000 { > compatible =3D "st,stm32mp1-m4"; > reg =3D <0x10000000 0x40000>, > <0x30000000 0x40000>, > <0x38000000 0x10000>; > memory-region =3D <&retram>, <&mcuram>,<&mcuram2>; > mboxes =3D <&ipcc 2>, <&ipcc 3>; > mbox-names =3D "shutdown", "detach"; > status =3D "okay"; >=20 > #address-cells =3D <1>; > #size-cells =3D <0>; >=20 > vdev@0 { > compatible =3D "rproc-virtio"; > reg =3D <0>; > virtio,id =3D <7>; /* RPMSG */ > memory-region =3D <&vdev0vring0>, <&vdev0vring1>, > <&vdev0buffer>; > mboxes =3D <&ipcc 0>, <&ipcc 1>; > mbox-names =3D "vq0", "vq1"; > status =3D "okay"; > }; >=20 > vdev@1 { > compatible =3D "rproc-virtio"; > reg =3D <1>; > virtio,id =3D <7>; /*RPMSG */ > memory-region =3D <&vdev1vring0>, <&vdev1vring1>, > <&vdev1buffer>; > mboxes =3D <&ipcc 4>, <&ipcc 5>; > mbox-names =3D "vq0", "vq1"; > status =3D "okay"; > }; > }; >=20 > I have divided the work in 4 steps to simplify the review, This series > implements only the step 1: > step 1: Redefine the remoteproc VirtIO device as a platform device > - migrate rvdev management in remoteproc virtio.c, > - create a remotproc virtio config ( can be disabled for platform that = not > use VirtIO IPC. > step 2: Add possibility to declare and probe a VirtIO sub node > - VirtIO bindings declaration, > - multi DT VirtIO devices support, > - introduction of a remote proc virtio bind device mechanism , =3D> > https://eur01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgithu > b.com%2Farnopo%2Flinux%2Fcommits%2Fstep2-virtio-in- > DT&data=3D05%7C01%7Cpeng.fan%40nxp.com%7Ce0e5200d739a48e74 > 39508da87599d14%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C > 637971116202643149%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAw > MDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C > %7C&sdata=3DXtF%2FQnml3QXFL7rgqST1Z2FotUzoj%2FD57WfiuAVMnr8 > %3D&reserved=3D0 > step 3: Add memory declaration in VirtIO subnode =3D> > https://eur01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgithu > b.com%2Farnopo%2Flinux%2Fcommits%2Fstep3-virtio- > memories&data=3D05%7C01%7Cpeng.fan%40nxp.com%7Ce0e5200d739 > a48e7439508da87599d14%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7 > C0%7C637971116202643149%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4 > wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000% > 7C%7C%7C&sdata=3D6gq28c6a1TJ%2FdkvokcEjgy6FKQcKTXSz%2BNAbJPo > mjac%3D&reserved=3D0 > step 4: Add mailbox declaration in VirtIO subnode =3D> > https://eur01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgithu > b.com%2Farnopo%2Flinux%2Fcommits%2Fstep4-virtio- > mailboxes&data=3D05%7C01%7Cpeng.fan%40nxp.com%7Ce0e5200d739 > a48e7439508da87599d14%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7 > C0%7C637971116202643149%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4 > wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000% > 7C%7C%7C&sdata=3Dwfy2euuOPoMmBMIH3BOsGcsEYGSTWsDaRr7ENN > QCK70%3D&reserved=3D0 >=20 > Arnaud Pouliquen (4): > remoteproc: core: Introduce rproc_rvdev_add_device function > remoteproc: core: Introduce rproc_add_rvdev function > remoteproc: Move rproc_vdev management to remoteproc_virtio.c > remoteproc: virtio: Create platform device for the remoteproc_virtio >=20 > drivers/remoteproc/remoteproc_core.c | 154 +++--------------- > drivers/remoteproc/remoteproc_internal.h | 23 ++- > drivers/remoteproc/remoteproc_virtio.c | 189 ++++++++++++++++++++--- > include/linux/remoteproc.h | 6 +- > 4 files changed, 210 insertions(+), 162 deletions(-) >=20 > -- > 2.24.3