Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp619329ybk; Wed, 20 May 2020 07:53:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpvAwCT110nZ/yOYJ97+EYwP/3PghrBvv7FYXJfLkCtJQfAV3e1uhALhjpreASdHevnTgg X-Received: by 2002:a05:6402:1681:: with SMTP id a1mr3861037edv.116.1589986423169; Wed, 20 May 2020 07:53:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589986423; cv=none; d=google.com; s=arc-20160816; b=YTZUSWF6a7JeLfgq4p7dx3DOnn7Dv7Zvt3q8gGiJOlZio7e4vaQEonZDwAaD2ljv0W XGeY6sdQWul3LF/M9EsSZiANaGh2k83wp84KDgw8DRHmEQFDA/EBbNihAeGEoBTgdj9C SZuRumPbL72Z4dz0491LAXdX5oQd/slly0jkt6kGsa7pKWc9xMrLn8tNmFTJQWiAz8xc 6A8Hlb3Ku0P9eLnhbKTIAG5ICUIuGWyIm+fKjx54IL20c33D/z/bni6RH3zghEqUUfhm Oj3j+wQ+aOjJW752qY5yKhSN2FEyVL+pqW4fnanLSWh47lNl2TWBaSn9WLp/nZMD8YOw ZP0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=mF9hCf7Xk61Z6neQPdNS3sUzpshBFvjsTt55Bt0GOQQ=; b=zCC76XPP2RLP/cpXnxdTnKsquF8U+jbvd+WeLbR8Vi8Bky8eqmlv9vCAsiSxH4KXd9 gVTjGebfnv1Vc2hSryz7Pqp+z2nLNx9vs93vwK8Ca7IKdwbL1j7j/IxH7IRuHp7ErZrT Nu8ky3zD9Mbe1ebbR4U2oLMYMIrTDoD/MO82Q0nNS48pn2O9CrhEFSg1a1yvjlN7HVOi l9nNIJRJBagijdE3dG0bIPQdcpt6JVvYv4wrPvUVp2X9Tt3cHom8zAfTXFbSJV8Fc3gR pBmVZ+38haa9px1g/OkGUy3uDgqV3B8lEEutKo+YcX0x26MQ/UyWK8MQWoqCNxk/2+r3 g/uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=fdVcLj1o; 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=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l2si1573704edi.237.2020.05.20.07.53.20; Wed, 20 May 2020 07:53:43 -0700 (PDT) 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=@st.com header.s=STMicroelectronics header.b=fdVcLj1o; 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=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726789AbgETOtk (ORCPT + 99 others); Wed, 20 May 2020 10:49:40 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:51448 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726439AbgETOtk (ORCPT ); Wed, 20 May 2020 10:49:40 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 04KEgDW0028385; Wed, 20 May 2020 16:49:33 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=STMicroelectronics; bh=mF9hCf7Xk61Z6neQPdNS3sUzpshBFvjsTt55Bt0GOQQ=; b=fdVcLj1oCPsKC4aG1U8RGJ2JWpTune9Ufd4VVsdOLuWtcqjiXMMKS0fKZIzKYiq/CriI aLf5UuEaoaw83BUhGH7z2p1D+TpgAJdKnxPHAEhw0vaoxiiRHdfY9FwniGxx1Pev7Rck 0x+N1FZ3ztGI8ykbZLAGBH14VpBYdTGSG9mkIwvbK2Xo5UZxnuSJorfFmWy75I9V/pD8 A3mvvUz0FDb73Qw8quPShJyOKC0ZRgXAsQehsjTIhIr99bVibEWzoKKzgYFJ/6BtB2mI AP/FAvy4LcgByRwBBsDOlgg8++LPqXnkzlq/+cQ7T0bBo+C8CikGr4OzB56ZjQz1HkUF zA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 31272h8phx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 May 2020 16:49:33 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E289110002A; Wed, 20 May 2020 16:49:32 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node1.st.com [10.75.127.7]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id D38652B7FD4; Wed, 20 May 2020 16:49:32 +0200 (CEST) Received: from lmecxl0889.tpe.st.com (10.75.127.51) by SFHDAG3NODE1.st.com (10.75.127.7) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 20 May 2020 16:49:32 +0200 Subject: Re: [PATCH v6 0/3] rpmsg: core: Add support for name extension To: Bjorn Andersson , Mathieu Poirier CC: , , , , Xiang Xiao References: <20200515205642.13529-1-mathieu.poirier@linaro.org> <20200515210914.GA408178@builder.lan> From: Arnaud POULIQUEN Message-ID: Date: Wed, 20 May 2020 16:49:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200515210914.GA408178@builder.lan> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.51] X-ClientProxiedBy: SFHDAG4NODE1.st.com (10.75.127.10) To SFHDAG3NODE1.st.com (10.75.127.7) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.676 definitions=2020-05-20_10:2020-05-20,2020-05-20 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bjorn, On 5/15/20 11:09 PM, Bjorn Andersson wrote: > On Fri 15 May 13:56 PDT 2020, Mathieu Poirier wrote: > >> This patchset adds the capability to supplement the base definition >> published by an rpmsg_driver with a postfix description so that it >> is easy to differentiate entities that use the same name service. >> >> Applies cleanly on rpmsg-next (4f05fc33bebd). >> > > Thanks Mathieu, this series does look good. > > > But before merging this, can someone show me a real example where this > is being/would be used? What are some real channel names and extensions? On ST side, This is something we plan to integrate in the TTY over RPMSG support. The use case is the support of multi-instances. We already provided to our customer a TTY service supporting it but without name extension. Some feed-backs are: how can we know which TTY instances to use to communicate to the expected remote application in case of multi-instance. A concrete example would be one instance to control a remote processor application, the other instance to get the remote system logs. Then in rpmsg TTY proposed for upstream the extension could also been used to differentiate the data from the control channels, as discussed with Mathieu during reviews: https://lkml.org/lkml/2020/4/3/964. Means the service is the TTY, the sub-services are the data and the control. An other usecase i have in mind is the management of the rpmsg flow control for the QOS. This could be reused to create a core flow control manager based on the service extension, which could be quite smooth in term of legacy support. Suman and Xiang(added in CC) have probably also some usecases as they proposed similar patches... Regards, Arnaud > > Regards, > Bjorn > >> New for V6: >> - Added example on how to use the new API. >> >> Thanks, >> Mathieu >> >> >> Mathieu Poirier (3): >> rpmsg: core: Add wildcard match for name service >> rpmsg: core: Add support to retrieve name extension >> sample/rpmsg: Print out RPMSG device name extension >> >> drivers/rpmsg/rpmsg_core.c | 115 +++++++++++++++++++++++++++- >> include/linux/rpmsg.h | 13 ++++ >> samples/rpmsg/rpmsg_client_sample.c | 5 ++ >> 3 files changed, 132 insertions(+), 1 deletion(-) >> >> -- >> 2.20.1 >>