summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_files.py
diff options
context:
space:
mode:
authorConnor Abbott <cwabbott0@gmail.com>2025-04-24 16:30:17 +0300
committerRob Clark <robdclark@chromium.org>2025-05-04 19:20:28 +0300
commitc0134808a9d6c364b7568546be9489ce3337c7f8 (patch)
treedf04cf288ecc004e27405ada8d28890569c91629 /scripts/lib/kdoc/kdoc_files.py
parentb71717735be48d7743a34897e9e44a0b53e30c0e (diff)
downloadlinux-c0134808a9d6c364b7568546be9489ce3337c7f8.tar.xz
drm/msm: Be more robust when HFI response times out
If the GMU takes too long to respond to an HFI message, we may return early. If the GMU does eventually respond, and then we send a second message, we will see the response for the first, throw another error, and keep going. But we don't currently wait for the interrupt from the GMU again, so if the second response isn't there immediately we may prematurely return. This can cause a continuous cycle of missed HFI messages, and for reasons I don't quite understand the GMU does not shut down properly when this happens. Fix this by waiting for the GMU interrupt when we see an empty queue. If the GMU never responds then the queue really is empty and we quit. We can't wait for the interrupt when we see a wrong response seqnum because the GMU might have already queued both responses by the time we clear the interrupt the first time so we do need to check the queue before waiting on the interrupt again. Signed-off-by: Connor Abbott <cwabbott0@gmail.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Patchwork: https://patchwork.freedesktop.org/patch/650013/ Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions