public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: Andries.Brouwer@cwi.nl
Cc: linux-kernel@vger.kernel.org
Subject: Re: boot messages
Date: Tue, 22 Apr 2003 09:01:36 -0400	[thread overview]
Message-ID: <20030422130135.GA16465@gtf.org> (raw)
In-Reply-To: <UTC200304221245.h3MCjp122735.aeb@smtp.cwi.nl>

On Tue, Apr 22, 2003 at 02:45:51PM +0200, Andries.Brouwer@cwi.nl wrote:
> Comparing my net sources with the vanilla sources showed
> a series of differences of which I sent most to you
> a moment ago. We still have one point of discussion.
> 
> >> I suppose these can be removed altogether.
> >> For now #if 0 ... #endif.
> 
> > would it not be preferable to mark these as KERN_DEBUG instead?
> 
> I don't think so, but am willing to be convinced by Alan
> in the case of lba48 messages. In the other cases these
> messages just have to go.

FWIW, we don't like adding ifdefs to the kernel anyway.  Even if
you disagree WRT my KERN_DEBUG point, a tangent objection is also to
the #if's themselves.  I prefer a C if, or looking at the driver and
finding an appropriate existing #ifdef DEBUG construct.


> Boot messages must tell us what hardware is detected.
> We must not have debugging messages stating how
> much memory is allocated for slab cache or so.
> One can ask /proc after booting, and unless there are
> serious bugs in the code such things do not affect booting.
> 
> When disk hardware is detected, I want to see manufacturer,
> model, serial number and capacity.
> When ethernet hardware is detected, I want to see manufacturer,
> model and MAC address. (Possibly also IRQ and ioport.)

agreed

For ethernet: mmio/pio port, mac addr, irq.  Most PCI net drivers should
already do this, and patches to add missing information are welcome.


> You never reacted, so I keep saying this until you either
> take this patch or explain why in case of this particular driver
> it is a bad idea to reveal the MAC address in the boot messages.

well, you did the right thing, with resending :)


> [I have also more general patches making sure that the MAC address
> is printed in a uniform way by all drivers, but that comes later.]
> 
> Some more or less unrelated stuff below the patch.
> 
> Andries
> 
> diff -u --recursive --new-file -X /linux/dontdiff a/drivers/net/3c59x.c b/drivers/net/3c59x.c
> --- a/drivers/net/3c59x.c	Sun Apr 20 12:59:32 2003
> +++ b/drivers/net/3c59x.c	Sun Apr 20 19:07:00 2003

this looks ok to me.

In fact, I am wondering why this code wasn't here before, in fact,
because Donald Becker (original author) is usually pretty good about
printing out the MAC/etc. information for each interface found.


> A separate discussion:
> Ethernet cards are numbered differently by different kernels.
> A bit annoying, and I have tried to fix this a few times,
> but probably one just should accept it.
> The previous time this came up people answered and said:
> use "nameif".

Two points here:

1) official answer is, "if you want stable ethernet interface naming,
use nameif"

2) I have been told more than once that ethernet device allocation order
changed between 2.4 and 2.5.  I consider this a bug, and welcome patches
to fix it.  Note, though, that the recent PCI probe order fixes that
went in via Andrew Morton may have addressed this issue for some people.

	Jeff





  reply	other threads:[~2003-04-22 12:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-22 12:45 boot messages Andries.Brouwer
2003-04-22 13:01 ` Jeff Garzik [this message]
2003-04-22 14:20   ` Randy.Dunlap
2003-04-22 15:14     ` Jeff Garzik
  -- strict thread matches above, loose matches on Subject: below --
2003-04-22 15:11 Andries.Brouwer

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=20030422130135.GA16465@gtf.org \
    --to=jgarzik@pobox.com \
    --cc=Andries.Brouwer@cwi.nl \
    --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