Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1171850imm; Sat, 8 Sep 2018 18:20:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYfXoJegCwi1xL60n8YsvHEUt44HoZ4CR5cmjTxJzovQXbpuydTMsvhYamJ7ygQB3yRwCOe X-Received: by 2002:a17:902:9893:: with SMTP id s19-v6mr15195769plp.130.1536456056190; Sat, 08 Sep 2018 18:20:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536456056; cv=none; d=google.com; s=arc-20160816; b=TK71iWxpllrKm24amUcVL8zEhT2htCz21Qrr60Hg0Rpn4tesStboItLmBvvvooim+v NC8hg7aGTHRHnA2JO5k/3TjOBt+6/IeRc2O8EjiArW7z6l1tyXRH0u/+ZZFN0+BNRCGF OKDmxk5+8nBPF2SfdlYehaQme9jmwWVzaoJCQGc4afbSDSOWfQ+l7Nff/H5YwsaoZ0ql Kth+PoNyi5iWTqHFcoVErJnsy2CHXOE2uia4VjPSOBHI6MVPg//T4/qxP3rNlaY/PCKY Ln6W6OSmML4v6DlmhllKLorWPsUqgQlNh1uvOCuy9I796JCWBZRyL10pWz68Lx0m0Ira Sk4g== 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=RuU0i/zDt6aoNjAAm8eAaoCEwdpvnEe7Hyh7uB9IY2s=; b=06dYYVMD4qJLur4jytsyeU+gSiPjJLnjBc0aeYrpoLbgyMfluyQ+B5Vz8En40+OMVZ F2wMv4nq+wqkYWHyWQ9gxQ33Yn3rPcprhLxX38Y86zS558u/taPhLaEFMr/5Cj2gZlDa PyG7TW+d7Gw+eH9pDKye2ccUwb910W2/GaVJf8abFyqXyMEjy/QBNA9Qgg+B/hnqxOfR 7/dMm3QfUZsSfSt1bgzShAa+Q9vvPSAHnIswToO1JlJgJ4S57FXg5wvKuso8+9ij75q2 3naeaR2rO+y/lemIQvVduDpEBNa/qOg4yzD6y+tedwSOpyZDf+Tt3U3XjYuuQdjjasTn pvNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=zzZyMT4i; 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 v71-v6si12389796pgd.601.2018.09.08.18.20.40; Sat, 08 Sep 2018 18:20:56 -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=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=zzZyMT4i; 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 S1726651AbeIIGGj (ORCPT + 99 others); Sun, 9 Sep 2018 02:06:39 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:45758 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726152AbeIIGGj (ORCPT ); Sun, 9 Sep 2018 02:06:39 -0400 Received: by mail-lf1-f65.google.com with SMTP id r4-v6so14761944lff.12 for ; Sat, 08 Sep 2018 18:18:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=RuU0i/zDt6aoNjAAm8eAaoCEwdpvnEe7Hyh7uB9IY2s=; b=zzZyMT4iFemsdOAGGcYZnMWR8N/3wreoBCdvChbMHNfOigcg1fzGTY622ylmE/op9Q pF6IXdZLQIkOmf8OC+GPOJiOu1QH2wX98vKhmkRBzu8TX+SIvV6fOcLqB3iunBFF9p0f PSp4Y9Q8jNeaD4zj8UwXNt2jjFQLQm+iU3Jq+pKb7bejyitl1fZYFDOwTSyE2FTTLI0C Fs9UytoN3FffxXMlk9UmAtplWhKBKsSp4jYEJyf1LNy3Ynr3bWKNM88fFW6AWvk/MnUY 5up3TCeW3Ip1gekIzINp1v8yEbbtoFNGWQh7RWgVs8qin+MdchhVhXQqMcLDI6OTOinC jm1Q== 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=RuU0i/zDt6aoNjAAm8eAaoCEwdpvnEe7Hyh7uB9IY2s=; b=SWlCMSggzkVfFqkQi8DP2SJa9gSjunlFiRshS8GaWcDq57JwwSV5XRrkULr1HiYrXw CiD/gK/XaVSHh4fA1qbEgDhCZ4lQNXPlp7k+HvN283F9fax2Jr32AJjeb5UhIQq6kXfs OQDZBLD2HNNdZnpIxRhC6XfkGtb+oRRiOWMNIKlUYBbMGdYB2+ngcnNe30CNTWT3cASJ QP8oFLd6HO8RhX6BhH2vnuHF0/085tqDFn/czLgKETrltUy1tXmwIF2WhUoARRFxqDHn QyOKE43NkH4LhoAmYwDjhTIT3C9Uz5g4pbo4e6uwi8kV7Wlx5GbnGxlDB2PyhKZ0T1fQ A/Xg== X-Gm-Message-State: APzg51CwTtvLywp3APwY82UWD2vk4HjOJjqnwT5gMsJ/ILiHWOgGy90+ GbRBJ0rTBDU9do5aOe8s0BvQm7K9XcYEIrbfotigoA== X-Received: by 2002:a19:f802:: with SMTP id a2-v6mr8519165lff.33.1536455934587; Sat, 08 Sep 2018 18:18:54 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:6413:0:0:0:0:0 with HTTP; Sat, 8 Sep 2018 18:18:53 -0700 (PDT) X-Originating-IP: [99.152.116.91] In-Reply-To: <1533318808-10781-4-git-send-email-jollys@xilinx.com> References: <1533318808-10781-1-git-send-email-jollys@xilinx.com> <1533318808-10781-4-git-send-email-jollys@xilinx.com> From: Olof Johansson Date: Sat, 8 Sep 2018 18:18:53 -0700 Message-ID: Subject: Re: [PATCH v11 03/11] firmware: xilinx: Add zynqmp IOCTL API for device control To: Jolly Shah Cc: "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, 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? What's the intended usecase anyway? Just a debug tool during development, or something that you expect heavy use of by some userspace middleware? -Olof