Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1951995imm; Sun, 9 Sep 2018 12:21:42 -0700 (PDT) X-Google-Smtp-Source: ANB0VdadX8B9IYpMod94Gwlx7DxxZPJHeAi/9R/cI1BiYdNv0bfwxHGGLAbYcGf0FmxM/sypDB8W X-Received: by 2002:a63:3642:: with SMTP id d63-v6mr18707275pga.231.1536520902117; Sun, 09 Sep 2018 12:21:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536520902; cv=none; d=google.com; s=arc-20160816; b=v3j4daW0/fG8KGyAGlIA7Bcc7/4IVPh33Ybuoi8Uu9hl2dPj2o0PzFr7ModHNU00Fu lVKV4NkPExlBJ0BUrou4a1CYapuErYcrtpC6jLi+6GKrw4MBpdEgscA5JMqJ8uj7GUbS dsNxMvAy4UkJPIMhrppeEBYSfdQAuCnaHdWCX5LueiLVyoN5GVRSjay/KL7nsWIIArho EIZ0ALNzNNivJm+r5fqvgJNpqG9g8o+AULgjcvOH7S2LGc6oJlY4Bm/1ib9wyZiOz8vi 8SURZBXPny48Gt59mg/9P55zX3SYdm8ku9Fivn4bBGyNhrJXDWiShO/tbwwG5RsdV44j VPhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=KzWLIShI1wQK0hY9NzQtIf37kvhJiOXlzz0oUr5GF+4=; b=DzBT4ARQSs6EY4fTUvbcE2WsfS/x5Pg9a609WDDImbFL2T9PQw9a2ftXMxB3+0bIdQ Odbe7h7Y669Orr6DL6xfey0rJXtqN6APVcGuMGiHSxI6zVp75DkX8nJ8Tyb7LF+nkceo PGnqAMcohPvgWezlyJwoJ9hXq8yYSU0a9yfMQNO+RCVMIPbfBnapB9IwSswmuwqV2MJo HP4hWOOGCkzSaLL6c+WfV8t01CheTFaj2MdBAg9GvyCqlrmBXU3Su6dS8cmO6tOhIzfA QsPI2O7HF4h7XEEYDta8sXx3Pnr43bQKfF1KpV9hV4ct5vM/jawrC/f0zr9QU+OhQ+Z6 X2IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ettus-com.20150623.gappssmtp.com header.s=20150623 header.b=QXqoNm7+; 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 66-v6si14356626plb.428.2018.09.09.12.21.26; Sun, 09 Sep 2018 12:21:42 -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=@ettus-com.20150623.gappssmtp.com header.s=20150623 header.b=QXqoNm7+; 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 S1726816AbeIJAKv (ORCPT + 99 others); Sun, 9 Sep 2018 20:10:51 -0400 Received: from mail-yw1-f65.google.com ([209.85.161.65]:46211 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726599AbeIJAKv (ORCPT ); Sun, 9 Sep 2018 20:10:51 -0400 Received: by mail-yw1-f65.google.com with SMTP id j131-v6so7102084ywc.13 for ; Sun, 09 Sep 2018 12:20:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ettus-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=KzWLIShI1wQK0hY9NzQtIf37kvhJiOXlzz0oUr5GF+4=; b=QXqoNm7+mETEAcXRveALZbfbjBuuNhmU3jo/RZtMpd7FJe8yhymRfl2uEOHL5qSEJF YzJnRoYRuQ+7l1p2u5T4DPpmNXZ5tK/VlVwVjWXYDvFdzBsuCwc/jRHT8+dxbybfNjaX J6UNmtqLMUYHYiDLlYlJ0JTrGjZffFhMyN7azpP6h3ERukEClMb/0/6U05iM0YRm2mG1 KCEhGVh346E5X42oUFigsEQk4cRjNsR9ONYxtINq5FB5vQHacQ6lxgZN7rj13mnE5d0+ wH7Q0s6aDO7OGPQhlbipU0z2ROR1/PxLbmHCegp5szs2uoA1HrIPZcuV4gZpfPwKvOgy rqAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=KzWLIShI1wQK0hY9NzQtIf37kvhJiOXlzz0oUr5GF+4=; b=YCZ708RV7/snuUbaHwEPRZRlBG/+W1mZYEUmSvEXFlRenLBbFdkK/4SL3EO73m9M7g ttWQ+gwNA+baA8pDe9pEOJ71hxYigZwgb8E0treCHmt4++NcIwzOX5rVh9nDHkLzM0N3 DhkCyHg2vzeWdspNq8CHj2aD+x33ItiL2ryDGg7IPe+si/XaRyglw1neF727YLHSgNsq YeJSNn+VzpVHOJg0yxu9iQgEbmVwuGS5Mdot2+Jj0AMyGgZXXZiYOSdnZpDdPK0PUuDM Wazo7qaT+mHbN3CVyasLAiMdQcsMof1m9XJostk4JdOmF8RcXOMJ3A6tVhQWl+QBCczb o/uA== X-Gm-Message-State: APzg51DU2AHomDCtMMqDDonIfhPU3ASr4EsrRtqXXuaZKs99qveqQNFA CUv7hPFNVSpmU4qP5EjQcLypwov1I4g5euClqxqAbw== X-Received: by 2002:a81:346:: with SMTP id 67-v6mr8742562ywd.23.1536520810141; Sun, 09 Sep 2018 12:20:10 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a0d:e106:0:0:0:0:0 with HTTP; Sun, 9 Sep 2018 12:20:09 -0700 (PDT) In-Reply-To: References: <1533318808-10781-1-git-send-email-jollys@xilinx.com> <1533318808-10781-4-git-send-email-jollys@xilinx.com> From: Moritz Fischer Date: Sun, 9 Sep 2018 12:20:09 -0700 Message-ID: Subject: Re: [PATCH v11 03/11] firmware: xilinx: Add zynqmp IOCTL API for device control To: 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Cheers, Moritz