mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Printing HW configuration on boot
@ 2023-10-14 19:57 Artem S. Tashkinov
  2023-10-14 22:32 ` Linus Torvalds
  0 siblings, 1 reply; 2+ messages in thread
From: Artem S. Tashkinov @ 2023-10-14 19:57 UTC (permalink / raw)
  To: linux-kernel, torvalds

Hi everyone,

dmesg is an invaluable source of information about the system however
oftentimes it's the only source of information and it gets really hard
to extract information from it.

It would be great if someone coded the following feature: a printout of
system configuration before the kernel runs /sbin/init, e.g. something
like this:

======= Detected hardware configuration =======
Arch: x86-64, EFI, Secure boot enabled
CPU: Intel/AMD Something; X cores/Y threads
GPU: AMD/Intel/NVIDIA VEN_ID/DEV_ID, VRAM MB
RAM: 32614128K/33414620K available, ECC enabled
Motherboard: Vendor, Model, BIOS revision
Console: i915drmfb, 1024x768@24bit
===============================================

Some (all?) of this information is already there but it's hard to find
and read.

Thanks a ton,
Artem

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

* Re: Printing HW configuration on boot
  2023-10-14 19:57 Printing HW configuration on boot Artem S. Tashkinov
@ 2023-10-14 22:32 ` Linus Torvalds
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Torvalds @ 2023-10-14 22:32 UTC (permalink / raw)
  To: Artem S. Tashkinov; +Cc: linux-kernel

On Sat, 14 Oct 2023 at 12:57, Artem S. Tashkinov <aros@gmx.com> wrote:
>
> dmesg is an invaluable source of information about the system however
> oftentimes it's the only source of information and it gets really hard
> to extract information from it.

Honestly, I don't think this is "fixable". One issue is that different
people will want different "hardware info". Things like CPU model can
be interesting for some uses, but completely useless most of the time
for others. Same goes very much for GPU etc.

So then in other cases you want all of lspci etc, which is generally
too verbose for dmesg anyway (and even if it isn't, you again end up
with some people wanting not just vendor/model, but submodels and PCI
BAR information).

And if some problem happens during boot, you want the printouts to be
as immediate as possible, *not* some "summary once we've gathered
everything".

In other words: what you want for one bugreport is likely very
different what some other person wants for another unrelated issue,
both in content, verbosity, _and_ in timing.

For some issues, you'll want the dmidecode output, because motherboard
and BIOS versions matter. For other situations, none of it matters at
all, because saying "RPi 4 with 8MB" pretty much describes the
hardware. And other situations want a full acpidump.

You can always find *some* issue where exactly what you asked for is
relevant. But then 99% of the time it doesn't matter at all.

There simply isn't some kind of "one right output".

          Linus

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

end of thread, other threads:[~2023-10-14 22:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-14 19:57 Printing HW configuration on boot Artem S. Tashkinov
2023-10-14 22:32 ` Linus Torvalds

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®