disks not recognized as sata2

2007-08-24 Thread Marcos Laufer
Hello list,

I installed the latest snapshot on an Intel D945GCcr mobo
which supports SATA-300 (sata2) , plugged in some hard
disks, all of them Western Digital WD3200AAKS,
wich according to WD website those work at 300 mb/s.
(http://www.westerndigital.com/sp/products/products.asp?driveid=299language
=en)
but OpenBSD doesn't seem to recognize them with the
AHCI driver , and they are recognized as UDMA5 instead.
I'd like to enable full speed on this disks, any tips?

Here i paste a full dmesg :

OpenBSD 4.2 (GENERIC) #373: Tue Aug 21 10:36:43 MDT 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
RTC BIOS diagnostic error 80clock_battery
cpu0: Intel(R) Pentium(R) 4 CPU 3.00GHz (GenuineIntel 686-class) 3 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLU
SH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,CNXT-ID
,CX16,xTPR
real mem  = 2136190976 (2037MB)
avail mem = 2057965568 (1962MB)
RTC BIOS diagnostic error 80clock_battery
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/12/06, SMBIOS rev. 2.4 @ 0xe44b0
(29 entries)
bios0: vendor Intel Corp. version CR94510J.86A.0031.2006.1212.1648 date
12/12/2006
bios0: Intel Corporation D945GCCR
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown, estimated 0:00 hours
apm0: flags 30102 dobusy 0 doidle 1
pcibios at bios0 function 0x1a not configured
bios0: ROM list: 0xc/0xae00!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82945GP rev 0x02: rng active,
800Kb/sec
vga1 at pci0 dev 2 function 0 Intel 82945G Video rev 0x02: aperture at
0x8000, size 0x1000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x01
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x01
pci3 at ppb2 bus 3
ppb3 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0xe1
pci4 at ppb3 bus 4
fxp0 at pci4 dev 8 function 0 Intel PRO/100 VM rev 0x01, i82562: irq 9,
address 00:19:d1:52:40:58
ukphy0 at fxp0 phy 1: Generic IEEE 802.3u media interface, rev. 0: OUI
0x00aa00, model 0x0031
ichpcib0 at pci0 dev 31 function 0 Intel 82801GB LPC rev 0x01: PM disabled
pciide0 at pci0 dev 31 function 1 Intel 82801GB IDE rev 0x01: DMA, channel
0 configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, CD-ROM GCR-8523B, 1.01 SCSI0
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
pciide0: channel 1 ignored (disabled)
pciide1 at pci0 dev 31 function 2 Intel 82801GB SATA rev 0x01: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using irq 11 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: WDC WD3200AAKS-00SBA0
wd0: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
wd1 at pciide1 channel 0 drive 1: WDC WD3200AAKS-00SBA0
wd1: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 5
wd2 at pciide1 channel 1 drive 0: WDC WD3200AAKS-00SBA0
wd2: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
wd3 at pciide1 channel 1 drive 1: WDC WD3200AAKS-00SBA0
wd3: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
wd2(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 5
wd3(pciide1:1:1): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 Intel 82801GB SMBus rev 0x01: irq 11
iic0 at ichiic0
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
biomask edfd netmask effd ttymask 
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
dkcsum: wd2 matches BIOS drive 0x82
dkcsum: wd3 matches BIOS drive 0x83
root on wd0a swap on wd0b dump on wd0b

Regards,
Marcos



Re: disks not recognized as sata2

2007-08-24 Thread David Gwynne

On 25/08/2007, at 8:56 AM, Marcos Laufer wrote:


Hello list,

I installed the latest snapshot on an Intel D945GCcr mobo
which supports SATA-300 (sata2) , plugged in some hard
disks, all of them Western Digital WD3200AAKS,
wich according to WD website those work at 300 mb/s.
(http://www.westerndigital.com/sp/products/products.asp? 
driveid=299language

=en)
but OpenBSD doesn't seem to recognize them with the
AHCI driver , and they are recognized as UDMA5 instead.
I'd like to enable full speed on this disks, any tips?


OpenBSD will use the interface that is presented by the hardware/bios  
configuration. Even if your SATA controller is AHCI capable, it wont  
be used in OpenBSD unless the BIOS configures it to be in the AHCI mode.


As for the speed difference, I don't think which mode the controller  
is in affects the speed it talks to the disks at.


dlg



Here i paste a full dmesg :

OpenBSD 4.2 (GENERIC) #373: Tue Aug 21 10:36:43 MDT 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
RTC BIOS diagnostic error 80clock_battery
cpu0: Intel(R) Pentium(R) 4 CPU 3.00GHz (GenuineIntel 686-class)  
3 GHz

cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE3 
6,CFLU
SH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS- 
CPL,EST,TM2,CNXT-ID

,CX16,xTPR
real mem  = 2136190976 (2037MB)
avail mem = 2057965568 (1962MB)
RTC BIOS diagnostic error 80clock_battery
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/12/06, SMBIOS rev. 2.4 @  
0xe44b0

(29 entries)
bios0: vendor Intel Corp. version CR94510J.86A. 
0031.2006.1212.1648 date

12/12/2006
bios0: Intel Corporation D945GCCR
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown, estimated 0:00 hours
apm0: flags 30102 dobusy 0 doidle 1
pcibios at bios0 function 0x1a not configured
bios0: ROM list: 0xc/0xae00!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82945GP rev 0x02: rng active,
800Kb/sec
vga1 at pci0 dev 2 function 0 Intel 82945G Video rev 0x02:  
aperture at

0x8000, size 0x1000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x01
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x01
pci3 at ppb2 bus 3
ppb3 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0xe1
pci4 at ppb3 bus 4
fxp0 at pci4 dev 8 function 0 Intel PRO/100 VM rev 0x01, i82562:  
irq 9,

address 00:19:d1:52:40:58
ukphy0 at fxp0 phy 1: Generic IEEE 802.3u media interface, rev. 0: OUI
0x00aa00, model 0x0031
ichpcib0 at pci0 dev 31 function 0 Intel 82801GB LPC rev 0x01: PM  
disabled
pciide0 at pci0 dev 31 function 1 Intel 82801GB IDE rev 0x01:  
DMA, channel

0 configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, CD-ROM GCR-8523B, 1.01 SCSI0
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
pciide0: channel 1 ignored (disabled)
pciide1 at pci0 dev 31 function 2 Intel 82801GB SATA rev 0x01: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using irq 11 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: WDC WD3200AAKS-00SBA0
wd0: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
wd1 at pciide1 channel 0 drive 1: WDC WD3200AAKS-00SBA0
wd1: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 5
wd2 at pciide1 channel 1 drive 0: WDC WD3200AAKS-00SBA0
wd2: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
wd3 at pciide1 channel 1 drive 1: WDC WD3200AAKS-00SBA0
wd3: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
wd2(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 5
wd3(pciide1:1:1): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 Intel 82801GB SMBus rev 0x01:  
irq 11

iic0 at ichiic0
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
biomask edfd netmask effd ttymask 
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
dkcsum: wd2 matches BIOS drive 0x82
dkcsum: wd3 matches BIOS drive 0x83
root on wd0a swap on wd0b dump on wd0b

Regards,
Marcos