Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2429913imm; Mon, 16 Jul 2018 07:55:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeLZfsvDMQmaV3L1Gwl2djnGOImcieLChVx9+boQLjzxj11Bsbb7HcljBGCH5FR8F/uU7FQ X-Received: by 2002:a62:6547:: with SMTP id z68-v6mr4281849pfb.20.1531752931863; Mon, 16 Jul 2018 07:55:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531752931; cv=none; d=google.com; s=arc-20160816; b=Yz6Vccx92rOiYNq1ShmfCpIfzivoKlkLTmUF69B1bwx1ZFEzc1S/6yUwKBz/Ar+4wN YkhQUIqRgUVLR7rVZnlaqQH9hlQwalQXAbQ2juQzuP+YUf2nmf1+vUtUiiLeIcwPmnIl g4WeKxahsLeEstNnmE8Ssn4jresbBj+RcCWURvyMVNmn4znZx7QNAEj+JjKKVExBfy9K rbULkiJTqgbUI4VoLCNSvMu3FOiHP2mweBScONZElf1xDh+C7vNz3fxEbQuSncUem90e 2HEcfQhhOHpd+JzJicI4yY0Hj93KbLEnHCKiIXn1E6TQJimOHgPuHLMKkEWUlNIA9c5T 5+6w== 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=kc/VZZmFZE6EZuE515BoDMaFDsk7h7lrvqHxFUQBrrM=; b=IxggC/wnHcJAS2FQfh3vICuWqjj4I0CtGTSOdP2YBgoPS+Fbby1JMziO2UTbW5A0Dv nbbs/We8E//sU6siLrJTzfS6/3OOZcnU/CeN4HG9T0SANM865WmavIyUGRDjs8+54u4v ZXv8O2L6zvA02Kx9UIS+m0Amh8haGS1OxUlnVK5KCDh7cUh/g7aTd9zG97dzI0Tl7DtC crdK/iI/iO9DHFQoDT+mDuFCvwpq3DmVRmdiigP4tMk/v7KV881y3zGvSQwQWPCZG7Cd /UI8Vzj1mMc/6IvdCtUq+fAPxzwwqPw7h1GqmUmxezG8fjjrd9bytsb/kqmLy6Ibxhfa qmTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=OnDKyils; 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 w21-v6si1277707pgk.206.2018.07.16.07.55.17; Mon, 16 Jul 2018 07:55:31 -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=OnDKyils; 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 S1731295AbeGPPVZ (ORCPT + 99 others); Mon, 16 Jul 2018 11:21:25 -0400 Received: from smtprelay2.synopsys.com ([198.182.60.111]:46639 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727385AbeGPPUP (ORCPT ); Mon, 16 Jul 2018 11:20:15 -0400 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id 243F610C1A04; Mon, 16 Jul 2018 07:52:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1531752748; bh=xWay15+tMZ5QoUFyv+vu3iYt+QFjUiCzSfdbhpG7rXk=; h=From:To:Cc:Subject:Date:From; b=OnDKyilsCaMuC1JbA33b45e/ESZCBvZmzuVUBhE6lBTZjZRk+bc5VqY1ckdlGiNyW QgF2QYAYIS5MTuHmZU0eerjHvKw/nAcN1H56qMLRa/A7LflytJq/hA58Ca/2rEKY7t sS8fK7II5ZeZME0iydbHnPGDh9AedDUV3t1wIeBvxTwXg8fAPaHpgf1OgU/qWIDiVq yiPmyUoPlxIkA727BsrMSgr8Dm1FnaOIAeErXbkhsh0UOr9Nz7fAl42AK369cuZyQP qBy7+wqHPNXrOKAcfvspwhivYrclEWPuY1EyQIdWzrHIWEpHstW46ILclAfqA0VVuF RwVrHMM47XCRw== Received: from de02.synopsys.com (germany.internal.synopsys.com [10.225.17.21]) by mailhost.synopsys.com (Postfix) with ESMTP id A09E850D0; Mon, 16 Jul 2018 07:52:27 -0700 (PDT) Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by de02.synopsys.com (Postfix) with ESMTP id 968D23DCBD; Mon, 16 Jul 2018 16:52:26 +0200 (CEST) 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 v11 00/12] Add MSI-X support on pcitest tool Date: Mon, 16 Jul 2018 16:52:12 +0200 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. Fix EP link notification implementation. 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. Update related documentation accordingly. Gustavo Pimentel (12): PCI: dwc: Fix EP link notification implementation 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 .../PCI/endpoint/function/binding/pci-test.txt | 2 + Documentation/PCI/endpoint/pci-endpoint.txt | 4 +- Documentation/PCI/endpoint/pci-test-function.txt | 29 ++- Documentation/PCI/endpoint/pci-test-howto.txt | 30 ++- Documentation/ioctl/ioctl-number.txt | 1 + Documentation/misc-devices/pci-endpoint-test.txt | 6 + drivers/misc/pci_endpoint_test.c | 276 ++++++++++++++++----- drivers/pci/controller/dwc/pci-dra7xx.c | 2 +- drivers/pci/controller/dwc/pcie-artpec6.c | 2 +- drivers/pci/controller/dwc/pcie-designware-ep.c | 210 ++++++++++++++-- drivers/pci/controller/dwc/pcie-designware-plat.c | 11 +- drivers/pci/controller/dwc/pcie-designware.h | 29 ++- 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 ++ 22 files changed, 722 insertions(+), 149 deletions(-) -- 2.7.4