Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4001582ybl; Tue, 20 Aug 2019 05:40:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDVzee9aO6vF/VD2y7Uta5NTEUU6+A+0QBys9dfDP5/FSLqn4yeTEMYlgbmNSIT5l2KeNr X-Received: by 2002:aa7:92d2:: with SMTP id k18mr29702899pfa.153.1566304802036; Tue, 20 Aug 2019 05:40:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566304802; cv=none; d=google.com; s=arc-20160816; b=jI4o4tOp9fh47Qu4WjU1B0MuFg40iOCJZ1h8nffEHfp1TOavUyHa6VMBd+3cs0QNPA xyilbPSwLwkmJX8ZM9dgER0XB7lhfBHAd7J9jnlb+ApEraxYQrVF4aBJcYK3lWi7UEck z6zvtv1FTDm9DsiDt1Lis0qjMgaVefgiHIW+oOjo0ts2H3ageHa1MOrDHuMrS7D4Qp2Y IQuv1U3Fhy2DU/KMFBbYqsQtynWZEfOtUtOtS/rYY9WfwFQID3aQ9UQB6Xf/Chlqe8dC 0ZuXkVjXbgiJ0FoSgR4x4LR+1GGbvChLjReLkAvkMKdpuDcerH557TFp513Q3Q09NA1l fMFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=0sWRJA7h/2wvrxj+XqUA03JtH59l+JlTt/N+VmW30I0=; b=naUX07CYuOhds19un8Jzr8y6R1rhovublwR/6J/Rx+WOyT3KDxc4R4Va7o02Ok1BsS yC3jWpuMa6RPT+pXtYhUqYPoJDjPdocXu3ifCsvLZ4UNiTdj3ZyypF+9hZ+DIxdoyamc O+MtNN0Q6aHhqOGZcSiDbC3DBF0VT70ZYFyYL+073PgKWCiCQhDNL7GazqMmHilylC/L FamM0r5nQ8s/Nmm8EONZgGsoMOnkDrWltgx6GjT7qH6t5cxLj/BabPEFH1NcVxVdzGZl tXF1LPJv0n/YzOehoU1ICKiSe0KM5xRmBLq2xnGetJgU06IH2C7hcO2FzP3M+6wf72XN nkYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ba7uMiXK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 184si12109849pga.23.2019.08.20.05.39.46; Tue, 20 Aug 2019 05:40:02 -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=@linaro.org header.s=google header.b=ba7uMiXK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730055AbfHTMi6 (ORCPT + 99 others); Tue, 20 Aug 2019 08:38:58 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:38599 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727006AbfHTMi5 (ORCPT ); Tue, 20 Aug 2019 08:38:57 -0400 Received: by mail-pf1-f193.google.com with SMTP id o70so3323812pfg.5 for ; Tue, 20 Aug 2019 05:38:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=0sWRJA7h/2wvrxj+XqUA03JtH59l+JlTt/N+VmW30I0=; b=ba7uMiXKvLyrDvP5gZiTLElxzfuOOwtCwOc0K/kjEXcSNniq9kgrFeMrXJYN399WnZ pnc3dSZcqFLANSFrStaUj2q5CZ6Na04QZlqXUF342Tt2legAfe51dJXfHHqnuOSCdPAb 57xHYiQ/dC/sOYsHZpBVZ43PGdt4xAqHOMSU2VaOdVMfhOWC+p7Cdc8+BIvmzQxGfSGD TpeKcP75NCRwXuDL6SNGbIsVDR1ArNvkTH5EQTF2au7HMYZX4g+gXzsYv4yem1b8mTMs Bch6PMuBWNOb6MtWs8aQnEiQlR1kDS4n9c3Khq8ludB+U7tyE8w22xUIlgiXa1jzg0as dUXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=0sWRJA7h/2wvrxj+XqUA03JtH59l+JlTt/N+VmW30I0=; b=AK69nT91SCuDTkzhGWgIO7AmkRUmRLAXGFe44qnrRYz2AiXj1r4ET93Yzi1KEHX+2d yRZIEv7Uobp6REEPafKgYv9GItu4viVVE7B/nm+DX53OleFpXItl/UJiAgjf6N7g2Uwe YrF3POCOVnEoCB6J2aEKc18OaCvQfy9n4E8Vzxg+kBumWqdLBdXCqKIW5V5s+kJ5Asfy CeJd4vWbog3Jlcvf3MpO2DTRmjZcupmkpN/Tog7X8A8tLe3BsNkLs5YOTitakIkavOcw NJqcfFF5GRYaRnzSOihUdXO7C4aF7TM3QxefrQFwMGVkCAYQwrvatuVpRHfWN/yxYPQT Vy6Q== X-Gm-Message-State: APjAAAUUeTH95ULmpZxQhmeeLBoXbgZZSRH7RLNYSTaOpcY5M+2+A5GH +J1nOHoUIXrwBY6n/XRPb+OyqQ== X-Received: by 2002:a65:68d9:: with SMTP id k25mr24696359pgt.337.1566304737262; Tue, 20 Aug 2019 05:38:57 -0700 (PDT) Received: from ?IPv6:240e:362:43e:2200:6d55:ae74:3a5b:9669? ([240e:362:43e:2200:6d55:ae74:3a5b:9669]) by smtp.gmail.com with ESMTPSA id a6sm22033421pjv.30.2019.08.20.05.38.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Aug 2019 05:38:55 -0700 (PDT) Subject: Re: [PATCH 2/2] uacce: add uacce module To: Greg Kroah-Hartman , "zhangfei.gao@foxmail.com" Cc: Arnd Bergmann , linux-accelerators@lists.ozlabs.org, linux-kernel@vger.kernel.org, Kenneth Lee , Zaibo Xu , Zhou Wang 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> From: zhangfei Message-ID: <350c937f-faee-f74a-ad76-03532c8648bd@linaro.org> Date: Tue, 20 Aug 2019 20:38:46 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190819102250.GA2030@kroah.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Thanks