diff options
author | Dmitry Baryshkov <[email protected]> | 2023-02-14 05:09:55 +0300 |
---|---|---|
committer | Rob Clark <[email protected]> | 2023-02-22 11:22:03 -0800 |
commit | b4fb748f0b734ce1d2e7834998cc599fcbd25d67 (patch) | |
tree | 0ed1e7d8965bf55f2d7184f69cd9778a1cef3873 /drivers/usb/cdns3/cdns3-trace.c | |
parent | 141f66ebbfa17cc7e2075f06c50107da978c965b (diff) |
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 <[email protected]>
Fixes: b1fc2839d2f9 ("drm/msm: Implement preemption for A5XX targets")
Signed-off-by: Dmitry Baryshkov <[email protected]>
Patchwork: https://patchwork.freedesktop.org/patch/522642/
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions