Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp506298ybv; Wed, 5 Feb 2020 09:18:55 -0800 (PST) X-Google-Smtp-Source: APXvYqxF95bs4cYoGtdcOFFkoX20pTxpfu5+GuG3c/FjnptyEnUEDV9MDD1o7+1H9Kf9I4HJEOia X-Received: by 2002:a05:6830:16d8:: with SMTP id l24mr26902070otr.268.1580923135755; Wed, 05 Feb 2020 09:18:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580923135; cv=none; d=google.com; s=arc-20160816; b=Dtvy5+yi+Wk7BA02kxUlADAsqvliBVvxX9FE2ItGIdyRpjv2YyCjgl7GMLRAqmFl21 zMjTTEkPwRarnPu6PVdJdLrIoH5bFAZErtXShg2XBSL8+lrfaBaAAwUKeoqFOewvMJld eOqErI9XQiLc//pZP3hmzchU2QDIHMyKfvNDTNvL8UmplfRlIzy73rbEs+gynFTgoKlp yJz48G1200x0Axo6w4tvrWldLvBE2Jccn2EbXXNpodolDAYpuJ6P+UfL32beQQqmJZFZ cNiAJKnd6gL4hjig82o9jGhPeLgjxVqwuTl0PLxo4roL/hKlGn9h1FdezZFtoE6qzPzf 3Vhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=fJZwWhExGC98e9aHuYaOiWB7cCCXGncBoKgbfkR3SFw=; b=Wedgu44RwaVxgzSyPAODEYzXmZVsSIhtxovuGBst9S8Np1Y2SjASrZIXY5iruJOazL vpedxv7SFEpOnppXywUZTmRIkraodtzn1Aki/KG9OJj8kaIgdQWmYmIKm2tTt+XdYzi8 6Md1lgMKXsmoFZDauRoO39SVd2E41ijuMgjRM/sFQYn47WfYQJEvjCyUkLj1ArY7sWYK 96NGO7Xe/nCDTAzydOwBGThZJ0FASUSclaEnTgQcImusWvl6IKegGzHfX7Qempp2SF1Y eDG849Qs/3+xM2zna+clodsylVuHjsTJeDVj6qUm9E/pRNAJEbb0CzCvIzanZJ20KhAM ExUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=SjedPgum; 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 d19si48126ote.3.2020.02.05.09.18.42; Wed, 05 Feb 2020 09:18:55 -0800 (PST) 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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=SjedPgum; 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 S1727331AbgBERRj (ORCPT + 99 others); Wed, 5 Feb 2020 12:17:39 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:33874 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726748AbgBERRj (ORCPT ); Wed, 5 Feb 2020 12:17:39 -0500 Received: by mail-pl1-f195.google.com with SMTP id j7so1146711plt.1 for ; Wed, 05 Feb 2020 09:17:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=fJZwWhExGC98e9aHuYaOiWB7cCCXGncBoKgbfkR3SFw=; b=SjedPgumfmxdG2Y8jo8GTe1H24QrbXTwewSQFkh3DXY7OSdTUVzu2vr2ig944LvCKH M6eQXMsToWaexKnLctEWeod30iTV7u1aKxTPnfDPtzceRrWorzfxdBkigS1SV6ac3pZ4 gu2pAm3A8rVVreHk9L1EnmE9YSQOtNguk6jiZh4TCjjAo6qRObJjzn7WIOi5Y0nejZkn dr8/itsNpKHdSZ8ehMcwU/4xiOdvyDn6RrdYSKSgrXc6CuajAhT+xBBuFfBDWXMF8u40 Q6EMqr0ptnj4NAgCoA7jCdeNtQlh++6gy8ef9G2eCRA1hyfb2ng7Npp90bL9YmkX8UOn q5TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=fJZwWhExGC98e9aHuYaOiWB7cCCXGncBoKgbfkR3SFw=; b=cG/pC9pdVshnCeE0u9DUujV1/OrW7e0QXmn+MZ73Ww1b+BJxvUNcJeYaIXU3yn3mQ7 jqU4B43NvpZdAgG72cSfIdZgZEIXPfXZW9kiewKbVPuqGMntbL9h39YUyJlcAkLszF/V E7LMq6IkrssL/LnVU/trrCUFJ/4Ivkx5pGYZ/z/Sa68vIYaEJlNT/27uZbbQbcPphflA AnM5CKixd944ZRtUs8IJrWc2GtLqGD/OqCNs/zpn8Klo68vwmHfStdg2+S4wPtZ53adu 05j+cHu8cGqFKjGBGSesQ625i//DIzKSsVwy3Nqs0Kip1jSy9iRa89zKB18k0pVFBiqJ rBaQ== X-Gm-Message-State: APjAAAWN9WHKCM1oc9XQHIzj/8o/ZFLdjy4PFXYqkIb5aFmzfrdctVNI gkqDMbzBsfemRRgdr6opsvo= X-Received: by 2002:a17:902:8682:: with SMTP id g2mr35181161plo.336.1580923058663; Wed, 05 Feb 2020 09:17:38 -0800 (PST) Received: from emb-wallaby.amd.com ([165.204.156.251]) by smtp.gmail.com with ESMTPSA id l8sm357945pjy.24.2020.02.05.09.17.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Feb 2020 09:17:37 -0800 (PST) From: Arindam Nath To: Jon Mason , Dave Jiang , Allen Hubbe , Sanjay R Mehta Cc: linux-ntb@googlegroups.com, linux-kernel@vger.kernel.org, Arindam Nath Subject: [PATCH 0/4] ntb perf and ntb tool improvements Date: Wed, 5 Feb 2020 22:46:54 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series modifies the ntb perf code to have separate functions for CPU and DMA transfers. It also adds handling for -EAGAIN error code so that we re-try sending commands later. Fixes have been made to ntb_perf and ntb_tool to use 'struct device' associated with 'struct pci_dev' rather than 'struct ntb_dev'. The patches are based on Linus' tree, git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Arindam Nath (2): ntb_perf: refactor code for CPU and DMA transfers ntb_perf: send command in response to EAGAIN Sanjay R Mehta (2): ntb_perf: pass correct struct device to dma_alloc_coherent ntb_tool: pass correct struct device to dma_alloc_coherent drivers/ntb/test/ntb_perf.c | 168 ++++++++++++++++++++++++++---------- drivers/ntb/test/ntb_tool.c | 6 +- 2 files changed, 126 insertions(+), 48 deletions(-) -- 2.17.1