Re: [PATCH] iommu/amd: Fix bug in put_pasid_state_wait

2015-05-04 Thread Joerg Roedel
On Thu, Apr 16, 2015 at 05:08:44PM +0300, Oded Gabbay wrote: > This patch fixes a bug in put_pasid_state_wait that appeared in kernel 4.0 > The bug is that pasid_state->count wasn't decremented before entering the > wait_event. Thus, the condition in wait_event will never be true. > > The fix is

Re: [PATCH] iommu/amd: Fix bug in put_pasid_state_wait

2015-05-04 Thread Joerg Roedel
On Thu, Apr 16, 2015 at 05:08:44PM +0300, Oded Gabbay wrote: This patch fixes a bug in put_pasid_state_wait that appeared in kernel 4.0 The bug is that pasid_state-count wasn't decremented before entering the wait_event. Thus, the condition in wait_event will never be true. The fix is to

Re: [PATCH] iommu/amd: Fix bug in put_pasid_state_wait

2015-04-26 Thread Oded Gabbay
Hi Joerg, Could you please take a look at this patch ? I want it to be included in stable asap so Fedora 22 will pick it up. Thanks, Oded On 04/16/2015 05:08 PM, Oded Gabbay wrote: This patch fixes a bug in put_pasid_state_wait that appeared in kernel 4.0 The bug is that

Re: [PATCH] iommu/amd: Fix bug in put_pasid_state_wait

2015-04-26 Thread Oded Gabbay
Hi Joerg, Could you please take a look at this patch ? I want it to be included in stable asap so Fedora 22 will pick it up. Thanks, Oded On 04/16/2015 05:08 PM, Oded Gabbay wrote: This patch fixes a bug in put_pasid_state_wait that appeared in kernel 4.0 The bug is that

[PATCH] iommu/amd: Fix bug in put_pasid_state_wait

2015-04-16 Thread Oded Gabbay
This patch fixes a bug in put_pasid_state_wait that appeared in kernel 4.0 The bug is that pasid_state->count wasn't decremented before entering the wait_event. Thus, the condition in wait_event will never be true. The fix is to decrement (atomically) the pasid_state->count before the wait_event.

[PATCH] iommu/amd: Fix bug in put_pasid_state_wait

2015-04-16 Thread Oded Gabbay
This patch fixes a bug in put_pasid_state_wait that appeared in kernel 4.0 The bug is that pasid_state-count wasn't decremented before entering the wait_event. Thus, the condition in wait_event will never be true. The fix is to decrement (atomically) the pasid_state-count before the wait_event.