Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp116018pxb; Thu, 14 Jan 2021 01:09:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJzjk1mVYpvvQRLT+gw/tnSEYdHmSOh+1jkBrnesedSbyMfALExEkiiQ/0DM2vU2qS54bB6c X-Received: by 2002:a17:906:8693:: with SMTP id g19mr4748290ejx.111.1610615381650; Thu, 14 Jan 2021 01:09:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610615381; cv=none; d=google.com; s=arc-20160816; b=qqzd3bcsey8LGXx73IDJ1PTnoDMVC9fqTfsU7SrhMkd/HycbQ+BljFKZr07Fb+2CiE 545h7nOtYrswLyuZJPiuF6O7WtxEbAeAdmX8iWDwX8YHUaACxZsq51tDlqswUmgSrq6W CAmze7XrOYruvQxhm+56SP5AWtOWdG/9mEgbhy3FmqLnyf8T0aKIk5meUVD7Havl8zSi p/71tqq7MvRCt74QVoN7ub/1hQSiv1ja7qJ1REaZ/ripldiGWB6ceAiWFF80a0tOj3QG mQARZ/cd+yMf5LGy4UV7zueCb6Up808vJfiFa2K/8LuzjNVSsZjFqmR+YTDdl80SaN58 W5Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=iOusNVKYpK/rUzV9p2n9FI3ih0zBi6c6lWLF2Wo9T2E=; b=ucUY9o4JdVM+BLd/l+LMJkk5RvC7E5hTtnf0rfOpK4+62Eam810V3zmlDnEvSkoTgB dyQbQ0POehzowfP2nuxxfP226TQc0eLOKuVIxSnvoTifMo6FivS9JY6RfXFW53iwsieE DFXmlSdG0yNKAYFrpTRnWFkeyOHJugnpRVCmqU1rEaIrBnpLw2OlZiZKqvfvtEW1gNBU RzmGKgfgqHLBUtHDxrbFbG5O2sRxkvtD1zKSD2VZIPwfGN1k8IxhSGChqvK1QY9qC2hZ Nl+OeZNRfnJFJnG3AUEi6bfb677gSTFPduoChC9zqGazOlwf4BEK0G4PSsjmHqPBMqqd c+xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=6SbEn1F8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q17si220992ejd.397.2021.01.14.01.09.18; Thu, 14 Jan 2021 01:09:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=6SbEn1F8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728030AbhANJHQ (ORCPT + 99 others); Thu, 14 Jan 2021 04:07:16 -0500 Received: from mx07-00178001.pphosted.com ([185.132.182.106]:55058 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727274AbhANJHH (ORCPT ); Thu, 14 Jan 2021 04:07:07 -0500 Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 10E922US020227; Thu, 14 Jan 2021 10:06:21 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=iOusNVKYpK/rUzV9p2n9FI3ih0zBi6c6lWLF2Wo9T2E=; b=6SbEn1F8DEZRaoW3tB7wsnwd/an7oQhOAYQyFaSBPL5y94qEkZDRW0oUOCyMO7GXkkRF pdTS0FTHYVNps92luQgioXH057rQR1EYkgq40QKA2++C738t59x1i2bZPzf8se+UnfSf 9+C13zqU9c8tQ+aVY9aP6LRbfwzmByoQD0RnZ5Jwkt4SKz3MhinueBmjgrdUc0fxN7Gs Jm85AW7eMgU5mdKpmD9fkd+b24QiYcv9E+A0LDgPWh6Isug7L4edZ1TVEEhtbbP9pc6R 07MAEDdYd+DVtfaw2z2meXFgbmJ1Hf0Li/V6itt2r05UxqAotx1WQ0lqG+Ou2OvpHzNJ FA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 362379c85y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Jan 2021 10:06:21 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 0188210002A; Thu, 14 Jan 2021 10:06:20 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag2node3.st.com [10.75.127.6]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id DDBFC2283F5; Thu, 14 Jan 2021 10:06:20 +0100 (CET) Received: from lmecxl0889.lme.st.com (10.75.127.50) by SFHDAG2NODE3.st.com (10.75.127.6) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 14 Jan 2021 10:06:20 +0100 Subject: Re: [PATCH v2 00/16] introduce generic IOCTL interface for RPMsg channels management To: Mathieu Poirier CC: Bjorn Andersson , Ohad Ben-Cohen , Andy Gross , , , , References: <20201222105726.16906-1-arnaud.pouliquen@foss.st.com> <20210113203143.GA229796@xps15> From: Arnaud POULIQUEN Message-ID: Date: Thu, 14 Jan 2021 10:05:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210113203143.GA229796@xps15> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG3NODE2.st.com (10.75.127.8) To SFHDAG2NODE3.st.com (10.75.127.6) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343,18.0.737 definitions=2021-01-14_03:2021-01-13,2021-01-14 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mathieu, On 1/13/21 9:31 PM, Mathieu Poirier wrote: > Hi Arnaud, > > [...] > >> >> Arnaud Pouliquen (16): >> rpmsg: introduce RPMsg control driver for channel creation >> rpmsg: add RPMsg control API to register service >> rpmsg: add override field in channel info >> rpmsg: ctrl: implement the ioctl function to create device >> rpmsg: ns: initialize channel info override field >> rpmsg: add helper to register the rpmsg ctrl device >> rpmsg: char: clean up rpmsg class >> rpmsg: char: make char rpmsg a rpmsg device without the control part >> rpmsg: char: register RPMsg raw service to the ioctl interface. >> rpmsg: char: allow only one endpoint per device >> rpmsg: char: check destination address is not null >> rpmsg: virtio: use the driver_override in channel creation ops >> rpmsg: virtio: probe the rpmsg_ctl device >> rpmsg: glink: add create and release rpmsg channel ops >> rpmsg: smd: add create and release rpmsg channel ops >> rpmsg: replace rpmsg_chrdev_register_device use >> >> drivers/rpmsg/Kconfig | 8 + >> drivers/rpmsg/Makefile | 1 + >> drivers/rpmsg/qcom_glink_native.c | 96 +++++++-- >> drivers/rpmsg/qcom_smd.c | 59 +++++- >> drivers/rpmsg/rpmsg_char.c | 246 ++++++----------------- >> drivers/rpmsg/rpmsg_ctrl.c | 320 ++++++++++++++++++++++++++++++ >> drivers/rpmsg/rpmsg_internal.h | 14 -- >> drivers/rpmsg/rpmsg_ns.c | 1 + >> drivers/rpmsg/virtio_rpmsg_bus.c | 38 +++- >> include/linux/rpmsg.h | 40 ++++ >> include/uapi/linux/rpmsg.h | 14 ++ >> 11 files changed, 606 insertions(+), 231 deletions(-) >> create mode 100644 drivers/rpmsg/rpmsg_ctrl.c > > I am finally coming around to review this set. I see that you already had an > extensive conversation with Bjorn - did you want me to have a look as well or > should I wait for the next revision? Based on Bjorn first feedback, my understanding is that the management based on create/destroy channel does not match with the QCOM RPMsg backend implementation. I think this is the blocking point of my V2 implementation. Before sending a new revision i would hope that we have a roundtable discussion to clarify the direction to move forward, to avoid sending useless revisions. As discussed in [1], there are different alternatives, that probably depend on the features we expect to support. I tried to sum-up the requirement I have in mind in [1]. The 2 main directions I can see are: - rework the rpmsg_char to match with all rpmsg backend (V2 implementation) to be honest i don't know how to move forward in this direction as QCOM and virtio backends are rather different. - not modify the rpmsg_char but create the rpmsg_ctrl (and perhaps also a rpmsg_raw for a /dev/rpmsg data interface) that would use the create/destroy channel such as the rpmsg ns (V1 implementation). one advantage of this solution is that this does not impact QCOM drivers. one drawback is that we duplicate the code. [1] https://patchwork.kernel.org/project/linux-remoteproc/patch/20201222105726.16906-5-arnaud.pouliquen@foss.st.com/ [2] https://patchwork.kernel.org/project/linux-remoteproc/list/?series=327277 Thanks, Arnaud > > Thanks, > Mathieu > >> >> -- >> 2.17.1 >>