Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp441086pxf; Wed, 7 Apr 2021 03:27:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygO+cVBgLTu/OZ22XayqD0y3rZOY7SDRl8iKtm+M+fieyBHeJWH7XtHL/ds6Cg9S+/VVrE X-Received: by 2002:a50:bb05:: with SMTP id y5mr1521463ede.384.1617791250221; Wed, 07 Apr 2021 03:27:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617791250; cv=none; d=google.com; s=arc-20160816; b=BMjhAmNj03hsihCJSzhQEjLclC6ffrgC3l777Ofe79O67MqFiqP07BSDQgIfvG6/Rv 5PZRHHgOGzyY7fRXun+WJBlZhZ0iDhtWXuOHq6XdxjLaDKlSxACS6+46L6e8iPnaAiox 8mrsVdu9dOT/Hr+c3BEcOjPNZ/dqjYpDiyqiZcDDQH7sgNsO88IeSN2URWWod/LPLnm/ xhJA3w/L3/eqWMX/IQvAPvg/vpR8EKIGwfrtiLrLrJ7Gb/jeyi7NzTABq8N+tpD1rV0k Vf5dLuiQSx9p5SYSWRzuLKTZ2W4Ct4qAlXzEb9s9yLPUvzJPC1oGEV0T6f/es7AHw0x9 Qopg== 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:dkim-signature; bh=5io0pNJf+Cq/0s6euLMYV9v8WiGnzUstWSZxAAvVHTE=; b=Js1XKX0xC5F2cADD17YIEyaC+ch6RHcQ7igywVymQ5s7BLnrAOk76f8b6Ur88WwWZG w76LtqHCkrzuzzJrj02lXwZ2mpL47heZB2ixtRFdoKiDbzScKAOQ6SgBY5c4VNDiXeF4 js26rzt9eKs8Na9F/RsEqQUFe1OWEh3z1/xx5PUwyYqo9JjaRcIZSxn6I7j/TA+97wz4 aWFzDONF1Z++U3bmeYM8qSywrEEpTX38tRmPqz88gKSfr7B2PzlpqNXdZZwOvbXoPhkI R7oY8XERazr1dTxd3fZPyona4F2iIxNfrd9arJ+787jty3bXQZ2jFYBe5+Mw4ham7i9S JtEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=GKx04BLX; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kq17si4622747ejb.48.2021.04.07.03.27.07; Wed, 07 Apr 2021 03:27:30 -0700 (PDT) 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; dkim=pass header.i=@synopsys.com header.s=mail header.b=GKx04BLX; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346960AbhDFR1O (ORCPT + 99 others); Tue, 6 Apr 2021 13:27:14 -0400 Received: from smtprelay-out1.synopsys.com ([149.117.73.133]:33570 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244754AbhDFR1L (ORCPT ); Tue, 6 Apr 2021 13:27:11 -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 3569240134; Tue, 6 Apr 2021 17:27:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1617730023; bh=bAyEykxMWczQn7uzGIiybS4PBoIvdMpiwexgJdlUBUU=; h=From:To:Cc:Subject:Date:From; b=GKx04BLXGPhFxQ2pyV/DRncPFKXpVU3ZoFYyx19XDR5lzeboS+Wis+JkUOvz8VwNG ytHo7WdYWM79piksT8mnVp2tvaVO2UBj/WYMim/pyYahklJaFBuIPtrZK4Q2jE4vxF kn4BylwbNuKUqqHtSLwyPc2b+Da3+6tIe2NcQHHgNEWGf3wo48Tht7He1WOhTNcjOg yULBcCjqc29I+8gRmyv3i3NnQvUzRt/iC+b5qyNPsP4aQwO6Vx9+i95RWFvyXpRfAx 33CTGrcqN5uHNFxj/Qjsv0coTLEw+WBzy97wwwEEeEcg/CeFuKs5oORv36qIp6Kzjg gbaEZlhtYhjGw== Received: from de02dwvm009.internal.synopsys.com (de02dwvm009.internal.synopsys.com [10.225.17.73]) by mailhost.synopsys.com (Postfix) with ESMTP id 98E71A022E; Tue, 6 Apr 2021 17:26:58 +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?= , Stephen Rothwell Cc: Gustavo Pimentel Subject: [PATCH v11 0/4] misc: Add Synopsys DesignWare xData IP driver Date: Tue, 6 Apr 2021 19:26:45 +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-kernel@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 V11: Fixed the documentation based on the warnings detected by Stephen Rothwell 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 Cc: Stephen Rothwell 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 | 64 ++++ Documentation/misc-devices/index.rst | 1 + MAINTAINERS | 7 + drivers/misc/Kconfig | 10 + drivers/misc/Makefile | 1 + drivers/misc/dw-xdata-pcie.c | 420 +++++++++++++++++++++++++++ 7 files changed, 552 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