Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3043959pxa; Tue, 25 Aug 2020 09:55:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOH45nkAVvpHtHZt+iO1/6P59Xo7UOyvXLSNaSE9BZT+EXiVvsWp44CNqoFV7CY9WtM2lV X-Received: by 2002:aa7:d88b:: with SMTP id u11mr10581824edq.21.1598374528690; Tue, 25 Aug 2020 09:55:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598374528; cv=none; d=google.com; s=arc-20160816; b=MdumqmH/h4srhquEYUOYHpbm/jgvrkhTL/LwaptwRV0lJSHQcRL1NABFR2njH4Nco6 0mBaOJxk1KKylxki+sE4jue4BGxSKwKtXa4QwpiZCW3OPBzGn8hvmmifSXLSsSPENQyc IN3SnVCk2w40WJ1/mPhWtwgbLGSTqts/V9/qaDq9kRlfR3/CieDKSTec6zlXBSEyo64X QiVDXlG0H7iLsYH5R6rUi/9p/HPw5gQEAT9fFuqhhIlHha7hWCErin3yMtF0IjxdCskY C4ajR2g1oPLNVKiz2n3evtfkzE2DDBJd0Mc55WzMuMaWcFz7lVZbkASUE2htN6DE8D1J xHVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=mRxpgvYHHmYunvL/dN1QJuAEVm0K612wf/w6woNwEks=; b=PWYLfuOgFjT6rWCwusiW11bvqjQoxPtSvsbHyWJ9tgf1Ar8o9zcHEGNGjkrrnoAZ32 bEg+v6uGKNXVulAO+pGscHe/v3QfC9MPXmbFaTtQ0LdSZrzD8LLzBnAfdigSMJt+mo1E GqXWONIqgJgM3tfQ7rfbETtYgTvFiSGFbAPxRE9fdUPwHPMaiec+3iUU+N/YJNqV/c5Z pjApA5rxKaVhrG03J0CJ5HUU8iFa0We3iWvzZHWb2xjl0RO1Q2uekNiOdFMu7MZ1VeB1 8R3rLxSQnj6PvJ3LgM5TpOoxIeZhb1OtVnnzdXUwg8BWz8ToZQEF+dRzpd/JXhB39wm+ V4Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=e6yhRWcD; 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 e13si3725248ejh.635.2020.08.25.09.55.05; Tue, 25 Aug 2020 09:55:28 -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=e6yhRWcD; 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 S1726809AbgHYQxR (ORCPT + 99 others); Tue, 25 Aug 2020 12:53:17 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:41004 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726104AbgHYQwV (ORCPT ); Tue, 25 Aug 2020 12:52:21 -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 07PGkqni009695; Tue, 25 Aug 2020 18:52:13 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=mRxpgvYHHmYunvL/dN1QJuAEVm0K612wf/w6woNwEks=; b=e6yhRWcDdRkm6q9Em2x9JA25JfzH/eJYwLA1cL8oCPOJPvEMiUE3jV94n9vYmuLJhTv7 HU+/9VYE4PjC9TgyYAjn7Jr8XeU2EAQhvfhwW1BTHGjP4juE6tk23iiiLJE9TPJNRbWI oniyPoj7emnFHKN42RNQP6M1DE19XlaTau6MjW2T6Fg/F9gNFZaYayApT1Cy8kW2KgE1 huxuoEesy2TttOmzOlTgNEHptuvwHMhAOE3RTw4GNEQxxTFX5g5SSaQnSFeqJ15/w6yX BLtedrJVxII+Y0VBypSDb4kpnhXigu2f5WWWH6fFd8xGAZuCRkhH868LE3an2npNih2t kA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 332t8fpmnv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Aug 2020 18:52:13 +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 C3A2910002A; Tue, 25 Aug 2020 18:52:12 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node1.st.com [10.75.127.7]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id B52432A5E44; Tue, 25 Aug 2020 18:52:12 +0200 (CEST) Received: from localhost (10.75.127.45) by SFHDAG3NODE1.st.com (10.75.127.7) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 25 Aug 2020 18:52:12 +0200 From: Arnaud Pouliquen To: Bjorn Andersson , Ohad Ben-Cohen , Mathieu Poirier CC: , , , Subject: [PATCH v2 0/8] introduce name service announcement rpmsg driver Date: Tue, 25 Aug 2020 18:48:59 +0200 Message-ID: <20200825164907.3642-1-arnaud.pouliquen@st.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG1NODE1.st.com (10.75.127.1) To SFHDAG3NODE1.st.com (10.75.127.7) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-08-25_06:2020-08-25,2020-08-25 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The NS announcement is implemented by several backends, but could be considered as part the RPMsg protocol. In this case it should be managed as a reserved rpmsg service and so implemented on top of the rpmsg protocol. This series introduces the rpmsg_ns driver that handles the name service announcement. The virtio backend is updated in consequence to use this service. Applies cleanly on Bjorn for-next branch (ca69dba7f13a) Main updates from V1 to V2: - Integrate Mathieu's comments: - rework the rpmsg_create_channel and rpmsg_release_channel error management. - merge patch "[9/9] rpmsg: ns: name service announcement endianness" in other pathes. V1: https://patchwork.kernel.org/project/linux-remoteproc/list/?series=327257 Arnaud Pouliquen (8): rpmsg: virtio: rename rpmsg_create_channel rpmsg: core: add channel creation internal API rpmsg: virtio: add rpmsg channel device ops rpmsg: define the name service announcement as reserved address rpmsg: introduce reserved rpmsg driver for ns announcement rpmsg: virtio: use rpmsg ns device for the ns announcement rpmsg: ns: add name service announcement service rpmsg: virtio: use rpmsg_ns driver to manage ns announcement drivers/rpmsg/Kconfig | 9 ++ drivers/rpmsg/Makefile | 1 + drivers/rpmsg/rpmsg_core.c | 45 +++++++ drivers/rpmsg/rpmsg_internal.h | 32 +++++ drivers/rpmsg/rpmsg_ns.c | 174 +++++++++++++++++++++++++ drivers/rpmsg/virtio_rpmsg_bus.c | 213 +++++++++---------------------- include/linux/rpmsg.h | 9 ++ 7 files changed, 332 insertions(+), 151 deletions(-) create mode 100644 drivers/rpmsg/rpmsg_ns.c -- 2.17.1