Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2071957ybi; Thu, 4 Jul 2019 04:46:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqytS4O7kDwcdcVeu3ty+fEG5BnrjmzPhHN74iXhWQ6Wwrqysu4FsOiiLUCZU6c5yi+qhDhy X-Received: by 2002:a17:90a:b883:: with SMTP id o3mr19155206pjr.50.1562240796922; Thu, 04 Jul 2019 04:46:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562240796; cv=none; d=google.com; s=arc-20160816; b=VUwPh3aaiYsnXrF8mw1zsdbvlIK3DKSy4XVzveCbxhLey7A78enz1eWV4/Muh4ffmo fpDTfCrg+67JYOmlusFUCY5XZZqh1fA1y9Z2uP5648lyR/MxvPAwJvS/7KyA9Vd8h/4H uqTJhRQQ80RLx8VB/D+ENKudQue6nReNjGM1OjejUKyVyUbFnPB5NlGKEpXDIAX2cLS0 nq1I6P4BG8/8G7bv81tBYRFjz+kUzSX078fSiWYGEAM7qkZYdvcKmf03X+ApbU+aQs9k rAahATOiTQiucX+tc/p+sYblFzUGR4u8O5IacV+M/5qS3xsLgb62AabOO+1NavcJZXQt 6AAQ== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=iNy0Yegk79E0eNPYcy7nnR8tXQCiUtUimPX3Og5M0/I=; b=lr6OPerspXgLmyGUTS+FPM5HMFcHogoWWcn19ziED8Isqp370GFM3S5VVX+hpJXDdo MavWVqLvQ2AOUmvnphvLtWWuSvRiGTo0C0qQ+1EjjAaZTlehwsXu5mDryWYGcgi4fUB+ EzsZkQTP87Et9jYcueoSRwkb9NTwNi6XF0hKTR3l0qYJV8oM/HFhg7hVUOqwFnV9mk05 8OZkxClPO8UcpK3naJObM4dmgIbM++5RD/1Kdxgxmo65W4OaJkkuCGviyIUCHGb9GcKl PX9+UMKtjMfu6R6KEZZxO6eSUnIx+EJm74XAh9MoOy/fwjyu0593xXkjdEmA9lt00Wq+ ELFQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h12si4684919pjt.4.2019.07.04.04.46.19; Thu, 04 Jul 2019 04:46:36 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727592AbfGDLp7 (ORCPT + 99 others); Thu, 4 Jul 2019 07:45:59 -0400 Received: from mga01.intel.com ([192.55.52.88]:2275 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727436AbfGDLp7 (ORCPT ); Thu, 4 Jul 2019 07:45:59 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Jul 2019 04:45:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,450,1557212400"; d="scan'208";a="339583474" Received: from hao-dev.bj.intel.com (HELO localhost) ([10.238.157.65]) by orsmga005.jf.intel.com with ESMTP; 04 Jul 2019 04:45:56 -0700 Date: Thu, 4 Jul 2019 19:29:13 +0800 From: Wu Hao To: Greg KH Cc: Moritz Fischer , linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Zhang Yi Z , Xu Yilun , Alan Tull Subject: Re: [PATCH 06/15] fpga: dfl: fme: add DFL_FPGA_FME_PORT_RELEASE/ASSIGN ioctl support. Message-ID: <20190704112913.GA24884@hao-dev> References: <20190628004951.6202-1-mdf@kernel.org> <20190628004951.6202-7-mdf@kernel.org> <20190703180753.GA24723@kroah.com> <20190703233058.GA15825@hao-dev> <20190704053927.GB347@kroah.com> <20190704063106.GA24777@hao-dev> <20190704082013.GE6438@kroah.com> <20190704085855.GB7391@hao-dev> <20190704110449.GC1404@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190704110449.GC1404@kroah.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 04, 2019 at 01:04:49PM +0200, Greg KH wrote: > On Thu, Jul 04, 2019 at 04:58:55PM +0800, Wu Hao wrote: > > > > Hope things could be more clear now. :) > > > > > > That's nice for the vfio stuff, but you are just a "normal" driver here. > > > You want an ioctl that just does one thing, no arguments, no flags, no > > > anything. No need for a size argument then at all. These ioctls don't > > > even need a structure for them! > > > > > > Don't try to be fancy, it's not needed, it's not like you are running > > > out of ioctl space... > > > > Thanks a lot for the comments and suggestions. > > > > That's true, it's a "normal" driver, maybe I overly considered the > > extensibility of it. OK, Let me rework this patch to remove argsz from > > these two ioctls. > > > > What about the existing ioctls for this driver, they have argsz too. > > shall I prepare another patch to remove them as well? > > I am hoping you actually have users for those ioctls in userspace today? > If not, and no one is using them, then yes, please fix those too. Yes, we have a few users, not many, e.g. https://github.com/OPAE/opae-sdk I believe we may have more users as we are submitting code to make this driver more usable. Let me think about this, if we want to do this clean up, we have to increase the API version to tell everybody, things are changed. If finally we decide to do this clean up, that will be a new patch after this patchset. Many Thanks for your patient guide and suggestions. :) Hao > > thanks, > > greg k-h