From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7890AC433E1 for ; Mon, 29 Mar 2021 11:19:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4BDE861969 for ; Mon, 29 Mar 2021 11:19:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232800AbhC2LSd (ORCPT ); Mon, 29 Mar 2021 07:18:33 -0400 Received: from smtprelay-out1.synopsys.com ([149.117.73.133]:46712 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232440AbhC2LSB (ORCPT ); Mon, 29 Mar 2021 07:18:01 -0400 Received: from mailhost.synopsys.com (mdc-mailhost1.synopsys.com [10.225.0.209]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id B6F9040527; Mon, 29 Mar 2021 11:17:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1617016681; bh=jxvCWHeUP7OBU0/nSNL0s/JTwcw/9mZBV1eScgXANo0=; h=From:To:Cc:Subject:Date:From; b=CwBX5cz+NdGDyNNhHdtFZ0Y4y8hMuXr5jY8yBSz6riKlExLuwoIqPUj2XVg+8ELXr TCAmTx/1X1B1bAt3l9qzyZ1jAsfRjgCqCQTjM9/8QSP5NHC6kNKUc//+L4Pvs1sfDu bupi5e+EJA8Pgzteg+Iax6O0nM7v6MKmOw0rzlGwshwthOX4mRRpNr3aXRD5GVZBXt yMFmoU73kuxgaK7H3lCAWir/RJo8jupklvxAzLQvbBPbJPzVxcV6REMprCgfzug92U 5iZMlg9XnUVNENWxzvR4855vdTf4wWhMZ9+3gYTG18Jn77ClX5h0Eg3qBzwoT7xmpm EREP+Zqp6YMtQ== Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by mailhost.synopsys.com (Postfix) with ESMTP id 96734A022E; Mon, 29 Mar 2021 11:17:55 +0000 (UTC) X-SNPS-Relay: synopsys.com From: Gustavo Pimentel To: linux-doc@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Derek Kiernan , Dragan Cvetic , Arnd Bergmann , Andrew Morton , Greg Kroah-Hartman , Jonathan Corbet , Bjorn Helgaas , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= Cc: Gustavo Pimentel Subject: [PATCH v10 0/4] misc: Add Synopsys DesignWare xData IP driver Date: Mon, 29 Mar 2021 13:17:44 +0200 Message-Id: X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=y Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org This patch series adds a new driver called xData-pcie for the Synopsys DesignWare PCIe prototype. The driver configures and enables the Synopsys DesignWare PCIe traffic generator IP inside of prototype Endpoint which will generate upstream and downstream PCIe traffic. This allows to quickly test the PCIe link throughput speed and check is the prototype solution has some limitation or not. Changes: V2: Rework driver according to Greg Kroah-Hartman' feedback - Replace module parameter by sysfs use. - Replace bit fields structure with macros and masks use. - Removed SET() and GET() macros by the writel() and readl(). - Removed some noisy info messages. V3: Fixed issues detected while running on 64 bits platforms Rebased patches on top of v5.11-rc1 version V4: Rework driver according to Greg Kroah-Hartman' feedback - Add the ABI doc related to the sysfs implemented on this driver V5: Rework driver accordingly to Leon Romanovsky' feedback - Removed "default n" on Kconfig Rework driver accordingly to Krzysztof Wilczyński' feedback - Added some explanatory comments for some steps - Added some bit defines instead of magic numbers V6: Rework driver according to Greg Kroah-Hartman' feedback - Squashed patches #2 and #3 - Removed units (MB/s) on the sys file - Reduced mutex scope on the functions called by sysfs Rework driver accordingly to Krzysztof Wilczyński' feedback - Fix typo "DesignWare" V7: Rework driver according to Greg Kroah-Hartman' feedback - Created a sub device (misc device) that will be associated with the PCI driver - sysfs group is now associated with the misc drivers instead of the PCI driver V8: Rework driver according to Greg Kroah-Hartman' feedback - Added more detail to the version changes on the cover letter - Squashed patches #1 and #2 - Removed struct device from the dw_xdata_pcie structure - Replaced the pci_*() use by dev_*() - Added free call for the misc driver name allocation - Added reference counting - Removed snps_edda_data structure and their usage Rebased patches on top of v5.12-rc4 version V9: Squashed temporary development patch #5 into the driver patch #1 V10: Reworked the write_store() and read_store() to validate the input using kstrtobool() Removed stop_store() Update ABI documentation accordingly Cc: linux-doc@vger.kernel.org Cc: linux-pci@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: Derek Kiernan Cc: Dragan Cvetic Cc: Arnd Bergmann Cc: Andrew Morton Cc: Greg Kroah-Hartman Cc: Jonathan Corbet Cc: Bjorn Helgaas Cc: Krzysztof Wilczyński Gustavo Pimentel (4): misc: Add Synopsys DesignWare xData IP driver Documentation: misc-devices: Add Documentation for dw-xdata-pcie driver MAINTAINERS: Add Synopsys xData IP driver maintainer docs: ABI: Add sysfs documentation interface of dw-xdata-pcie driver Documentation/ABI/testing/sysfs-driver-xdata | 49 ++++ Documentation/misc-devices/dw-xdata-pcie.rst | 40 +++ MAINTAINERS | 7 + drivers/misc/Kconfig | 10 + drivers/misc/Makefile | 1 + drivers/misc/dw-xdata-pcie.c | 420 +++++++++++++++++++++++++++ 6 files changed, 527 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-driver-xdata create mode 100644 Documentation/misc-devices/dw-xdata-pcie.rst create mode 100644 drivers/misc/dw-xdata-pcie.c -- 2.7.4