From patchwork Fri Apr 27 16:57:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Pimentel X-Patchwork-Id: 905865 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="Mkq6MY+H"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40XgF71lkYz9rxs for ; Sat, 28 Apr 2018 03:01:15 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758871AbeD0RA7 (ORCPT ); Fri, 27 Apr 2018 13:00:59 -0400 Received: from smtprelay.synopsys.com ([198.182.37.59]:37141 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758739AbeD0Q56 (ORCPT ); Fri, 27 Apr 2018 12:57:58 -0400 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id 5D4921E05F3; Fri, 27 Apr 2018 18:57:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1524848275; bh=DNO3z41LcTw1POhCom4Vj3zCMaNzPtdm0UMAPDMAcZk=; h=From:To:Cc:Subject:Date:From; b=Mkq6MY+HuCANDZa8a+gTh25WzZww731Fc0HbVLLJYZVLkhIbZX6KhlG8Q7lWVCdDI hm+7LqewMKeJ7cFIm+qqbrMuwu0gUZueZEMZGqtYnK5o5xBqA+GqWIxm2/3MkihN0W +PSuvPPpwdjxkwDQuwDCnEoA1/Nl91x/fFWOlrACVBDF3H8aGT22K5omEloNH+hf5a c8E69joQ/vEASRgvtlNCV2PhU1f3IRvPFfwRj6tsKlyE6cv3kJZx1w3cpqvqA7rHzQ vJkoKHjfGt/+nu3/e5G7WFi9YMYBkQqtnI4LGViBOsT88j97HzSaos4DaSfLPr781B fBrDcUuRq1VVQ== Received: from pt02.synopsys.com (pt02.internal.synopsys.com [10.107.23.240]) by mailhost.synopsys.com (Postfix) with ESMTP id 3A98958EE; Fri, 27 Apr 2018 09:57:54 -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 8E2F53DC03; Fri, 27 Apr 2018 17:57:53 +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@synopsys.com Subject: [PATCH 00/10] Add MSI-X support on pcitest tool Date: Fri, 27 Apr 2018 17:57:37 +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 Depends of the following serie [1]. 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. [1] -> https://lkml.org/lkml/2018/4/27/342 Gustavo Pimentel (10): PCI: endpoint: Add MSI-X interfaces PCI: dwc: Add MSI-X callbacks handler PCI: cadence: Update cdns_pcie_ep_raise_irq function signature PCI: dwc: Rework MSI callbacks handler PCI: dwc: Add legacy interrupt callback handler misc: pci_endpoint_test: Add MSI-X support misc: pci_endpoint_test: Replace lower into upper case characters PCI: endpoint: functions/pci-epf-test: Replace lower into upper case characters tools: PCI: Add MSI-X support misc: pci_endpoint_test: Use pci_irq_vector function Documentation/misc-devices/pci-endpoint-test.txt | 3 + drivers/misc/pci_endpoint_test.c | 147 +++++++++++------ drivers/pci/cadence/pcie-cadence-ep.c | 2 +- drivers/pci/dwc/pci-dra7xx.c | 2 +- drivers/pci/dwc/pcie-artpec6.c | 2 +- drivers/pci/dwc/pcie-designware-ep.c | 202 +++++++++++++++++++++-- drivers/pci/dwc/pcie-designware-plat.c | 7 +- drivers/pci/dwc/pcie-designware.h | 31 ++-- drivers/pci/endpoint/functions/pci-epf-test.c | 104 ++++++++---- drivers/pci/endpoint/pci-ep-cfs.c | 24 +++ drivers/pci/endpoint/pci-epc-core.c | 60 ++++++- include/linux/pci-epc.h | 11 +- include/linux/pci-epf.h | 1 + include/uapi/linux/pcitest.h | 1 + tools/pci/pcitest.c | 18 +- tools/pci/pcitest.sh | 25 +++ 16 files changed, 517 insertions(+), 123 deletions(-)