Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp651083pxb; Wed, 3 Feb 2021 14:16:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQKcwbI+teQcSgSWAzSKIb2ZgEvfFdO8j8s0a3HN8reT0k0890c9QuvSceA85QPJbLijCz X-Received: by 2002:a17:906:1712:: with SMTP id c18mr5387602eje.417.1612390590600; Wed, 03 Feb 2021 14:16:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612390590; cv=none; d=google.com; s=arc-20160816; b=MOjWNCvqfEEZwofZnVv4TKH5lufeGvPUV21lizYXOh20Mn97qBC75TYshkkrqKwx5y T5qRPPFup1E5tzRCZaGB4DVtu20AAv6vkI1e3yMrme/tL95urPoe7gepuTPh9K8dv7qO ePgDk9P288AUewPh20OaTZe09Dg0QIjnKGqJN0OVVY0DzwNPckNVM7OnM1WvU/ylVAGS DCbz0xcQ/6tXJemIJscMhkHke9hLSfdU2r6mpQ4jF/pVPLZCZLkxzOxA2ZtmCE9aOQgB 0pAOhD0qVZm5deaFzTYElgI2eb+JIhqc9JBDE9Ai6li/uum2OxdHqQGz4wJaaHfvRmxX ofzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=nLLmecPPilTs3kjQ9ceX8T9nySgoMwyMSBlJXoufFdU=; b=BSDemvN3bcwjfPubCNq89+GAyz1Jzg4t1HMtcDPY8Ggitvst67kMtXElieDmnJKo0q hmQOVrIXUF/tfHmJM+Mmi4WUPn5KsW9h2WDnw7iFCT7mhGzFVEAya5uSMiXpZaoLs9rW u5A4i0ZQh/Q/V5QLlySnM0mKGVoSUmY4/di6Lk50pfChHDySt7hj/QfktxEdr2ijZwbT NnGMpC1jqzpjVMT+8fcfQqFov3DDVv4H3ed8EPUVSIWr55uuyrAL56d9RSW7Fn26YmnQ o1dRdGMv87RkwfVOhshbkWUjMOH2cqh+8yp3QwpaN4mF67+3yyugsaUQC1IB5FGCYwC7 Bzsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b="SIwXnq5/"; 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=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g5si2236523ejw.275.2021.02.03.14.16.05; Wed, 03 Feb 2021 14:16:30 -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; dkim=pass header.i=@synopsys.com header.s=mail header.b="SIwXnq5/"; 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=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233137AbhBCWOY (ORCPT + 99 others); Wed, 3 Feb 2021 17:14:24 -0500 Received: from smtprelay-out1.synopsys.com ([149.117.87.133]:53092 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232462AbhBCWN6 (ORCPT ); Wed, 3 Feb 2021 17:13:58 -0500 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 4D5E7C0117; Wed, 3 Feb 2021 22:12:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1612390377; bh=xjFl0ry1f4kLV7eWV2SxeXcHKekFmdWi7FGEn+fooAU=; h=From:To:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=SIwXnq5/2CBgH+y1FpPEN0slnm3mV9v12QurVd1lrqJThBkgfZUjC1E8XyuhF0JAd 13UbjwCEL1StEjf2+qKi52UjQIErY9PIySjwyUIubg1qX1HTmgFWxj7YTErL94rO61 M3qUZA5IkFg2CLCGFYLiyp5OZTdHfPFBQuNR1bQ/s1naLWPPlQTNw6XcnaYYUgnrds nGs86CukOR9I9NR8zahahZiW8psrLyDHj+AArxI2nzx1r6SXCLRq7D4EuTVArh1rO5 cdc3dbDnRqZOpYJMU48GBwySjcAsfm2iDauMAUGs81JrdGD/EmAW19Qu1oWxlzyHuq xZmlrqTacXHEA== Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by mailhost.synopsys.com (Postfix) with ESMTP id 1E430A024B; Wed, 3 Feb 2021 22:12:56 +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 , Gustavo Pimentel Subject: [RESEND v4 4/6] Documentation: misc-devices: Add Documentation for dw-xdata-pcie driver Date: Wed, 3 Feb 2021 23:12:49 +0100 Message-Id: <2cc3a3a324d299a096f1d3e682b2039d3537b013.1612390291.git.gustavo.pimentel@synopsys.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add Documentation for dw-xdata-pcie driver. Signed-off-by: Gustavo Pimentel --- Documentation/misc-devices/dw-xdata-pcie.rst | 40 ++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/misc-devices/dw-xdata-pcie.rst diff --git a/Documentation/misc-devices/dw-xdata-pcie.rst b/Documentation/misc-devices/dw-xdata-pcie.rst new file mode 100644 index 00000000..3af9fad --- /dev/null +++ b/Documentation/misc-devices/dw-xdata-pcie.rst @@ -0,0 +1,40 @@ +.. SPDX-License-Identifier: GPL-2.0 + +=========================================================================== +Driver for Synopsys DesignWare PCIe traffic generator (also known as xData) +=========================================================================== + +This driver should be used as a host-side (Root Complex) driver and Synopsys +DesignWare prototype that includes this IP. + +The "dw-xdata-pcie" driver can be used to enable/disable PCIe traffic +generator in either direction (mutual exclusion) besides allowing the +PCIe link performance analysis. + +The interaction with this driver is done through the module parameter and +can be changed in runtime. The driver outputs the requested command state +information to /var/log/kern.log or dmesg. + +Request write TLPs traffic generation - Root Complex to Endpoint direction +- Command: + echo 1 > /sys/kernel/dw-xdata-pcie/write + +Get write TLPs traffic link throughput +- Command: + cat /sys/kernel/dw-xdata-pcie/write +- Output example: + 204 MB/s + +Request read TLPs traffic generation - Endpoint to Root Complex direction: +- Command: + echo 1 > /sys/kernel/dw-xdata-pcie/read + +Get read TLPs traffic link throughput +- Command: + cat /sys/kernel/dw-xdata-pcie/read +- Output example: + 199 MB/s + +Request to stop any current TLP transfer: +- Command: + echo 1 > /sys/kernel/dw-xdata-pcie/stop -- 2.7.4