Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3285821ybl; Sun, 11 Aug 2019 20:08:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUND145NphPh0fBZ6KafQIchwNQO/c3pN7J3XwgofP+4jGAYATeyiW0thZcL86oU+LY9Lw X-Received: by 2002:a17:902:3363:: with SMTP id a90mr29502175plc.119.1565579333138; Sun, 11 Aug 2019 20:08:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565579333; cv=none; d=google.com; s=arc-20160816; b=x005DKjaHNNKn4t9yNIF1GUWWPPMpvRKJcvassTHJZRuZW1ciVlwssQxDy7G2KgMJ8 tlTVs2fCmTRqUw96N9moY/IbWiAFu26JtEcqx7/B5Aa4Y9UvK7vgoydP5C8bCKJ+Yqyx RuPds3aJ7wbeVsYEGCS4ir93GPrsovS/Sz2UuCh6r8N9uSw9gLLgFBnkRa4ultmxvtAY KlLx+yIXEFXcSUw81eUo/wnJMLWBd55BOXfVfkK1DmRJMe/gJ6pRBHPqMjaicaMpFx8s qZjewq3h4WuU5rlkUc1Ub0DqQV3ysEFw4uUEb6Auxy1CJCy/BTBQ1dg/s0svCnkJDJ7j An6Q== 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=BlmVBTxVOW5IdqrPE/wz2TS4jlYfimcy4zYJCn0GEys=; b=RMMZZ817SAHzuAW5nhLB9giZpOq1kFHx+GrUPz+VR60CokUAYVd6Xbq41MmovkHSBD CxHabzbWVlZiPcAkQmrW4HOBWu8hFiBQV3rGLkxcKybL+G3q58DTDIXCFbb6vP7vzAie eQwqvvSPjny5z0KDvzne9k26ufnulNrfJOTlgDmQEswOUXwXNXjpge3sUVjBiCgbbkLM kcjssj+OTg/yFr1jgwJMa8JrU1iShh4rcUOXCU7PBl2FitihzK+wDrkTAv8GGNFWWXS2 Hh7E8qvRib5MPC+1fi83Vx/68EZ+nsQoEWjBCGzdWMtfHYPporyXn0mud8CVOtFBksqL 6Otw== 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 i8si60282497pgs.87.2019.08.11.20.08.38; Sun, 11 Aug 2019 20:08:53 -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 S1726528AbfHLDHr (ORCPT + 99 others); Sun, 11 Aug 2019 23:07:47 -0400 Received: from mga17.intel.com ([192.55.52.151]:12631 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726011AbfHLDHq (ORCPT ); Sun, 11 Aug 2019 23:07:46 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Aug 2019 20:07:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,375,1559545200"; d="scan'208";a="199987451" Received: from hao-dev.bj.intel.com ([10.238.157.65]) by fmsmga004.fm.intel.com with ESMTP; 11 Aug 2019 20:07:44 -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 v5 0/9] FPGA DFL updates Date: Mon, 12 Aug 2019 10:49:55 +0800 Message-Id: <1565578204-13969-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 Hi Greg, This is v5 patchset which adds more features to FPGA DFL. Marjor changes against v4 are sysfs related code rework to address comments on v4. Please help to take a look. Thanks! Main changes from v4: - convert code to use dev_groups for sysfs entries (#2, #3, #4, #6, #8). - clean up for empty init function after remove sysfs add/remove (#1). - introduce is_visible for sysfs groups (#3, #4, #6, #8). - remove revision sysfs entries (#4, #6, #8). - improve naming on shared functions (#5). - reorganize sysfs entries for port and fme error reporting (#6, #8). 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 (9): fpga: dfl: make init callback optional fpga: dfl: fme: convert platform_driver to use dev_groups fpga: dfl: afu: convert platform_driver to use dev_groups fpga: dfl: afu: add userclock sysfs interfaces. fpga: dfl: afu: expose __afu_port_enable/disable function. fpga: dfl: afu: add error reporting support. fpga: dfl: afu: add STP (SignalTap) support 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 | 62 ++++ Documentation/ABI/testing/sysfs-platform-dfl-port | 53 ++++ Documentation/fpga/dfl.rst | 105 +++++++ drivers/fpga/Makefile | 3 +- drivers/fpga/dfl-afu-error.c | 230 ++++++++++++++ drivers/fpga/dfl-afu-main.c | 230 +++++++++++--- drivers/fpga/dfl-afu.h | 9 + drivers/fpga/dfl-fme-error.c | 359 ++++++++++++++++++++++ drivers/fpga/dfl-fme-main.c | 42 +-- drivers/fpga/dfl-fme.h | 3 + drivers/fpga/dfl.c | 10 +- drivers/fpga/dfl.h | 9 + 12 files changed, 1041 insertions(+), 74 deletions(-) create mode 100644 drivers/fpga/dfl-afu-error.c create mode 100644 drivers/fpga/dfl-fme-error.c -- 1.8.3.1