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

2008-08-14 Thread sam

[EMAIL PROTECTED] wrote:



I bought an ASUS motherboard with onboard SATA II controller. I
attached 2 HDs SATA II but when I run dmesg I notice that my system
sees them as normal older SATA 150 instead of SATA 300.

Is there any suggestion to solve this problem ?

Have a nice day.

--dmesg output---

Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993,
1994
The Regents of the University of California. All rights
reserved.
FreeBSD 6.1-RELEASE-p1 #0: Fri Jun  2 15:41:03 CEST 2006
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/AMOS-SMP
WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant
WARNING: MPSAFE network stack disabled, expect reduced performance.
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) D CPU 3.00GHz (3000.38-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0xf62  Stepping = 2

Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MC­A,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  Features2=0xe43dSSE3,RSVD2,MON,DS_CPL,VMX,CNTX-ID,CX16,b14,b15
  AMD Features=0x2000LM
  AMD Features2=0x1LAHF
  Cores per package: 2
real memory  = 2138701824 (2039 MB)
avail memory = 2087825408 (1991 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x808-0x80b on acpi0
cpu0: ACPI CPU on acpi0
acpi_throttle0: ACPI CPU Throttling on cpu0
cpu1: ACPI CPU on acpi0
atapci0: ITE IT8211F UDMA133 controller port
0xc800-0xc807,0xc400-0xc403,0xc000-0xc007,0xb800-0xb803,0xb400-0xb40f
irq 19 at device 4.0 on pci1
ata2: ATA channel 0 on atapci0
ata3: ATA channel 1 on atapci0
atapci1: Intel ICH7 UDMA100 controller port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 31.1 on
pci0
ata0: ATA channel 0 on atapci1
ata1: ATA channel 1 on atapci1
atapci2: Intel ICH7 SATA300 controller port
0xa800-0xa807,0xa400-0xa403,0xa000-0xa007,0x9800-0x9803,0x9400-0x940f
irq 17 at device 31.2 on pci0
atapci2: failed to enable memory mapping!
ata4: ATA channel 0 on atapci2
ata5: ATA channel 1 on atapci2
acd0: DVDROM HL-DT-STDVD-ROM GDR8163B/0L23 at ata0-master UDMA33
ad8: 114473MB WDC WD1200JS-00MHB0 02.01C03 at ata4-master SATA150
GEOM_MIRROR: Device gm0 created (id=2415013281).
GEOM_MIRROR: Device gm0: provider ad8 detected.
ad10: 114473MB WDC WD1200JS-00MHB0 02.01C03 at ata5-master SATA150
GEOM_MIRROR: Device gm0: provider ad10 detected.
SMP: AP CPU #1 Launched!
GEOM_MIRROR: Device gm0: provider ad10 activated.
GEOM_MIRROR: Device gm0: provider mirror/gm0 launched.
GEOM_MIRROR: Device gm0: rebuilding provider ad8.
Trying to mount root from ufs:/dev/mirror/gm0s1a
em0: link state changed to UP
  


hello

my similar problem
motherboard with the Intel G31 Express Chipset


|# output 'dmesg' (|partially|)
atapci1: Intel ICH7 SATA300 controller port 
0xc880-0xc887,0xc800-0xc803,0xc480-0xc487,0xc400-0xc403,0xc080-0xc08f 
irq 19 at device 31.2 on pci0

atapci1: [ITHREAD]
ad7: 476940MB WDC WD5000AAKS-00YGA0 12.01C02 at ata3-slave SATA150

# atacontrol cap ad7

Protocol  Serial ATA II
device model  WDC WD5000AAKS-00YGA0
serial number WD-WCAS87395070
firmware revision 12.01C02
cylinders 16383
heads 16
sectors/track 63
lba supported 268435455 sectors
lba48 supported   976773168 sectors
dma supported
overlap not supported

Feature  Support  EnableValue   Vendor
write cacheyes  yes
read ahead yes  yes
Native Command Queuing (NCQ)   yes   -  31/0x1F
Tagged Command Queuing (TCQ)   no   no  31/0x1F
SMART  yes  yes
microcode download yes  yes
security   yes  no
power management   yes  yes
advanced power management  no   no  0/0x00
automatic acoustic management  yes  no  254/0xFE128/0x80

# atacontrol mode ad7
current mode = SATA150

# output 'pciconf -lv' (|partially|)
[EMAIL PROTECTED]:0:31:2:class=0x01018f card=0x26391019 chip=0x27c08086 
rev=0x01 hdr=0x00

   vendor = 'Intel Corporation'
   device = '82801GB/GR/GH (ICH7 Family) Serial ATA Storage Controller'
   class  = mass storage
   subclass   = ATA

# uname -a
FreeBSD  7.0-STABLE FreeBSD 7.0-STABLE #5: Tue Aug 12 13:54:27 MSD 2008  
  root@:/usr/obj/usr/src/sys/GENERIC  i386

|

please, any solution ?

/Vladimir Ermakov


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-08-14 Thread Andrey V. Elsukov

sam wrote:
FreeBSD  7.0-STABLE FreeBSD 7.0-STABLE #5: Tue Aug 12 13:54:27 MSD 2008  
  root@:/usr/obj/usr/src/sys/GENERIC  i386

|

please, any solution ?


Probably speed is limited via jumpers on your hard drive.

--
WBR, Andrey V. Elsukov
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-08-14 Thread sam

Andrey V. Elsukov wrote:

sam wrote:
FreeBSD  7.0-STABLE FreeBSD 7.0-STABLE #5: Tue Aug 12 13:54:27 MSD 
2008root@:/usr/obj/usr/src/sys/GENERIC  i386

|

please, any solution ?


Probably speed is limited via jumpers on your hard drive.


http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=1409p_created=#jumper
tried it

without results

/Vladimir Ermakov

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-08-14 Thread Kris Kennaway

sam wrote:

Andrey V. Elsukov wrote:

sam wrote:
FreeBSD  7.0-STABLE FreeBSD 7.0-STABLE #5: Tue Aug 12 13:54:27 MSD 
2008root@:/usr/obj/usr/src/sys/GENERIC  i386

|

please, any solution ?


Probably speed is limited via jumpers on your hard drive.

http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=1409p_created=#jumper 


tried it

without results


So the jumpers were set wrong to begin with, but fixing them didnt help? 
 Check your BIOS SATA support or look for an upgrade.


Kris
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-08-14 Thread Jeremy Chadwick
On Thu, Aug 14, 2008 at 10:57:53AM +0400, sam wrote:
 Andrey V. Elsukov wrote:
 sam wrote:
 FreeBSD  7.0-STABLE FreeBSD 7.0-STABLE #5: Tue Aug 12 13:54:27 MSD  
 2008root@:/usr/obj/usr/src/sys/GENERIC  i386
 |

 please, any solution ?

 Probably speed is limited via jumpers on your hard drive.

 http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=1409p_created=#jumper
 tried it

 without results

FWIW, the only time I've seen this happen is when there's a jumper
limiting the capability.  You should have **removed** the OPT1 jumper,
and left any other jumpers alone.

If you're absolutely sure the jumper is removed, I'll purchase one of
these drives and test it on an ICH7 (Supermicro PDSMi+) to confirm your
findings.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-08-14 Thread sam

Kris Kennaway wrote:

sam wrote:

Andrey V. Elsukov wrote:

sam wrote:
FreeBSD  7.0-STABLE FreeBSD 7.0-STABLE #5: Tue Aug 12 13:54:27 MSD 
2008root@:/usr/obj/usr/src/sys/GENERIC  i386

|

please, any solution ?


Probably speed is limited via jumpers on your hard drive.

http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=1409p_created=#jumper 


tried it

without results


So the jumpers were set wrong to begin with, but fixing them didnt help?

i`am tried all positions from specification

Check your BIOS SATA support or look for an upgrade.

BIOS is support SATA
have 2 modes (Compatible, Enchanced)
i`am tried both modes

without results

BIOS firmware is upgraded to last

/Vladimir Ermakov

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-08-14 Thread Jeremy Chadwick
On Thu, Aug 14, 2008 at 12:16:16AM -0700, Jeremy Chadwick wrote:
 On Thu, Aug 14, 2008 at 10:57:53AM +0400, sam wrote:
  Andrey V. Elsukov wrote:
  sam wrote:
  FreeBSD  7.0-STABLE FreeBSD 7.0-STABLE #5: Tue Aug 12 13:54:27 MSD  
  2008root@:/usr/obj/usr/src/sys/GENERIC  i386
  |
 
  please, any solution ?
 
  Probably speed is limited via jumpers on your hard drive.
 
  http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=1409p_created=#jumper
  tried it
 
  without results
 
 FWIW, the only time I've seen this happen is when there's a jumper
 limiting the capability.  You should have **removed** the OPT1 jumper,
 and left any other jumpers alone.
 
 If you're absolutely sure the jumper is removed, I'll purchase one of
 these drives and test it on an ICH7 (Supermicro PDSMi+) to confirm your
 findings.

Actually, I don't need to -- I'm using WD5000AAKS disks myself on
that exact system:

atapci1: Intel AHCI controller port 
0x30e8-0x30ef,0x30dc-0x30df,0x30e0-0x30e7,0x30d8-0x30db,0x30b0-0x30bf mem 
0xe8600400-0xe86007ff irq 19 at device 31.2 on pci0
atapci1: [ITHREAD]
atapci1: AHCI Version 01.10 controller with 4 ports detected
ata2: ATA channel 0 on atapci1
ata2: [ITHREAD]
ata3: ATA channel 1 on atapci1
ata3: [ITHREAD]
ata4: ATA channel 2 on atapci1
ata4: [ITHREAD]
ata5: ATA channel 3 on atapci1
ata5: [ITHREAD]

ad6: 476940MB WDC WD5000AAKS-00YGA0 12.01C02 at ata3-master SATA300
ad8: 476940MB WDC WD5000AAKS-00TMA0 12.01C01 at ata4-master SATA300

icarus# atacontrol cap ad6

Protocol  Serial ATA II
device model  WDC WD5000AAKS-00YGA0
serial number WD-WCAS83974519
firmware revision 12.01C02
cylinders 16383
heads 16
sectors/track 63
lba supported 268435455 sectors
lba48 supported   976773168 sectors
dma supported
overlap not supported

Feature  Support  EnableValue   Vendor
write cacheyes  yes
read ahead yes  yes
Native Command Queuing (NCQ)   yes   -  31/0x1F
Tagged Command Queuing (TCQ)   no   no  31/0x1F
SMART  yes  yes
microcode download yes  yes
security   yes  no
power management   yes  yes
advanced power management  no   no  0/0x00
automatic acoustic management  yes  no  254/0xFE128/0x80

icarus# atacontrol cap ad8

Protocol  Serial ATA II
device model  WDC WD5000AAKS-00TMA0
serial number WD-WCAPW2137942
firmware revision 12.01C01
cylinders 16383
heads 16
sectors/track 63
lba supported 268435455 sectors
lba48 supported   976773168 sectors
dma supported
overlap not supported

Feature  Support  EnableValue   Vendor
write cacheyes  yes
read ahead yes  yes
Native Command Queuing (NCQ)   yes   -  31/0x1F
Tagged Command Queuing (TCQ)   no   no  31/0x1F
SMART  yes  yes
microcode download yes  yes
security   yes  no
power management   yes  yes
advanced power management  no   no  0/0x00
automatic acoustic management  yes  no  254/0xFE128/0x80

icarus# atacontrol mode ad6
current mode = SATA300

icarus# atacontrol mode ad8
current mode = SATA300

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-08-14 Thread Andrey V. Elsukov

sam wrote:

So the jumpers were set wrong to begin with, but fixing them didnt help?

i`am tried all positions from specification

Check your BIOS SATA support or look for an upgrade.

BIOS is support SATA
have 2 modes (Compatible, Enchanced)
i`am tried both modes

without results


Can you show `ident /boot/kernel/kernel | grep ata-chipset` output?

--
WBR, Andrey V. Elsukov
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-08-14 Thread sam

Andrey V. Elsukov wrote:

sam wrote:
So the jumpers were set wrong to begin with, but fixing them didnt 
help?

i`am tried all positions from specification

Check your BIOS SATA support or look for an upgrade.

BIOS is support SATA
have 2 modes (Compatible, Enchanced)
i`am tried both modes

without results


Can you show `ident /boot/kernel/kernel | grep ata-chipset` output?



# 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 $



/Vladimir Ermakov

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-08-14 Thread sam

Jeremy Chadwick wrote:

On Thu, Aug 14, 2008 at 12:16:16AM -0700, Jeremy Chadwick wrote:
  

On Thu, Aug 14, 2008 at 10:57:53AM +0400, sam wrote:


Andrey V. Elsukov wrote:
  

sam wrote:

FreeBSD  7.0-STABLE FreeBSD 7.0-STABLE #5: Tue Aug 12 13:54:27 MSD  
2008root@:/usr/obj/usr/src/sys/GENERIC  i386

|

please, any solution ?
  

Probably speed is limited via jumpers on your hard drive.



http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=1409p_created=#jumper
tried it

without results
  

FWIW, the only time I've seen this happen is when there's a jumper
limiting the capability.  You should have **removed** the OPT1 jumper,
and left any other jumpers alone.

If you're absolutely sure the jumper is removed, I'll purchase one of
these drives and test it on an ICH7 (Supermicro PDSMi+) to confirm your
findings.



Actually, I don't need to -- I'm using WD5000AAKS disks myself on
that exact system:

atapci1: Intel AHCI controller port 
0x30e8-0x30ef,0x30dc-0x30df,0x30e0-0x30e7,0x30d8-0x30db,0x30b0-0x30bf mem 
0xe8600400-0xe86007ff irq 19 at device 31.2 on pci0
atapci1: [ITHREAD]
atapci1: AHCI Version 01.10 controller with 4 ports detected
ata2: ATA channel 0 on atapci1
ata2: [ITHREAD]
ata3: ATA channel 1 on atapci1
ata3: [ITHREAD]
ata4: ATA channel 2 on atapci1
ata4: [ITHREAD]
ata5: ATA channel 3 on atapci1
ata5: [ITHREAD]

ad6: 476940MB WDC WD5000AAKS-00YGA0 12.01C02 at ata3-master SATA300
ad8: 476940MB WDC WD5000AAKS-00TMA0 12.01C01 at ata4-master SATA300
  

may issue in Intel ICH7 SATA300 controller driver ?


atapci1: Intel ICH7 SATA300 controller port 
0xc880-0xc887,0xc800-0xc803,0xc480-0xc487,0xc400-0xc403,0xc080-0xc08f 
irq 19 at device 31.2 on pci0



/Vladimir Ermakov

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-08-14 Thread Jeremy Chadwick
On Thu, Aug 14, 2008 at 12:02:50PM +0400, sam wrote:
 Jeremy Chadwick wrote:
 On Thu, Aug 14, 2008 at 12:16:16AM -0700, Jeremy Chadwick wrote:
   
 On Thu, Aug 14, 2008 at 10:57:53AM +0400, sam wrote:
 
 Andrey V. Elsukov wrote:
   
 sam wrote:
 
 FreeBSD  7.0-STABLE FreeBSD 7.0-STABLE #5: Tue Aug 12 13:54:27 
 MSD  2008root@:/usr/obj/usr/src/sys/GENERIC  i386
 |

 please, any solution ?
   
 Probably speed is limited via jumpers on your hard drive.

 
 http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=1409p_created=#jumper
 tried it

 without results
   
 FWIW, the only time I've seen this happen is when there's a jumper
 limiting the capability.  You should have **removed** the OPT1 jumper,
 and left any other jumpers alone.

 If you're absolutely sure the jumper is removed, I'll purchase one of
 these drives and test it on an ICH7 (Supermicro PDSMi+) to confirm your
 findings.
 

 Actually, I don't need to -- I'm using WD5000AAKS disks myself on
 that exact system:

 atapci1: Intel AHCI controller port 
 0x30e8-0x30ef,0x30dc-0x30df,0x30e0-0x30e7,0x30d8-0x30db,0x30b0-0x30bf mem 
 0xe8600400-0xe86007ff irq 19 at device 31.2 on pci0
 atapci1: [ITHREAD]
 atapci1: AHCI Version 01.10 controller with 4 ports detected
 ata2: ATA channel 0 on atapci1
 ata2: [ITHREAD]
 ata3: ATA channel 1 on atapci1
 ata3: [ITHREAD]
 ata4: ATA channel 2 on atapci1
 ata4: [ITHREAD]
 ata5: ATA channel 3 on atapci1
 ata5: [ITHREAD]

 ad6: 476940MB WDC WD5000AAKS-00YGA0 12.01C02 at ata3-master SATA300
 ad8: 476940MB WDC WD5000AAKS-00TMA0 12.01C01 at ata4-master SATA300
   
 may issue in Intel ICH7 SATA300 controller driver ?

 
 atapci1: Intel ICH7 SATA300 controller port  
 0xc880-0xc887,0xc800-0xc803,0xc480-0xc487,0xc400-0xc403,0xc080-0xc08f  
 irq 19 at device 31.2 on pci0
 

Possibly.  All my Intel ICH7 boards have AHCI capability, and I use it.
See Chapter 4 here:

http://www.supermicro.com/manuals/motherboard/3000/MNL-0889.pdf

If your motherboard does, I'd recommend enabling it as well and see if
things change.

Regarding the Enhanced vs. Compatible mode: use Enhanced.  On
my boards, choosing Enhanced makes the AHCI and Intel MatrixRAID
options appear.

I'm fairly certain you don't need AHCI to get SATA300, though.

I would recommend you re-check the jumpers on your disks to make sure
you didn't make a mistake when adjusting things.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-08-14 Thread sam

Jeremy Chadwick wrote:

On Thu, Aug 14, 2008 at 12:02:50PM +0400, sam wrote:
  

Jeremy Chadwick wrote:


On Thu, Aug 14, 2008 at 12:16:16AM -0700, Jeremy Chadwick wrote:
  
  

On Thu, Aug 14, 2008 at 10:57:53AM +0400, sam wrote:



Andrey V. Elsukov wrote:
  
  

sam wrote:


FreeBSD  7.0-STABLE FreeBSD 7.0-STABLE #5: Tue Aug 12 13:54:27 
MSD  2008root@:/usr/obj/usr/src/sys/GENERIC  i386

|

please, any solution ?
  
  

Probably speed is limited via jumpers on your hard drive.




http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=1409p_created=#jumper
tried it

without results
  
  

FWIW, the only time I've seen this happen is when there's a jumper
limiting the capability.  You should have **removed** the OPT1 jumper,
and left any other jumpers alone.

If you're absolutely sure the jumper is removed, I'll purchase one of
these drives and test it on an ICH7 (Supermicro PDSMi+) to confirm your
findings.



Actually, I don't need to -- I'm using WD5000AAKS disks myself on
that exact system:

atapci1: Intel AHCI controller port 
0x30e8-0x30ef,0x30dc-0x30df,0x30e0-0x30e7,0x30d8-0x30db,0x30b0-0x30bf mem 
0xe8600400-0xe86007ff irq 19 at device 31.2 on pci0
atapci1: [ITHREAD]
atapci1: AHCI Version 01.10 controller with 4 ports detected
ata2: ATA channel 0 on atapci1
ata2: [ITHREAD]
ata3: ATA channel 1 on atapci1
ata3: [ITHREAD]
ata4: ATA channel 2 on atapci1
ata4: [ITHREAD]
ata5: ATA channel 3 on atapci1
ata5: [ITHREAD]

ad6: 476940MB WDC WD5000AAKS-00YGA0 12.01C02 at ata3-master SATA300
ad8: 476940MB WDC WD5000AAKS-00TMA0 12.01C01 at ata4-master SATA300
  
  

may issue in Intel ICH7 SATA300 controller driver ?


atapci1: Intel ICH7 SATA300 controller port  
0xc880-0xc887,0xc800-0xc803,0xc480-0xc487,0xc400-0xc403,0xc080-0xc08f  
irq 19 at device 31.2 on pci0





Possibly.  All my Intel ICH7 boards have AHCI capability, and I use it.
See Chapter 4 here:

http://www.supermicro.com/manuals/motherboard/3000/MNL-0889.pdf

If your motherboard does, I'd recommend enabling it as well and see if
things change.

Regarding the Enhanced vs. Compatible mode: use Enhanced.  On
my boards, choosing Enhanced makes the AHCI and Intel MatrixRAID
options appear.

I'm fairly certain you don't need AHCI to get SATA300, though.

I would recommend you re-check the jumpers on your disks to make sure
you didn't make a mistake when adjusting things.

  

- HDD on position: all jumpers removed;
- SATA controller  in  Enchanced mode;
- no option AHCI in BIOS

without results

/Vladimir Ermakov

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-08-14 Thread Jeremy Chadwick
On Thu, Aug 14, 2008 at 01:01:44PM +0400, sam wrote:
 Jeremy Chadwick wrote:
 On Thu, Aug 14, 2008 at 12:02:50PM +0400, sam wrote:
   
 Jeremy Chadwick wrote:
 
 On Thu, Aug 14, 2008 at 12:16:16AM -0700, Jeremy Chadwick wrote:
 
 On Thu, Aug 14, 2008 at 10:57:53AM +0400, sam wrote:
 
 Andrey V. Elsukov wrote:
 
 sam wrote:
 
 FreeBSD  7.0-STABLE FreeBSD 7.0-STABLE #5: Tue Aug 12 
 13:54:27 MSD  2008root@:/usr/obj/usr/src/sys/GENERIC  
 i386
 |

 please, any solution ?
 
 Probably speed is limited via jumpers on your hard drive.

 
 http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=1409p_created=#jumper
 tried it

 without results
 
 FWIW, the only time I've seen this happen is when there's a jumper
 limiting the capability.  You should have **removed** the OPT1 jumper,
 and left any other jumpers alone.

 If you're absolutely sure the jumper is removed, I'll purchase one of
 these drives and test it on an ICH7 (Supermicro PDSMi+) to confirm your
 findings.
 
 Actually, I don't need to -- I'm using WD5000AAKS disks myself on
 that exact system:

 atapci1: Intel AHCI controller port 
 0x30e8-0x30ef,0x30dc-0x30df,0x30e0-0x30e7,0x30d8-0x30db,0x30b0-0x30bf mem 
 0xe8600400-0xe86007ff irq 19 at device 31.2 on pci0
 atapci1: [ITHREAD]
 atapci1: AHCI Version 01.10 controller with 4 ports detected
 ata2: ATA channel 0 on atapci1
 ata2: [ITHREAD]
 ata3: ATA channel 1 on atapci1
 ata3: [ITHREAD]
 ata4: ATA channel 2 on atapci1
 ata4: [ITHREAD]
 ata5: ATA channel 3 on atapci1
 ata5: [ITHREAD]

 ad6: 476940MB WDC WD5000AAKS-00YGA0 12.01C02 at ata3-master SATA300
 ad8: 476940MB WDC WD5000AAKS-00TMA0 12.01C01 at ata4-master SATA300
 
 may issue in Intel ICH7 SATA300 controller driver ?

 
 atapci1: Intel ICH7 SATA300 controller port   
 0xc880-0xc887,0xc800-0xc803,0xc480-0xc487,0xc400-0xc403,0xc080-0xc08f 
  irq 19 at device 31.2 on pci0
 
 

 Possibly.  All my Intel ICH7 boards have AHCI capability, and I use it.
 See Chapter 4 here:

 http://www.supermicro.com/manuals/motherboard/3000/MNL-0889.pdf

 If your motherboard does, I'd recommend enabling it as well and see if
 things change.

 Regarding the Enhanced vs. Compatible mode: use Enhanced.  On
 my boards, choosing Enhanced makes the AHCI and Intel MatrixRAID
 options appear.

 I'm fairly certain you don't need AHCI to get SATA300, though.

 I would recommend you re-check the jumpers on your disks to make sure
 you didn't make a mistake when adjusting things.

   
 - HDD on position: all jumpers removed;
 - SATA controller  in  Enchanced mode;
 - no option AHCI in BIOS

 without results

I'm out of ideas.  Others will have to continue helping...

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-08-14 Thread Andrey V. Elsukov

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
--- ata-chipset.c.orig  2008-08-12 08:31:14.0 +0400
+++ ata-chipset.c   2008-08-14 13:31:40.0 +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
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]

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

2008-08-14 Thread sam

Andrey V. Elsukov wrote:

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 ?


http://cs.udmvt.ru/files/temp/dmesg.boot_0814

/Vladimir Ermakov

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-08-14 Thread Andrey V. Elsukov

sam wrote:

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


http://cs.udmvt.ru/files/temp/dmesg.boot_0814


It seems that driver couldn't allocate IO resource at BAR5 and
without this resource it can't read SATA Status register and
determine negotiated speed. I think the problem is in your BIOS.
If your BIOS doesn't have any AHCI or RAID specific options
I don't know how correctly fix this problem.

--
WBR, Andrey V. Elsukov
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-08-14 Thread Jeremy Chadwick
On Thu, Aug 14, 2008 at 03:56:32PM +0400, Andrey V. Elsukov wrote:
 sam wrote:
 Can you apply attached patch, rebuild your kernel, reboot in verbose
 mode and show /var/run/dmesg.boot ?

 http://cs.udmvt.ru/files/temp/dmesg.boot_0814

 It seems that driver couldn't allocate IO resource at BAR5 and
 without this resource it can't read SATA Status register and
 determine negotiated speed. I think the problem is in your BIOS.
 If your BIOS doesn't have any AHCI or RAID specific options
 I don't know how correctly fix this problem.

Andrey, please correct me if I'm wrong here.  I'm not familiar these
kernel functions, but assuming pci_read_config() handles proper byte
order, and device_printf() prints it in correct order, then I believe
you may be missing something important.

I haven't looked for any product Errata, but see Section 12.1 below
(specific to ICH7): http://www.intel.com/assets/pdf/datasheet/307013.pdf

Index 0x94 = SIR   (SATA Index Register)
Index 0xAC = SCAP1 (SATA Capability Register 1)

I'm not sure why you called SIR SCRD in your device_printf().  For
SIR's description, see Section 12.1.35.  For SCAP1, see Section 12.1.39.

The SIR value is 0x4180, broken down into binary nibbles:

  %0100     0001 1000 
^
^
This indicates bit 30 is set.  According to Intel's docs, bit 30
disables SCAP0 and SCAP1, thus will cause them to always return 0:


Bit 30
SATA Capability Registers Disable (SCRD)

When this bit is set, the SATA Capability Registers are disabled. That
is, SATA Capability Registers 0 and 1 are both changed to Read Only with
the value of h. Also, the Next Capability bits in the PCI Power
Management Capability Information Register (D31:F2;Offset 70h bits 15:8)
are changed to 00h, to indicate that the PCI Power Management Capability
structure is the last PCI capability structure in the SATA controller.
When this bit is cleared, the SATA Capability Registers are enabled.


A quick glance seems to indicate we're not initialising some of the SATA
registers at all, case in point.

Someone should make a patch for the user that zeros out bit 30 of SIR,
then check the xBAR and LBAR values; zeroing bit 30 might get him
SATA300 support (I haven't looked at the rest of the FreeBSD ATA code
yet).

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-08-14 Thread Andrey V. Elsukov
14.08.08, 16:47, Jeremy Chadwick [EMAIL PROTECTED]:

 On Thu, Aug 14, 2008 at 03:56:32PM +0400, Andrey V. Elsukov wrote:
  sam wrote:
  Can you apply attached patch, rebuild your kernel, reboot in verbose
  mode and show /var/run/dmesg.boot ?
 
  http://cs.udmvt.ru/files/temp/dmesg.boot_0814
 
  It seems that driver couldn't allocate IO resource at BAR5 and
  without this resource it can't read SATA Status register and
  determine negotiated speed. I think the problem is in your BIOS.
  If your BIOS doesn't have any AHCI or RAID specific options
  I don't know how correctly fix this problem.
 Andrey, please correct me if I'm wrong here.  I'm not familiar these
 kernel functions, but assuming pci_read_config() handles proper byte
 order, and device_printf() prints it in correct order, then I believe
 you may be missing something important.

My decision is not from output of my changes.
Here is in log:
found- vendor=0x8086, dev=0x27c0, revid=0x01
domain=0, bus=0, slot=31, func=2
class=01-01-8f, hdrtype=0x00, mfdev=0
cmdreg=0x0005, statreg=0x02b0, cachelnsz=0 (dwords)
lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
intpin=b, irq=11
powerspec 2  supports D0 D3  current D0
map[10]: type I/O Port, range 32, base 0xc880, size  3, enabled
map[14]: type I/O Port, range 32, base 0xc800, size  2, enabled
map[18]: type I/O Port, range 32, base 0xc480, size  3, enabled
map[1c]: type I/O Port, range 32, base 0xc400, size  2, enabled
map[20]: type I/O Port, range 32, base 0xc080, size  4, enabled

BAR5 is not present here. Also

atapci1: Intel ICH7 SATA300 controller port 
0xc880-0xc887,0xc800-0xc803,0xc480-0xc487,0xc400-0xc403,0xc080-0xc08f irq 19 at 
device 31.2 on pci0
atapci1: Reserved 0x10 bytes for rid 0x20 type 4 at 0xc080
atapci1: [MPSAFE]
atapci1: [ITHREAD]
atapci1: SCRD = 0x4180, SATACR1 = 0x

There should be resource allocation:
rid 0x24 type 3 for AHCI or rid 0x24 type 4 for non-AHCI.
But here are nothing of these.

ata2: ATA channel 0 on atapci1
atapci1: Reserved 0x8 bytes for rid 0x10 type 4 at 0xc880
atapci1: Reserved 0x4 bytes for rid 0x14 type 4 at 0xc800

 Someone should make a patch for the user that zeros out bit 30 of SIR,
 then check the xBAR and LBAR values; zeroing bit 30 might get him
 SATA300 support (I haven't looked at the rest of the FreeBSD ATA code
 yet).

I think you can try to do it. But i don't have this hardware and trying 
to change some bits, making patches, waiting for results, again and again
- it's not very interesting for me (i already have similar experience)..
In any case ICHx which is working in non-AHCI mode is not the best choice.
Many SATA features don't work in this mode and difference between 
SATA150 and SATA300 is small. 

-- 
WBR, Andrey V. Elsukov
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]