diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2015-04-23 00:58:07 -0700 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2015-04-23 00:58:07 -0700 |
commit | b95eaa9fca951072abf44004bc1f59aac41717e5 (patch) | |
tree | 599392cf5b5b99e0f332224b9e19749eb052e8f8 /vmwgfx_surface.c | |
parent | d763cb69a5387333cfa3fa7bb8a2b310119bfd74 (diff) |
vmwgfx: Replace the hw mutex with a hw spinlock
Fixes a case where we call vmw_fifo_idle() from within a wait function with
task state !TASK_RUNNING, which is illegal.
In addition, make the locking fine-grained, so that it is performed once
for every read- and write operation. This is of course more costly, but we
don't perform much register access in the timing critical paths anyway. Instead
we have the extra benefit of being sure that we don't forget the hw lock around
register accesses. I think currently the kms code was quite buggy w r t this.
This fixes Red Hat Bugzilla Bug 1180796
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Diffstat (limited to 'vmwgfx_surface.c')
0 files changed, 0 insertions, 0 deletions