From owner-freebsd-current Wed Dec 22 11:29:53 1999 Delivered-To: freebsd-current@freebsd.org Received: from atlrel1.hp.com (atlrel1.hp.com [156.153.255.210]) by hub.freebsd.org (Postfix) with ESMTP id 6F37C14F90 for ; Wed, 22 Dec 1999 11:29:30 -0800 (PST) (envelope-from darrylo@sr.hp.com) Received: from postal.sr.hp.com (postal.sr.hp.com [15.4.46.173]) by atlrel1.hp.com (Postfix) with ESMTP id 4073690A1; Wed, 22 Dec 1999 14:29:27 -0500 (EST) Received: from mina.sr.hp.com (root@mina.sr.hp.com [15.4.42.247]) by postal.sr.hp.com with ESMTP (8.8.6 (PHNE_17190)/8.7.3 TIS 5.0) id LAA14685; Wed, 22 Dec 1999 11:29:58 -0800 (PST) Received: from localhost (darrylo@mina.sr.hp.com [15.4.42.247]) by mina.sr.hp.com with ESMTP (8.8.6 (PHNE_17135)/8.7.3 TIS 5.0) id LAA28735; Wed, 22 Dec 1999 11:29:24 -0800 (PST) Message-Id: <199912221929.LAA28735@mina.sr.hp.com> To: Soren Schmidt 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 Reply-To: Darryl Okahata In-reply-to: Your message of "Wed, 22 Dec 1999 13:04:57 +0100." <199912221204.NAA43886@freebsd.dk> Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII Date: Wed, 22 Dec 1999 11:29:24 -0800 From: Darryl Okahata Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Soren Schmidt 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: on ppbus 0, Interrupt-driven port instead of: lpt0: 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