Re: [PATCH] iommu/arm-smmu: use a threaded handler for context interrupts

2015-02-04 Thread Mitchel Humpherys
On Wed, Feb 04 2015 at 03:33:05 AM, Will Deacon wrote: > On Mon, Feb 02, 2015 at 08:10:02PM +, Mitchel Humpherys wrote: >> On Wed, Jan 28 2015 at 04:07:39 AM, Will Deacon wrote: >> > With a shared handler (e.g. a bunch of context banks have the same IRQ) >> > then I assume that we don't want

Re: [PATCH] iommu/arm-smmu: use a threaded handler for context interrupts

2015-02-04 Thread Will Deacon
On Mon, Feb 02, 2015 at 08:10:02PM +, Mitchel Humpherys wrote: > On Wed, Jan 28 2015 at 04:07:39 AM, Will Deacon wrote: > > With a shared handler (e.g. a bunch of context banks have the same IRQ) > > then I assume that we don't want to end up with multiple handler threads > > all tripping over

Re: [PATCH] iommu/arm-smmu: use a threaded handler for context interrupts

2015-02-02 Thread Mitchel Humpherys
On Wed, Jan 28 2015 at 04:07:39 AM, Will Deacon wrote: > On Fri, Jan 23, 2015 at 10:33:20PM +, Mitchel Humpherys wrote: >> On Fri, Jan 23 2015 at 03:24:15 AM, Will Deacon wrote: >> > On Thu, Jan 22, 2015 at 11:48:02PM +, Mitchel Humpherys wrote: >> >> Context interrupts can call domain-sp

Re: [PATCH] iommu/arm-smmu: use a threaded handler for context interrupts

2015-01-28 Thread Will Deacon
On Fri, Jan 23, 2015 at 10:33:20PM +, Mitchel Humpherys wrote: > On Fri, Jan 23 2015 at 03:24:15 AM, Will Deacon wrote: > > On Thu, Jan 22, 2015 at 11:48:02PM +, Mitchel Humpherys wrote: > >> Context interrupts can call domain-specific handlers which might sleep. > >> Currently we register

Re: [PATCH] iommu/arm-smmu: use a threaded handler for context interrupts

2015-01-23 Thread Mitchel Humpherys
On Fri, Jan 23 2015 at 03:24:15 AM, Will Deacon wrote: > Hi Mitch, > > On Thu, Jan 22, 2015 at 11:48:02PM +, Mitchel Humpherys wrote: >> Context interrupts can call domain-specific handlers which might sleep. >> Currently we register our handler with request_irq, so our handler is >> called in

Re: [PATCH] iommu/arm-smmu: use a threaded handler for context interrupts

2015-01-23 Thread Will Deacon
Hi Mitch, On Thu, Jan 22, 2015 at 11:48:02PM +, Mitchel Humpherys wrote: > Context interrupts can call domain-specific handlers which might sleep. > Currently we register our handler with request_irq, so our handler is > called in atomic context, so domain handlers that sleep result in an > in

[PATCH] iommu/arm-smmu: use a threaded handler for context interrupts

2015-01-22 Thread Mitchel Humpherys
Context interrupts can call domain-specific handlers which might sleep. Currently we register our handler with request_irq, so our handler is called in atomic context, so domain handlers that sleep result in an invalid context BUG. Fix this by using request_threaded_irq. This also prepares the wa