Received: by 10.213.65.68 with SMTP id h4csp1998178imn; Thu, 5 Apr 2018 07:21:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+nHN5qnuOYll3QQyBVJLsKb17nD+xY/ZHXsojp9s0P4+A81vdZGXr+nVjmxdl4CVTGPJhR X-Received: by 10.99.52.11 with SMTP id b11mr14628592pga.377.1522938064861; Thu, 05 Apr 2018 07:21:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522938064; cv=none; d=google.com; s=arc-20160816; b=nkrWd4f6ifj4XiZFiV/WKMBWIIgatJS0b5HH4BLtuJ//Zj83CLyYGuTjwQqTdD04kU WquK4JXFbnFHTsxcoAZoApnIWqtatFAD6AvmTQBa7UDllOzA2tjO8YIbCTyZnQ+vveVt rdMLR/GAq1Top1SSchHSJTqWVB8IKD645zWHSypzU9X2gEqw+62M3XNpAxjSZStItoos g+c5CbMsBqd6neu5JUEzIzfRlqIFxWyiTFshCA9kFm54ND+kWI0ZJcchUGRmpthie1ui xL5N03bAdSTxzyNDis5lR/pCFlG8pJy7Nj3hZKGRvdBN1QZFJfT1AYksdhQmmydRAt/v q9Kg== 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:arc-authentication-results; bh=ba0B4pSg4zwJqXZLq6ilSftbG83QsMurd2EH6vmW5AA=; b=HwkfWNRG1OuKFOdZup6pj4HKyUKhohmU8NOHt8cq7YTNDOZONBB5ZELgbYxzz81t2L SE8yrYZE9kxwwDQST8RoALRP95wqPrVtcW1Z4mE9Mrp2xs2sUYIM4UwPtQWDCxdFHrM0 dvTcHddOIvOaM7nQHap7E/AfTkp22TonA4hRSroSa58Eu/1P6St0r/hkfpwbiz3zZ5yJ 8duvtTMrd3OdolntT0hIUdrszFPpIh7C4qxB72EkVno5roab0Rmfgjyna0baElm2LipE GWE4aWbU1CV+KC42+BHeQnr6dS+oZZHG9bTDRRMepmWEHr0pDM8ofw+s8UcyBcdFDEOi 3Buw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f90-v6si6044184plb.162.2018.04.05.07.20.50; Thu, 05 Apr 2018 07:21:04 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751365AbeDEOTg (ORCPT + 99 others); Thu, 5 Apr 2018 10:19:36 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:56788 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751165AbeDEOTf (ORCPT ); Thu, 5 Apr 2018 10:19:35 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 7E271C87; Thu, 5 Apr 2018 14:19:34 +0000 (UTC) Date: Thu, 5 Apr 2018 16:19:33 +0200 From: gregkh To: Laurentiu Tudor Cc: Andrew Lunn , Stuart Yoder , Arnd Bergmann , Ioana Ciornei , Linux Kernel Mailing List , Ruxandra Ioana Ciocoi Radulescu , Razvan Stefanescu , Roy Pledge , Networking Subject: Re: [PATCH v3 2/4] bus: fsl-mc: add restool userspace support Message-ID: <20180405141933.GA29178@kroah.com> References: <20180404010549.GA12443@lunn.ch> <20180404124246.GA20869@lunn.ch> <5AC5FAA8.80409@nxp.com> <20180405123018.GA17751@kroah.com> <5AC62E2A.90900@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5AC62E2A.90900@nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 05, 2018 at 02:09:47PM +0000, Laurentiu Tudor wrote: > Hi Greg, > > On 04/05/2018 03:30 PM, gregkh wrote: > > On Thu, Apr 05, 2018 at 10:30:01AM +0000, Laurentiu Tudor wrote: > >> Hello, > >> > >> My 2c below. > >> > >> On 04/04/2018 03:42 PM, Andrew Lunn wrote: > >>>> I hear you. It is more complicated this way...having all these individual > >>>> objects vs just a single "bundle" of them that represents a NIC. But, that's > >>>> the way the DPAA2 hardware is, and we're implementing kernel support for > >>>> the hardware as it is. > >>> > >>> Hi Stuart > >>> > >>> I see we are not making any progress here. > >>> > >>> So what i suggest is you post the kernel code and configuration tool > >>> concept to netdev for a full review. You want reviews from David > >>> Miller, Jiri Pirko, Jakub Kicinski, David Ahern, etc. > >>> > >> > >> I think that the discussion steered too much towards networking related > >> topics, while this ioctl doesn't have much to do with networking. > >> It's just an ioctl for our mc-bus bus driver that is used to manage the > >> devices on this bus through userspace tools. > >> In addition, I'd drop any mention of our reference user space app > >> (restool) to emphasize that this ioctl is not added just for a > >> particular user space app. I think Stuart also mentioned this. > > > > I'm not going to take a "generic device configuration ioctl" patch > > unless it is documented to all exactly what it does, and why it is > > there. > > The ioctl() is just a simple pass-through interface to the firmware. Ah, so a new syscall? :) > It passes commands to the firmware and returns the response back to the > userspace. Thus the ABI used by the firmware applies for this ioctl() > and it is documented in detail here: > > https://www.nxp.com/docs/en/user-guide/DPAA2_UM.pdf Let's wait on this until people all agree that it's ok to expose this directly. thanks, greg k-h