Re: [PATCH] iommu/amd: fix accounting of device_state

2014-11-12 Thread Joerg Roedel
On Mon, Nov 10, 2014 at 12:21:39PM +0200, Oded Gabbay wrote: This patch fixes a bug in the accounting of the device_state. In the current code, the device_state was put (decremented) too many times, which sometimes lead to the driver getting stuck permanently in put_device_state_wait(). That

[PATCH] iommu/amd: fix accounting of device_state

2014-11-10 Thread Oded Gabbay
This patch fixes a bug in the accounting of the device_state. In the current code, the device_state was put (decremented) too many times, which sometimes lead to the driver getting stuck permanently in put_device_state_wait(). That happen because the device_state-count would go below zero, which