Received: by 10.192.165.148 with SMTP id m20csp1222358imm; Thu, 10 May 2018 07:29:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr9L91YWMRA8B9JKY+W+nApVYIqyM0XfxuS8eHDswKz8sGEDBmSTSOFYol51Be+MXzTZV7V X-Received: by 2002:a62:190f:: with SMTP id 15-v6mr1635684pfz.42.1525962544828; Thu, 10 May 2018 07:29:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525962544; cv=none; d=google.com; s=arc-20160816; b=IDl42eE4vBdjuIfJp3+9RD7pvPCRdGdXsfW/Bx0iGFa/bmaNMkxWCvGySTkdDGbrp9 YwCrbg2ljMmxWSM0ZmR4sEE/O7WkjxDsB4AsxIyqw/vpYaR9mr8b+o9Cw3jUm3zpLs4k vyzhc5T80jzjjP7xhfcKh7Ou88gyXCjtPqrhEwnTWmKXTvoYhhEY9IiGUBCOH7RvHDRx r8VgoB/OWoS4PyPI6QB5z04jlh0wiQhN8ggnrq8Y1E4y1nY+QEDKOI20rMtv1pTVMZQ0 nzX2653CGEiH8X9KiATSd5DaJx1g7l6Rdyouz2jYAZxwfSREfsEBeHz0MZ1YnD1Wnn5G /5WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:to:subject:cc :arc-authentication-results; bh=YPZu+Zi2+f4Tim+qM3rXfD6upAXMYQWriuytU14HQRw=; b=qRjeXTTXjQ26zASfDoskur1fLCJZQktxK1CRLEOEhyWZ5Hy0OaV5U/SmxNLRZFSfMA gWWS73I+/54fakqlUptszaZrbfk20Dz3tn8kuyS3bRDk13JxFthT8OO5v8/Kr9l9kYik DTCL85NDC2jOefLqHtW9Jij9OJ/nqdHE94PcRNq15FsrXeAbCJjv+n3YfZdBpUFrL43n +whjyAdPlmNKHObsRyrcbaKVOnA977Sohwx1HpGNylVA0zpmmp0EkXIMOIC2x5oaStHq 4cexZtC2ZDW/EDEf/FHNZkw/lMTJ5cNLvUYlyJFSj8csa9b+EhPraG43Mlds4631f3ld jORw== 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 94-v6si930137ple.56.2018.05.10.07.28.50; Thu, 10 May 2018 07:29: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 S966026AbeEJO0j (ORCPT + 99 others); Thu, 10 May 2018 10:26:39 -0400 Received: from foss.arm.com ([217.140.101.70]:56798 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965530AbeEJO0h (ORCPT ); Thu, 10 May 2018 10:26:37 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5C0B115AB; Thu, 10 May 2018 07:26:37 -0700 (PDT) Received: from [10.1.210.28] (e107155-lin.cambridge.arm.com [10.1.210.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BD1BD3F23C; Thu, 10 May 2018 07:26:28 -0700 (PDT) Cc: Sudeep Holla , rajanv@xilinx.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jolly Shah Subject: Re: [PATCH v6 06/11] firmware: xilinx: Add debugfs interface To: Jolly Shah , ard.biesheuvel@linaro.org, mingo@kernel.org, gregkh@linuxfoundation.org, matt@codeblueprint.co.uk, hkallweit1@gmail.com, keescook@chromium.org, dmitry.torokhov@gmail.com, mturquette@baylibre.com, sboyd@codeaurora.org, michal.simek@xilinx.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-clk@vger.kernel.org References: <1523389127-14243-1-git-send-email-jollys@xilinx.com> <1523389127-14243-7-git-send-email-jollys@xilinx.com> From: Sudeep Holla Organization: ARM Message-ID: Date: Thu, 10 May 2018 15:26:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1523389127-14243-7-git-send-email-jollys@xilinx.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/04/18 20:38, Jolly Shah wrote: > From: Rajan Vaja > > Firmware-debug provides debugfs interface to all APIs. > Debugfs can be used to call firmware APIs with required > parameters. > > Usage: > * Calling firmware API through debugfs: > # echo " .. " > /sys/.../zynqmp-firmware/pm > > * Read output of last called firmware API: > # cat /sys/.../zynqmp-firmware/pm > > Refer ug1200 for more information on these APIs: > * https://www.xilinx.com/support/documentation/user_guides/ug1200-eemi-api.pdf > > Add basic debugfs file to get API version. Who are the users of this apart from debugging ? I am bit over sensitive as this remote processor manages/controls the power and other shared resources in the system. Giving such fine grained access to user space is not a good idea. I assume you want this DEBUGFS off by default on production images ? -- Regards, Sudeep