Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3255557ybf; Tue, 3 Mar 2020 02:34:10 -0800 (PST) X-Google-Smtp-Source: ADFU+vsp7IrDCDOoL937VukL9Gzf4jKDEEWO3QYVzAAsk6aIhmntGbpTn5MALwgmK7w1HzENQsMG X-Received: by 2002:a9d:6a43:: with SMTP id h3mr2938256otn.55.1583231650817; Tue, 03 Mar 2020 02:34:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583231650; cv=none; d=google.com; s=arc-20160816; b=xjQKUl2eGAoNS2O65i4G0/RVxmTwAl6wxNjTaLGb+k7nnCelH7iuSWciwnLZhdB2Cj AVJUbTDV1djTUbxPwHz10kB0KfiCM2HgLWpvloxSk7To1etlbDJ6Ax/UyyJ81DtDAUJ3 CIjcj9kduAk+KWns+eu01/cIBIuzGKhDkkzn9rrQoMPUKy0ycH3yoKul/A5i1QTVHRDu 3i4WP75qy5MCm70zVC2bL1mrA69gnkdp1ItY86GCW3Dm8/U85DVG5OYDkBDP9MOggIvZ UevjP9T0QBG/eCbdwEMaMY6Kw3+CovXqrHzPz551+ObndFBHT5N1khrukCeDyZ8w3Uu4 Ys+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=H23/C9c6D1Bn7rFt5P52oUsGTGwNGkRyxfjO34gCRzc=; b=sjaMG+hj4FAwNCS5VXVxFOl1UstJ/J3nKeeHbAFxG7bJAdm6stegvE+Fis99WBRFx4 cRDOAE0y8T3RmaBZtTDUDBYAsnZtoFaIzDa2WEK7eLpRqNjz+2biuwSDF/KV3f3u5oQf 42KRtwb3Q4sokhU/vbUIKqL6O3hhAEWWHuoqF++1xa5E93rvRuBiH0zHS7fw82rm7wFy 1Kbr+StzCLrMRLhNr/ePy+dvzfg03Q2u/6vPzTfXyycmZbxQWMx6je874G6RHTePMY9p 0S3nOALYtHbvWaAhZqiasMt9dwgDIXJND9fmzKucZ2ZDuDOik01dfMAGtDTDuqh7TJVp 1KhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=VFKQTpXi; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1si8248885otk.42.2020.03.03.02.33.58; Tue, 03 Mar 2020 02:34:10 -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=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=VFKQTpXi; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728716AbgCCKdd (ORCPT + 99 others); Tue, 3 Mar 2020 05:33:33 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:50054 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728426AbgCCKdd (ORCPT ); Tue, 3 Mar 2020 05:33:33 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 023AXMFu005259; Tue, 3 Mar 2020 04:33:22 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1583231602; bh=H23/C9c6D1Bn7rFt5P52oUsGTGwNGkRyxfjO34gCRzc=; h=From:To:CC:Subject:Date; b=VFKQTpXi/80VK2MnN/qbPYsMYvGxB/0mL7cf3fYGW9RoLsmJaReCFxMQQwNT9dXBW hW1Lbp2WG31Vtx39Z7dT9qJMLBaLR1CFRktt0NDrOHS3uma/uhMEU5lRn3pfrlDBrM 8k6euOn/HIURI+6xrDbM/mYdlfw67AdTcUXc2aWA= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 023AXMuB105817 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 3 Mar 2020 04:33:22 -0600 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Tue, 3 Mar 2020 04:33:22 -0600 Received: from localhost.localdomain (10.64.41.19) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Tue, 3 Mar 2020 04:33:22 -0600 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by localhost.localdomain (8.15.2/8.15.2) with ESMTP id 023AXJvb114370; Tue, 3 Mar 2020 04:33:19 -0600 From: Kishon Vijay Abraham I To: Bjorn Helgaas , Andrew Murray , Alan Mikhak , Lorenzo Pieralisi CC: Tom Joseph , Greg Kroah-Hartman , , , Kishon Vijay Abraham I Subject: [PATCH v2 0/5] PCI: functions/pci-epf-test: Add DMA data transfer Date: Tue, 3 Mar 2020 16:07:47 +0530 Message-ID: <20200303103752.13076-1-kishon@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Patch series uses dma engine APIs in pci-epf-test to transfer data using DMA. It also adds an option "-d" in pcitest for the user to indicate whether DMA has to be used for data transfer. This also prints throughput information for data transfer. Changes from v1: *) Fixed some of the function names from pci_epf_* to pci_epf_test_* since the DMA support is now been moved to pci-epf-test.c Kishon Vijay Abraham I (5): PCI: endpoint: functions/pci-epf-test: Add DMA support to transfer data PCI: endpoint: functions/pci-epf-test: Print throughput information misc: pci_endpoint_test: Use streaming DMA APIs for buffer allocation tools: PCI: Add 'd' command line option to support DMA misc: pci_endpoint_test: Add support to get DMA option from userspace drivers/misc/pci_endpoint_test.c | 165 ++++++++++-- drivers/pci/endpoint/functions/pci-epf-test.c | 253 +++++++++++++++++- include/uapi/linux/pcitest.h | 5 + tools/pci/pcitest.c | 20 +- 4 files changed, 412 insertions(+), 31 deletions(-) -- 2.17.1