summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHarshdeep Dhatt <hdhatt@codeaurora.org>2016-06-15 10:37:53 -0600
committerCarter Cooper <ccooper@codeaurora.org>2016-08-09 14:59:22 -0600
commit204483da6978a5973d97df0a3da123c2c66d785a (patch)
treef8fbf9711adcc1d33d8419362788ab3f6a37aea4 /tools/perf/scripts/python
parente94b446eac88a43e42ecde105275d48b677ea5b3 (diff)
msm: kgsl: Fix the ringbuffer wrap around logic
Currently, if read pointer is behind write pointer and there is not enough space toward the end of the ringbuffer for new commands, then write pointer is being set to 0. This is problematic, because it leads to the overwriting of unexecuted commands with new commands at the start of the ringbuffer. So, instead of setting the write pointer to 0, look for space from the start of the ringbuffer up till the read pointer and if there is room, update the write pointer accordingly. CRs-Fixed: 1028465 Change-Id: I1cbdbf139b14988513a22030aa2be4a99a221880 Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions