From patchwork Thu Jun 21 16:01:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Pimentel X-Patchwork-Id: 932791 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=synopsys.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="CTo60bWi"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41BRKC5dBsz9s2R for ; Fri, 22 Jun 2018 02:01:51 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933253AbeFUQBs (ORCPT ); Thu, 21 Jun 2018 12:01:48 -0400 Received: from smtprelay.synopsys.com ([198.182.37.59]:57282 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932858AbeFUQBr (ORCPT ); Thu, 21 Jun 2018 12:01:47 -0400 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id C42F41E04F7; Thu, 21 Jun 2018 18:01:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1529596905; bh=HYLoqtIHuAl62reiHQlIO9OECzwPGAxrH4j24PJKr24=; h=From:To:Cc:Subject:Date:From; b=CTo60bWioszwEFVZeRNiMwDDjahvn1huVoqlzwctDBky4jb8ar2V1FHqB8D+DzbKV WdyfTpy5PSGRxQtc2Jzb0DyGnffLr4HFulfRn3yigK/gIL0mWTTMOByMlkJY7ZLm5n HvMWuLuiSbU2CH0wsE2zGB8XQBRpA4AMoC1TeXSQA6AVXRE/R2R47GOH77jYWVwTnp mFMssm7IkJk6m6Vwstk/M8ERqbg4teZQ3+lsmBT+Tj7+s1cHGC3rApdYHvIjMv2FTm BCwB632CMrlnwlwwCVQiaJbqdc2xkPT/64VhjnCqj36m44WxyT9yzQgLGOXBqShOuH hSIzP0v9mFZjA== Received: from pt02.synopsys.com (pt02.internal.synopsys.com [10.107.23.240]) by mailhost.synopsys.com (Postfix) with ESMTP id 7C4523ADD; Thu, 21 Jun 2018 09:01:44 -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 CB1543D116; Thu, 21 Jun 2018 17:01:43 +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, shawn.lin@rock-chips.com Cc: linux-pci@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Gustavo Pimentel Subject: [PATCH v6 00/11] Add MSI-X support on pcitest tool Date: Thu, 21 Jun 2018 17:01:25 +0100 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Patch series made against Lorenzo's master branch. 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 (11): PCI: endpoint: Add MSI-X interfaces PCI: Update xxx_pcie_ep_raise_irq() and pci_epc_raise_irq() signatures PCI: dwc: Add MSI-X callbacks handler 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 PCI: endpoint: Add MSI set maximum restriction. Documentation/ioctl/ioctl-number.txt | 1 + Documentation/misc-devices/pci-endpoint-test.txt | 6 + drivers/misc/pci_endpoint_test.c | 259 ++++++++++++++++------ drivers/pci/controller/dwc/pci-dra7xx.c | 2 +- drivers/pci/controller/dwc/pcie-artpec6.c | 2 +- drivers/pci/controller/dwc/pcie-designware-ep.c | 205 +++++++++++++++-- drivers/pci/controller/dwc/pcie-designware-plat.c | 7 +- drivers/pci/controller/dwc/pcie-designware.h | 31 ++- drivers/pci/controller/pcie-cadence-ep.c | 3 +- drivers/pci/controller/pcie-rockchip-ep.c | 2 +- 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 ++ 18 files changed, 644 insertions(+), 132 deletions(-)