* [PATCH] 50drm: Install dracut 50drm module in hostonly mode when drm driver is currently in use.
@ 2013-05-24 8:22 WANG Chao
[not found] ` <1369383763-24956-1-git-send-email-chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 9+ messages in thread
From: WANG Chao @ 2013-05-24 8:22 UTC (permalink / raw)
To: harald-H+wXaHxf7aLQT0dZR+AlfA
Cc: dyoung-H+wXaHxf7aLQT0dZR+AlfA, bhe-H+wXaHxf7aLQT0dZR+AlfA,
initramfs-u79uwXL29TY76Z2rM5mHXA
Now only 50plymouth module can pull in 50drm and that's very limited.
Because KMS capable drm drivers are much needed in initrd to have a
frame buffer console on the screen.
Particularly, when building kdump initrd, plymouth module is omitted,
but drm is necessary to setup a working screen for one sitting in front
of a monitor.
Signed-off-by: WANG Chao <chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
---
modules.d/50drm/module-setup.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules.d/50drm/module-setup.sh b/modules.d/50drm/module-setup.sh
index bf33c5b..648e8f4 100644
--- a/modules.d/50drm/module-setup.sh
+++ b/modules.d/50drm/module-setup.sh
@@ -3,6 +3,10 @@
# ex: ts=8 sw=4 sts=4 et filetype=sh
check() {
+ if [[ $hostonly ]] && [ -d /sys/module/drm/drivers ]; then
+ return 0
+ fi
+
return 255
}
--
1.8.2.1
^ permalink raw reply related [flat|nested] 9+ messages in thread[parent not found: <1369383763-24956-1-git-send-email-chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH] 50drm: Install dracut 50drm module in hostonly mode when drm driver is currently in use. [not found] ` <1369383763-24956-1-git-send-email-chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2013-05-28 12:09 ` Harald Hoyer [not found] ` <51A49E65.9000206-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 0 siblings, 1 reply; 9+ messages in thread From: Harald Hoyer @ 2013-05-28 12:09 UTC (permalink / raw) To: WANG Chao Cc: dyoung-H+wXaHxf7aLQT0dZR+AlfA, bhe-H+wXaHxf7aLQT0dZR+AlfA, initramfs-u79uwXL29TY76Z2rM5mHXA On 05/24/2013 10:22 AM, WANG Chao wrote: > Now only 50plymouth module can pull in 50drm and that's very limited. > Because KMS capable drm drivers are much needed in initrd to have a > frame buffer console on the screen. > > Particularly, when building kdump initrd, plymouth module is omitted, > but drm is necessary to setup a working screen for one sitting in front > of a monitor. > > Signed-off-by: WANG Chao <chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> > --- > modules.d/50drm/module-setup.sh | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/modules.d/50drm/module-setup.sh b/modules.d/50drm/module-setup.sh > index bf33c5b..648e8f4 100644 > --- a/modules.d/50drm/module-setup.sh > +++ b/modules.d/50drm/module-setup.sh > @@ -3,6 +3,10 @@ > # ex: ts=8 sw=4 sts=4 et filetype=sh > > check() { > + if [[ $hostonly ]] && [ -d /sys/module/drm/drivers ]; then > + return 0 > + fi > + > return 255 > } > > Hmm, why not let the kdump module depend on drm? depends() { echo drm } Anyway, do we really need drm for a simple console? Those drivers are really really big and take a long time to load and initialize? ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <51A49E65.9000206-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH] 50drm: Install dracut 50drm module in hostonly mode when drm driver is currently in use. [not found] ` <51A49E65.9000206-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2013-05-29 2:45 ` Dave Young [not found] ` <51A56BC8.2010205-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 0 siblings, 1 reply; 9+ messages in thread From: Dave Young @ 2013-05-29 2:45 UTC (permalink / raw) To: Harald Hoyer Cc: WANG Chao, bhe-H+wXaHxf7aLQT0dZR+AlfA, initramfs-u79uwXL29TY76Z2rM5mHXA On 05/28/2013 08:09 PM, Harald Hoyer wrote: > On 05/24/2013 10:22 AM, WANG Chao wrote: >> Now only 50plymouth module can pull in 50drm and that's very limited. >> Because KMS capable drm drivers are much needed in initrd to have a >> frame buffer console on the screen. >> >> Particularly, when building kdump initrd, plymouth module is omitted, >> but drm is necessary to setup a working screen for one sitting in front >> of a monitor. >> >> Signed-off-by: WANG Chao <chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> >> --- >> modules.d/50drm/module-setup.sh | 4 ++++ >> 1 file changed, 4 insertions(+) >> >> diff --git a/modules.d/50drm/module-setup.sh b/modules.d/50drm/module-setup.sh >> index bf33c5b..648e8f4 100644 >> --- a/modules.d/50drm/module-setup.sh >> +++ b/modules.d/50drm/module-setup.sh >> @@ -3,6 +3,10 @@ >> # ex: ts=8 sw=4 sts=4 et filetype=sh >> >> check() { >> + if [[ $hostonly ]] && [ -d /sys/module/drm/drivers ]; then >> + return 0 >> + fi >> + >> return 255 >> } >> >> > > Hmm, why not let the kdump module depend on drm? If you do not like it we can consider add it to kdump module.. > > depends() { > echo drm > } > > Anyway, do we really need drm for a simple console? Those drivers are really > really big and take a long time to load and initialize? It's a little awkward, after kernel crashing suppose 1st kernel is in kms mode, it can not reset to nomodeset, so screen will keep black. There's no such issue in normal initramfs because bios always reset devices for us. > -- Thanks Dave ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <51A56BC8.2010205-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH] 50drm: Install dracut 50drm module in hostonly mode when drm driver is currently in use. [not found] ` <51A56BC8.2010205-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2013-05-29 6:57 ` WANG Chao [not found] ` <20130529065726.GA28070-UAAZkH0G2Ts1naxU1pY8ZxcY2uh10dtjAL8bYrjMMd8@public.gmane.org> 2013-05-29 8:40 ` Harald Hoyer 1 sibling, 1 reply; 9+ messages in thread From: WANG Chao @ 2013-05-29 6:57 UTC (permalink / raw) To: Dave Young; +Cc: Harald Hoyer, Baoquan, initramfs-u79uwXL29TY76Z2rM5mHXA On 05/29/13 at 10:45am, Dave Young wrote: > On 05/28/2013 08:09 PM, Harald Hoyer wrote: > > On 05/24/2013 10:22 AM, WANG Chao wrote: > >> Now only 50plymouth module can pull in 50drm and that's very limited. > >> Because KMS capable drm drivers are much needed in initrd to have a > >> frame buffer console on the screen. > >> > >> Particularly, when building kdump initrd, plymouth module is omitted, > >> but drm is necessary to setup a working screen for one sitting in front > >> of a monitor. > >> > >> Signed-off-by: WANG Chao <chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> > >> --- > >> modules.d/50drm/module-setup.sh | 4 ++++ > >> 1 file changed, 4 insertions(+) > >> > >> diff --git a/modules.d/50drm/module-setup.sh b/modules.d/50drm/module-setup.sh > >> index bf33c5b..648e8f4 100644 > >> --- a/modules.d/50drm/module-setup.sh > >> +++ b/modules.d/50drm/module-setup.sh > >> @@ -3,6 +3,10 @@ > >> # ex: ts=8 sw=4 sts=4 et filetype=sh > >> > >> check() { > >> + if [[ $hostonly ]] && [ -d /sys/module/drm/drivers ]; then > >> + return 0 > >> + fi > >> + > >> return 255 > >> } > >> > >> > > > > Hmm, why not let the kdump module depend on drm? > > If you do not like it we can consider add it to kdump module.. So now if I build initrd w/o plymouth, I will not have frame buffer console in initrd. That looks more like a general issue to me. WANG Chao > > > > > depends() { > > echo drm > > } > > > > Anyway, do we really need drm for a simple console? Those drivers are really > > really big and take a long time to load and initialize? > > It's a little awkward, after kernel crashing suppose 1st kernel is in > kms mode, it can not reset to nomodeset, so screen will keep black. > > There's no such issue in normal initramfs because bios always reset > devices for us. > > > > > > -- > Thanks > Dave > > ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <20130529065726.GA28070-UAAZkH0G2Ts1naxU1pY8ZxcY2uh10dtjAL8bYrjMMd8@public.gmane.org>]
* Re: [PATCH] 50drm: Install dracut 50drm module in hostonly mode when drm driver is currently in use. [not found] ` <20130529065726.GA28070-UAAZkH0G2Ts1naxU1pY8ZxcY2uh10dtjAL8bYrjMMd8@public.gmane.org> @ 2013-05-29 9:44 ` Harald Hoyer [not found] ` <51A5CDE9.4090808-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 0 siblings, 1 reply; 9+ messages in thread From: Harald Hoyer @ 2013-05-29 9:44 UTC (permalink / raw) To: WANG Chao; +Cc: Dave Young, Baoquan, initramfs-u79uwXL29TY76Z2rM5mHXA On 05/29/2013 08:57 AM, WANG Chao wrote: > On 05/29/13 at 10:45am, Dave Young wrote: >> On 05/28/2013 08:09 PM, Harald Hoyer wrote: >>> On 05/24/2013 10:22 AM, WANG Chao wrote: >>>> Now only 50plymouth module can pull in 50drm and that's very limited. >>>> Because KMS capable drm drivers are much needed in initrd to have a >>>> frame buffer console on the screen. >>>> >>>> Particularly, when building kdump initrd, plymouth module is omitted, >>>> but drm is necessary to setup a working screen for one sitting in front >>>> of a monitor. >>>> >>>> Signed-off-by: WANG Chao <chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> >>>> --- >>>> modules.d/50drm/module-setup.sh | 4 ++++ >>>> 1 file changed, 4 insertions(+) >>>> >>>> diff --git a/modules.d/50drm/module-setup.sh b/modules.d/50drm/module-setup.sh >>>> index bf33c5b..648e8f4 100644 >>>> --- a/modules.d/50drm/module-setup.sh >>>> +++ b/modules.d/50drm/module-setup.sh >>>> @@ -3,6 +3,10 @@ >>>> # ex: ts=8 sw=4 sts=4 et filetype=sh >>>> >>>> check() { >>>> + if [[ $hostonly ]] && [ -d /sys/module/drm/drivers ]; then >>>> + return 0 >>>> + fi >>>> + >>>> return 255 >>>> } >>>> >>>> >>> >>> Hmm, why not let the kdump module depend on drm? >> >> If you do not like it we can consider add it to kdump module.. > > So now if I build initrd w/o plymouth, I will not have frame buffer > console in initrd. That looks more like a general issue to me. > > WANG Chao Do we really need a fb console? If there is a valid reason, I will change "return 255" to "return 0". ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <51A5CDE9.4090808-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH] 50drm: Install dracut 50drm module in hostonly mode when drm driver is currently in use. [not found] ` <51A5CDE9.4090808-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2013-05-29 10:41 ` WANG Chao [not found] ` <20130529104112.GA3727-UAAZkH0G2Ts1naxU1pY8ZxcY2uh10dtjAL8bYrjMMd8@public.gmane.org> 0 siblings, 1 reply; 9+ messages in thread From: WANG Chao @ 2013-05-29 10:41 UTC (permalink / raw) To: Harald Hoyer; +Cc: Dave Young, Baoquan, initramfs-u79uwXL29TY76Z2rM5mHXA On 05/29/13 at 11:44am, Harald Hoyer wrote: > On 05/29/2013 08:57 AM, WANG Chao wrote: > > On 05/29/13 at 10:45am, Dave Young wrote: > >> On 05/28/2013 08:09 PM, Harald Hoyer wrote: > >>> On 05/24/2013 10:22 AM, WANG Chao wrote: > >>>> Now only 50plymouth module can pull in 50drm and that's very limited. > >>>> Because KMS capable drm drivers are much needed in initrd to have a > >>>> frame buffer console on the screen. > >>>> > >>>> Particularly, when building kdump initrd, plymouth module is omitted, > >>>> but drm is necessary to setup a working screen for one sitting in front > >>>> of a monitor. > >>>> > >>>> Signed-off-by: WANG Chao <chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> > >>>> --- > >>>> modules.d/50drm/module-setup.sh | 4 ++++ > >>>> 1 file changed, 4 insertions(+) > >>>> > >>>> diff --git a/modules.d/50drm/module-setup.sh b/modules.d/50drm/module-setup.sh > >>>> index bf33c5b..648e8f4 100644 > >>>> --- a/modules.d/50drm/module-setup.sh > >>>> +++ b/modules.d/50drm/module-setup.sh > >>>> @@ -3,6 +3,10 @@ > >>>> # ex: ts=8 sw=4 sts=4 et filetype=sh > >>>> > >>>> check() { > >>>> + if [[ $hostonly ]] && [ -d /sys/module/drm/drivers ]; then > >>>> + return 0 > >>>> + fi > >>>> + > >>>> return 255 > >>>> } > >>>> > >>>> > >>> > >>> Hmm, why not let the kdump module depend on drm? > >> > >> If you do not like it we can consider add it to kdump module.. > > > > So now if I build initrd w/o plymouth, I will not have frame buffer > > console in initrd. That looks more like a general issue to me. > > > > WANG Chao > > Do we really need a fb console? > If there is a valid reason, I will change "return 255" to "return 0". Actually I don't have strong technical reason. But from a user's perspective, there are some benefits: - Higher resolution on the screen. It's good-looking and show me much more text. - Initializing drm drivers would cause a flash on the screen and clear all existing text. I'd like this flash happens in initrd not later in real root. (During bootup, I care more about the status of real root systemd services than what's going on in initrd as long as it switches to root successfully) I know it's weird for a normal boot to try to avoid plymouth but still want fb console. So I wouldn't blame it if you don't feel comfortable about the change. Thanks WANG Chao ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <20130529104112.GA3727-UAAZkH0G2Ts1naxU1pY8ZxcY2uh10dtjAL8bYrjMMd8@public.gmane.org>]
* Re: [PATCH] 50drm: Install dracut 50drm module in hostonly mode when drm driver is currently in use. [not found] ` <20130529104112.GA3727-UAAZkH0G2Ts1naxU1pY8ZxcY2uh10dtjAL8bYrjMMd8@public.gmane.org> @ 2013-05-29 10:54 ` Harald Hoyer [not found] ` <51A5DE55.7020801-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 0 siblings, 1 reply; 9+ messages in thread From: Harald Hoyer @ 2013-05-29 10:54 UTC (permalink / raw) To: WANG Chao; +Cc: Dave Young, Baoquan, initramfs-u79uwXL29TY76Z2rM5mHXA On 05/29/2013 12:41 PM, WANG Chao wrote: >> >> Do we really need a fb console? >> If there is a valid reason, I will change "return 255" to "return 0". > > Actually I don't have strong technical reason. > > But from a user's perspective, there are some benefits: > - Higher resolution on the screen. It's good-looking and show me much > more text. > - Initializing drm drivers would cause a flash on the screen and clear > all existing text. I'd like this flash happens in initrd not later in > real root. > (During bootup, I care more about the status of real root systemd > services than what's going on in initrd as long as it > switches to root successfully) > > I know it's weird for a normal boot to try to avoid plymouth but still want fb > console. So I wouldn't blame it if you don't feel comfortable about the > change. > > Thanks > WANG Chao > Well, my reasons are size and speed for those who want a very minimal initramfs. The initramfs should not do more than it has to, to get to the real rootfs. If someone omits the dracut plymouth module manually, he can also add drm in the same step, if he wants. I might change my mind, when we move to wayland terminal consoles. :) ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <51A5DE55.7020801-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH] 50drm: Install dracut 50drm module in hostonly mode when drm driver is currently in use. [not found] ` <51A5DE55.7020801-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2013-05-29 15:12 ` WANG Chao 0 siblings, 0 replies; 9+ messages in thread From: WANG Chao @ 2013-05-29 15:12 UTC (permalink / raw) To: Harald Hoyer; +Cc: Dave Young, Baoquan, initramfs-u79uwXL29TY76Z2rM5mHXA On 05/29/13 at 12:54pm, Harald Hoyer wrote: > On 05/29/2013 12:41 PM, WANG Chao wrote: > >> > >> Do we really need a fb console? > >> If there is a valid reason, I will change "return 255" to "return 0". > > > > Actually I don't have strong technical reason. > > > > But from a user's perspective, there are some benefits: > > - Higher resolution on the screen. It's good-looking and show me much > > more text. > > - Initializing drm drivers would cause a flash on the screen and clear > > all existing text. I'd like this flash happens in initrd not later in > > real root. > > (During bootup, I care more about the status of real root systemd > > services than what's going on in initrd as long as it > > switches to root successfully) > > > > I know it's weird for a normal boot to try to avoid plymouth but still want fb > > console. So I wouldn't blame it if you don't feel comfortable about the > > change. > > > > Thanks > > WANG Chao > > > > Well, my reasons are size and speed for those who want a very minimal initramfs. > The initramfs should not do more than it has to, to get to the real rootfs. > > If someone omits the dracut plymouth module manually, he can also add drm in the > same step, if he wants. > > I might change my mind, when we move to wayland terminal consoles. :) Point taken. kdump will pull in drm module. Thanks! ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] 50drm: Install dracut 50drm module in hostonly mode when drm driver is currently in use. [not found] ` <51A56BC8.2010205-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 2013-05-29 6:57 ` WANG Chao @ 2013-05-29 8:40 ` Harald Hoyer 1 sibling, 0 replies; 9+ messages in thread From: Harald Hoyer @ 2013-05-29 8:40 UTC (permalink / raw) To: Dave Young Cc: WANG Chao, bhe-H+wXaHxf7aLQT0dZR+AlfA, initramfs-u79uwXL29TY76Z2rM5mHXA On 05/29/2013 04:45 AM, Dave Young wrote: > On 05/28/2013 08:09 PM, Harald Hoyer wrote: >> On 05/24/2013 10:22 AM, WANG Chao wrote: >>> Now only 50plymouth module can pull in 50drm and that's very limited. >>> Because KMS capable drm drivers are much needed in initrd to have a >>> frame buffer console on the screen. >>> >>> Particularly, when building kdump initrd, plymouth module is omitted, >>> but drm is necessary to setup a working screen for one sitting in front >>> of a monitor. >>> >>> Signed-off-by: WANG Chao <chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> >>> --- >>> modules.d/50drm/module-setup.sh | 4 ++++ >>> 1 file changed, 4 insertions(+) >>> >>> diff --git a/modules.d/50drm/module-setup.sh b/modules.d/50drm/module-setup.sh >>> index bf33c5b..648e8f4 100644 >>> --- a/modules.d/50drm/module-setup.sh >>> +++ b/modules.d/50drm/module-setup.sh >>> @@ -3,6 +3,10 @@ >>> # ex: ts=8 sw=4 sts=4 et filetype=sh >>> >>> check() { >>> + if [[ $hostonly ]] && [ -d /sys/module/drm/drivers ]; then >>> + return 0 >>> + fi >>> + >>> return 255 >>> } >>> >>> >> >> Hmm, why not let the kdump module depend on drm? > > If you do not like it we can consider add it to kdump module.. > >> >> depends() { >> echo drm >> } >> >> Anyway, do we really need drm for a simple console? Those drivers are really >> really big and take a long time to load and initialize? > > It's a little awkward, after kernel crashing suppose 1st kernel is in > kms mode, it can not reset to nomodeset, so screen will keep black. > > There's no such issue in normal initramfs because bios always reset > devices for us. > Ah! Thanks for the clarification! That makes sense. Because this happens only for kexec, I suggest to add the dependency to the kdump module. ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2013-05-29 15:12 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-24 8:22 [PATCH] 50drm: Install dracut 50drm module in hostonly mode when drm driver is currently in use WANG Chao
[not found] ` <1369383763-24956-1-git-send-email-chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-05-28 12:09 ` Harald Hoyer
[not found] ` <51A49E65.9000206-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-05-29 2:45 ` Dave Young
[not found] ` <51A56BC8.2010205-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-05-29 6:57 ` WANG Chao
[not found] ` <20130529065726.GA28070-UAAZkH0G2Ts1naxU1pY8ZxcY2uh10dtjAL8bYrjMMd8@public.gmane.org>
2013-05-29 9:44 ` Harald Hoyer
[not found] ` <51A5CDE9.4090808-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-05-29 10:41 ` WANG Chao
[not found] ` <20130529104112.GA3727-UAAZkH0G2Ts1naxU1pY8ZxcY2uh10dtjAL8bYrjMMd8@public.gmane.org>
2013-05-29 10:54 ` Harald Hoyer
[not found] ` <51A5DE55.7020801-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-05-29 15:12 ` WANG Chao
2013-05-29 8:40 ` Harald Hoyer
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.