Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp305114pxb; Thu, 19 Nov 2020 01:25:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzlYD7l/arfX5Cu73CGGW3umk5bkbTenPIX9Z89A5CMb/tluIq0sge8g+YYDA9zU7qrvzzz X-Received: by 2002:a17:906:c357:: with SMTP id ci23mr26512260ejb.311.1605777931051; Thu, 19 Nov 2020 01:25:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605777931; cv=none; d=google.com; s=arc-20160816; b=leG9G5EXh5SXiDDF011fPvIz/nVYpdTgtk3NJ/AbBU6oycrrTWVUiciCrRVpDe8ubH q0Z3st3wvMLRsLpL2DGZy9OzIoo+8rfxp1TiiT3GRx+DiO49fllegUM+d/j/1jQxr4dd 73ZyDU9uU6GxH5L21iZ7ETfdrW+AIPp1aKQH54+Y+ptbAiAWh5S/lTfVhC7uHC+ltpOX EO/kyIkK4J18tCfXAIwjA/E/fEvsv3CIeja5XTBewiGNzA86iUZ/XwAwkgzJbhBzD3PF vN+xPgd1dXABwozuRZHSdJ+WixOWXsY7QHJDmBUNb3cs0mujIalVY7rgmOpVCGTBGz2h 8QYQ== 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:cc:to:from:dkim-signature; bh=nLLmecPPilTs3kjQ9ceX8T9nySgoMwyMSBlJXoufFdU=; b=mD69SrJUnYDmNEHkE6UY81Wa/4pUVVXNCFQN06fTJktbiJXMD0uRAPWwxP3k4Wm3Ax 5ti/+KzZUPbO25Ck+3UaCMsNd/uM4NfqVh3YfV4EcvQaCCm9G40IFIWzgaiOORQRzNDw 3iP0gP3bhes+hRAHvhzaS2M43fXjzBmJNwEs93EBTf5MQJ7FVJdrX/D2roVuEbl+mEDi EwPH+JAe34+W7LWnZumS9E+ceml4fHEU58aroDKSvZCalEI+D8jdIZJEGB3Nj7t5cFsV KAQ+182ccDONc0WV7VqvXZni11HKH273c4zRdLehASAB2hTcsPJc2EkCL+GKcvZaA+oX KcyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=T9Ub142q; 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 p13si7083747edm.325.2020.11.19.01.25.08; Thu, 19 Nov 2020 01:25:31 -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=T9Ub142q; 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 S1726871AbgKSJUN (ORCPT + 99 others); Thu, 19 Nov 2020 04:20:13 -0500 Received: from smtprelay-out1.synopsys.com ([149.117.87.133]:60932 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726775AbgKSJUC (ORCPT ); Thu, 19 Nov 2020 04:20:02 -0500 Received: from mailhost.synopsys.com (mdc-mailhost2.synopsys.com [10.225.0.210]) (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 57587C00D3; Thu, 19 Nov 2020 09:20:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1605777601; bh=xjFl0ry1f4kLV7eWV2SxeXcHKekFmdWi7FGEn+fooAU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=T9Ub142qNBOEI8oeGn3R1JchqL9Fw7omVrCZs8iRY9lEkYJ//r/Xhq85SbW4Xhixa brokZbVEyhYs/u1PyXUCgaKR0d0aEhkg3u41+vaLYYqYFncJl2QMWosX8OpMvaH1M9 J4LTWKnDxyif36NZ6kkU1rTNO4Vey4CdERx8XVLKvbaESOy0WSrMbh4xe3JGTZNklJ a0l72RlkvhZFS4U8uEqUGGoOYuQmhxOeo2iPC8VlbhI/o8/Wk+2g+D2/Z8JIGgSPPH vp1N8ntxjX6+IaDytpkLY2CDYBcnHpFo3Z2unLv1GnJP6Du6/hksDWn+VSWAFt8QGL Cmd6XkKbIaIQg== Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by mailhost.synopsys.com (Postfix) with ESMTP id 148BBA005E; Thu, 19 Nov 2020 09:20:00 +0000 (UTC) X-SNPS-Relay: synopsys.com From: Gustavo Pimentel To: Gustavo Pimentel , Jonathan Corbet Cc: Joao Pinto , linux-pci@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 4/5] Documentation: misc-devices: Add Documentation for dw-xdata-pcie driver Date: Thu, 19 Nov 2020 10:19:41 +0100 Message-Id: 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