Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2991447pxb; Sat, 6 Feb 2021 15:33:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyCyZurnwbP4RNd5p+NQKNWTHBVIP2D3sRCWF82dzRhkBtediK4LGaVdrdL36I/IUcJF4c/ X-Received: by 2002:a05:6402:4312:: with SMTP id m18mr10353551edc.99.1612654431688; Sat, 06 Feb 2021 15:33:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612654431; cv=none; d=google.com; s=arc-20160816; b=ZlQVtgD7yMuck9u9k6jQWgesrVHMFhZZXmbdfbrOKdeXemATCT72wVx71Ocs0t22+1 x77/KmDPxE+ldy3o3K3hnTYLpnJb99J6ScuCvHU+l4LhfgX0MfnlrSbuSrWyT1yHkj/0 J6EjEPudfsXbSLbtIAv3UobiydtSR43IkEms64Tid4/Euh35/fXQN3X2bl3O7lR4kx0/ qQ44LjHKzp9LcpMFDBiNKt2uildVrtQujSQiZNxQYYZW2NRPVtglfz7qOAzv8W1Y3K5/ YMZT8Azvi2ahXsgwFFM7JLZ8qMtb2Pr7SvG39wTMdUOSeMFge+qmL+amawX8MGK8IEgr zk5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=zjYjcEofR6lNR/I0DZSWZ30pohQFASDcROijEHvASfk=; b=0u61VbXBHCx2S98gC+9g7bvREC+myejk9RNRZvPuA+C3AWElTBYjCF9e18HtdpMyif VVObTMlQuIwKs75c25ZQdB2m8z/0l0HxNjgsYFhVAjozkGbXCFhcNFRfJm5k68o8/Gnc hVD5Mzm1pZ+rgzy0F7HpNeZb9P8xS2VLrlu86FnMAbMkTmkXL0awT08/8xXnh1hRzl8U YThn81pvvJBzpWpwTE/LoC6uzik1XGWmxD5Yoio5vq0+ks2XVAnbZ19rW54oMPviPlKm Vbc21sor1jbjOWth2h97pOgKLkXvsrLAlWbbTP2obLpPn+IIIfV8ylSnnkoysMhatPNZ o9lA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id he39si7962213ejc.512.2021.02.06.15.33.25; Sat, 06 Feb 2021 15:33:51 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229719AbhBFXcA (ORCPT + 99 others); Sat, 6 Feb 2021 18:32:00 -0500 Received: from mail-wr1-f43.google.com ([209.85.221.43]:45467 "EHLO mail-wr1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229613AbhBFXb7 (ORCPT ); Sat, 6 Feb 2021 18:31:59 -0500 Received: by mail-wr1-f43.google.com with SMTP id m13so12567640wro.12; Sat, 06 Feb 2021 15:31:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=zjYjcEofR6lNR/I0DZSWZ30pohQFASDcROijEHvASfk=; b=ZoggzEQ+pvxS7xp7i5Esv0+Sjcv2zX818ixeZeR3RH9XEuuwPOR0jXnru6sHNdWItT ml23XMQqDA2wdQ2wBsLnA/NpBdWt6GU9ZMQKpagd5Gozst3hVyiHwPIpQC7ux+mxThlV 4Ik/55ywnhP/GTYs81gpAOetNyVHNp5FM0IsWkSiO6rKSIDzBh91E5WDV53DKyLf6IZX OfRqtSXmVAQ/Pq6T7pui8oddK3tnIaxYezwXx9HoP0v8oMgPjLI42h45Z3CVVsveCwgi 38DH05w0JwDJ+tcQH80fHLaUJmASfO76sEeh46Y2eEAaRbwt1AiSIuKWxmkH0MtfOXTF i+FA== X-Gm-Message-State: AOAM530YIkeF1G12DsvpT599iLQ4zRmEpFlVQATILRbASVyjiexMPSjY c1G6TGjZHaTBeX0UrYBPpBmbmAWfWsuuuTQK X-Received: by 2002:adf:f6d0:: with SMTP id y16mr3212434wrp.351.1612654277840; Sat, 06 Feb 2021 15:31:17 -0800 (PST) Received: from rocinante ([95.155.85.46]) by smtp.gmail.com with ESMTPSA id o124sm13395628wmb.5.2021.02.06.15.31.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Feb 2021 15:31:16 -0800 (PST) Date: Sun, 7 Feb 2021 00:31:14 +0100 From: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= To: Gustavo Pimentel Cc: 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 Subject: Re: [RESEND v4 4/6] Documentation: misc-devices: Add Documentation for dw-xdata-pcie driver Message-ID: References: <2cc3a3a324d299a096f1d3e682b2039d3537b013.1612390291.git.gustavo.pimentel@synopsys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2cc3a3a324d299a096f1d3e682b2039d3537b013.1612390291.git.gustavo.pimentel@synopsys.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Gustavo, [...] > +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. The driver does not seem to offer any parameters (aside of using sysfs for runtime settings), and it also seem to only print what it's doing when debug level is enabled - unless I am missing something? [...] > +Request to stop any current TLP transfer: > +- Command: > + echo 1 > /sys/kernel/dw-xdata-pcie/stop [...] When I do the following: # echo 1 > /sys/kernel/dw-xdata-pcie/write # echo 1 > /sys/kernel/dw-xdata-pcie/stop # cat /sys/kernel/dw-xdata-pcie/write Would output from cat above simply show "0 MB/s" then? I wonder how someone using this new driver could tell whether "write" or "read" traffic generation has been enabled aside of reading the sysfs files, would adding "/sys/kernel/dw-xdata-pcie/active" be an overkill here? What do you think? Krzysztof