Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2316796ybh; Mon, 9 Mar 2020 03:32:36 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvpu9434K1MfgpJBV0jObTmen7txBN3lyDDox2+QutdBC8KiFOjDevPCP2w13YKcKBejNQy X-Received: by 2002:a05:6830:13c4:: with SMTP id e4mr12662517otq.139.1583749956052; Mon, 09 Mar 2020 03:32:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583749956; cv=none; d=google.com; s=arc-20160816; b=jgyxUzruVTpaypxU16Kydd7jugOmrTayNGlXxl3c0pH5Y31Or2lUTJ4Pp3GB4T21Ze EFgLuWbXwaw1LG9g4y97LPihvNspTIQFu99HpIySKUKhohPYpy+iZwL/1x/jmGj0XlYQ aK02CvVzOqcNtrAmfJnPE3cse8Zb8H8yUYy6Ngd8t4yVTVfFXKjU91Ymc0fhQAFbrNMQ NPXRCyQa/+V/FpGNiHeL82onZ9MBH/P88ifMn5VZRmb/sUotauS2NkzqkBINjCBhvG1t mbZ2di8+MdqtETZtv3x4ct5PuyIxAdjBieCg8LC/mb2OuJ3u0dxrsy7U3ARTW2f5Po92 V+Dg== 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=9C4tmnkjhKtXKySpQcJUgU2UaS6aei4OTX8NeA/+v3w=; b=0xRxB7H4nDP6MIv+ThYZCfwUKIU8fRGu1nDpy/qgsGsonNheOAPkqZ9vZx1iJyQm3U IXm6IuvQsxXu1Hy7iGTvorHAtFRwNJIEC6x5UvTwCc/Ua5Vr6ghO/Zn33G8i8T20uQYh rYtq2ziv3+Y/Lh773UjJEt+HgNKOAB8wHw6EBzVYSGE0B/1gg7iaVNXUTK2cUP8QFvYb bWkrYkE+AXUJImhjPGix6pr0XskS56YbP1n6FJZpEcN3en5Y9OYLIRytwT5+FjJS1oli 3hbiYZdpzOpZD4Q0I6H/EcRQM5gYf2cwsSyFOl3+BT/WHknNTNZzmGVyrl6LbOB4tEml XTLg== 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 o64si3641184oib.72.2020.03.09.03.32.24; Mon, 09 Mar 2020 03:32:36 -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 S1726379AbgCIKb6 (ORCPT + 99 others); Mon, 9 Mar 2020 06:31:58 -0400 Received: from mga01.intel.com ([192.55.52.88]:46791 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725956AbgCIKb5 (ORCPT ); Mon, 9 Mar 2020 06:31:57 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Mar 2020 03:31:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,532,1574150400"; d="scan'208";a="288655000" Received: from yilunxu-optiplex-7050.sh.intel.com ([10.239.159.141]) by FMSMGA003.fm.intel.com with ESMTP; 09 Mar 2020 03:31:56 -0700 From: Xu Yilun To: mdf@kernel.org, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Xu Yilun Subject: [PATCH 0/7] Add interrupt support to FPGA DFL drivers Date: Mon, 9 Mar 2020 18:29:43 +0800 Message-Id: <1583749790-10837-1-git-send-email-yilun.xu@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 add interrupt support to FPGA DFL drivers. With these patches, DFL driver will parse and assign interrupt resources for enumerated feature devices and their sub features. This patchset also introduces a set of APIs for user to monitor DFL interrupts. Three sub features (DFL FME error, DFL AFU error and user interrupt) drivers now support these APIs. Patch #1: DFL framework change. Accept interrupt info input from DFL bus driver, and add interrupt parsing and assignment for feature sub devices. Patch #2: DFL pci driver change, add interrupt info on DFL enumeration. Patch #3: DFL framework change. Add helper functions for feature sub device drivers to handle interrupt and notify users. Patch #4: Add interrupt support for AFU error reporting sub feature. Patch #5: Add interrupt support for FME global error reporting sub feature. Patch #6: Add interrupt support for a new sub feature, to handle user interrupts implemented in AFU. Patch #7: Documentation for DFL interrupt handling. Xu Yilun (7): fpga: dfl: parse interrupt info for feature devices on enumeration fpga: dfl: pci: add irq info for feature devices enumeration fpga: dfl: introduce interrupt trigger setting API fpga: dfl: afu: add interrupt support for error reporting fpga: dfl: fme: add interrupt support for global error reporting fpga: dfl: afu: add user interrupt support Documentation: fpga: dfl: add descriptions for interrupt related interfaces. Documentation/fpga/dfl.rst | 17 +++ drivers/fpga/dfl-afu-error.c | 69 +++++++++++++ drivers/fpga/dfl-afu-main.c | 83 +++++++++++++++ drivers/fpga/dfl-fme-error.c | 71 +++++++++++++ drivers/fpga/dfl-fme-main.c | 6 ++ drivers/fpga/dfl-pci.c | 66 +++++++++++- drivers/fpga/dfl.c | 233 +++++++++++++++++++++++++++++++++++++++++- drivers/fpga/dfl.h | 51 +++++++++ include/uapi/linux/fpga-dfl.h | 89 ++++++++++++++++ 9 files changed, 676 insertions(+), 9 deletions(-) -- 2.7.4