]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/fbcon: take runpm reference when userspace has an open fd
authorBen Skeggs <bskeggs@redhat.com>
Fri, 2 Oct 2015 04:03:19 +0000 (14:03 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 12 Oct 2015 03:54:40 +0000 (13:54 +1000)
commit0917d1dca980e6387dcaf7b828af5f0a8431d2a0
tree4463b69ae15d4a5f41f0f0db518df8304b49f4f4
parent606340af1aa72797a922a4703041dd8fd87ccbff
drm/nouveau/fbcon: take runpm reference when userspace has an open fd

We need to do this in order to prevent accesses to the device while it's
powered down.  Userspace may have an mmap of the fb, and there's no good
way (that I know of) to prevent it from touching the device otherwise.

This fixes some nasty races between runpm and plymouth on some systems,
which result in the GPU getting very upset and hanging the boot.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/nouveau/nouveau_fbcon.c