From patchwork Sun Aug 4 10:20:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wu, Hao" X-Patchwork-Id: 11074735 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E267C14DB for ; Sun, 4 Aug 2019 10:37:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C9BA928837 for ; Sun, 4 Aug 2019 10:37:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BDB732883F; Sun, 4 Aug 2019 10:37:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3901428843 for ; Sun, 4 Aug 2019 10:37:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726039AbfHDKhq (ORCPT ); Sun, 4 Aug 2019 06:37:46 -0400 Received: from mga01.intel.com ([192.55.52.88]:31912 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725941AbfHDKhq (ORCPT ); Sun, 4 Aug 2019 06:37:46 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Aug 2019 03:37:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,345,1559545200"; d="scan'208";a="167678913" Received: from hao-dev.bj.intel.com ([10.238.157.65]) by orsmga008.jf.intel.com with ESMTP; 04 Aug 2019 03:37:43 -0700 From: Wu Hao To: gregkh@linuxfoundation.org, mdf@kernel.org, linux-fpga@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-doc@vger.kernel.org, atull@kernel.org, Wu Hao Subject: [PATCH v4 00/12] FPGA DFL updates Date: Sun, 4 Aug 2019 18:20:10 +0800 Message-Id: <1564914022-3710-1-git-send-email-hao.wu@intel.com> X-Mailer: git-send-email 2.7.4 Sender: linux-fpga-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fpga@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Greg, This is v4 patchset which adds more features to FPGA DFL. The avx512 partial reconfiguration support patch is dropped for now as need to address some opens first. Main changes from v3: - drop avx512 partail reconfiguration patch for now. - split dfl_fpga_cdev_config_port to 2 functions *_release/assign_port (#1). - split __dfl_fpga_cdev_config_port_vf into 2 functions with locking added (#2). - improve description in sysfs doc to avoid misunderstanding (#3). - switch to boolean in sysfs entry store function (#3). - remove dev_dbg in init/uinit callback function (#7, #9, #11). - remove uinit callback which does does nothing (#8, #9) Main changes from v2: - update kernel version/date in sysfs doc (patch #4, #5, #8, #10, #11). - add back Documentation patch (patch #12). Main changes from v1: - remove DRV/MODULE_VERSION modifications. (patch #1, #3, #4, #6) - remove argsz from new ioctls. (patch #2) - replace sysfs_create/remove_* with device_add/remove_* for sysfs entries. (patch #5, #8, #11) Wu Hao (12): fpga: dfl: fme: add DFL_FPGA_FME_PORT_RELEASE/ASSIGN ioctl support. fpga: dfl: pci: enable SRIOV support. fpga: dfl: afu: add AFU state related sysfs interfaces fpga: dfl: afu: add userclock sysfs interfaces. fpga: dfl: add id_table for dfl private feature driver fpga: dfl: afu: export __port_enable/disable function. fpga: dfl: afu: add error reporting support. fpga: dfl: make uinit callback optional fpga: dfl: afu: add STP (SignalTap) support fpga: dfl: fme: add capability sysfs interfaces fpga: dfl: fme: add global error reporting support Documentation: fpga: dfl: add descriptions for virtualization and new interfaces. Documentation/ABI/testing/sysfs-platform-dfl-fme | 98 ++++++ Documentation/ABI/testing/sysfs-platform-dfl-port | 106 ++++++ Documentation/fpga/dfl.rst | 105 ++++++ drivers/fpga/Makefile | 3 +- drivers/fpga/dfl-afu-error.c | 221 +++++++++++++ drivers/fpga/dfl-afu-main.c | 319 +++++++++++++++++- drivers/fpga/dfl-afu.h | 7 + drivers/fpga/dfl-fme-error.c | 381 ++++++++++++++++++++++ drivers/fpga/dfl-fme-main.c | 105 +++++- drivers/fpga/dfl-fme-pr.c | 7 +- drivers/fpga/dfl-fme.h | 5 +- drivers/fpga/dfl-pci.c | 36 ++ drivers/fpga/dfl.c | 216 +++++++++++- drivers/fpga/dfl.h | 54 ++- include/uapi/linux/fpga-dfl.h | 18 + 15 files changed, 1640 insertions(+), 41 deletions(-) create mode 100644 drivers/fpga/dfl-afu-error.c create mode 100644 drivers/fpga/dfl-fme-error.c