From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Simek Subject: Re: [PATCH v11 03/11] firmware: xilinx: Add zynqmp IOCTL API for device control Date: Mon, 10 Sep 2018 14:35:04 +0200 Message-ID: <0bc8f69a-2d44-7ee2-133b-29f6dd4c0929@xilinx.com> References: <1533318808-10781-1-git-send-email-jollys@xilinx.com> <1533318808-10781-4-git-send-email-jollys@xilinx.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: Moritz Fischer , Olof Johansson Cc: Jolly Shah , "ard.biesheuvel@linaro.org" , Ingo Molnar , Greg Kroah-Hartman , matt@codeblueprint.co.uk, Sudeep Holla , hkallweit1@gmail.com, Kees Cook , Dmitry Torokhov , Michael Turquette , Stephen Boyd , Michal Simek , Rob Herring , Mark Rutland , linux-clk , rajanv@xilinx.com, Linux ARM Mailing List , Linux Kernel Mailing List , DTML , Jolly Shah List-Id: devicetree@vger.kernel.org On 9.9.2018 21:20, Moritz Fischer wrote: > Hi Olof, > > On Sat, Sep 8, 2018 at 6:18 PM, Olof Johansson wrote: >> Hi, >> >> On Fri, Aug 3, 2018 at 10:53 AM, Jolly Shah wrote: >>> From: Rajan Vaja >>> >>> Add ZynqMP firmware IOCTL API to control and configure >>> devices like PLLs, SD, Gem, etc. >>> >>> Signed-off-by: Rajan Vaja >>> Signed-off-by: Jolly Shah >> >> This patch worries me somewhat. It's a transparent pass-through ioctl >> driver. Is there a spec available for what the implemented IOCTLs are? >> >> Should some of them be proper drivers instead of an opaque >> pass-through like this? Could some of them have stability impact on >> the platform such that there are security concerns and the list of >> arguments should somehow be sanitized? > > I tend to agree with this, good catch. > >> What's the intended usecase anyway? Just a debug tool during >> development, or something that you expect heavy use of by some >> userspace middleware? > > I suspect it is another attempt to make userspace clocks/plls work? Scary. none is trying to do that as far as I know. Thanks, Michal