Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4140734ybl; Tue, 20 Aug 2019 07:34:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmwFN9Piwtzu39q8g2YdNNidzjbuLLHFPAtT36oknFYr9z3+/4SQuLXI70LLGOkiSCnYrr X-Received: by 2002:a17:902:a410:: with SMTP id p16mr12827898plq.150.1566311672290; Tue, 20 Aug 2019 07:34:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566311672; cv=none; d=google.com; s=arc-20160816; b=W/hUxFrVdJa9O9xOoMnm14KxUFVB/rtv3OBwBXPw0wwOvbOQqPHfhacAZ21VQp7JEi HV6BbFZAeVxg9+eRVfzJwBmXxveSVTHAVH7aP8hVw+6W2tDvDabJyfEYyK3o8ZFrbhlc UhRv6ZitACm4jeqRI9fPZX8X1rJDHpsQ5SgZVXkNJJ5oSAYdGxgFRBCtFvb7S1hq8btd wVXOWgrxSUoR/1Ct3MhFvXIH1pVFy6Z9bs4YuQ6IYF5qCnllhcva0kekep8JASwg8csk oAwS7C67MKbraJIFOPSMxPnFUWlI9Duy/7A3tV8sO0mdFGhf/IrxRPEdLbTw04CX1BJX Jkjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=eoubA6MJmuNhNbCRvjUzhp5Agc1XJUz1tQklAGdY2P0=; b=gGVmttczVXLyG5IINtmBQmfpEQ4VubJxrPT1xSyD3MCZqzZNHt2I3T4hPi68aNKRZx nnHK9EhbiBC72ivIU3mEYbmrv9xd+dHT7Wd1OHoFRrkjw2hkEAdnWPTJ7a7h5P6vD/it On/LVoWl78Hffcfq3FHx130o4TR1sa7OHl1IiE+OoZ28t1QSOXOSCQ5FCuVgteAiqR0v LswgWIch50utjxX4kGIizKH8wonVo9Dc3GVc0XzJmdZyf3fm4ito1XsVul2Uygwnsutj C5whjTcUYExN/gdP+ppk5kgJ3e56pF3WVdu+e/7Aan34LYhsnwx5yx1uWT35XUceQ1Ov o17Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IZsPdsj6; 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 o18si79205pjp.93.2019.08.20.07.34.16; Tue, 20 Aug 2019 07:34:32 -0700 (PDT) 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=pass header.i=@kernel.org header.s=default header.b=IZsPdsj6; 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 S1730149AbfHTObg (ORCPT + 99 others); Tue, 20 Aug 2019 10:31:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:37262 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728993AbfHTObg (ORCPT ); Tue, 20 Aug 2019 10:31:36 -0400 Received: from localhost (unknown [12.166.174.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B751A20673; Tue, 20 Aug 2019 14:31:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566311495; bh=q6ApkqrORc0Qj1HNl3Ml+CcXr6NCqdWtGJ0QH0Ets6Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IZsPdsj64+vKrGtB/bwng7b12mo+kcvukl54znKMByUPPLfmRpo8QNT5SMfSkHGhd a2bdNs6sxIxh7o5IqlLZSXMFy9ZZySGL9LxndASOLJDNk1Qk24VUv3n24DusXsKkqS s3pnTIN4ip4yzvRHXR6vi2UtVEQ29QgRNfpReAjM= Date: Tue, 20 Aug 2019 07:31:35 -0700 From: Greg Kroah-Hartman To: zhangfei Cc: "zhangfei.gao@foxmail.com" , Arnd Bergmann , linux-accelerators@lists.ozlabs.org, linux-kernel@vger.kernel.org, Kenneth Lee , Zaibo Xu , Zhou Wang Subject: Re: [PATCH 2/2] uacce: add uacce module Message-ID: <20190820143135.GA1536@kroah.com> References: <1565775265-21212-1-git-send-email-zhangfei.gao@linaro.org> <1565775265-21212-3-git-send-email-zhangfei.gao@linaro.org> <20190815141225.GC23267@kroah.com> <5d5a6757.1c69fb81.e0678.2ab2SMTPIN_ADDED_BROKEN@mx.google.com> <20190819102250.GA2030@kroah.com> <350c937f-faee-f74a-ad76-03532c8648bd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <350c937f-faee-f74a-ad76-03532c8648bd@linaro.org> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 20, 2019 at 08:38:46PM +0800, zhangfei wrote: > > > On 2019/8/19 下午6:22, Greg Kroah-Hartman wrote: > > On Mon, Aug 19, 2019 at 05:09:23PM +0800, zhangfei.gao@foxmail.com wrote: > > > Hi, Greg > > > > > > Thanks for your kind suggestion. > > > > > > On 2019/8/15 下午10:12, Greg Kroah-Hartman wrote: > > > > On Wed, Aug 14, 2019 at 05:34:25PM +0800, Zhangfei Gao wrote: > > > > > diff --git a/include/uapi/misc/uacce.h b/include/uapi/misc/uacce.h > > > > > new file mode 100644 > > > > > index 0000000..44a0a5d > > > > > --- /dev/null > > > > > +++ b/include/uapi/misc/uacce.h > > > > > @@ -0,0 +1,44 @@ > > > > > +/* SPDX-License-Identifier: GPL-2.0-or-later */ > > > > > +#ifndef _UAPIUUACCE_H > > > > > +#define _UAPIUUACCE_H > > > > > + > > > > > +#include > > > > > +#include > > > > > + > > > > > +#define UACCE_CLASS_NAME "uacce" > > > > Why is this in a uapi file? > > > User app need get attribute from /sys/class, > > > For example: /sys/class/uacce/hisi_zip-0/xxx > > > UACCE_CLASS_NAME here tells app which subsystem to open, > > > /sys/class/subsystem/ > > But that never comes from a uapi file. No other subsystem does this. > OK, got it > Maybe the entry info can come from Documentation/ABI/entries Yes it can, we now have a tool in the tree that automatically parses those entries and outputs it in a variety of different formats. thanks, greg k-h