linux_dsm_epyc7002/drivers/video/console
Jean-Philippe Brucker a1e533ec07 fbcon: set a default value to blink interval
Since commit 27a4c827c3
	fbcon: use the cursor blink interval provided by vt

two attempts have been made at fixing a possible hang caused by
cursor_timer_handler. That function registers a timer to be triggered at
"jiffies + fbcon_ops.cur_blink_jiffies".

A new case had been encountered during initialisation of clcd-pl11x:

    fbcon_fb_registered
    do_fbcon_takeover

    ->  do_register_con_driver
        fbcon_startup
    (A) add_cursor_timer (with cur_blink_jiffies = 0)

    ->  do_bind_con_driver
        visual_init
        fbcon_init
    (B) cur_blink_jiffies = msecs_to_jiffies(vc->vc_cur_blink_ms);

If we take an softirq anywhere between A and B (and we do),
cursor_timer_handler executes indefinitely.

Instead of patching all possible paths that lead to this case one at a
time, fix the issue at the source and initialise cur_blink_jiffies to
200ms when allocating fbcon_ops. This was its default value before
aforesaid commit. fbcon_cursor or fbcon_init will refine this value
downstream.

Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Cc: <stable@vger.kernel.org> # v4.2
Tested-by: Scot Doyle <lkml14@scotdoyle.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-02-26 13:19:55 +02:00
..
bitblit.c framebuffer: fix border color 2014-09-30 13:39:16 +03:00
dummycon.c console/dummy: Move screen size selection from CPP to Kconfig 2015-01-13 14:54:48 +02:00
fbcon_ccw.c framebuffer: fix border color 2014-09-30 13:39:16 +03:00
fbcon_cw.c framebuffer: fix border color 2014-09-30 13:39:16 +03:00
fbcon_rotate.c
fbcon_rotate.h
fbcon_ud.c framebuffer: fix border color 2014-09-30 13:39:16 +03:00
fbcon.c fbcon: set a default value to blink interval 2016-02-26 13:19:55 +02:00
fbcon.h fbcon: use the cursor blink interval provided by vt 2015-05-10 19:15:52 +02:00
Kconfig fbdev changes for 4.3 2015-09-08 16:42:55 -07:00
Makefile lib: Move fonts from drivers/video/console/ to lib/fonts/ 2013-06-28 10:28:22 +02:00
mdacon.c TTY:vt: convert remain take_over_console's users to do_take_over_console 2013-05-20 22:29:27 -07:00
newport_con.c video/console: use swap() in newport_bmove() 2015-05-27 12:54:49 +03:00
softcursor.c drivers/video/console/softcursor.c: remove redundant NULL check before kfree() 2012-12-10 11:33:53 +02:00
sticon.c video: move fbdev to drivers/video/fbdev 2014-04-17 08:10:19 +03:00
sticore.c video: move fbdev to drivers/video/fbdev 2014-04-17 08:10:19 +03:00
tileblit.c fbcon: Bugfix soft cursor detection in Tile Blitting 2011-03-22 16:41:08 +09:00
vgacon.c video/console: Resolve several shadow warnings 2014-10-22 09:56:41 +03:00