Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1625478ybd; Wed, 26 Jun 2019 22:02:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0KpXJg2q8HGd9YpbyG3dWfzZa1eCHhLKZhQ5TeBWylhPuqNcRFuQopHhEph1EmUGxeZvP X-Received: by 2002:a17:902:fe10:: with SMTP id g16mr2385438plj.44.1561611747822; Wed, 26 Jun 2019 22:02:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561611747; cv=none; d=google.com; s=arc-20160816; b=djLlYTc0ZMD1o7cuT9MYnGFABTa3V3T4kUb63TnTSxkI4w68aoTZ7L6X9Ec86QdqfD KuSufTGSUcCy1BKvWPr+YtvRaQt/XFRaloesauvuKmrJmpO93WG4HrIOelCIomEIvXNg iywl9QOTiTwk1cVq0qFJw9Qn/q1TkOeFXGC0UZ2YQ2tw+OG5YUxb6H1lws7yO7U+4Bi9 OuWTrSmoVUXle7XJnIoAcTRIZ9VnZAj4MRtkqnN2N4Qdn9kvinXtKeZ3mrpltHKRRs2y mg0uT9QkFvJn+ZDFSA8NUHvll4CFIUr8+LmJMLRBWBtRATHx4m6DPIb3U+bD1G1evRko rOeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=CJEjhjCKh70mOa79XIzFlLy+TELTE7Ftr/Oo2pzKzW8=; b=UQZ6JxvFOBGZb4M2SG12OGHZspP7hf6dYHwgnepxONxdKOn33gHJwJsEUFCEaU5XrC rtciP39lvKskoXufc3CiLE1xDd7jGjK+Me25wKe0DLKQsQMzyb6J+KXHMgJ4G9rNn9bo mqzjPZjQm/kp2SSC68jVWDTUmTHpoo6ZhDSsxKQwEPYZh9v5+bjHJ6AryhzIG0dktK3z Os9dBGL5t0TsjwrpLwCYBKxotKwT8QK/CQZ9c9qD3D2nwKTzjWI94kkcZ2JF/35jprO0 EbNyb8/2CHmQv04HZ5pYbmBniAwjUZerOj0nkkD8nvOc8Vf/2wcE2C/nTk1jwXE9hPdy YbQg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f6si1191132pgh.288.2019.06.26.22.01.56; Wed, 26 Jun 2019 22:02: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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727077AbfF0FBu (ORCPT + 99 others); Thu, 27 Jun 2019 01:01:50 -0400 Received: from mga11.intel.com ([192.55.52.93]:22916 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726563AbfF0FBu (ORCPT ); Thu, 27 Jun 2019 01:01:50 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jun 2019 22:01:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,422,1557212400"; d="scan'208";a="173005011" Received: from hao-dev.bj.intel.com ([10.238.157.65]) by orsmga002.jf.intel.com with ESMTP; 26 Jun 2019 22:01:47 -0700 From: Wu Hao To: mdf@kernel.org, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Cc: linux-api@vger.kernel.org, yilun.xu@intel.com, hao.wu@intel.com, gregkh@linuxfoundation.org, atull@kernel.org Subject: [PATCH v4 00/15] add new features for FPGA DFL drivers Date: Thu, 27 Jun 2019 12:44:40 +0800 Message-Id: <1561610695-5414-1-git-send-email-hao.wu@intel.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds more features support for FPGA Device Feature List (DFL) drivers, including PR enhancement, virtualization support based on PCIe SRIOV, private features of Port, private features of FME, and enhancement to DFL framework. Please refer to details in below list. Main changes from v3: - split performance reporting support into another patchset for better review. Main changes from v2: - move thermal/power management private feature support to another patchset, including hwmon patches and related documentation update. - update sysfs doc for kernel version and date. - replace scnprintf to sprintf for sysfs interfaces. - fix comments for performance reporting support. (patch #16) Main changes from v1: - split the clean up code in a separated patch (patch #2) - add cpu_feature_enabled check for AVX512 code (patch #4) - improve sysfs return values and also sysfs doc (patch #12 #17) - create a hwmon for thermal management sysfs interfaces (patch #15) - create a hwmon for power management sysfs interfaces (patch #16) - update docmentation according to above changes (patch #5) - improve sysfs doc for performance reporting support (patch #18) Wu Hao (15): fpga: dfl-fme-mgr: fix FME_PR_INTFC_ID register address. fpga: dfl: fme: remove copy_to_user() in ioctl for PR fpga: dfl: fme: align PR buffer size per PR datawidth fpga: dfl: fme: support 512bit data width PR Documentation: fpga: dfl: add descriptions for virtualization and new interfaces. 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: afu: add STP (SignalTap) support fpga: dfl: fme: add capability sysfs interfaces fpga: dfl: fme: add global error reporting support Documentation/ABI/testing/sysfs-platform-dfl-fme | 98 ++++++ Documentation/ABI/testing/sysfs-platform-dfl-port | 104 ++++++ Documentation/fpga/dfl.txt | 101 ++++++ drivers/fpga/Makefile | 3 +- drivers/fpga/dfl-afu-error.c | 225 +++++++++++++ drivers/fpga/dfl-afu-main.c | 330 ++++++++++++++++++- drivers/fpga/dfl-afu.h | 7 + drivers/fpga/dfl-fme-error.c | 385 ++++++++++++++++++++++ drivers/fpga/dfl-fme-main.c | 120 ++++++- drivers/fpga/dfl-fme-mgr.c | 117 ++++++- drivers/fpga/dfl-fme-pr.c | 65 ++-- drivers/fpga/dfl-fme.h | 7 +- drivers/fpga/dfl-pci.c | 40 +++ drivers/fpga/dfl.c | 169 +++++++++- drivers/fpga/dfl.h | 54 ++- include/uapi/linux/fpga-dfl.h | 32 ++ 16 files changed, 1777 insertions(+), 80 deletions(-) create mode 100644 drivers/fpga/dfl-afu-error.c create mode 100644 drivers/fpga/dfl-fme-error.c -- 1.8.3.1