Re: [PATCH v3 07/27] iommu, irq: Allocate irq_desc for dmar_msi with local node

2013-06-10 Thread Yinghai Lu
On Sun, Jun 9, 2013 at 8:31 AM, Sebastian Andrzej Siewior wrote: > On Fri, Jun 07, 2013 at 03:30:53PM -0700, Yinghai Lu wrote: >> diff --git a/drivers/iommu/dmar.c b/drivers/iommu/dmar.c >> index a7967ce..c09e60d 100644 >> --- a/drivers/iommu/dmar.c >> +++ b/drivers/iommu/dmar.c >> @@ -1273,7 +127

Re: [PATCH v3 07/27] iommu, irq: Allocate irq_desc for dmar_msi with local node

2013-06-09 Thread Sebastian Andrzej Siewior
On Fri, Jun 07, 2013 at 03:30:53PM -0700, Yinghai Lu wrote: > diff --git a/drivers/iommu/dmar.c b/drivers/iommu/dmar.c > index a7967ce..c09e60d 100644 > --- a/drivers/iommu/dmar.c > +++ b/drivers/iommu/dmar.c > @@ -1273,7 +1273,7 @@ int dmar_set_interrupt(struct intel_iommu *iommu) > if (iomm

[PATCH v3 07/27] iommu, irq: Allocate irq_desc for dmar_msi with local node

2013-06-07 Thread Yinghai Lu
iommu irq's irq_desc should be on local node ram. Fix the return value checking problem. create_irq() will return -1 when fail to allocate. create_irq_nr() will return 0 when fail to allocate. here only check !irq, so need to change it to use create_irq_nr instead. Signed-off-by: Yinghai Lu Cc