Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4dbd6e5 authored by Kasin Li's avatar Kasin Li Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm: Make ringbuffer could wrap



Currently, if read pointer is in front of write pointer,
when there is not enough space toward the end of the ringbuffer
for new commands, the driver should wait for the read pointer
reach to the end of ringbuffer.
This is not efficient, so remove the wait to end and write pointer
could back to the beginning of ring buffer without breaking the
commands list and catching up with read pointer.

Change-Id: I144249e2e517843b6bb468621ab41cbc9475867d
Signed-off-by: default avatarKasin Li <donglil@codeaurora.org>
parent b3818159
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment