Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp2345979ybm; Thu, 23 May 2019 15:33:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCKpvsvjP3in9m+zHjOM+ZXtrYCp3xHr4L3YB6kaCTKz7lwC0UhOjtRLqnALp01/IyK6nf X-Received: by 2002:a62:5f42:: with SMTP id t63mr65657056pfb.83.1558650794336; Thu, 23 May 2019 15:33:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558650794; cv=none; d=google.com; s=arc-20160816; b=HhEkiriPca8fA8lfxkst/fctkIjUNPCuF0/gDo2ZlDFfYxsoisP8mZces7/D21Ju2E GoRwLul+fkFfmvb22G/aIBBTAcwV53HfMq15BOHfLcWS45YEWQZ3XBWyv905H/Y33iiy EbzYJkA4kv1lBatmC8OJMiQupyF6068DoqmVwclb+N6UldyGEuRscwS7vShrgMMCLhTC fHumuUJZAktfjbmvudSn4zBo+VVMvbFfcwJDckZM5ONMmb1YsF510naPkSVMiQjIKHV2 ZOnVPTUcYw5v7qv7cUfkVWZlL1L9ZPtK7MXUFOkfaWChkYUQfMhAnEzE2Kog9XtFpDES kXAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:cc:to:from; bh=pYbWxQ1Ttq+XYbZHEsrH77MuzZUDWgqUxd70vw9q96U=; b=bh0I8RiJzn+N7+Gn9mTxqd2EJmYN4lUxKVVCzT7jh4K++M1bhsVz76aPC9cIFTiIgt BBvey6X1KQp6WHhq+bOrJzJvSvBiafu8Ec1g5ZhtiFJUZvw1Mgp1Sxjg5suzHSkC9cVS XDpUt7yfO5X4fnEoXVKqPW8OunYeUSX3mc6Tm6d9IyuqK+1KZ/4X8lF9AlrD+dfgcmCm laaDbHszMfGKcFBi2BkVHCWPiE+5FvY7gG6Z62GQTBstkpj/BXdoTlylBFFpOPF7rObW 7ixQ2wF1hZ4hwdMa1KHYEouQ8rcuQ7Su+yLiqsinKz2nXKT0dm2P7A3PMCdZUNf3pB0m zOxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j5si1343438plk.229.2019.05.23.15.32.56; Thu, 23 May 2019 15:33:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388632AbfEWWb1 (ORCPT + 99 others); Thu, 23 May 2019 18:31:27 -0400 Received: from ale.deltatee.com ([207.54.116.67]:60076 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388554AbfEWWbP (ORCPT ); Thu, 23 May 2019 18:31:15 -0400 Received: from cgy1-donard.priv.deltatee.com ([172.16.1.31]) by ale.deltatee.com with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hTwEv-00062W-R4; Thu, 23 May 2019 16:31:13 -0600 Received: from gunthorp by cgy1-donard.priv.deltatee.com with local (Exim 4.89) (envelope-from ) id 1hTwEq-0001ST-L6; Thu, 23 May 2019 16:31:04 -0600 From: Logan Gunthorpe To: linux-kernel@vger.kernel.org, linux-ntb@googlegroups.com, linux-pci@vger.kernel.org, iommu@lists.linux-foundation.org, linux-kselftest@vger.kernel.org, Jon Mason , Joerg Roedel Cc: Bjorn Helgaas , Allen Hubbe , Dave Jiang , Serge Semin , Eric Pilmore , Logan Gunthorpe Date: Thu, 23 May 2019 16:31:00 -0600 Message-Id: <20190523223100.5526-11-logang@deltatee.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190523223100.5526-1-logang@deltatee.com> References: <20190523223100.5526-1-logang@deltatee.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 172.16.1.31 X-SA-Exim-Rcpt-To: linux-ntb@googlegroups.com, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-kselftest@vger.kernel.org, jdmason@kudzu.us, joro@8bytes.org, bhelgaas@google.com, dave.jiang@intel.com, allenbh@gmail.com, fancer.lancer@gmail.com, epilmore@gigaio.com, logang@deltatee.com X-SA-Exim-Mail-From: gunthorp@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.7 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE,MYRULES_NO_TEXT autolearn=ham autolearn_force=no version=3.4.2 Subject: [PATCH v5 10/10] NTB: Describe the ntb_msi_test client in the documentation. X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a blurb in Documentation/ntb.txt to describe the ntb_msi_test tool's debugfs interface. Similar to the (out of date) ntb_tool description. Signed-off-by: Logan Gunthorpe --- Documentation/ntb.txt | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Documentation/ntb.txt b/Documentation/ntb.txt index a043854d28df..802a539f1592 100644 --- a/Documentation/ntb.txt +++ b/Documentation/ntb.txt @@ -194,6 +194,33 @@ Debugfs Files: This file is used to read and write peer scratchpads. See *spad* for details. +NTB MSI Test Client (ntb\_msi\_test) +------------------------------------ + +The MSI test client serves to test and debug the MSI library which +allows for passing MSI interrupts across NTB memory windows. The +test client is interacted with through the debugfs filesystem: + +* *debugfs*/ntb\_tool/*hw*/ + A directory in debugfs will be created for each + NTB device probed by the tool. This directory is shortened to *hw* + below. +* *hw*/port + This file describes the local port number +* *hw*/irq*_occurrences + One occurrences file exists for each interrupt and, when read, + returns the number of times the interrupt has been triggered. +* *hw*/peer*/port + This file describes the port number for each peer +* *hw*/peer*/count + This file describes the number of interrupts that can be + triggered on each peer +* *hw*/peer*/trigger + Writing an interrupt number (any number less than the value + specified in count) will trigger the interrupt on the + specified peer. That peer's interrupt's occurrence file + should be incremented. + NTB Hardware Drivers ==================== -- 2.20.1