summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorVijay Viswanath <vviswana@codeaurora.org>2017-09-13 17:08:43 +0530
committerVijay Viswanath <vviswana@codeaurora.org>2017-09-13 17:51:51 +0530
commit6cc74e75a0d07d4f1b94e7d4becfac0d9d0a0648 (patch)
tree726276d3c134bc77605311ff85d906743dffb140 /tools/perf/scripts/python
parent14f6bfeeebb97c02cbf0c43818f7998e3bdb3cae (diff)
mmc: block: Unhalt the command queue before releasing mmc host
In the IOCTL path, the command queue is halted before servicing the ioctl requests. Once the ioctl request is serviced, the ioctl context releases mmc host and then unhalts the controller. This can cause race conditions where mmc driver would end up in a bad state. If another context B, which wants to send a legacy command, comes up between the time ioctl releases the host and unhalts the controller. Then the context B will see that cmdq is already halted and will prepare a legacy command. Once context B sends the legacy command, the ioctl context may unhalt the cmdq. This will mask the legacy interrupts and context B will never receive interrupts for the command it sent. To prevent this, unhalt the controller before the ioctl context releases the host. Change-Id: I65d3b4a709813549e7e5d48d94065a753164f9d0 Signed-off-by: Vijay Viswanath <vviswana@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions