Re: [PATCH v1] x86/platform/intel-mid: Make IRQ allocation a bit more flexible

2017-08-04 Thread Bjorn Helgaas
On Fri, Aug 04, 2017 at 04:43:15PM +0300, Andy Shevchenko wrote: > On Fri, 2017-08-04 at 08:24 -0500, Bjorn Helgaas wrote: > > On Fri, Aug 04, 2017 at 03:09:39PM +0300, Andy Shevchenko wrote: > > > On Thu, 2017-08-03 at 17:08 -0500, Bjorn Helgaas wrote: > > > > On Mon, Jul 24, 2017 at 08:34:02PM

Re: [PATCH v1] x86/platform/intel-mid: Make IRQ allocation a bit more flexible

2017-08-04 Thread Bjorn Helgaas
On Fri, Aug 04, 2017 at 04:43:15PM +0300, Andy Shevchenko wrote: > On Fri, 2017-08-04 at 08:24 -0500, Bjorn Helgaas wrote: > > On Fri, Aug 04, 2017 at 03:09:39PM +0300, Andy Shevchenko wrote: > > > On Thu, 2017-08-03 at 17:08 -0500, Bjorn Helgaas wrote: > > > > On Mon, Jul 24, 2017 at 08:34:02PM

Re: [PATCH v1] x86/platform/intel-mid: Make IRQ allocation a bit more flexible

2017-08-04 Thread Andy Shevchenko
On Fri, 2017-08-04 at 08:24 -0500, Bjorn Helgaas wrote: > On Fri, Aug 04, 2017 at 03:09:39PM +0300, Andy Shevchenko wrote: > > On Thu, 2017-08-03 at 17:08 -0500, Bjorn Helgaas wrote: > > > On Mon, Jul 24, 2017 at 08:34:02PM +0300, Andy Shevchenko wrote: > > > > In the future we would use dynamic

Re: [PATCH v1] x86/platform/intel-mid: Make IRQ allocation a bit more flexible

2017-08-04 Thread Andy Shevchenko
On Fri, 2017-08-04 at 08:24 -0500, Bjorn Helgaas wrote: > On Fri, Aug 04, 2017 at 03:09:39PM +0300, Andy Shevchenko wrote: > > On Thu, 2017-08-03 at 17:08 -0500, Bjorn Helgaas wrote: > > > On Mon, Jul 24, 2017 at 08:34:02PM +0300, Andy Shevchenko wrote: > > > > In the future we would use dynamic

Re: [PATCH v1] x86/platform/intel-mid: Make IRQ allocation a bit more flexible

2017-08-04 Thread Bjorn Helgaas
On Fri, Aug 04, 2017 at 03:09:39PM +0300, Andy Shevchenko wrote: > On Thu, 2017-08-03 at 17:08 -0500, Bjorn Helgaas wrote: > > On Mon, Jul 24, 2017 at 08:34:02PM +0300, Andy Shevchenko wrote: > > > In the future we would use dynamic allocation for IRQ which brings > > > non-1:1 mapping for IOAPIC

Re: [PATCH v1] x86/platform/intel-mid: Make IRQ allocation a bit more flexible

2017-08-04 Thread Bjorn Helgaas
On Fri, Aug 04, 2017 at 03:09:39PM +0300, Andy Shevchenko wrote: > On Thu, 2017-08-03 at 17:08 -0500, Bjorn Helgaas wrote: > > On Mon, Jul 24, 2017 at 08:34:02PM +0300, Andy Shevchenko wrote: > > > In the future we would use dynamic allocation for IRQ which brings > > > non-1:1 mapping for IOAPIC

Re: [PATCH v1] x86/platform/intel-mid: Make IRQ allocation a bit more flexible

2017-08-04 Thread Andy Shevchenko
On Thu, 2017-08-03 at 17:08 -0500, Bjorn Helgaas wrote: > On Mon, Jul 24, 2017 at 08:34:02PM +0300, Andy Shevchenko wrote: > > In the future we would use dynamic allocation for IRQ which brings > > non-1:1 mapping for IOAPIC domain. Thus, we need to respect return > > value > > of

Re: [PATCH v1] x86/platform/intel-mid: Make IRQ allocation a bit more flexible

2017-08-04 Thread Andy Shevchenko
On Thu, 2017-08-03 at 17:08 -0500, Bjorn Helgaas wrote: > On Mon, Jul 24, 2017 at 08:34:02PM +0300, Andy Shevchenko wrote: > > In the future we would use dynamic allocation for IRQ which brings > > non-1:1 mapping for IOAPIC domain. Thus, we need to respect return > > value > > of

Re: [PATCH v1] x86/platform/intel-mid: Make IRQ allocation a bit more flexible

2017-08-03 Thread Bjorn Helgaas
On Mon, Jul 24, 2017 at 08:34:02PM +0300, Andy Shevchenko wrote: > In the future we would use dynamic allocation for IRQ which brings > non-1:1 mapping for IOAPIC domain. Thus, we need to respect return value > of mp_map_gsi_to_irq() and assign it back to the device structure. > > Besides that we

Re: [PATCH v1] x86/platform/intel-mid: Make IRQ allocation a bit more flexible

2017-08-03 Thread Bjorn Helgaas
On Mon, Jul 24, 2017 at 08:34:02PM +0300, Andy Shevchenko wrote: > In the future we would use dynamic allocation for IRQ which brings > non-1:1 mapping for IOAPIC domain. Thus, we need to respect return value > of mp_map_gsi_to_irq() and assign it back to the device structure. > > Besides that we

[PATCH v1] x86/platform/intel-mid: Make IRQ allocation a bit more flexible

2017-07-24 Thread Andy Shevchenko
In the future we would use dynamic allocation for IRQ which brings non-1:1 mapping for IOAPIC domain. Thus, we need to respect return value of mp_map_gsi_to_irq() and assign it back to the device structure. Besides that we need to read GSI from interrupt pin register to avoid cases when some

[PATCH v1] x86/platform/intel-mid: Make IRQ allocation a bit more flexible

2017-07-24 Thread Andy Shevchenko
In the future we would use dynamic allocation for IRQ which brings non-1:1 mapping for IOAPIC domain. Thus, we need to respect return value of mp_map_gsi_to_irq() and assign it back to the device structure. Besides that we need to read GSI from interrupt pin register to avoid cases when some