Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp562341ybh; Wed, 15 Jul 2020 09:09:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgGWXYbIGn88ABbzPLvRXNRKok1+Iy2oYjqFbWOEmYSEclbaVg/WVmG1ebOwO6SBQKQKNx X-Received: by 2002:a17:906:9348:: with SMTP id p8mr10511819ejw.467.1594829370741; Wed, 15 Jul 2020 09:09:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594829370; cv=none; d=google.com; s=arc-20160816; b=pPMioP59cWTanCZsHH2qea80GhH6tSgND5wQq6YLA5cONravWJ+9vcuJPBc9/Ktexj BKKjFhK05AUJ+A7jjVSq8jhoyx0/AvhrX1knxJYb1ub13KhISKBIMOyGMvCtjoxKUekj DSvFzsJa77CReG0/7VnhbBLcSNUEnx72QO3RwxKTz6QmSWNoUjaiGzsXw/Rv+AkSNLHC Ds4046aua0KjcGzMAl8pO1ZNESeP4B65HYUMmERrKE+rLVOhTXAfu9H58M89zPSQ6BQc lE14eRqhQ9TdkgTrsohqoc3k3AnK9Vb6on2Ug1xoP8S1GmA51tjSDGlq5ByTQ3eo1rfA +G0A== 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=VxjdMpcXN79GVQ3jPVzbk6I3tuoSCoV11faoa+SlGGI=; b=TpPuNzL4MvlLyU1JSEFTHHWaD++onMJbDZ1Mq+Ed94FYdhlj4hEkFdcU1oAvrQqelX eJ8lZBemrEMfohQjtPk06rcw2+S6/fPZe6A5Pwlv3HhRVj6rZPpmmgCPTcC6z5WwGPvt npeJEnumE4kdGDz+nb/GEznldkSUlq0opmJsGjR7FKWggSgWyHhy0wAnpzkDh8/4W5ZP OuYdPR/lXSgbjDV3HHBciU/aJwxKllv68T8XyqF5efAOqEuXd82NSbgCKEg2THnEjcnQ YUDeP8sm/lohoEad/zhzh4j2SbpIY7DMcTtAqvw2s8QB6UIu+hmGhm8cNh6gtGde8RLe SCxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=0ViChu9T; 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 v14si1461825ejh.403.2020.07.15.09.09.08; Wed, 15 Jul 2020 09:09:30 -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=0ViChu9T; 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 S1726848AbgGOQIt (ORCPT + 99 others); Wed, 15 Jul 2020 12:08:49 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:52366 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726817AbgGOQG6 (ORCPT ); Wed, 15 Jul 2020 12:06:58 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 06FFqh3d030962; Wed, 15 Jul 2020 18:06:38 +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=VxjdMpcXN79GVQ3jPVzbk6I3tuoSCoV11faoa+SlGGI=; b=0ViChu9TZbG0vELUnZ7hnwVFkWnPfXUPZz421JH2+6TXkR5fxPnr/4AoGEmRaMyA5o0E JFk++uqxQVxM5ZYzB46rsxykc7Cug2RIlRCCZzEGGQjq5PEIHpm/2gB7Tf51EhNkx8Wy B01ZOsma7XtWsXpt5kDx/HaDEzXXk+pgHJhXgfzOQRAOD7KSQ4FpLKZLCF5To8rNTdB5 66b9vsHxt5B+TXyCzAP102i4z7jYJERv94CWYC+vlL3wopBpEqFryMf8exnoZKr/TgRp 33eKppjknyx4WJY8LZTsaiEaFx3b7uK9OWzT1694oaeHAXg7PFBKuZsqBQJ3HUK7tlqv Iw== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 327cyv5baq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 Jul 2020 18:06:38 +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 9A85910002A; Wed, 15 Jul 2020 18:06:37 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node1.st.com [10.75.127.7]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 825E12AEEA6; Wed, 15 Jul 2020 18:06:37 +0200 (CEST) Received: from lmecxl0889.tpe.st.com (10.75.127.48) by SFHDAG3NODE1.st.com (10.75.127.7) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 15 Jul 2020 18:06:36 +0200 Subject: Re: [PATCH v7 0/2] Add rpmsg tty driver To: Ohad Ben-Cohen , Bjorn Andersson , Greg Kroah-Hartman , Jiri Slaby , , , Mathieu Poirier CC: Suman Anna , Fabien DESSENNE , , Alan Cox , xiang xiao References: <20200324170407.16470-1-arnaud.pouliquen@st.com> From: Arnaud POULIQUEN Message-ID: <98271538-d7b4-cf48-abda-3a6c8cd45ee5@st.com> Date: Wed, 15 Jul 2020 18:06:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200324170407.16470-1-arnaud.pouliquen@st.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.48] 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.235,18.0.687 definitions=2020-07-15_12:2020-07-15,2020-07-15 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/24/20 6:04 PM, Arnaud Pouliquen wrote: > This patch set introduces a TTY console on top of the RPMsg framework which > enables the following use cases: > - Provide a console to communicate easily with the remote processor application. > - Provide an interface to get the remote processor log traces without ring > buffer limitation. > - Ease the migration from MPU + MCU processors to multi core processors > (MPU and MCU integrated in one processor) by offering a virtual serial link. > > An alternative of this proposed solution would consist in using the virtio > console: > The drawback with that solution is that it requires a specific virtio buffer > (in addition to the one already used for RPMsg) which does not fit with remote > processors with little memory. The proposed solution allows to multiplex the > console with the other rpmsg services, optimizing the memory. > > The first patch adds an API to the rpmsg framework ('get max transmission unit') > and the second one is the rpmsg tty driver itself. > > Previous revision: > - the patch 1/2 ("rpmsg: core: add API to get MTU) has been discussed in a > separate thread on remoteproc mailing list: > https://patchwork.kernel.org/patch/11333509/ > - Previous version of the patch 2/2 (tty: add rpmsg driver) available here: > https://patchwork.kernel.org/cover/11130213/ > > Main delta vs v6: > - Pack the rpmsg_tty_ctrl struct. > - MTU API acked by Suman Anna from Texas Intruments company. > > Arnaud Pouliquen (2): > rpmsg: core: add API to get MTU > tty: add rpmsg driver > > Documentation/serial/tty_rpmsg.rst | 45 ++++ > drivers/rpmsg/rpmsg_core.c | 21 ++ > drivers/rpmsg/rpmsg_internal.h | 2 + > drivers/rpmsg/virtio_rpmsg_bus.c | 10 + > drivers/tty/Kconfig | 9 + > drivers/tty/Makefile | 1 + > drivers/tty/rpmsg_tty.c | 417 +++++++++++++++++++++++++++++ > include/linux/rpmsg.h | 10 + > 8 files changed, 515 insertions(+) > create mode 100644 Documentation/serial/tty_rpmsg.rst > create mode 100644 drivers/tty/rpmsg_tty.c > Series put on hold after discussion with Bjorn. First we need to define the interface and mechanism to allow any service name to be associated with an rpmsg service based on the IOCTL user interface. The goal is to allow the Linux application to initiate the link. This work will be done on the rpmsg char and then extend to other generic interfaces such as TTY.