Re: [PATCH] xen: reuse the same pirq allocated when driver load first time

2013-05-20 Thread Konrad Rzeszutek Wilk
> At this point I think that upstream option is to save the PIRQ value and > re-use it. > Will post a patch for it. Here is the patch. It works for me when passing in a NIC driver. >From 509499568d1cdf1f2a3fb53773c991f4b063eb56 Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk Date: Mon, 20

Re: [PATCH] xen: reuse the same pirq allocated when driver load first time

2013-05-20 Thread Konrad Rzeszutek Wilk
> > Hi Stefano, > > > > do you work out a patch for me to test? > > I'll be traveling/busy for a few weeks, maybe it's best if someone else > picks up this work item. This little test-case below should have worked: #include #include #include #include #include #include #include #include

Re: [PATCH] xen: reuse the same pirq allocated when driver load first time

2013-05-20 Thread Konrad Rzeszutek Wilk
On Mon, May 20, 2013 at 11:24:04AM +0100, Stefano Stabellini wrote: > On Fri, 17 May 2013, Zhenzhong Duan wrote: > > On 2013-05-15 17:41, Stefano Stabellini wrote: > > > On Tue, 14 May 2013, Konrad Rzeszutek Wilk wrote: > > > > On Tue, May 14, 2013 at 02:49:50PM +0100, Stefano Stabellini wrote: > >

Re: [PATCH] xen: reuse the same pirq allocated when driver load first time

2013-05-20 Thread Stefano Stabellini
On Fri, 17 May 2013, Zhenzhong Duan wrote: > On 2013-05-15 17:41, Stefano Stabellini wrote: > > On Tue, 14 May 2013, Konrad Rzeszutek Wilk wrote: > > > On Tue, May 14, 2013 at 02:49:50PM +0100, Stefano Stabellini wrote: > > > > On Mon, 13 May 2013, Konrad Rzeszutek Wilk wrote: > > > > > On Mon, May

Re: [PATCH] xen: reuse the same pirq allocated when driver load first time

2013-05-16 Thread Zhenzhong Duan
On 2013-05-15 17:41, Stefano Stabellini wrote: On Tue, 14 May 2013, Konrad Rzeszutek Wilk wrote: On Tue, May 14, 2013 at 02:49:50PM +0100, Stefano Stabellini wrote: On Mon, 13 May 2013, Konrad Rzeszutek Wilk wrote: On Mon, May 13, 2013 at 06:24:46PM +0100, Stefano Stabellini wrote: On Mon, 1

Re: [PATCH] xen: reuse the same pirq allocated when driver load first time

2013-05-15 Thread Zhenzhong Duan
On 2013-05-15 17:41, Stefano Stabellini wrote: On Tue, 14 May 2013, Konrad Rzeszutek Wilk wrote: On Tue, May 14, 2013 at 02:49:50PM +0100, Stefano Stabellini wrote: On Mon, 13 May 2013, Konrad Rzeszutek Wilk wrote: On Mon, May 13, 2013 at 06:24:46PM +0100, Stefano Stabellini wrote: On Mon, 1

Re: [PATCH] xen: reuse the same pirq allocated when driver load first time

2013-05-15 Thread Stefano Stabellini
On Tue, 14 May 2013, Konrad Rzeszutek Wilk wrote: > On Tue, May 14, 2013 at 02:49:50PM +0100, Stefano Stabellini wrote: > > On Mon, 13 May 2013, Konrad Rzeszutek Wilk wrote: > > > On Mon, May 13, 2013 at 06:24:46PM +0100, Stefano Stabellini wrote: > > > > On Mon, 13 May 2013, Konrad Rzeszutek Wilk

Re: [PATCH] xen: reuse the same pirq allocated when driver load first time

2013-05-14 Thread Konrad Rzeszutek Wilk
On Tue, May 14, 2013 at 02:49:50PM +0100, Stefano Stabellini wrote: > On Mon, 13 May 2013, Konrad Rzeszutek Wilk wrote: > > On Mon, May 13, 2013 at 06:24:46PM +0100, Stefano Stabellini wrote: > > > On Mon, 13 May 2013, Konrad Rzeszutek Wilk wrote: > > > > On Mon, May 13, 2013 at 03:50:52PM +0100, S

Re: [PATCH] xen: reuse the same pirq allocated when driver load first time

2013-05-14 Thread Stefano Stabellini
On Mon, 13 May 2013, Konrad Rzeszutek Wilk wrote: > On Mon, May 13, 2013 at 06:24:46PM +0100, Stefano Stabellini wrote: > > On Mon, 13 May 2013, Konrad Rzeszutek Wilk wrote: > > > On Mon, May 13, 2013 at 03:50:52PM +0100, Stefano Stabellini wrote: > > > > On Mon, 13 May 2013, Konrad Rzeszutek Wilk

Re: [PATCH] xen: reuse the same pirq allocated when driver load first time

2013-05-13 Thread Konrad Rzeszutek Wilk
On Mon, May 13, 2013 at 06:24:46PM +0100, Stefano Stabellini wrote: > On Mon, 13 May 2013, Konrad Rzeszutek Wilk wrote: > > On Mon, May 13, 2013 at 03:50:52PM +0100, Stefano Stabellini wrote: > > > On Mon, 13 May 2013, Konrad Rzeszutek Wilk wrote: > > > > On Mon, May 13, 2013 at 12:06:43PM +0100, S

Re: [PATCH] xen: reuse the same pirq allocated when driver load first time

2013-05-13 Thread Stefano Stabellini
On Mon, 13 May 2013, Konrad Rzeszutek Wilk wrote: > On Mon, May 13, 2013 at 03:50:52PM +0100, Stefano Stabellini wrote: > > On Mon, 13 May 2013, Konrad Rzeszutek Wilk wrote: > > > On Mon, May 13, 2013 at 12:06:43PM +0100, Stefano Stabellini wrote: > > > > On Fri, 10 May 2013, Konrad Rzeszutek Wilk

Re: [PATCH] xen: reuse the same pirq allocated when driver load first time

2013-05-13 Thread Konrad Rzeszutek Wilk
On Mon, May 13, 2013 at 03:50:52PM +0100, Stefano Stabellini wrote: > On Mon, 13 May 2013, Konrad Rzeszutek Wilk wrote: > > On Mon, May 13, 2013 at 12:06:43PM +0100, Stefano Stabellini wrote: > > > On Fri, 10 May 2013, Konrad Rzeszutek Wilk wrote: > > > > On Wed, May 08, 2013 at 04:18:24PM +0800, Z

Re: [PATCH] xen: reuse the same pirq allocated when driver load first time

2013-05-13 Thread Stefano Stabellini
On Mon, 13 May 2013, Konrad Rzeszutek Wilk wrote: > On Mon, May 13, 2013 at 12:06:43PM +0100, Stefano Stabellini wrote: > > On Fri, 10 May 2013, Konrad Rzeszutek Wilk wrote: > > > On Wed, May 08, 2013 at 04:18:24PM +0800, Zhenzhong Duan wrote: > > > > When driver load and unload in a loop, pirq wil

Re: [PATCH] xen: reuse the same pirq allocated when driver load first time

2013-05-13 Thread Konrad Rzeszutek Wilk
On Mon, May 13, 2013 at 12:06:43PM +0100, Stefano Stabellini wrote: > On Fri, 10 May 2013, Konrad Rzeszutek Wilk wrote: > > On Wed, May 08, 2013 at 04:18:24PM +0800, Zhenzhong Duan wrote: > > > When driver load and unload in a loop, pirq will exhaust finally. > > > Try to use the same pirq which wa

Re: [PATCH] xen: reuse the same pirq allocated when driver load first time

2013-05-13 Thread Stefano Stabellini
On Fri, 10 May 2013, Konrad Rzeszutek Wilk wrote: > On Wed, May 08, 2013 at 04:18:24PM +0800, Zhenzhong Duan wrote: > > When driver load and unload in a loop, pirq will exhaust finally. > > Try to use the same pirq which was already mapped and binded at first time > > So what happens if I unload a

Re: [PATCH] xen: reuse the same pirq allocated when driver load first time

2013-05-13 Thread Zhenzhong Duan
On 2013-05-11 02:53, Konrad Rzeszutek Wilk wrote: On Wed, May 08, 2013 at 04:18:24PM +0800, Zhenzhong Duan wrote: When driver load and unload in a loop, pirq will exhaust finally. Try to use the same pirq which was already mapped and binded at first time So what happens if I unload and reload

Re: [PATCH] xen: reuse the same pirq allocated when driver load first time

2013-05-10 Thread Konrad Rzeszutek Wilk
On Wed, May 08, 2013 at 04:18:24PM +0800, Zhenzhong Duan wrote: > When driver load and unload in a loop, pirq will exhaust finally. > Try to use the same pirq which was already mapped and binded at first time So what happens if I unload and reload two drivers in random order? > when driver loaded