Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1349219imm; Wed, 15 Aug 2018 16:12:27 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyCgIXfh+NzfDbgmEVWbgu/LlptYAsz2kVmB36O4UxkNY3SQF0ghX1vGCx6v1fV57uO+X5u X-Received: by 2002:a63:ef54:: with SMTP id c20-v6mr26246752pgk.368.1534374747765; Wed, 15 Aug 2018 16:12:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534374747; cv=none; d=google.com; s=arc-20160816; b=yCdiWJ6ikm3/lnEz6yGQ01JwE7NAoVHvFswvMstPYZwWYtzb2S6rd1BaUFA6dAuFus O5NIL2KQdAV51OAIugLYLWnlj5SLGMmNhA6pG0eMJAmH3CwSLYU4ZpBz+ok7Ex31iQZT xfHvK/J93iR1VUYUrQFK2kuaEc70ZllxDbiwb/5vHWkQhn03OoTXZOR/Eoo5YAdUEZgi vMYr8Ndqz0QbYjyuLtLCya5n/GkfPksf1ZTqU/wNIR5cZP5owaF3MqAZIsFhtKxuJ+CU 5donGZE/QTGRbpO9CkL9l4lw8HfnV3IY7NbC2zq5Y4QgsRLGoxfm90KmZC2BD7IA8Ls6 6J1w== 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:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=eCmegPHgSq1zArLsmVg1mJflFIPzB0hpJYjBKd59agc=; b=sLE6VkUwaEnaqUHSvH0Ewbfg4ah8rdRAJuVYTDs5+px0wZ4TJpUDtk5QHNtCNY9ySj dEVlfSof+HIV2RDLvSAEuo3UOxwC2iWSrzh2iorJKn4haOJWZHC9KnXkXP1vZ8W8LAt9 7fIreK/5G6vSMyEnMOSZuYRXe/dyzAin92VI+aKoejGKRcYa23cOIG69bTOn6fmypwnY hO2A94nNUJeuWotZhPX050Y/h66ttumdm/3PIBaCs2/IuWkQDgSGwszOL5LcRUWaynfT 5YHhF0B5Gyt3exnU4EXmXIrjTKNic1rz5THHar6lpJxWHHnC7i5sobh0GmhVl3ktWfmz 8XYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=vqwu0Knt; 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 h12-v6si21664811pls.245.2018.08.15.16.11.53; Wed, 15 Aug 2018 16:12:27 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=vqwu0Knt; 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 S1729585AbeHPBb7 (ORCPT + 99 others); Wed, 15 Aug 2018 21:31:59 -0400 Received: from merlin.infradead.org ([205.233.59.134]:32908 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728977AbeHPB21 (ORCPT ); Wed, 15 Aug 2018 21:28:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=eCmegPHgSq1zArLsmVg1mJflFIPzB0hpJYjBKd59agc=; b=vqwu0KnttvDY5SBn68XIec8CKK d0m2jzkhHufIjF/G6GIB6F4Mb3zDl5nU/EpwEUVr3ibtJiknKNHzG7FonxcLrN3eHzpbxj1pyX7R1 dq0Lar8g5IifvVXsK1e5ojgML5WW6DacSr1M7zEfsgsHC+mKUrQr4P26nGtfSmbUWHWIdUlmH1b2k KgxGshEEIKNCvOJo1Sh6r9UmxBh7PRVoh5/brhnNiJj24SuKXto4mZnNbL/AwqGSTwRu9Q3D0eyf4 0pt4nUUJetLgQGUAIiRpz+CLXpMl4N4WdX1yfUOCDhBeEgnfR4sq2wRF7h/qQOlBRcx7fnJGdakmO w2tYBUeg==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fq4Mn-0005G6-J1; Wed, 15 Aug 2018 22:34:13 +0000 Subject: Re: [PATCH 2/2] fpga: add FPGA manager debugfs To: Alan Tull , Moritz Fischer , Jonathan Corbet , Dinh Nguyen Cc: Appana Durga Kedareswara Rao , linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org, linux-doc@vger.kernel.org, Alan Tull , Matthew Gerlach References: <20180815220958.3606-1-atull@kernel.org> <20180815220958.3606-2-atull@kernel.org> From: Randy Dunlap Message-ID: <9043a69f-47d8-0ffe-ca15-77c9c73c085f@infradead.org> Date: Wed, 15 Aug 2018 15:34:10 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180815220958.3606-2-atull@kernel.org> 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 08/15/2018 03:09 PM, Alan Tull wrote: > From: Alan Tull > > Implement DebugFS for the FPGA Manager Framework for > debugging and developmental use. > > Enabled by CONFIG_FPGA_MGR_DEBUG_FS Hi Alan, for your v2 changes: > Each FPGA gets its own directory such as > /fpga_manager/fpga0 and three files: s/three/four/ > > * [RW] flags = flags as defined in fpga-mgr.h > * [RW] firmware_name = write/read back name of FPGA image > firmware file to program > * [WO] image = write-only file for directly writing > fpga image w/o firmware layer > * [RW] config_complete_timeout_us = maximum for the FPGA to > go to the operating state after > programming > > The debugfs is implemented in a separate fpga_mgr_debugfs.c debugfs interface is > file, but the FPGA manager core is still built as one > module. Note the name change from fpga-mgr.ko to fpga_mgr.ko. > > Signed-off-by: Alan Tull > Signed-off-by: Matthew Gerlach > --- > drivers/fpga/Kconfig | 7 ++ > drivers/fpga/Makefile | 4 +- > drivers/fpga/fpga-mgr-debugfs.c | 221 ++++++++++++++++++++++++++++++++++++++++ > drivers/fpga/fpga-mgr-debugfs.h | 22 ++++ > drivers/fpga/fpga-mgr.c | 8 ++ > include/linux/fpga/fpga-mgr.h | 3 + > 6 files changed, 264 insertions(+), 1 deletion(-) > create mode 100644 drivers/fpga/fpga-mgr-debugfs.c > create mode 100644 drivers/fpga/fpga-mgr-debugfs.h > > diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig > index 1ebcef4..600924d 100644 > --- a/drivers/fpga/Kconfig > +++ b/drivers/fpga/Kconfig > @@ -9,6 +9,13 @@ menuconfig FPGA > kernel. The FPGA framework adds a FPGA manager class and FPGA > manager drivers. > > +config FPGA_MGR_DEBUG_FS > + bool "FPGA Manager DebugFS" > + depends on FPGA && DEBUG_FS > + help > + Say Y here if you want to expose a DebugFS interface for the > + FPGA Manager Framework. Use tab indentation for bool, depends, and help lines. Use tab +2 spaces for help text. > + > if FPGA > > config FPGA_MGR_SOCFPGA thanks, -- ~Randy