Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3428854ybv; Tue, 25 Feb 2020 01:07:38 -0800 (PST) X-Google-Smtp-Source: APXvYqyP+i3plXz7S0AJ6b+uqvVjrsuLLEV694jlqmWVPYJQzBXdUn6b237zIDOzMdWqV1bGEcje X-Received: by 2002:aca:7244:: with SMTP id p65mr2546679oic.50.1582621658180; Tue, 25 Feb 2020 01:07:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582621658; cv=none; d=google.com; s=arc-20160816; b=RDNHeQeiVKJ3zKM9jsI7ADnVAIcEKRnCUj+hevhsO4vCOjSe09Vk5EljUmkzDsM+Zl 8c1W8uT4DjpWHh6H2E84spEEPYhObyayU8j1fVAlurrAm5lIvyKAWS9/2ouBLm0W1qOE iFqqEdLnwNFUybH3HcTbgqy21YQOwh1beqPZifj3DogKo6QOQlJ6egS9f6YWesUL/yEG XdlOFwzteQSoNnZI/yjHbFJMDKpfYJpSrFQ9xQ2fEZR/rmt5To/QPuda5CWXD5O6gS6m 3ZOnHrRSfh1jwtiXKlFU6bYPIo1TzpaBiHG6oIIRl3t6YNqeMXbEIFsEGRbkI/G/qxZw UjHw== 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=S9JO7kVucepr2c7FcYvWKG1W++5dKQhcs5rmNi9JnCQ=; b=HjGU3U0/+p4pIhBjIx1E7wjrQPFvSzhMwocpx79Gq9txBVJZMCQ0lijOOmWdx6fsBE KAzxyqzCtd818vm5ksi/5N0+YFHFuV2oe3t2ttXQuTgtN43L8EuPwZzBB3aFSVaodJDh wM8Za4zptLJ+Ax7BNlKyieGL0sEwPURBAeYNs67f6v14CyHMe44kJ8IaQT+eKNLd5HXT HDgIV/y5bpGFRb7lVELqM+w4TJcCloT7N2a8dO/ZCrM20TrNgGE3eTwB+G0PShzaUhCv Oz8Ys5ZHSn+upTk5bZAMtf5c75LOEZqmDO8jkmNhUSHO3CSdv0CEs1wVe82Ax/WE/h8N 8HXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=o2NK+KRa; 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 z20si5787520oib.26.2020.02.25.01.07.25; Tue, 25 Feb 2020 01:07:38 -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=o2NK+KRa; 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 S1729864AbgBYJHQ (ORCPT + 99 others); Tue, 25 Feb 2020 04:07:16 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:47740 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729393AbgBYJHP (ORCPT ); Tue, 25 Feb 2020 04:07:15 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 01P977uH037671; Tue, 25 Feb 2020 03:07:07 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1582621627; bh=S9JO7kVucepr2c7FcYvWKG1W++5dKQhcs5rmNi9JnCQ=; h=From:To:CC:Subject:Date; b=o2NK+KRa1IrpPenLR6X0crRq0B0cOTg0+6Lun6EQBUL42YzZv+7SaO49UTYmMJxhm T1GD278D27d/YxA3UmW+3W9ToN/PjmzLgd7DUsQhFG/bpitbJEvKO3X9ABuJlGoaIM y7I7UBXwZKs82JL/YwKnZS42Zf/q/5u/u3qtKJWg= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 01P9771J034879 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 25 Feb 2020 03:07:07 -0600 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Tue, 25 Feb 2020 03:07:07 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE114.ent.ti.com (157.170.170.25) 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, 25 Feb 2020 03:07:07 -0600 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 01P973Po052643; Tue, 25 Feb 2020 03:07:04 -0600 From: Kishon Vijay Abraham I To: Lorenzo Pieralisi , Arnd Bergmann , Andrew Murray , Kishon Vijay Abraham I CC: Greg Kroah-Hartman , Bjorn Helgaas , Alan Mikhak , , Subject: [PATCH 0/5] PCI: functions/pci-epf-test: Add DMA data transfer Date: Tue, 25 Feb 2020 14:41:25 +0530 Message-ID: <20200225091130.29467-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. 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