From patchwork Mon Dec 30 12:33:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 182604 Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp6282823ild; Mon, 30 Dec 2019 04:31:31 -0800 (PST) X-Google-Smtp-Source: APXvYqy3N2OrYJX6aU/oIaJs2Uiulya9KiCFuSI+nYflakF53jzz0yAR/fM7TziaqvbOFw6xcXyH X-Received: by 2002:a05:6830:128e:: with SMTP id z14mr71430888otp.184.1577709091308; Mon, 30 Dec 2019 04:31:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577709091; cv=none; d=google.com; s=arc-20160816; b=Czp64y067615vBnGA1kYCJMqZ360Dzragt2oCQSS6CcwtIfc8L+PES4k5e9eCKUf+U my3Z0AjpMswavZyUkOxarkyYwFuyGuCiR+LWYqtyjxaA4BHYbI85I1TIyBnyEQkuqj8U bH3TQWQ+6iSSKlLD/A2CtYuBA/x+CdR0PHWJEQk964corVJSmRLP5732jEHCd5MOdOSx x2rOA2tYF4cavafTX3Oxghp2ARkbR78NT+fQyggv3Hf+G88CwQYqBKhs4bt+qcM6HGdG rX3B9OHC1BlDFFlf8/x81EjfDiG78klWT4U4i8cat+vHU0hC/KfcZIYCbmBrmLNHJ2rV NJaw== 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=h1bBuCCt5p3npXFEeqmlW/XTH5HMdwLY7PMMhaC3OJs=; b=DmO60nduvkJdL3rX4fmK4kmNUmAJfhOJe020O+7sFYIU2lOJqyiSjaBBoVwnmsXj2P t5EVkOGhTDqlQd7gtsnRa7BX3DcY06on9S38Wf33rBEBOjvmgyUQnxFHCyt7bwqkCxLe DpA4x5CCL/e6aXmqVFE4wee/1yij0XFr1iVFtGsX+sZ8Cl1VuOFtxGPEmJ/qQ7yc+pRW y4bbwI1vCbi6amkhQ5WNFPD4a6iKT53LLmkn6MOoA2iKxRgU8W6z8IevPunOa0excwQy cQoTWLCQfT7hyLErnEo99ruDf9xhvOOpViWS+0zTmHHz4Lamj4DuIndR9DgmTznjPssn KDCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=HoGPOyLw; 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 i11si22666007otc.105.2019.12.30.04.31.30; Mon, 30 Dec 2019 04:31:31 -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=HoGPOyLw; 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 S1727445AbfL3Mb3 (ORCPT + 27 others); Mon, 30 Dec 2019 07:31:29 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:52584 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727376AbfL3Mb2 (ORCPT ); Mon, 30 Dec 2019 07:31:28 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id xBUCVIuN069300; Mon, 30 Dec 2019 06:31:18 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1577709078; bh=h1bBuCCt5p3npXFEeqmlW/XTH5HMdwLY7PMMhaC3OJs=; h=From:To:CC:Subject:Date; b=HoGPOyLwSvSx+HCBFECvXbTkr33tTMtHlzCLGV63NjT6+YUxhx1TNDfwH0/EovR8U 60xPaSHbLnsUu1eVJhTawnA6sMvShK2FbwZfrN2mdlqXFmOk2/jAgueqrnZMgCv3+l a+SojzeUQncMV35M6pL0fBCGfG/4zbxQxSFLg1hs= 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 xBUCVITa058483 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 30 Dec 2019 06:31:18 -0600 Received: from DLEE113.ent.ti.com (157.170.170.24) 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; Mon, 30 Dec 2019 06:31:17 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE113.ent.ti.com (157.170.170.24) 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; Mon, 30 Dec 2019 06:31:17 -0600 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id xBUCVEhM002491; Mon, 30 Dec 2019 06:31:15 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Lorenzo Pieralisi , Arnd Bergmann CC: Greg Kroah-Hartman , Bjorn Helgaas , , Subject: [PATCH 0/7] Improvements to pci_endpoint_test driver Date: Mon, 30 Dec 2019 18:03:08 +0530 Message-ID: <20191230123315.31037-1-kishon@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 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 This series adds improvements and fixes to pci_endpoint_test driver mostly applicable when used with multi-function endpoint (or multiple endpoint instances using pci_epf_test). *) Using module parameter to determine irqtype would indicate all the pci_endpoint_test device have the same irqtype. Fix it here. *) Add ioctl to clear irq so that "cat /proc/interrupts" only lists the entries for the devices that is actually being used. *) Creating more than 10 pci-endpoint-test devices results in a kernel error. *) Use full pci-endpoint-test name in request irq so that it's easy to profile the interrupt details in "cat /proc/interrupts" *) Always enable legacy interrupt. Kishon Vijay Abraham I (7): misc: pci_endpoint_test: Avoid using module parameter to determine irqtype misc: pci_endpoint_test: Do not request or allocate IRQs in probe misc: pci_endpoint_test: Add ioctl to clear IRQ tools: PCI: Add 'e' to clear IRQ misc: pci_endpoint_test: Fix to support > 10 pci-endpoint-test devices misc: pci_endpoint_test: Use full pci-endpoint-test name in request irq misc: pci_endpoint_test: Enable legacy interrupt drivers/misc/pci_endpoint_test.c | 43 +++++++++++++++++++++++++------- include/uapi/linux/pcitest.h | 1 + tools/pci/pcitest.c | 16 +++++++++++- 3 files changed, 50 insertions(+), 10 deletions(-) -- 2.17.1