* Re: [Ksummit-discuss] [TECH TOPIC] printk redesign [not found] ` <CAKMK7uGR_Zn1eW9znd_HNF1VS5ELmrrZwXBwmkpaAzB=F_qG3A@mail.gmail.com> @ 2017-06-22 13:48 ` Daniel Vetter 2017-06-23 9:07 ` Bartlomiej Zolnierkiewicz 0 siblings, 1 reply; 3+ messages in thread From: Daniel Vetter @ 2017-06-22 13:48 UTC (permalink / raw) To: Sergey Senozhatsky, Bartlomiej Zolnierkiewicz, Linux Fbdev development list Cc: ksummit-discuss@lists.linuxfoundation.org On Thu, Jun 22, 2017 at 3:42 PM, Daniel Vetter <daniel.vetter@ffwll.ch> wrote: > Tears pretty much guaranteed, and after a few hacks from Alan&me I > concluded that the only way to fix this is to at least partially > rewrite fbdev (a dead subsystem, so no one's volunteering), with the > risk that you get to revert it all because someone is indeed relying > on that super-flexible module loading order sequence. The simplest fix > would probably be to make the entire fbdev->fbcon setup depency a > hard-coded function call, or maybe at most a one-shot symbol_get > attempt. I did once hash out a plan how to fix this with the least amount of pain: 1. Merge a patch to build the fbcon support into the overall fb.ko module, so that the dynamic loading nonsense is essentially disabled, and fbcon becomes a Kconfig/compile-time only option, no longer a runtime-selectable thing. 2. Wait 1 year and pray that no one reports a regression. If you're unlucky, try to fence them of with a runtime option to disable fbcon. 3. Rip out the notifier nonsense and replace it by direct function calls. You can only do that once 1. won't be reverted anymore. 4. Push the console_lock donw the callchains until it's again at the right spots, auditing all the other stuff meanwhile to make sure the locking is still correct. 5. Apply your patch to make console_lock sane. Adding fbdev maintainers and lists just. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Ksummit-discuss] [TECH TOPIC] printk redesign 2017-06-22 13:48 ` [Ksummit-discuss] [TECH TOPIC] printk redesign Daniel Vetter @ 2017-06-23 9:07 ` Bartlomiej Zolnierkiewicz 2017-06-27 13:06 ` Sergey Senozhatsky 0 siblings, 1 reply; 3+ messages in thread From: Bartlomiej Zolnierkiewicz @ 2017-06-23 9:07 UTC (permalink / raw) To: Daniel Vetter Cc: ksummit-discuss@lists.linuxfoundation.org, Linux Fbdev development list Hi, On Thursday, June 22, 2017 03:48:34 PM Daniel Vetter wrote: > On Thu, Jun 22, 2017 at 3:42 PM, Daniel Vetter <daniel.vetter@ffwll.ch> wrote: > > Tears pretty much guaranteed, and after a few hacks from Alan&me I > > concluded that the only way to fix this is to at least partially > > rewrite fbdev (a dead subsystem, so no one's volunteering), with the > > risk that you get to revert it all because someone is indeed relying > > on that super-flexible module loading order sequence. The simplest fix > > would probably be to make the entire fbdev->fbcon setup depency a > > hard-coded function call, or maybe at most a one-shot symbol_get > > attempt. > > I did once hash out a plan how to fix this with the least amount of pain: > > 1. Merge a patch to build the fbcon support into the overall fb.ko > module, so that the dynamic loading nonsense is essentially disabled, > and fbcon becomes a Kconfig/compile-time only option, no longer a > runtime-selectable thing. > > 2. Wait 1 year and pray that no one reports a regression. If you're > unlucky, try to fence them of with a runtime option to disable fbcon. > > 3. Rip out the notifier nonsense and replace it by direct function > calls. You can only do that once 1. won't be reverted anymore. > > 4. Push the console_lock donw the callchains until it's again at the > right spots, auditing all the other stuff meanwhile to make sure the > locking is still correct. > > 5. Apply your patch to make console_lock sane. > > Adding fbdev maintainers and lists just. Your plan sounds good to me. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Ksummit-discuss] [TECH TOPIC] printk redesign 2017-06-23 9:07 ` Bartlomiej Zolnierkiewicz @ 2017-06-27 13:06 ` Sergey Senozhatsky 0 siblings, 0 replies; 3+ messages in thread From: Sergey Senozhatsky @ 2017-06-27 13:06 UTC (permalink / raw) To: Bartlomiej Zolnierkiewicz Cc: ksummit-discuss@lists.linuxfoundation.org, Linux Fbdev development list On (06/23/17 11:07), Bartlomiej Zolnierkiewicz wrote: > On Thursday, June 22, 2017 03:48:34 PM Daniel Vetter wrote: > > On Thu, Jun 22, 2017 at 3:42 PM, Daniel Vetter <daniel.vetter@ffwll.ch> wrote: > > > Tears pretty much guaranteed, and after a few hacks from Alan&me I > > > concluded that the only way to fix this is to at least partially > > > rewrite fbdev (a dead subsystem, so no one's volunteering), with the > > > risk that you get to revert it all because someone is indeed relying > > > on that super-flexible module loading order sequence. The simplest fix > > > would probably be to make the entire fbdev->fbcon setup depency a > > > hard-coded function call, or maybe at most a one-shot symbol_get > > > attempt. > > > > I did once hash out a plan how to fix this with the least amount of pain: > > > > 1. Merge a patch to build the fbcon support into the overall fb.ko > > module, so that the dynamic loading nonsense is essentially disabled, > > and fbcon becomes a Kconfig/compile-time only option, no longer a > > runtime-selectable thing. > > > > 2. Wait 1 year and pray that no one reports a regression. If you're > > unlucky, try to fence them of with a runtime option to disable fbcon. > > > > 3. Rip out the notifier nonsense and replace it by direct function > > calls. You can only do that once 1. won't be reverted anymore. > > > > 4. Push the console_lock donw the callchains until it's again at the > > right spots, auditing all the other stuff meanwhile to make sure the > > locking is still correct. > > > > 5. Apply your patch to make console_lock sane. > > > > Adding fbdev maintainers and lists just. > > Your plan sounds good to me. cool. I'm willing to help. let's coordinate. -ss ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-06-27 13:06 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20170619052146.GA2889@jagdpanzerIV.localdomain> [not found] ` <ef18231f-c69b-5d88-0410-485cfcf4143b@suse.com> [not found] ` <20170619103912.2edbf88a@gandalf.local.home> [not found] ` <CAKMK7uEnsezRz=0-A2oAtSOTxNDR9LOCd8XOaG=tkC8+Xf_puQ@mail.gmail.com> [not found] ` <20170621101418.GA455@jagdpanzerIV.localdomain> [not found] ` <CAKMK7uGR_Zn1eW9znd_HNF1VS5ELmrrZwXBwmkpaAzB=F_qG3A@mail.gmail.com> 2017-06-22 13:48 ` [Ksummit-discuss] [TECH TOPIC] printk redesign Daniel Vetter 2017-06-23 9:07 ` Bartlomiej Zolnierkiewicz 2017-06-27 13:06 ` Sergey Senozhatsky
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).