Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3760604pxk; Tue, 22 Sep 2020 01:36:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOfBeIiZlDSZrAh7U1T8uPlSwJdDaNKMpTRrm6UWFtmRpMOpPHxW020cIGKko/soAC2QAt X-Received: by 2002:a17:906:33ca:: with SMTP id w10mr3905537eja.438.1600763811095; Tue, 22 Sep 2020 01:36:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600763811; cv=none; d=google.com; s=arc-20160816; b=sQSQ9c1RgZL3bQw5Zs0qmLJjH/4GMCh6zSWNaVshDsajcFL4I3IOUPYBQPYXdgs/BV UfTYnuF3M3MWZNrLnS3NogJhuk4TQ3qNgX5Q6OGTl42gB7XmAxyxa33KZLpZffLGdcs0 73+ytwW0E/g0U9XpmZ8AKH/2h7o1yHN5fX+tHEGzTZi03UFyCWVqn6kL3e/hAKeryaUC +VnSIG3m3kMQcUP7lQtRZyih6bYsS2b4/7rzdypTnztjlX1nq/xWvdoNOBrWvR6r9IEb iQ11A+f0MWiyqE3D+ys/+c5xmDSzQmgJMQaDTlpMavfQFCL8ckr1C9Pm/Ubq3PNixvNG ARqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=uC2NHJ+VuQKm62vHNvNOpIheBwzegLYOlNbZuOa9Jco=; b=jwAlSKs18Ct1Eh7oOfJ1W7HH0o+m9Jv3PcEt2Tv2UsZ91QaTjreKtZwdzH1To5TAwp VK+REQ98h4QBezTjpquTi8V7FvRDLWfdzoUzCRFbRuEbPz5m775E4ZuzriZHDbx6e91d 4lX9LRuB+esGVQhg7a2xl5ZekxGOxuDn5KQ+yJCbftNx2GrB6O4SaWZjNoVTZuV2n0Bx DUZAfRAPQNzi6EO/BG0H3JYpnL53UQB/gyfl+nm1hbi0uonXoyrKhVLgStb7IWGlim09 UbpBcxat8eHRDbhTwhxteVdJzzhSNTq7SzH+s9+TIfWzOaFtGQmDpV8dhmhmqKwRUfWJ qGGg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si12001576ejd.305.2020.09.22.01.36.27; Tue, 22 Sep 2020 01:36:51 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726603AbgIVIJ6 (ORCPT + 99 others); Tue, 22 Sep 2020 04:09:58 -0400 Received: from mga07.intel.com ([134.134.136.100]:22403 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726442AbgIVIJ5 (ORCPT ); Tue, 22 Sep 2020 04:09:57 -0400 IronPort-SDR: gx0SszusU5X9CekBflUEIRUmoJdGgK7s5mrLR+5Dd8PiergPhI1MAVAzlo/SYz5LPqV1ugqkys q+Ik942d/lug== X-IronPort-AV: E=McAfee;i="6000,8403,9751"; a="224705439" X-IronPort-AV: E=Sophos;i="5.77,289,1596524400"; d="scan'208";a="224705439" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2020 01:09:56 -0700 IronPort-SDR: i7DFCMZeT46WErhKpRsRnSZs2581l90UwkFPUCZJVstwMaNBYaW9dVKes7AlufRBPwHUVMqVIT JypBlKYcV8NQ== X-IronPort-AV: E=Sophos;i="5.77,290,1596524400"; d="scan'208";a="485857398" Received: from gliakhov-mobl2.ger.corp.intel.com (HELO ubuntu) ([10.252.49.176]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2020 01:09:47 -0700 Date: Tue, 22 Sep 2020 10:09:44 +0200 From: Guennadi Liakhovetski To: Mathieu Poirier Cc: ohad@wizery.com, bjorn.andersson@linaro.org, loic.pallardy@st.com, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/10] rpmsg: Make RPMSG name service modular Message-ID: <20200922080944.GB4648@ubuntu> References: <20200922001000.899956-1-mathieu.poirier@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200922001000.899956-1-mathieu.poirier@linaro.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mathieu, Thanks for the patches. I'm trying to understand the concept of this approach and I'm probably failing at that. It seems to me that this patch set is making the NS announcement service to a separate RPMsg device and I don't understand the reasoning for doing this. As far as I understand namespace announcements belong to RPMsg devices / channels, they create a dedicated endpoint on them with a fixed pre-defined address. But they don't form a separate RPMsg device. I think the current virtio_rpmsg_bus.c has that correctly: for each rpmsg device / channel multiple endpoints can be created, where the NS service is one of them. It's just an endpoing of an rpmsg device, not a complete separate device. Have I misunderstood anything? Thanks Guennadi On Mon, Sep 21, 2020 at 06:09:50PM -0600, Mathieu Poirier wrote: > Hi all, > > After looking at Guennadi[1] and Arnaud's patchsets[2] it became > clear that we need to go back to a generic rpmsg_ns_msg structure > if we wanted to make progress. To do that some of the work from > Arnaud had to be modified in a way that common name service > functionality was transport agnostic. > > This patchset is based on Arnaud's work but also include a patch > from Guennadi and some input from me. It should serve as a > foundation for the next revision of [1]. > > Applies on rpmsg-next (4e3dda0bc603) and tested on stm32mp157. I > did not test the modularisation. > > Comments and feedback would be greatly appreciated. > > Thanks, > Mathieu > > [1]. https://patchwork.kernel.org/project/linux-remoteproc/list/?series=346593 > [2]. https://patchwork.kernel.org/project/linux-remoteproc/list/?series=338335 > > Arnaud Pouliquen (5): > rpmsg: virtio: rename rpmsg_create_channel > rpmsg: core: Add channel creation internal API > rpmsg: virtio: Add rpmsg channel device ops > rpmsg: Turn name service into a stand alone driver > rpmsg: virtio: use rpmsg ns device for the ns announcement > > Guennadi Liakhovetski (1): > rpmsg: Move common structures and defines to headers > > Mathieu Poirier (4): > rpmsg: virtio: Move virtio RPMSG structures to private header > rpmsg: core: Add RPMSG byte conversion operations > rpmsg: virtio: Make endianness conversion virtIO specific > rpmsg: ns: Make Name service module transport agnostic > > drivers/rpmsg/Kconfig | 9 + > drivers/rpmsg/Makefile | 1 + > drivers/rpmsg/rpmsg_core.c | 96 +++++++++++ > drivers/rpmsg/rpmsg_internal.h | 102 +++++++++++ > drivers/rpmsg/rpmsg_ns.c | 108 ++++++++++++ > drivers/rpmsg/virtio_rpmsg_bus.c | 284 +++++++++---------------------- > include/linux/rpmsg_ns.h | 83 +++++++++ > include/uapi/linux/rpmsg.h | 3 + > 8 files changed, 487 insertions(+), 199 deletions(-) > create mode 100644 drivers/rpmsg/rpmsg_ns.c > create mode 100644 include/linux/rpmsg_ns.h > > -- > 2.25.1 >