[PATCH] drm/vmwgfx: Replace the hw mutex with a hw spinlock

2015-01-21 Thread Dave Airlie
On 19 January 2015 at 21:03, Thomas Hellstrom wrote: > 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

[PATCH] drm/vmwgfx: Replace the hw mutex with a hw spinlock

2015-01-21 Thread Thomas Hellstrom
Hi, Dave, It's intended for -fixes. I was just about to send a pull request but got distracted. Thanks, Thomas On 01/21/2015 12:45 AM, Dave Airlie wrote: > On 19 January 2015 at 21:03, Thomas Hellstrom > wrote: >> Fixes a case where we call vmw_fifo_idle() from within a wait function with >>

[PATCH] drm/vmwgfx: Replace the hw mutex with a hw spinlock

2015-01-19 Thread Thomas Hellstrom
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 ac