From patchwork Fri Jul 6 15:51:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Pimentel X-Patchwork-Id: 940581 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="YvoHiczz"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41MfPn41CKz9s4V for ; Sat, 7 Jul 2018 01:52:45 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933516AbeGFPvn (ORCPT ); Fri, 6 Jul 2018 11:51:43 -0400 Received: from smtprelay.synopsys.com ([198.182.60.111]:40263 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932962AbeGFPvl (ORCPT ); Fri, 6 Jul 2018 11:51:41 -0400 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id 0E58E10C0BF1; Fri, 6 Jul 2018 08:51:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1530892300; bh=fROvHrxJd3yXwi8Vm7CyL6xXFsiaW4SnWIE7JuoTjDE=; h=From:To:Cc:Subject:Date:From; b=YvoHiczzp6ALuMYd6u5RXKmz8OkMDFlU/TB4IEpN/zEsmgMY707wptj2gCWmI6bwY Bp1PFlUxYFuZJ6EPV5++RXmbpr7ZvOD2KQtodrPHSCuC61LaQ6Dy9Q7eA135nCWS7/ 7a3RvoIiq5hYtNw0Knu1jQJr2Ko92m/9CDIbgj5TaSrUGvEk3LJNynaGrhmTH32CXz U5AjPBU9vecu7FWrfiRj6NrlMxubJayCqsCkDEacctw2RLtspv6QGipWXPnTGs6Cno 63MZczh9w/B5HK8EVX5GjFQqogf2EspgJrf1q/FxZo6P8OKg76yiZVm9UT4LQY1mkE cNsg0keQf/3bg== Received: from pt02.synopsys.com (pt02.synopsys.com [10.107.23.240]) by mailhost.synopsys.com (Postfix) with ESMTP id 49B4C40A5; Fri, 6 Jul 2018 08:51:39 -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 9B7363D235; Fri, 6 Jul 2018 16:51:38 +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 v8 00/11] Add MSI-X support on pcitest tool Date: Fri, 6 Jul 2018 16:51:23 +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/PCI/endpoint/pci-test-function.txt | 8 +- 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 | 206 +++++++++++++++-- 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 | 86 +++++-- drivers/pci/endpoint/pci-ep-cfs.c | 24 ++ drivers/pci/endpoint/pci-epc-core.c | 68 +++++- include/linux/pci-epc.h | 16 +- include/linux/pci-epf.h | 1 + include/uapi/linux/pcitest.h | 3 + tools/pci/pcitest.c | 51 ++++- tools/pci/pcitest.sh | 15 ++ 19 files changed, 655 insertions(+), 136 deletions(-)