Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4782861ybb; Tue, 14 Apr 2020 14:06:01 -0700 (PDT) X-Google-Smtp-Source: APiQypLBkmXiCpwOhSTOr716yRyhcTkmRLffA5nvqHdQQSK0vc3cRQUzBFdlSjXDWKQF47BKtFI+ X-Received: by 2002:a17:906:6992:: with SMTP id i18mr1876258ejr.293.1586898361086; Tue, 14 Apr 2020 14:06:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586898361; cv=none; d=google.com; s=arc-20160816; b=BlXdNu7PmaZ1zFzKKYP3sd9dCoVOxXOV1QImWtKJl52tMHdHCFWJkmgzCV9iwDihpe Zym4FPZC7tkzuzE3cCEOo7Qw/jLe+DI837oc7ZGS3x1+/1IBqoPx+C4BAOBxWIOlciV0 p713ae45CRBZz4+Az1D7EsFWpBBTf0j4NaD4ZGuEEPlUNzlgy50hsIeHRURgoIZbE/EI 0VpCm4Hl1FrzY11l8oPSJSa+TSM72VlVtoD88NFZ5fBgUsqIOg/aXPTZO0cn4NtGNjcR zZU6frIzb9jTvQ1CkFEBU0fH6EC/v+xb0ZDNphZkM2iJ5Fpbp+0ru2yA3fucNQYgnARO KDQg== 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=nthD7hLIwbiHeyFNzH25utLfX0DBvZR/iBIyaq9rJo8=; b=jC0MNqgFpT/aei9hu0Il/r2OrujhAeyOVnptr786JGELaKrUberE81QANukVWZUxQ+ xHGXj4QSYG6FXjAP8yDYimEsvMaJYEtru1d4dJuacoHDDtqMXqykalCyyVTuJVSwVrq1 j1RB1C8fXYXoq0cy1bI8I4t38hktLHlu0045zR2AThl1ACPq+rtFzUsSDFjbrSw128WQ GKQxewWZ2WF50LSKKGmiz4cp4LB8ziI9dYSiFY6l7SuXpy+nOauKHFznJsanlXPUfFnc BjgwAC0K8x8VeHUF8QZoZdtTo9zE1v2rle9lJebQ/v1Cbzj/FQb04/rED5L36M+IsX2F 0UBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=MhN9aGST; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i14si8589304edy.538.2020.04.14.14.04.56; Tue, 14 Apr 2020 14:06:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=MhN9aGST; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732367AbgDMRFp (ORCPT + 99 others); Mon, 13 Apr 2020 13:05:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1732369AbgDMREt (ORCPT ); Mon, 13 Apr 2020 13:04:49 -0400 X-Greylist: delayed 2991 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 13 Apr 2020 10:04:44 PDT Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B3D6C0A3BE2 for ; Mon, 13 Apr 2020 10:04:44 -0700 (PDT) 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; bh=nthD7hLIwbiHeyFNzH25utLfX0DBvZR/iBIyaq9rJo8=; b=MhN9aGSTvwKDekidmpqmJaWXbp vNUZOIT6r9VN12kuKGlFRkc4Mc0nERXWph1qCPyofygRpUVkAx4fW8G7awHFEuzjLq+TUiLwLC6oQ DaM+hWU80X6pt63hBmTcN2Kbn2bUIeNL2a4yFcHwh5q22AIR69LwrMP03Hj+hTosjxx6trD3a59yU zGSSz185KV1YZCHWt6sP6I641S+jKPx/YSxjJPbp+GMNyelltySronvlWN/zom7gSYBcXT/iRyWmt sGpVB1ueS98GItO6iqdDxbwzPSQJQsiv6SAI1q9mZwM4AhgapKTfdgYUJIsF89Vs5jtdcxfX8DUv/ nHtgftMA==; Received: from [2601:1c0:6280:3f0::19c2] by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jO2Vm-0000ON-L3; Mon, 13 Apr 2020 17:04:43 +0000 Subject: Re: [PATCH v2,1/3] driver: rpmon: new driver Remote Processor Monitor To: Wang Wenhu , gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Cc: kernel@vivo.com References: <20200411095301.18780-1-wenhu.wang@vivo.com> <20200412112405.24116-1-wenhu.wang@vivo.com> <20200412112405.24116-2-wenhu.wang@vivo.com> From: Randy Dunlap Message-ID: <816c6ed0-9b37-f43a-24ad-e742ca24c8ba@infradead.org> Date: Mon, 13 Apr 2020 10:04:41 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200412112405.24116-2-wenhu.wang@vivo.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 Hi-- On 4/12/20 4:24 AM, Wang Wenhu wrote: > RPMON is a driver framework. It supports remote processor monitor > from user level. The baisc components are a character device basic > with sysfs interfaces for user space communication and different > kinds of message drivers introduced modularly, which are used to > communicate with remote processors. > > As for user space, one can get notifications of different events > of remote processors, like their registrations, through standard > file read operation of the file discriptors related to the exported descriptors > character devices. Actions can also be taken into account via > standard write operations to the devices. Besides, the sysfs class > attributes could be accessed conveniently. > > Message drivers act as engines to communicate with remote processors. > Currently RPMON_QMI is available which uses QMI infrastructures > on Qualcomm SoC Platforms. > > Signed-off-by: Wang Wenhu The rest of the changes to patch 1/3 look good. Thanks. > --- > Changes since v1: > - Addressed review comments from Randy > > --- > drivers/Kconfig | 2 + > drivers/Makefile | 1 + > drivers/rpmon/Kconfig | 26 +++ > drivers/rpmon/Makefile | 1 + > drivers/rpmon/rpmon.c | 506 +++++++++++++++++++++++++++++++++++++++++ > include/linux/rpmon.h | 68 ++++++ > 6 files changed, 604 insertions(+) > create mode 100644 drivers/rpmon/Kconfig > create mode 100644 drivers/rpmon/Makefile > create mode 100644 drivers/rpmon/rpmon.c > create mode 100644 include/linux/rpmon.h -- ~Randy