kern/98388: [ata] FreeBSD 6.1 - WDC WD1200JS SATA II disks are seen as older SATA

Andrey V. Elsukov bu7cher at yandex.ru
Thu Aug 14 09:33:48 UTC 2008


sam wrote:
> --------------------------------------------------------
> # ident /boot/kernel/kernel | grep ata-chipset
>     $FreeBSD: src/sys/dev/ata/ata-chipset.c,v 1.202.2.11 2008/08/02 
> 12:34:49 remko Exp $
> --------------------------------------------------------

Can you apply attached patch, rebuild your kernel, reboot in verbose
mode and show /var/run/dmesg.boot ?

-- 
WBR, Andrey V. Elsukov
-------------- next part --------------
--- ata-chipset.c.orig	2008-08-12 08:31:14.000000000 +0400
+++ ata-chipset.c	2008-08-14 13:31:40.000000000 +0400
@@ -2193,6 +2193,11 @@
 	ctlr->allocate = ata_intel_allocate;
 	ctlr->reset = ata_intel_reset;
 
+	if (bootverbose) {
+	    device_printf(dev, "SCRD = 0x%08x, SATACR1 = 0x%08x\n",
+			    pci_read_config(dev, 0x94, 4),
+			    pci_read_config(dev, 0xac, 4));
+	}
 	/* 
 	 * if we have AHCI capability and AHCI or RAID mode enabled
 	 * in BIOS we try for AHCI mode


More information about the freebsd-hackers mailing list