]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Drop preempt_disable() in vmw_fifo_ping_host()
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 24 Feb 2020 14:07:25 +0000 (15:07 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 12 Mar 2020 14:29:38 +0000 (15:29 +0100)
commit88fa3545cb783b433284db8c48a956d5f8f5f5b7
treee6eba2ba9ee068cd4131cd2c690b8a9b64b1a60b
parenta0c5901a90ad451f9f3177564881f4cdb7b60ea8
drm/vmwgfx: Drop preempt_disable() in vmw_fifo_ping_host()

vmw_fifo_ping_host() disables preemption around a test and a register
write via vmw_write(). The write function acquires a spinlock_t typed
lock which is not allowed in a preempt_disable()ed section on
PREEMPT_RT. This has been reported in the bugzilla.

It has been explained by Thomas Hellstrom that this preempt_disable()ed
section is not required for correctness.

Remove the preempt_disable() section.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=206591
Link: https://lkml.kernel.org/r/0b5e1c65d89951de993deab06d1d197b40fd67aa.camel@vmware.com
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c