From: Gustavo Pimentel <Gustavo.Pimentel@synopsys.com>
To: Kishon Vijay Abraham I <kishon@ti.com>,
Gustavo Pimentel <Gustavo.Pimentel@synopsys.com>,
Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: "bhelgaas@google.com" <bhelgaas@google.com>,
"Joao.Pinto@synopsys.com" <Joao.Pinto@synopsys.com>,
"jingoohan1@gmail.com" <jingoohan1@gmail.com>,
"adouglas@cadence.com" <adouglas@cadence.com>,
"jesper.nilsson@axis.com" <jesper.nilsson@axis.com>,
"shawn.lin@rock-chips.com" <shawn.lin@rock-chips.com>,
"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v9 00/12] Add MSI-X support on pcitest tool
Date: Mon, 16 Jul 2018 15:49:45 +0100 [thread overview]
Message-ID: <77bb1aa0-da1f-be70-b0fe-beeceb544e8e@synopsys.com> (raw)
In-Reply-To: <cf97fd13-568b-cd45-fcfb-f91d52a907bf@ti.com>
Hi Kishon,
On 16/07/2018 05:07, Kishon Vijay Abraham I wrote:
> Hi,
>
> On Friday 13 July 2018 09:29 PM, Gustavo Pimentel wrote:
>> Hi Lorenzo,
>>
>> On 13/07/2018 14:25, Lorenzo Pieralisi wrote:
>>> On Mon, Jul 09, 2018 at 06:42:38PM +0100, Gustavo Pimentel wrote:
>>>> 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.
>>>>
>>>> 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
>>>>
>>>> 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 | 260 ++++++++++++++++------
>>>> drivers/pci/controller/dwc/pci-dra7xx.c | 2 +-
>>>> drivers/pci/controller/dwc/pcie-artpec6.c | 2 +-
>>>> drivers/pci/controller/dwc/pcie-designware-ep.c | 217 ++++++++++++++++--
>>>> drivers/pci/controller/dwc/pcie-designware-plat.c | 11 +-
>>>> 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, 664 insertions(+), 143 deletions(-)
>>>
>>> Gustavo, Kishon,
>>>
>>> it seems like this series has been thoroughly reviewed and it is
>>> ready to go, please let me know if there is any pending change.
>>
>> I just sent the patch # 10 based on Kishon's latest review.
>> For me it's nearly perfect. :)
>
> I got to test this series today and I found one issue.
>
> use this sequence:
> 1) pcitest -i 2 /* change to MSIX irq type */
> For platforms that doesn't support MSIX, get the following message
> pci-endpoint-test 0000:01:00.0: Failed to get MSI-X interrupts
> SET IRQ TYPE TO MSI-X: NOT OKAY
>
> However after this, pci_endpoint_test_set_irq() will invoke
> pci_endpoint_test_free_irq_vectors() and pci_endpoint_test_release_irq().
> This will free previously allocated MSI irq vectors.
>
> 2) pcitest -i 1 /* change to MSI irq type */
>
> This will not invoke pci_endpoint_test_alloc_irq_vectors() and
> pci_endpoint_test_request_irq() since now "if (irq_type == req_irq_type)"
> will return true.
>
> After this MSI tests will fail.
>
> Other than this failing sequence, the series looks good to me.
It's fixed on the patch series v11 (see patch
#10-pci_endpoint_test-Add-2-ioctl-commands.patch file).
Thanks!
>
> Thanks
> Kishon
>
Regards,
Gustavo
prev parent reply other threads:[~2018-07-16 15:19 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-09 17:42 [PATCH v9 00/12] Add MSI-X support on pcitest tool Gustavo Pimentel
2018-07-09 17:42 ` [PATCH v9 01/12] PCI: dwc: Fix EP link notification implementation Gustavo Pimentel
2018-07-13 7:47 ` Kishon Vijay Abraham I
2018-07-09 17:42 ` [PATCH v9 02/12] PCI: endpoint: Add MSI-X interfaces Gustavo Pimentel
2018-07-09 17:42 ` [PATCH v9 03/12] PCI: Update xxx_pcie_ep_raise_irq() and pci_epc_raise_irq() signatures Gustavo Pimentel
2018-07-13 7:49 ` Kishon Vijay Abraham I
2018-07-09 17:42 ` [PATCH v9 04/12] PCI: dwc: Add MSI-X callbacks handler Gustavo Pimentel
2018-07-13 7:55 ` Kishon Vijay Abraham I
2018-07-13 15:55 ` Gustavo Pimentel
2018-07-09 17:42 ` [PATCH v9 05/12] PCI: dwc: Rework MSI " Gustavo Pimentel
2018-07-13 7:55 ` Kishon Vijay Abraham I
2018-07-09 17:42 ` [PATCH v9 06/12] PCI: dwc: Add legacy interrupt callback handler Gustavo Pimentel
2018-07-09 17:42 ` [PATCH v9 07/12] pci-epf-test/pci_endpoint_test: Cleanup PCI_ENDPOINT_TEST memspace Gustavo Pimentel
2018-07-13 7:59 ` Kishon Vijay Abraham I
2018-07-09 17:42 ` [PATCH v9 08/12] pci-epf-test/pci_endpoint_test: Use irq_type module parameter Gustavo Pimentel
2018-07-13 8:00 ` Kishon Vijay Abraham I
2018-07-09 17:42 ` [PATCH v9 09/12] pci-epf-test/pci_endpoint_test: Add MSI-X support Gustavo Pimentel
2018-07-13 8:08 ` Kishon Vijay Abraham I
2018-07-09 17:42 ` [PATCH v9 10/12] pci_endpoint_test: Add 2 ioctl commands Gustavo Pimentel
2018-07-10 10:10 ` Alan Douglas
2018-07-10 10:35 ` Gustavo Pimentel
2018-07-09 17:42 ` [PATCH v9 11/12] tools: PCI: Add MSI-X support Gustavo Pimentel
2018-07-09 17:42 ` [PATCH v9 12/12] PCI: endpoint: Add MSI set maximum restriction Gustavo Pimentel
2018-07-13 13:25 ` [PATCH v9 00/12] Add MSI-X support on pcitest tool Lorenzo Pieralisi
2018-07-13 15:59 ` Gustavo Pimentel
2018-07-16 4:07 ` Kishon Vijay Abraham I
2018-07-16 14:49 ` Gustavo Pimentel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=77bb1aa0-da1f-be70-b0fe-beeceb544e8e@synopsys.com \
--to=gustavo.pimentel@synopsys.com \
--cc=Joao.Pinto@synopsys.com \
--cc=adouglas@cadence.com \
--cc=bhelgaas@google.com \
--cc=jesper.nilsson@axis.com \
--cc=jingoohan1@gmail.com \
--cc=kishon@ti.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lorenzo.pieralisi@arm.com \
--cc=shawn.lin@rock-chips.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).