summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>2023-02-14 05:09:55 +0300
committerRob Clark <robdclark@chromium.org>2023-02-22 22:22:03 +0300
commitb4fb748f0b734ce1d2e7834998cc599fcbd25d67 (patch)
tree0ed1e7d8965bf55f2d7184f69cd9778a1cef3873 /tools/perf/scripts/python/task-analyzer.py
parent141f66ebbfa17cc7e2075f06c50107da978c965b (diff)
downloadlinux-b4fb748f0b734ce1d2e7834998cc599fcbd25d67.tar.xz
drm/msm/a5xx: fix the emptyness check in the preempt code
Quoting Yassine: ring->memptrs->rptr is never updated and stays 0, so the comparison always evaluates to false and get_next_ring always returns ring 0 thinking it isn't empty. Fix this by calling get_rptr() instead of reading rptr directly. Reported-by: Yassine Oudjana <y.oudjana@protonmail.com> Fixes: b1fc2839d2f9 ("drm/msm: Implement preemption for A5XX targets") Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Patchwork: https://patchwork.freedesktop.org/patch/522642/ Link: https://lore.kernel.org/r/20230214020956.164473-4-dmitry.baryshkov@linaro.org Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions