Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1201642imj; Thu, 14 Feb 2019 02:55:16 -0800 (PST) X-Google-Smtp-Source: AHgI3IYuBlRlHpdnslZOXrR4ns3ixCbJWN93j5J+wkjOA4EZM5Ti2Legn6vEdjF3TdQEtu+WMzp1 X-Received: by 2002:a63:7c41:: with SMTP id l1mr3111966pgn.45.1550141715954; Thu, 14 Feb 2019 02:55:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550141715; cv=none; d=google.com; s=arc-20160816; b=rU5rYyErM9HQDRx5rE+kMTVAY5eEN9nE7kWMESomS3L7IeqBQKk02rxrT3ZXmERwNd nHkvf0aEiy5wIrY3WTMVgm2UDiOWIu8VGNPdXh8/JkMrskllAMHFEX6ybP70KtYAzlpr eGbngbTuYsLhkxzYAsEWBek0aBBssxbYBt1TDYoFK7KnmZSBLJmMUfeDLeCZM9bnQLWX JzCwRMXvJer/1f3oqRY9VeIINokSQuBuHjw9RGaVvK2W/DvhPZQL3nMNx3tIDlr5WQMe VE2GHlwemnWr0lsIk3uULVxPfKdKJD96sXFDwGXj/jkqf7Dta0V626j8syBeXxk8wZdd gaXw== 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=gRrf5RxuXHNYSMfXoXc/hIs/Gm7aSHJoMlb4pTjQPwg=; b=NwUu7jr3YufM4GkqSK8pfci2HVGmFUF1eHP2wacKJIEjL+RSwNDgWxcuVg/4uu8awA qfMMCm7Jbgkkuog8hRAy3Vbd1sYmuIK8i5jTjOd1XN2gKqrwEzCsClEJi9i+Z+bCnTv6 b4nRy3I7bcQXHMcaKtp9GNC1gK7sadR5oAoMOoYkE8mfoPGslTy39XMhn134wNru553n bes5C+oTF0679RqC+0quLnji5oWhymaXZ+6/QNwudb0oFbE9Xg04nyfPcZBK5f07a9TE iu99iwHgEP7LMBPwHW7TWrRCX8QEuMVGQysa0JzQopf5h57Dq/h2TmmZDy0c/vyIBWiQ TXjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=NKEbOPXt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n17si336734pgv.485.2019.02.14.02.54.59; Thu, 14 Feb 2019 02:55:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=NKEbOPXt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729226AbfBNEIc (ORCPT + 99 others); Wed, 13 Feb 2019 23:08:32 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:51988 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726847AbfBNEIa (ORCPT ); Wed, 13 Feb 2019 23:08:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=gRrf5RxuXHNYSMfXoXc/hIs/Gm7aSHJoMlb4pTjQPwg=; b=NKEbOPXteTuAAi3UsUqQC3MJB B3BAcxVf7Bu8Y0fGyVjCsGYYqXIbIspAoyD7Er+jN3p2kYAxEKXPiY/rgeTpiZlYgcIQ1CfEC+riQ bHulgiSt4Q3zREmFvp/mKFAINEZmqBHiUubV0k/6tLydshtKZUEg3/19FHZldYtUx9VxDn/7YYYsp JuS35E65KB57HwgXx/0AS8gl+/UqwsRzYatjPPtXB9GCgA/5JedgPqjycSAyQdhYey84LXAXFENTR 9BNBtGjxKOxSK/8d2BhuJzmvwYeK2hVmO0ATCWKg6f/t7cC355W6oxm2PKo0NUaZK20KAiDrtIVV+ 1y/Ajowjw==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gu8K5-0000xR-FU; Thu, 14 Feb 2019 04:08:29 +0000 Subject: Re: [PATCH 2/2] rpmsg: add syslog redirection driver To: Xiang Xiao , gregkh@linuxfoundation.org, alexander.shishkin@linux.intel.com, andriy.shevchenko@linux.intel.com, ohad@wizery.com, bjorn.andersson@linaro.org, wendy.liang@xilinx.com, arnaud.pouliquen@st.com, kumar.gala@linaro.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Guiding Li References: <1550116097-29710-1-git-send-email-xiaoxiang@xiaomi.com> <1550116097-29710-2-git-send-email-xiaoxiang@xiaomi.com> From: Randy Dunlap Message-ID: <242f03bc-ce43-7827-3621-57e052672dfe@infradead.org> Date: Wed, 13 Feb 2019 20:08:28 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <1550116097-29710-2-git-send-email-xiaoxiang@xiaomi.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/13/19 7:48 PM, Xiang Xiao wrote: > From: Guiding Li > > This driver allows the remote processor redirect the output of processor to redirect > syslog/printf into the kernel log, which is very useful to see > what happen in the remote side. > > Signed-off-by: Guiding Li > --- > drivers/rpmsg/Kconfig | 12 ++++ > drivers/rpmsg/Makefile | 1 + > drivers/rpmsg/rpmsg_syslog.c | 163 +++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 176 insertions(+) > create mode 100644 drivers/rpmsg/rpmsg_syslog.c > > diff --git a/drivers/rpmsg/Kconfig b/drivers/rpmsg/Kconfig > index d0322b4..d701614 100644 > --- a/drivers/rpmsg/Kconfig > +++ b/drivers/rpmsg/Kconfig > @@ -15,6 +15,18 @@ config RPMSG_CHAR > in /dev. They make it possible for user-space programs to send and > receive rpmsg packets. > > +config RPMSG_SYSLOG > + tristate "RPMSG syslog redirection" > + depends on RPMSG > + help > + Say Y here to redirect the syslog/printf from remote processor into > + the kernel log which is very useful to see what happen in the remote see what happens or see what happened > + side. > + > + If the remote processor hang during bootup or panic at the runtime, hangs during bootup or panics during runtime, > + We can even cat /sys/kernel/debug/remoteproc/remoteprocX/trace0 to we > + get the last log which doesn't output yet. get the last log which hasn't been output yet. > + > config RPMSG_QCOM_GLINK_NATIVE > tristate > select RPMSG -- ~Randy