]> 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)
commit089c558c55523ccdb1582358708832496ddb8e11
tree4463b69ae15d4a5f41f0f0db518df8304b49f4f4
parent791f6e5a610aad077fdab2bd446312aed96373a6
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