Re: [PATCH 1/2] irqdomain: add support for creating a continous mapping

2014-11-05 Thread Johannes Thumshirn
On Mon, Nov 03, 2014 at 04:18:51PM -0600, Scott Wood wrote: > On Mon, 2014-11-03 at 17:18 +0100, Johannes Thumshirn wrote: > > A MSI device may have multiple interrupts. That means that the > > interrupts numbers should be continuos so that pdev->irq refers to the > > first interrupt, pdev->irq + 1

Re: [PATCH 1/2] irqdomain: add support for creating a continous mapping

2014-11-04 Thread Sebastian Andrzej Siewior
On 11/03/2014 11:18 PM, Scott Wood wrote: > Is it really necessary for the virqs to be contiguous? How is the > availability of multiple MSIs communicated to the driver? Is there an > example of a driver that currently uses multiple MSIs? I used this in PCI and after enabling 2^x, I allocated an

Re: [PATCH 1/2] irqdomain: add support for creating a continous mapping

2014-11-03 Thread Scott Wood
On Mon, 2014-11-03 at 17:18 +0100, Johannes Thumshirn wrote: > A MSI device may have multiple interrupts. That means that the > interrupts numbers should be continuos so that pdev->irq refers to the > first interrupt, pdev->irq + 1 to the second and so on. > This patch adds support for continuous a

[PATCH 1/2] irqdomain: add support for creating a continous mapping

2014-11-03 Thread Johannes Thumshirn
A MSI device may have multiple interrupts. That means that the interrupts numbers should be continuos so that pdev->irq refers to the first interrupt, pdev->irq + 1 to the second and so on. This patch adds support for continuous allocation of virqs for a range of hwirqs. The function is based on ir

Re: [PATCH 1/2] irqdomain: add support for creating a continous mapping

2014-02-21 Thread Sebastian Andrzej Siewior
On 02/20/2014 10:06 PM, Scott Wood wrote: > On Thu, 2014-02-20 at 21:53 +0100, Sebastian Andrzej Siewior wrote: >> A MSI device may have multiple interrupts. That means that the >> interrupts numbers should be continuos so that pdev->irq refers to the >> first interrupt, pdev->irq + 1 to the second

Re: [PATCH 1/2] irqdomain: add support for creating a continous mapping

2014-02-20 Thread Scott Wood
On Thu, 2014-02-20 at 21:53 +0100, Sebastian Andrzej Siewior wrote: > A MSI device may have multiple interrupts. That means that the > interrupts numbers should be continuos so that pdev->irq refers to the > first interrupt, pdev->irq + 1 to the second and so on. > This patch adds support for conti

[PATCH 1/2] irqdomain: add support for creating a continous mapping

2014-02-20 Thread Sebastian Andrzej Siewior
A MSI device may have multiple interrupts. That means that the interrupts numbers should be continuos so that pdev->irq refers to the first interrupt, pdev->irq + 1 to the second and so on. This patch adds support for continuous allocation of virqs for a range of hwirqs. The function is based on ir