Re: [PATCH 01/13] genirq/msi: Add cpumask allocation to alloc_msi_entry

2016-09-20 Thread Thomas Gleixner
On Tue, 20 Sep 2016, Alexander Gordeev wrote: > On Mon, Sep 19, 2016 at 03:50:07PM +0200, Christoph Hellwig wrote: > > On Mon, Sep 19, 2016 at 09:30:58AM +0200, Alexander Gordeev wrote: > > > > INIT_LIST_HEAD(&desc->list); > > > > desc->dev = dev; > > > > + desc->nvec_used = n

Re: [PATCH 01/13] genirq/msi: Add cpumask allocation to alloc_msi_entry

2016-09-20 Thread Alexander Gordeev
On Mon, Sep 19, 2016 at 03:50:07PM +0200, Christoph Hellwig wrote: > On Mon, Sep 19, 2016 at 09:30:58AM +0200, Alexander Gordeev wrote: > > > INIT_LIST_HEAD(&desc->list); > > > desc->dev = dev; > > > + desc->nvec_used = nvec; (*) > > > + if (affinity) { > > > + desc->affinity = kmemdu

Re: [PATCH 01/13] genirq/msi: Add cpumask allocation to alloc_msi_entry

2016-09-19 Thread Christoph Hellwig
On Mon, Sep 19, 2016 at 09:30:58AM +0200, Alexander Gordeev wrote: > > INIT_LIST_HEAD(&desc->list); > > desc->dev = dev; > > + desc->nvec_used = nvec; > > + if (affinity) { > > + desc->affinity = kmemdup(affinity, > > + nvec * sizeof(*desc->affinity), GFP_KER

Re: [PATCH 01/13] genirq/msi: Add cpumask allocation to alloc_msi_entry

2016-09-19 Thread Alexander Gordeev
On Wed, Sep 14, 2016 at 04:18:47PM +0200, Christoph Hellwig wrote: > diff --git a/kernel/irq/msi.c b/kernel/irq/msi.c > index 19e9dfb..8a3e8727 100644 > --- a/kernel/irq/msi.c > +++ b/kernel/irq/msi.c > @@ -18,20 +18,42 @@ > /* Temparory solution for building, will be removed later */ > #include

[PATCH 01/13] genirq/msi: Add cpumask allocation to alloc_msi_entry

2016-09-14 Thread Christoph Hellwig
From: Thomas Gleixner For irq spreading want to store affinity masks in the msi_entry. Add the infrastructure for it. We allocate an array of cpumasks with an array size of the number of used vectors in the entry, so we can hand in the information per linux interrupt later. As we hand in the nu