]> git.baikalelectronics.ru Git - kernel.git/commit
drm/udl: make usage as a console safer
authorDave Airlie <airlied@redhat.com>
Thu, 7 Feb 2013 01:19:15 +0000 (11:19 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 7 Feb 2013 02:37:50 +0000 (12:37 +1000)
commit146f5e01f6dbce87569ec2d4efc196dfaf3634b0
tree0defaeec6703bc530d178518a66937bdf8dc9b79
parentbc5f4860135727efa4ebcc7906ea6869b02b653f
drm/udl: make usage as a console safer

Okay you don't really want to use udl devices as your console, but if
you are unlucky enough to do so, you run into a lot of schedule while atomic
due to printk being called from all sorts of funky places. So check if we
are in an atomic context, and queue the damage for later, the next printk
should cause it to appear. This isn't ideal, but it is simple, and seems to
work okay in my testing here.

(dirty area idea came from xenfb)

fixes a bunch of sleeping while atomic issues running fbcon on udl devices.

Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/udl/udl_drv.h
drivers/gpu/drm/udl/udl_fb.c