diff options
author | Krzysztof Kozlowski <[email protected]> | 2015-05-21 09:34:09 +0900 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2015-05-22 18:01:03 +0530 |
commit | 81cc6edc08705ac0146fe6ac14a0982a31ce6f3d (patch) | |
tree | a2f9eba6363f198527f5553aef5ed72a005c10fc /fs/jbd2/commit.c | |
parent | 5ebe6afaf0057ac3eaeb98defd5456894b446d22 (diff) |
dmaengine: pl330: Fix hang on dmaengine_terminate_all on certain boards
The pl330 device could hang infinitely on certain boards when DMA
channels are terminated.
It was caused by lack of runtime resume when executing
pl330_terminate_all() which calls the _stop() function. _stop() accesses
device register and can loop infinitely while checking for device state.
The hang was confirmed by Dinh Nguyen on Altera SOCFPGA Cyclone V
board during boot. It can be also triggered with:
$ echo 1 > /sys/module/dmatest/parameters/iterations
$ echo dma1chan0 > /sys/module/dmatest/parameters/channel
$ echo 1 > /sys/module/dmatest/parameters/run
$ sleep 1
$ cat /sys/module/dmatest/parameters/run
Reported-by: Dinh Nguyen <[email protected]>
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Fixes: ae43b3289186 ("ARM: 8202/1: dmaengine: pl330: Add runtime Power Management support v12")
Cc: <[email protected]>
Tested-by: Dinh Nguyen <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions