]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dmaengine: dw: disable BLOCK IRQs for non-cyclic xfer
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 10 Feb 2016 13:59:42 +0000 (15:59 +0200)
committerSasha Levin <sasha.levin@oracle.com>
Fri, 4 Mar 2016 15:25:43 +0000 (10:25 -0500)
commit6bdec2b3a4bf4ecc5f9ba5ea24457fe57943fc61
treea61a893e895047db97691e8f64f5728fc19d95e9
parent800b26634a89a88bbbc341c4d1e84f5141c1e38a
dmaengine: dw: disable BLOCK IRQs for non-cyclic xfer

[ Upstream commit ee1cdcdae59563535485a5f56ee72c894ab7d7ad ]

The commit 2895b2cad6e7 ("dmaengine: dw: fix cyclic transfer callbacks")
re-enabled BLOCK interrupts with regard to make cyclic transfers work. However,
this change becomes a regression for non-cyclic transfers as interrupt counters
under stress test had been grown enormously (approximately per 4-5 bytes in the
UART loop back test).

Taking into consideration above enable BLOCK interrupts if and only if channel
is programmed to perform cyclic transfer.

Fixes: 2895b2cad6e7 ("dmaengine: dw: fix cyclic transfer callbacks")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mans Rullgard <mans@mansr.com>
Tested-by: Mans Rullgard <mans@mansr.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/dma/dw/core.c