All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>,
	linux-fbdev@vger.kernel.org
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>,
	Scot Doyle <lkml14@scotdoyle.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Pavel Machek <pavel@ucw.cz>, Thierry Reding <treding@nvidia.com>,
	stable@vger.kernel.org
Subject: Re: [PATCH] fbcon: set a default value to blink interval
Date: Fri, 26 Feb 2016 11:21:33 +0000	[thread overview]
Message-ID: <56D0353D.3090304@ti.com> (raw)
In-Reply-To: <1455561693-28615-1-git-send-email-jean-philippe.brucker@arm.com>


[-- Attachment #1.1: Type: text/plain, Size: 1423 bytes --]


On 15/02/16 20:41, Jean-Philippe Brucker wrote:
> Since commit 27a4c827c34ac4256a190cc9d24607f953c1c459
> 	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
> ---
>  drivers/video/console/fbcon.c |    2 ++
>  1 file changed, 2 insertions(+)

Thanks, queued for 4.5 fixes.

 Tomi


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>,
	<linux-fbdev@vger.kernel.org>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>,
	Scot Doyle <lkml14@scotdoyle.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Pavel Machek <pavel@ucw.cz>, Thierry Reding <treding@nvidia.com>,
	<stable@vger.kernel.org>
Subject: Re: [PATCH] fbcon: set a default value to blink interval
Date: Fri, 26 Feb 2016 13:21:33 +0200	[thread overview]
Message-ID: <56D0353D.3090304@ti.com> (raw)
In-Reply-To: <1455561693-28615-1-git-send-email-jean-philippe.brucker@arm.com>


[-- Attachment #1.1: Type: text/plain, Size: 1423 bytes --]


On 15/02/16 20:41, Jean-Philippe Brucker wrote:
> Since commit 27a4c827c34ac4256a190cc9d24607f953c1c459
> 	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
> ---
>  drivers/video/console/fbcon.c |    2 ++
>  1 file changed, 2 insertions(+)

Thanks, queued for 4.5 fixes.

 Tomi


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  parent reply	other threads:[~2016-02-26 11:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-15 18:41 [PATCH] fbcon: set a default value to blink interval Jean-Philippe Brucker
2016-02-15 21:12 ` Scot Doyle
2016-02-15 21:12   ` Scot Doyle
2016-02-26 11:21 ` Tomi Valkeinen [this message]
2016-02-26 11:21   ` Tomi Valkeinen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56D0353D.3090304@ti.com \
    --to=tomi.valkeinen@ti.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jean-philippe.brucker@arm.com \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=lkml14@scotdoyle.com \
    --cc=pavel@ucw.cz \
    --cc=plagnioj@jcrosoft.com \
    --cc=stable@vger.kernel.org \
    --cc=treding@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.