Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Dec 1999 11:29:24 -0800
From:      Darryl Okahata <darrylo@sr.hp.com>
To:        Soren Schmidt <sos@freebsd.dk>
Cc:        n_hibma@webweaving.org (Nick Hibma), dwhite@resnet.uoregon.edu (Doug     White), havoc@Cal30B054.student.utwente.nl (Theo van Klaveren), freebsd-current@FreeBSD.ORG
Subject:   Re: Problems with the ATA-driver 
Message-ID:  <199912221929.LAA28735@mina.sr.hp.com>
In-Reply-To: Your message of "Wed, 22 Dec 1999 13:04:57 %2B0100." <199912221204.NAA43886@freebsd.dk> 

next in thread | previous in thread | raw e-mail | index | archive | help
Soren Schmidt <sos@freebsd.dk> wrote:

> It seems Nick Hibma wrote:
> > > If you end up doing this, can you have the driver print a line letting 
> > > people know this is intentional?  i.e., 
> > > 
> > > ad0: DMA disabled: This drive does not properly support DMA mode.
> > > ad0: To force DMA for this drive (at your own risk) set flags 0xXX.
> > 
> > Let's not go the Linux way and make the boot messages slow down booting.
> 
> Agreed.

     While this can be moved into the man page, I don't see how a
message like this can significantly slow down booting, unless you have a
slow serial console.  However, a pointer is still useful; I'd suggest a
shorter message like:

  ad0: DMA disabled: See ad(4) man page for possible reasons.

(Replace "ad" with the name of the ata man page.)  If you're really
concerned about boot messages and boot speed, all messages for
configured devices should be suppressed and only printed for boot -v;
only errors, warnings, and unconfigured device info should be displayed.
Today, the "non-verbose" boot messages are pretty verbose.  Examples
include:

  ata-pci0: Busmastering DMA supported
	Having this line is no different from the above "DMA disabled ..."
	message (although, yes, the messages are from different drivers).

  lpt0: Interrupt-driven port
	If you're really concerned about boot speed, this line can be
	merged with the main lpt0 line, e.g. use:

		lpt0: <generic printer> on ppbus 0, Interrupt-driven port

	instead of:

		lpt0: <generic printer> on ppbus 0
		lpt0: Interrupt-driven port

	(And yes, I did take a look at the code to see if this is
	possible, and it easily is.)

  acd0: supported read types: CD-R, CD-DA, DVD-ROM, DVD-R
  acd0: Audio: play, 255 volume levels
  acd0: Mechanism: ejectable tray
  acd0: Medium: 120mm data disc loaded, unlocked
	Again, these are probably "boot -v" information.  If you're
	really concerned about boot speed, you should be concerned about 
	this.

[ Personally, I like the way dmesg is now, but I guess some people
  don't.  ]

--
	Darryl Okahata
	darrylo@sr.hp.com

DISCLAIMER: this message is the author's personal opinion and does not
constitute the support, opinion, or policy of Agilent Technologies, or
of the little green men that have been following him all day.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912221929.LAA28735>