Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp43768pxu; Wed, 6 Jan 2021 20:43:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYTxwFLTVvXkdmVYrqSVcd9iFXDOWZUCNM0rHsa0Ljd4jHT+0KrqU1/65Lv14TzfD6xEzq X-Received: by 2002:a17:906:410e:: with SMTP id j14mr5018815ejk.253.1609994604762; Wed, 06 Jan 2021 20:43:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609994604; cv=none; d=google.com; s=arc-20160816; b=WxIJpWb0p/8D1yoed4GyAPTW9Cx+3jKc9R8TMeKEYIzDlHen186R2JOMegrGdCyDjB EjRhHHDGx42ZaMuy5yyLI34E9jCZbTtGGwWAwQSQGHweLROTXPGYNGrKF2M15pfn8OmO r86SKOq1kSl5MvR++3oNXwUTevqI1krWB4lPPxlgOBN85UZhpvodGfk9ua35BXqkncn1 q/X2Lv08Y2n2fNFJnkMQl8/adOJlh1vqLhuvxukboiW/Clr/r25JOw3cbW3sbhntwCrf vOIhtTy8oNuENpOlfoKXGZLrYJsdKv4y1X8F5qcutBkKF9oxZB6iBqYLDf575UKe5yFm 2+bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=onitCBuokTYDXRoVEN/uFmLYnneMswAzM8mHLGXS6ho=; b=UTFdWOv020dviJObDgXWe4fulkRmMlgDQg8woBi9YLZRGlMkG+qhZysPeS8vNQVGvu pX1/mSEnzEmDCL8uYxwYGWXhxHw/KM72ehGfvsfM1bw2XJ2ReWDUoqz5CVgol9Z2fTlp 95JgP1ME9mBi1HOsLWBUoIxflbI/yd7d46fnxp7eIGArF2kRyXeLB1FEW7b8mCK+akVb eJKiCA4sZefy1L9oZlUFCP+qiQg2hq3+6Xrp7UG1IZfWlxxf4CsF9/Cz8CngLyYx7liU cPpXad4d3ZuqD1/5bQDEDbJ9gIYeH00X7E6eefmLZjFT+QIezN4RV1IfuZudhis88VGN v9HA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id by20si1247300ejc.239.2021.01.06.20.43.01; Wed, 06 Jan 2021 20:43:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726684AbhAGEjB (ORCPT + 99 others); Wed, 6 Jan 2021 23:39:01 -0500 Received: from mail-pg1-f178.google.com ([209.85.215.178]:45395 "EHLO mail-pg1-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726507AbhAGEjB (ORCPT ); Wed, 6 Jan 2021 23:39:01 -0500 Received: by mail-pg1-f178.google.com with SMTP id v19so3969127pgj.12; Wed, 06 Jan 2021 20:38:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=onitCBuokTYDXRoVEN/uFmLYnneMswAzM8mHLGXS6ho=; b=BZ0loy9elWAS3u7ETlMLcvGVyusKbQ/f7BOayRZ+Fy/rJxB7pG20wR06qH//rQsljf L2yQZczph8Vm4H/mZO5EHHVmVbJhDhWL62aV0s3OO0eCA2VpUUZeF5RNfBAt1KDkAbQS AAh0b3KjCvexE2GjC5V27gGYl5ECcw6t28yD5hwZtCicJLQbH+l9MSr6f2qekSXBQWjA i2iHE9Fljox4OIPu3hhdonk50NVB9V1OAk7MsgA9zX3cQMXCJwilcFKfzpF6Yb+GjEyB 9T9p9ka/lSNEmTQhm9chjSk+xI5+/rcjSOhsrNGuC8WjhDucSOj8RqtHoKX3mSgaERZx PvTw== X-Gm-Message-State: AOAM531TVTJQRaphUcq3HCYj8aO5Wcw/qpMimKl4Dqrg0XBk4pN73N7S /207o6+OWXShbrwfpcRJPcn8OdJP+bw= X-Received: by 2002:a63:6207:: with SMTP id w7mr3841pgb.164.1609994300199; Wed, 06 Jan 2021 20:38:20 -0800 (PST) Received: from localhost ([2601:647:5b00:1161:a4cc:eef9:fbc0:2781]) by smtp.gmail.com with ESMTPSA id 14sm3935019pfi.131.2021.01.06.20.38.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jan 2021 20:38:19 -0800 (PST) From: Moritz Fischer To: gregkh@linuxfoundation.org Cc: linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, trix@redhat.com, moritzf@google.com, Moritz Fischer Subject: [PATCH 0/8] FPGA DFL Changes for 5.12 Date: Wed, 6 Jan 2021 20:37:06 -0800 Message-Id: <20210107043714.991646-1-mdf@kernel.org> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a resend of the previous (unfortunately late) patchset of changes for FPGA DFL. This contains Matthew's changes to allow for more flexible discovery of DFLs. Xu's changeset adds support for DFL device drivers. Two of the first users are part of the patchset: dfl-emif a memory controller, as well as support for the NIOS N3000. Thanks, Moritz Matthew Gerlach (2): fpga: dfl: refactor cci_enumerate_feature_devs() fpga: dfl-pci: locate DFLs by PCIe vendor specific capability Xu Yilun (6): fpga: dfl: fix the definitions of type & feature_id for dfl devices fpga: dfl: move dfl_device_id to mod_devicetable.h fpga: dfl: add dfl bus support to MODULE_DEVICE_TABLE() fpga: dfl: move dfl bus related APIs to include/linux/dfl.h fpga: dfl: add support for N3000 Nios private feature memory: dfl-emif: add the DFL EMIF private feature driver .../ABI/testing/sysfs-bus-dfl-devices-emif | 25 + .../testing/sysfs-bus-dfl-devices-n3000-nios | 47 ++ Documentation/fpga/dfl.rst | 27 + MAINTAINERS | 3 +- drivers/fpga/Kconfig | 11 + drivers/fpga/Makefile | 2 + drivers/fpga/dfl-n3000-nios.c | 588 ++++++++++++++++++ drivers/fpga/dfl-pci.c | 165 +++-- drivers/fpga/dfl.c | 4 +- drivers/fpga/dfl.h | 85 +-- drivers/memory/Kconfig | 9 + drivers/memory/Makefile | 2 + drivers/memory/dfl-emif.c | 207 ++++++ include/linux/dfl.h | 86 +++ include/linux/mod_devicetable.h | 24 + scripts/mod/devicetable-offsets.c | 4 + scripts/mod/file2alias.c | 13 + 17 files changed, 1180 insertions(+), 122 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-bus-dfl-devices-emif create mode 100644 Documentation/ABI/testing/sysfs-bus-dfl-devices-n3000-nios create mode 100644 drivers/fpga/dfl-n3000-nios.c create mode 100644 drivers/memory/dfl-emif.c create mode 100644 include/linux/dfl.h -- 2.30.0