Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp656728imm; Fri, 1 Jun 2018 07:27:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLbE+UNFS0n3pEBQItbJQoirQIzRNzzDhTyBA1lG+mAi2x8NgBhlGjCfp3KHKjB+eM/7Bur X-Received: by 2002:a62:6a0a:: with SMTP id f10-v6mr10948140pfc.99.1527863239653; Fri, 01 Jun 2018 07:27:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527863239; cv=none; d=google.com; s=arc-20160816; b=jdGY/m36CqLPVM1dLOc2KzHKtxxVRixsF5GQfTMinQvqHLC59yz4lcSBraNxmVZuCJ R+4EbN814g+aJxMaFiYgBSWB2SVJA0LEaq/X4VakKYktqEHpI3mJDkpfMbIWbnCJwIcj 3UVhYaBpEHlhzq2UTc47S99bdP5a5kAdXBg/gzVE089wLuBsM65wv400fRxW2uS9lPAM GYMl12wOMXGHittMwTpXtfccYSGk8pa82uHurd+NCCNvaubb/I3P0cq7yJJfvgIzhVsd UIXjZrYVchd4nTnI6huyHcXiQ973YPqXWHms19wfl7AN5/mrA02QI4LCffq7f4/sdfXG Wlxw== 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:arc-authentication-results; bh=RFN/vYoaQxb60AEJGsdVev8498DuCfNF4Vu0rAH8Cv4=; b=xyYbUP7HFp1g+PgvvWHURnLwKIAtvMtHhMZ+2InpGKZDEWIKncvkmDNSXgiYtNcyoz sQwBPFtyrfzCTnWVAPHREn5ENX36Gi3XoUujJ5pP8tc1hvE9oKapDIrpJ7IHD1uVQq7c tUHKlVEvz4qHNkSEIbjn1FbQKbyKQLUnfzmLEBJa6RwgjUf5XYLXFa6CaLQe8cFhJhV1 RRbFAswfPXB0gonFvVkOnb3EC7dJQyCe+googy+vvSDd3CHZxH/u4WGD6vUfmv7R7Xs8 535QCs/k3+JdDLijMa/FIqF/XfYkPDos2XhhqKBUzzf+HqQh9WgC35eGg4Zvemmo7H5o dH4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=E16IkCqX; 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=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l11-v6si30159594pgp.426.2018.06.01.07.27.05; Fri, 01 Jun 2018 07:27: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=@synopsys.com header.s=mail header.b=E16IkCqX; 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=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751835AbeFAOZG (ORCPT + 99 others); Fri, 1 Jun 2018 10:25:06 -0400 Received: from smtprelay6.synopsys.com ([198.182.37.59]:42594 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750850AbeFAOZD (ORCPT ); Fri, 1 Jun 2018 10:25:03 -0400 Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id D8FA61E05C2; Fri, 1 Jun 2018 16:25:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1527863102; bh=9UCxShg4DFlxwjj5LUgbVXBCIgWFgXp1odYPFCGvQXg=; h=From:To:Cc:Subject:Date:From; b=E16IkCqXVOT1ec50VX+0irUhv/7CIb9AtH5WT5oat5Wfu3ljiRYE+SzgQKQMDqQaT qgsp+5zm62lpAT7K4dFMh/i5bvj/Irr0RWLWwbF81swqEoY+UFmynJGwV9o9RABFjM OMuvs6HFhtrObt1XPr/8dgaDxNb4mr6Uqf3SZIy5ymr5BuGm1xMJwbQ36Y9nq2lE3L TXXKPcHEvY9R6eNy4y7qpMDK2rv2MJTSloYhepTbuBD4WYMg/TFlDHUW0Gbhut11qj m7v7Em4yE01pT48om3N0jYwZG94gU2hjnzBqp3tvuCbXo8OCQeM+S9l76cZBprE6JN R3HIyA4QTsETA== Received: from pt02.synopsys.com (pt02.synopsys.com [10.107.23.240]) by mailhost.synopsys.com (Postfix) with ESMTP id B2DB73BF7; Fri, 1 Jun 2018 07:25:00 -0700 (PDT) Received: from UbuntuMate-64Bits.internal.synopsys.com (gustavo-e7480.internal.synopsys.com [10.107.25.102]) by pt02.synopsys.com (Postfix) with ESMTP id 157693D784; Fri, 1 Jun 2018 15:25:00 +0100 (WEST) From: Gustavo Pimentel To: bhelgaas@google.com, lorenzo.pieralisi@arm.com, Joao.Pinto@synopsys.com, jingoohan1@gmail.com, kishon@ti.com, adouglas@cadence.com, jesper.nilsson@axis.com Cc: linux-pci@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Gustavo Pimentel Subject: [PATCH v3 00/10] Add MSI-X support on pcitest tool Date: Fri, 1 Jun 2018 15:24:42 +0100 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Patch series made against Lorenzo's branches and also depends of: - pci/dwc - pci/endpoint Add MSI-X support on pcitest tool. Add new callbacks methods and handlers to trigger the MSI-X interrupts on the EP DesignWare IP driver. Allow to set/get MSI-X EP maximum capability number. Rework on set/get and triggering MSI methods on EP DesignWare IP driver. Add a new input parameter (msix) to pcitest tool to test MSI-X feature. Update the pcitest.sh script to support MSI-X feature tests. Gustavo Pimentel (10): PCI: endpoint: Add MSI-X interfaces PCI: dwc: Add MSI-X callbacks handler PCI: Update xxx_pcie_ep_raise_irq() and pci_epc_raise_irq() signatures PCI: dwc: Rework MSI callbacks handler PCI: dwc: Add legacy interrupt callback handler pci-epf-test/pci_endpoint_test: Cleanup PCI_ENDPOINT_TEST memspace pci-epf-test/pci_endpoint_test: Use irq_type module parameter pci-epf-test/pci_endpoint_test: Add MSI-X support pci_endpoint_test: Add 2 ioctl commands tools: PCI: Add MSI-X support Documentation/misc-devices/pci-endpoint-test.txt | 6 + drivers/misc/pci_endpoint_test.c | 261 +++++++++++++++++------ drivers/pci/cadence/pcie-cadence-ep.c | 3 +- drivers/pci/dwc/pci-dra7xx.c | 2 +- drivers/pci/dwc/pcie-artpec6.c | 2 +- drivers/pci/dwc/pcie-designware-ep.c | 205 ++++++++++++++++-- drivers/pci/dwc/pcie-designware-plat.c | 7 +- drivers/pci/dwc/pcie-designware.h | 31 +-- drivers/pci/endpoint/functions/pci-epf-test.c | 81 +++++-- drivers/pci/endpoint/pci-ep-cfs.c | 24 +++ drivers/pci/endpoint/pci-epc-core.c | 68 +++++- include/linux/pci-epc.h | 15 +- include/linux/pci-epf.h | 1 + include/uapi/linux/pcitest.h | 3 + tools/pci/pcitest.c | 51 ++++- tools/pci/pcitest.sh | 15 ++ 16 files changed, 643 insertions(+), 132 deletions(-) -- 2.7.4