From abial@korin.warman.org.pl  Thu Jun 26 16:43:11 1997
Received: from korin.warman.org.pl (korin.warman.org.pl [148.81.160.10])
          by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA19691
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 26 Jun 1997 16:42:54 -0700 (PDT)
Received: (from abial@localhost) by korin.warman.org.pl (8.8.5/8.7.3) id BAA11652; Fri, 27 Jun 1997 01:33:19 +0200 (MET DST)
Message-Id: <199706262333.BAA11652@korin.warman.org.pl>
Date: Fri, 27 Jun 1997 01:33:19 +0200 (MET DST)
From: abial@nask.pl
Reply-To: abial@nask.pl
To: FreeBSD-gnats-submit@freebsd.org
Subject: print disk internal cache size during probing
X-Send-Pr-Version: 3.2

>Number:         3962
>Category:       i386
>Synopsis:       print disk internal cache size during probing [PATCH]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sos
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 26 16:50:01 PDT 1997
>Closed-Date:    Tue Nov 14 00:56:21 PST 2000
>Last-Modified:  Tue Nov 14 00:56:49 PST 2000
>Originator:     Andrzej Bialecki
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
Research and Academic Network in Poland
>Environment:

>Description:
	Sometimes you will want to know the size of the internal,
	built-in cache of the hard disk. At present, you would have
	to turn on the WDDEBUG in /sys/i386/isa/wd.c. It's at least
	inconvenient, as it requires the kernel to be rebuilt, and
	gives you too much information.

	Sometimes you can encounter a repaired disk with internal
	cache turned off (or bad). It's good to have a quick indication
	of this fact, especially if you buy the secondhand unit.

	This information is gathered during probing - we only have to
	display it.

>How-To-Repeat:

	/sbin/reboot ;-)

>Fix:
	This fix is against -current as of today.
	
--- wd.c.orig	Fri Jun 27 01:14:00 1997
+++ wd.c	Fri Jun 27 01:18:10 1997
@@ -460,10 +460,11 @@
 				       lunit, du->dk_dd.d_secperunit > 17
 					      ? "BIOS" : "fake");
 			printf(
-"wd%d: %luMB (%lu sectors), %lu cyls, %lu heads, %lu S/T, %lu B/S\n",
+"wd%d: %luMB, %d kB cache (%lu sectors), %lu cyls, %lu heads, %lu S/T, %lu B/S\n",
 			       lunit,
 			       du->dk_dd.d_secperunit
 			       / ((1024L * 1024L) / du->dk_dd.d_secsize),
+			       du->dk_params.wdp_buffersize>>1,
 			       du->dk_dd.d_secperunit,
 			       du->dk_dd.d_ncylinders,
 			       du->dk_dd.d_ntracks,

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sos 
Responsible-Changed-By: nbm 
Responsible-Changed-When: Sat Aug 5 13:32:55 PDT 2000 
Responsible-Changed-Why:  
Soren can decide if he wants this in his ata code 

http://www.freebsd.org/cgi/query-pr.cgi?pr=3962 
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Tue Nov 14 00:56:21 PST 2000 
State-Changed-Why:  
The wd driver is depricated. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=3962 
>Unformatted:
