Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4032881imm; Mon, 18 Jun 2018 08:06:14 -0700 (PDT) X-Google-Smtp-Source: ADUXVKINdlExvuAzuYOe9ay2vx18WVh3tV1IlNHioCyMywrIV2LUkiCYW/+jHioLJpJg+ozNe1xq X-Received: by 2002:a65:62cd:: with SMTP id m13-v6mr11686768pgv.207.1529334374123; Mon, 18 Jun 2018 08:06:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529334374; cv=none; d=google.com; s=arc-20160816; b=X/oLp/cSexgExu83L0yGUa2xL1jv5qJkQKIR3RIwB3K2PSSejOzA2u0FY2wjAL3Z/J ALQXK5BBHyq3Hkk0Y2rEUkX0f4/rVieVxZP9r+qMNTSE+fzBy3oL5kNsZFYcxPbiRVxw 7PwC8lkorby3ZTfcAq0gQyW6CSlA/nA0vC1ut1IuLPXeJeMwZqBFVbTX1Np2P/TENKc5 +/NBeBXLJoQQ8fTEmmyiDqwTwFDzGwKci8KW+mhrj55pWI2SzRhEJoAt0KevzBwXLcRH wMFPlQmV9dOAmwI9r5jsmsLRy90H2vG1oXMTmishH0Vwhu6i6o/Ft0AGgNKixoYhCiL0 gJAA== 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=4TjhBwPlUDKo/auP9r53omOiHTsOArFQwWNttccM6Rs=; b=Db8XmIxGnywtqu4kzzx1xgSpf0NQlhkWWk/fxNq5WM/xG7lDOpuvHdCRG3igjVYSsa acLBR5ztOJMTcklOcpy/4a/hRtJ6rBMM//45cbY2CfDRcIoYtJRLeE2qX/vWvZ/S2M7Y VC33rVFQOOg2E1luiqvUJC77F26e6t3lXO+GdxfN5IMOoAc09lqAqsPh17dUCKhDA/Nt 0JuQB/MDaHqU8VdBRAQ+QeTm30qZV2iL/g+qhkhLObfURVLQ+4t4jJ0YibujFYyweo9V VFb5FSV2dy4Ra7dcb+AEnOn6dnkJ4uAJZ+Oecgnw3QyaGjDv7nCpnnFyjSvB1c8twHhm PBKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=kx7OJiXO; 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 f2-v6si12297660pgt.650.2018.06.18.08.05.47; Mon, 18 Jun 2018 08:06:14 -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=kx7OJiXO; 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 S965322AbeFRPEJ (ORCPT + 99 others); Mon, 18 Jun 2018 11:04:09 -0400 Received: from smtprelay.synopsys.com ([198.182.37.59]:42207 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964918AbeFRPBD (ORCPT ); Mon, 18 Jun 2018 11:01:03 -0400 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id 98D311E04F7; Mon, 18 Jun 2018 17:01:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1529334061; bh=BPUL6tm3QsV4cXmbS1MdxYx6PO+LVGi6PCd9tRsjytE=; h=From:To:Cc:Subject:Date:From; b=kx7OJiXOQeLBhfwqeLMsbtbov/QLNeH4AFe7lvlBHuaYpzUAttHWWjAKc9ZGYkzCt X3sM1hSF5amI07vxooKe8Ok+kPxUAwNnZLwOZh+KFay532uUBv81thPBjEGnrcj9X2 wJ7l1FVhg9P7Uh2UCF+jC/1YOD4YC67SERsKciUhGdABkb+KvODScrLB2Q+naqtSVs S5OjaV7w7dnlyEG/pwhAi7NQy9cIu7nw/opQf7k8ux9hVNMTG/XpR8+GRKlHWtIt6a 1UipDpjWLOsmlMWq3i5znt9mdwqQe44GjN29PKRiVwWpE1h8SFy5QsF1srKK2yv2MI V2ybXkmWQHM8Q== Received: from pt02.synopsys.com (pt02.synopsys.com [10.107.23.240]) by mailhost.synopsys.com (Postfix) with ESMTP id 9AAD35FEA; Mon, 18 Jun 2018 08:01: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 CD1EA3D73D; Mon, 18 Jun 2018 16:00:59 +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 v4 00/10] Add MSI-X support on pcitest tool Date: Mon, 18 Jun 2018 16:00:19 +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 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 (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/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/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