Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2569444imm; Thu, 16 Aug 2018 11:39:25 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxhrb17Mrf3Dc9q8gF90xEHBQPKUOd7ITC451xC69bIzUQcdSChcL4PFKxFLxL7eUgxVpV0 X-Received: by 2002:a63:b43:: with SMTP id a3-v6mr29614146pgl.50.1534444764988; Thu, 16 Aug 2018 11:39:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534444764; cv=none; d=google.com; s=arc-20160816; b=syhbt6oopLI62gfkMTfn2eIB99dzpFpGIUZFPLhmSaj38sdNqgcfR8EpEk+F2qyVHG 1WygEX+c8UY73u44AWyJ6acYlq1Gzp0kUmNKqeyBsjL95lh9N0e5HJcC2Q+ZOgiVnlJL 2Ck3BBK49IshLKe7tueGQzaGn8JJ9nbgl2MKyRCCLJCXdFTXqhdOTz20K1t1DlqjiQkV +8/J6mzhmRRE8bLB5o/GwkXOJtGC8U3lViVEn/EAk4pYT5TMc7dx5o/ta4LFLtul5t3C /7yipxfKs2jhPNGfakupi80Zx10zFROicKdWF8jDRh8obdxEhcP+bT452RDhmU42nF5e 96sg== 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 :arc-authentication-results; bh=MiKWC672LYOubwdkenf6ukOFhn0vkqLI+CloxfTI8gQ=; b=OFWBRhTp419bQr5MzCY3bghd1PAH/rLfOBla52fsOQSCquikdY79nXwPEgmgHtWcCr pvrQhCy6CRZP5YL/ZPLCOhIlibat5uocDLtSqkh0oxJYHFYvyr1oiXSnrjRuNP64mGYy k4NoXtf7Orj1OXSvVQjjdny85lx5JryPEtOtVxtxYP0Pnpbjat/34vk9LYOaXYI71KJi i11QysGiWd77cUh8xbtCljqkbQzqfbdPp08H1xfhoNWw6g1ArokwCi9dbz5iId4i3bmQ 90l+DBwJo7Og082iDh8NlB6TIWrf2Wvoaec5hRLkeSbGwNutQkmr4XcBE1b3cBvbUtel BoHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=c+jI0km8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k80-v6si10969pfg.42.2018.08.16.11.39.10; Thu, 16 Aug 2018 11:39:24 -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=@kernel.org header.s=default header.b=c+jI0km8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391847AbeHPRZN (ORCPT + 99 others); Thu, 16 Aug 2018 13:25:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:57086 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726384AbeHPRZN (ORCPT ); Thu, 16 Aug 2018 13:25:13 -0400 Received: from mail-yb0-f178.google.com (mail-yb0-f178.google.com [209.85.213.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C814021486; Thu, 16 Aug 2018 14:26:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1534429576; bh=WfPNLG8dyjSTrlQhF9xLCSDuAbW7b07/OcokzulIxrs=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=c+jI0km8m/845TG+FVmeq1gIUc4+y86N0QY0iWkgB3vjtLvHCe11LL0J55kx4+/pS AKdqbbxjR1QS6iX/RwXyFUYlVxmxWDiZF0MUn1uYyNTTmc/PlyGBL0vnQuLZcPPa0m snbyjTILKkvIcfagm6ICBU3pWv9i+8XepLgYfWOw= Received: by mail-yb0-f178.google.com with SMTP id d34-v6so674856yba.3; Thu, 16 Aug 2018 07:26:16 -0700 (PDT) X-Gm-Message-State: AOUpUlEsJJRV4QN8S+2hQ8AgTsadekOvEgVUuNzPm48pJTbFO2KyNWAn hM7+1xSrWxwfEUR0aTQrlQ788Sc2U5lHa0AayBc= X-Received: by 2002:a25:d84e:: with SMTP id p75-v6mr16319903ybg.315.1534429575996; Thu, 16 Aug 2018 07:26:15 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:81c8:0:0:0:0:0 with HTTP; Thu, 16 Aug 2018 07:25:35 -0700 (PDT) In-Reply-To: <9043a69f-47d8-0ffe-ca15-77c9c73c085f@infradead.org> References: <20180815220958.3606-1-atull@kernel.org> <20180815220958.3606-2-atull@kernel.org> <9043a69f-47d8-0ffe-ca15-77c9c73c085f@infradead.org> From: Alan Tull Date: Thu, 16 Aug 2018 09:25:35 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] fpga: add FPGA manager debugfs To: Randy Dunlap Cc: Moritz Fischer , Jonathan Corbet , Dinh Nguyen , Appana Durga Kedareswara Rao , linux-kernel , linux-fpga@vger.kernel.org, Linux Doc Mailing List , Alan Tull , Matthew Gerlach 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 On Wed, Aug 15, 2018 at 5:34 PM, Randy Dunlap wrote: Hi Randy, > 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/ Yes > >> >> * [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 Yes > >> 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. Yes, thanks for catching that. I'll fix these in v2. Thanks for the review! Alan > >> + >> if FPGA >> >> config FPGA_MGR_SOCFPGA > > thanks, > -- > ~Randy