From: Takashi Iwai <tiwai@suse.de>
To: David Herrmann <dh.herrmann@gmail.com>
Cc: Daniel Vetter <daniel@ffwll.ch>,
dri-devel <dri-devel@lists.freedesktop.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Atomicity in KMS panic notifier
Date: Tue, 06 May 2014 16:07:28 +0200 [thread overview]
Message-ID: <s5hbnvbuhjz.wl%tiwai@suse.de> (raw)
In-Reply-To: <CANq1E4Qfohv7A-rcGVb6pc5rRffWsef4FkXButSJUkYxz9qkng@mail.gmail.com>
At Tue, 6 May 2014 15:53:32 +0200,
David Herrmann wrote:
>
> Hi
>
> On Tue, May 6, 2014 at 3:38 PM, Takashi Iwai <tiwai@suse.de> wrote:
> > At Tue, 6 May 2014 15:32:21 +0200,
> > David Herrmann wrote:
> >> fbcon is called through the VT or fbdev layer, which is called by
> >> bust_spinlocks(1) via either unblank_screen() or console_unblank().
> >
> > You mean bust_spinlocks(0), right?
> >
> > void __attribute__((weak)) bust_spinlocks(int yes)
> > {
> > if (yes) {
> > ++oops_in_progress;
> > } else {
> > #ifdef CONFIG_VT
> > unblank_screen();
> > #endif
> > console_unblank();
> > if (--oops_in_progress == 0)
> > wake_up_klogd();
> > }
> > }
> >
> > bust_spinlocks(0) is called after the notifier chain, and it's almost
> > at the end of panic().
>
> Yes, it's called _after_ the panic-handlers but _before_
> console_unlock() (see console_unblank() in printk.c). Therefore, we
> call into set_config() before the serial drivers get the panic-message
> (flushed via console_unlock()). If the serial drivers (or whatever you
> use for debugging) register their own panic-handlers, then they're
> fine of course.
Thanks for clarification. I see it's at the sensible place.
FWIW, the problem I'm tackling now is the blockage of other panic
notifiers due to drm_fb. For example, pvpanic isn't executed reliably
because of this when a KMS (either cirrus or qxl) driver is loaded.
So, for me, it's fine that the system stalls after that point :)
Takashi
next prev parent reply other threads:[~2014-05-06 14:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-05 13:02 Takashi Iwai
2014-05-05 14:29 ` Daniel Vetter
2014-05-05 14:48 ` Takashi Iwai
2014-05-05 14:52 ` Daniel Vetter
2014-05-05 15:04 ` Takashi Iwai
2014-05-06 13:27 ` Takashi Iwai
2014-05-06 13:32 ` David Herrmann
2014-05-06 13:38 ` Takashi Iwai
2014-05-06 13:53 ` David Herrmann
2014-05-06 14:07 ` Takashi Iwai [this message]
2014-05-07 16:15 ` One Thousand Gnomes
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=s5hbnvbuhjz.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=daniel@ffwll.ch \
--cc=dh.herrmann@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®