Re: [PATCH v6 0/9] PCI: dwc: MSI-X feature

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 12, 2018 at 06:14:29PM +0000, Gustavo Pimentel wrote:
> Hi Lorenzo,
> 
> On 12/02/2018 12:23, Lorenzo Pieralisi wrote:
> > On Fri, Jan 26, 2018 at 04:35:35PM +0000, Gustavo Pimentel wrote:
> >> Replaces the use of IRQ domain hierarchy by the IRQ chained used by
> >> pcie-designware and each SoC specific driver in order to allow new and
> >> complex features like MSI-X.
> >>
> >> Adds Synopsys Root Complex support for MSI-X feature.
> > 
> > Hi Gustavo,
> > 
> > please CC me for future patch versions. I have a question for you,
> > the series definitely looks like it is going in the right direction
> > but I do not understand the cover letter.
> > 
> > - You are not replacing the IRQ domain hierarchy, you are actually
> >   introducing it properly. It may be just nomenclature but I though
> >   I would mention that.
> > - I really do not understand why this series is advertised as
> >   "implementing MSI-X". I want to understand why MSI-X it is not
> >   currently supported and why this series would enable it, I
> >   honestly do not understand the reasoning behind this, it looks
> >   a bit fuzzy.
> > 
> > Please note I am just asking clarifications on the $SUBJECT for my own
> > understanding, the series is definitely the right thing to do and I am
> > happy to target v4.17 for it.
> 
> Marc Zyngier also pointed out like you that the description is confusing and
> does not correspond to what is done in the code and now I also see it now.
> 
> Please fell free to review and point out something wrong, only in this way can I
> evolve. :)

Sure. Let's start by discussing this:

https://patchwork.kernel.org/patch/5708521/

If it is a HW issue your patches can't solve it. If it is a SW issue
patch above (and current mainline code - commit 19c5392eb1c1) is wrong.

Before updating the code I want to understand what the problem is with
MSI-X in current mainline.

To be as clear as I can: this series is doing the *right* thing, I want
to understand what the current driver is doing with MSIs and why, so
that we can help you update the code correctly.

Lorenzo

> > Thanks,
> > Lorenzo
> > 
> >> Expands the maximum number of IRQs from 32 to 256 distributed by
> >> a maximum of 8 controller registers.
> >>
> >> The patch set was made against the Bjorn's next branch.
> >>
> >> Gustavo Pimentel (9):
> >>   PCI: dwc: Add IRQ chained API support
> >>   PCI: dwc: exynos: Switch to use the IRQ chained API
> >>   PCI: dwc: imx6: Switch to use the IRQ chained API
> >>   PCI: dwc: artpec6: Switch to use the IRQ chained API
> >>   PCI: dwc: designware: Switch to use the IRQ chained API
> >>   PCI: dwc: qcom: Switch to use the IRQ chained API
> >>   PCI: dwc: keystone: Switch to use the IRQ chained API
> >>   PCI: dwc: Remove IRQ domain hierarchy API support
> >>   PCI: dwc: Expand maximum number of IRQs from 32 to 256
> >>
> >>  drivers/pci/dwc/pci-exynos.c           |  18 --
> >>  drivers/pci/dwc/pci-imx6.c             |  18 --
> >>  drivers/pci/dwc/pci-keystone-dw.c      |  91 +-------
> >>  drivers/pci/dwc/pci-keystone.c         |   1 +
> >>  drivers/pci/dwc/pci-keystone.h         |   4 +-
> >>  drivers/pci/dwc/pci-layerscape.c       |   3 +-
> >>  drivers/pci/dwc/pcie-artpec6.c         |  18 --
> >>  drivers/pci/dwc/pcie-designware-host.c | 402 +++++++++++++++++++--------------
> >>  drivers/pci/dwc/pcie-designware-plat.c |  16 --
> >>  drivers/pci/dwc/pcie-designware.h      |  30 ++-
> >>  drivers/pci/dwc/pcie-qcom.c            |  16 --
> >>  11 files changed, 260 insertions(+), 357 deletions(-)
> >>
> >> -- 
> >> 2.7.4
> >>
> >>
> 
> Thanks,
> Gustavo
> 



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux