Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3589073ybh; Tue, 17 Mar 2020 02:58:20 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsR6oAWrTGZoG71TM80ilad+YJuCtWO4LNmRgzyM1XIU0nwkAyCybrbekGdA+LRVXmuwlbw X-Received: by 2002:aca:7285:: with SMTP id p127mr2755337oic.32.1584439099929; Tue, 17 Mar 2020 02:58:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584439099; cv=none; d=google.com; s=arc-20160816; b=Rb8idIgBfy+tB28A9kkgmVrU+XKkcRBioq+ryttBTQKHw9me9OnZLFdc0K3leK/I0h aDe4CI2+7yjOL+69tyfjSc7hyeZvbcLShDFUnMB+QrJ0FJB+JM4HRMsAS02E5xdRD+Wi YKhhpRSfG1gg0w4ish81fmmdXdXhoxbZg/K0wcd/M8hysQpUesoOth1HIOXynT4VHkps dD5lYpyMkesjAgxkZpS9EVv+eFuXV5j12ZLSPZjq+IJmoBHAvsq+NH0ea0YTnDBsF1eV A8OUY60pFpuhFh3sp1e+IywXl0hPidI6Ago3EcJqs8qd+8TUjzAVziGkRLU0RqmMTtoc OdYA== 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=FUgu4tKrX4GkE1eavwEHL7wLF4B3OZ6GXghh7TRo6YI=; b=Za8tli6Q3wKL6ktSK9aXzV723fMtC7Dl9sVsrMf/toazavb6Hq3U6Ykfuwb67DB6hM WKfeNHowxVmi5ddtqEyh1aqQESlcxc9f+laFMr7+JHy5MvLtzWrLJhgfXrOVKl5QEzAs bC+pzE0Dl3QWRdG/d3sa9i1YiKQusQ3u7KJKuDxEgYC9whgoODmd8AdC0nRn4qz23+nb eZZy1MkAKdfUohV8ypUs4vUTndg1Fsyp8Bcey7UUkHLB4Hsa4AuxyL8apo9mXdvOIks0 U87RuOWMi68yByI6mYDY0S6pBXRwhP0oFKdHhF6Mq580SJIk4Mt2zrgGEwinMFICR+rt nd0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=EiGdnNTG; 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 w11si1628542otp.239.2020.03.17.02.58.08; Tue, 17 Mar 2020 02:58:19 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=EiGdnNTG; 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 S1726485AbgCQJ5h (ORCPT + 99 others); Tue, 17 Mar 2020 05:57:37 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:35322 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725872AbgCQJ5g (ORCPT ); Tue, 17 Mar 2020 05:57:36 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 02H9vLUD102348; Tue, 17 Mar 2020 04:57:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1584439041; bh=FUgu4tKrX4GkE1eavwEHL7wLF4B3OZ6GXghh7TRo6YI=; h=From:To:CC:Subject:Date; b=EiGdnNTGQ1jh90sgV3GkdkN0U2FQGQkjJUCiftwO3WAu60R7YfA9isFgyF+bx6nsa RHgLrtZoo+bgscMrIIu+tVpxo673M+WFW2Paao5m0JlkiIGB/l5uhVDstjBpo6O1dZ V+JSqMP/NWSoka8GKRJgz9qCg5biPjRFSmiB9YkE= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 02H9vLw2039801 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 17 Mar 2020 04:57:21 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Tue, 17 Mar 2020 04:57:21 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE115.ent.ti.com (10.64.6.36) 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, 17 Mar 2020 04:57:21 -0500 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 02H9vIKR095155; Tue, 17 Mar 2020 04:57:18 -0500 From: Kishon Vijay Abraham I To: Bjorn Helgaas , Andrew Murray , Gustavo Pimentel , Lorenzo Pieralisi CC: Greg Kroah-Hartman , Arnd Bergmann , , , Kishon Vijay Abraham I Subject: [PATCH v2 0/5] misc: Improvements to pci_endpoint_test driver Date: Tue, 17 Mar 2020 15:31:53 +0530 Message-ID: <20200317100158.4692-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 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" Changes from v1: *) Removed a patch that references J721E device ID (That patch will be added as part of J721E support series) *) Removed a patch that always enable legacy interrupt. That should be handled by pci_alloc_irq_vectors() Kishon Vijay Abraham I (5): misc: pci_endpoint_test: Avoid using module parameter to determine irqtype 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 drivers/misc/pci_endpoint_test.c | 49 +++++++++++++++++++++++++------- include/uapi/linux/pcitest.h | 1 + tools/pci/pcitest.c | 16 ++++++++++- 3 files changed, 55 insertions(+), 11 deletions(-) -- 2.17.1