summaryrefslogtreecommitdiff
path: root/Documentation/pwm.txt
diff options
context:
space:
mode:
authorBob Copeland <me@bobcopeland.com>2015-10-24 17:42:15 (GMT)
committerKalle Valo <kvalo@codeaurora.org>2015-10-28 18:58:06 (GMT)
commit8e8e54c490032f15779d7b199548eb0143b70f0f (patch)
tree01fa15ec47331fbd1dbe6ed306d2e7998d3555ad /Documentation/pwm.txt
parent56bae464275ac57cbf993f3ed15e96d6e1ec00a2 (diff)
downloadlinux-8e8e54c490032f15779d7b199548eb0143b70f0f.tar.xz
wcn36xx: introduce per-channel ring buffer locks
wcn36xx implements a ring buffer for transmitted frames for each (high and low priority) DMA channel. The ring buffers are lockless: new frames are inserted at the head of the queue, while finished packets are reaped from the tail. Unfortunately, the list manipulations are missing any kind of barriers so are susceptible to various races: for example, a TX completion handler might read an updated desc->ctrl before the head has actually advanced, and then null out the ctl->skb pointer while it is still being used in the TX path. Simplify things here by adding a spin lock when traversing the ring. This change increased stability for me without adding any noticeable overhead on my platform (xperia z). Signed-off-by: Bob Copeland <me@bobcopeland.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'Documentation/pwm.txt')
0 files changed, 0 insertions, 0 deletions