From: Ingo Molnar <mingo@kernel.org>
To: Jean Delvare <jdelvare@suse.de>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] firmware: dmi_scan: Drop dmi_initialized
Date: Sat, 23 Sep 2017 12:50:31 +0200 [thread overview]
Message-ID: <20170923105031.xd6qslfn3sgingn6@gmail.com> (raw)
In-Reply-To: <20170918100551.4c3feea6@endymion>
* Jean Delvare <jdelvare@suse.de> wrote:
> I don't think it makes sense to check for a possible bad
> initialization order at run time on every system when it is all
> decided at build time.
>
> A more efficient way to make sure developers do not introduce new
> calls to dmi_check_system() too early in the initialization sequence
> is to simply document the expected call order. That way, developers
> have a chance to get it right immediately, without having to
> test-boot their kernel, wonder why it does not work, and parse the
> kernel logs for a warning message. And we get rid of the run-time
> performance penalty as a nice side effect.
Huh? Initialization ordering requirements are very opaque, and by removing the
debug check any such bugs are actively hidden. How is documentation supposed to
uncover such bugs once they happen?
So NAK.
Thanks,
Ingo
next prev parent reply other threads:[~2017-09-23 10:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-18 8:05 [PATCH] firmware: dmi_scan: Drop dmi_initialized Jean Delvare
2017-09-23 10:50 ` Ingo Molnar [this message]
2017-09-23 15:29 ` Jean Delvare
2017-09-24 9:16 ` Ingo Molnar
2017-09-25 9:00 ` Jean Delvare
2017-09-25 9:24 ` Peter Zijlstra
2017-09-25 9:26 ` Peter Zijlstra
2017-09-27 8:56 ` Jean Delvare
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=20170923105031.xd6qslfn3sgingn6@gmail.com \
--to=mingo@kernel.org \
--cc=jdelvare@suse.de \
--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