mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Atomicity in KMS panic notifier
@ 2014-05-05 13:02 Takashi Iwai
  2014-05-05 14:29 ` Daniel Vetter
  0 siblings, 1 reply; 11+ messages in thread
From: Takashi Iwai @ 2014-05-05 13:02 UTC (permalink / raw)
  To: dri-devel; +Cc: linux-kernel

Hi,

while debugging a few reported bugs, I noticed that
drm_fb_helper_force_kernel_mode() that is called in the KMS panic
notifier isn't really atomic-safe.  It invokes crtc's set_config(),
and all implementations seem to involve with page allocations (kmalloc
with GFP_KERNEL, via some ttm ops, etc).  I've actually seen the Oops
with cirrus KMS during panic due to this.

Does anyone have an idea to fix this?  I thought of re-using
drm_fb_helper_debug_enter(), but this won't work with many drivers
that don't have crtc->mode_set_base_atomic(), either (yeah, this is
another bug).


thanks,

Takashi

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-05-07 16:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-05 13:02 Atomicity in KMS panic notifier 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
2014-05-07 16:15   ` One Thousand Gnomes

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®