Re: VIA IDE controller not detected on RELENG_6

2006-10-15 Thread Erik Trulsson
[Second attempt to send this, since my ISP's mailserver seems to have eaten
 the first attempt.  Apologies if it appears twice.]

Alright, that gives useful information.  The output from pciconf and dmesg
indicates strongly that what you have is an Asus motherboard with an VIA
vt8251 southbridge.  There are only a handful of such models and based on
what other devices you have on the motherboard and the specifications on the
motherboards in question I am almost certain that the motherboard in
question is an Asus A8V-VM.


That motherboard (as well as all other amd64-capable motherboards I am
aware of) does have a SATA-controller, but since it does not appear in
the output of either pciconf or dmesg it must have been disabled in the
BIOS.  (Not all motherboards allow you to disable the SATA-controller in
the BIOS, but the A8V-VM does according to its manual.)

As I said before the pci-id for the PATA-controller (0x05711106) is used
by several VIA chipsets for their PATA-controller.  In order to find
out which particular chipset it is the ata(4) driver has to look at the
other pci-ids in the system to find one which is unique to that chip. 

To identify a chip as an vt8251 ata(4) looks for the pci-id of the vt8251
SATA-controller -- the one which seems to have been disabled in BIOS
on your system.  

If you (or somebody else) were to enable the built-in SATA-controller on
your system then the PATA controller should be recognized correctly.



Since you don't seem to have physical access to the machine which means it
might be difficult for you to change BIOS settings, you might try the
following patch which makes ata(4) look for a different pci-id that you do
have in your system. 
(Note that since I do not have any motherboard with the VIA vt8251 chip, I
have not been able to actually test this patch - so be careful if you do
decide to try it.)


Index: sys/dev/ata/ata-chipset.c
===
RCS file: /ncvs/src/sys/dev/ata/ata-chipset.c,v
retrieving revision 1.126.2.15
diff -u -r1.126.2.15 ata-chipset.c
--- sys/dev/ata/ata-chipset.c   9 Oct 2006 16:01:35 -   1.126.2.15
+++ sys/dev/ata/ata-chipset.c   14 Oct 2006 13:02:29 -
@@ -4762,7 +4762,7 @@
  { ATA_VIA8235,   0x00, VIA133, 0x00,ATA_UDMA6, 8235 },
  { ATA_VIA8237,   0x00, VIA133, 0x00,ATA_UDMA6, 8237 },
  { ATA_VIA8237A,  0x00, VIA133, 0x00,ATA_UDMA6, 8237A },
- { ATA_VIA8251,   0x00, VIA133, 0x00,ATA_UDMA6, 8251 },
+ { 0x32871106,0x00, VIA133, 0x00,ATA_UDMA6, 8251 },
  { 0, 0, 0, 0, 0, 0 }};
 static struct ata_chip_id new_ids[] =
 {{ ATA_VIA6410,   0x00, 0,  0x00,ATA_UDMA6, 6410 },





On Sat, Oct 14, 2006 at 12:15:56PM +0100, Dominic Bishop wrote:
  On Fri, Oct 13, 2006 at 07:51:41AM +0200, Roland Smith wrote:
  On Thu, Oct 12, 2006 at 11:59:00PM +0100, Dominic Bishop wrote:
   I am running a RELENG_6 from yesterday on amd64 and the VIA PATA
   controller is being detected as GENERIC ATA, from dmesg:
  
   atapci0: GENERIC ATA controller port
   0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 15.0 on
  pci0
  
   uname -a:
   FreeBSD 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Wed Oct 11 22:10:03
  UTC
   2006 :/usr/obj/usr/src/sys/PPV1  amd64
  
   The kernel config is simply a generic kernel with SMP, device polling
  and
   geli/crypto added to it.
  
   The device in question from pciconf -lv:
  
   [EMAIL PROTECTED]:15:0:  class=0x01018a card=0x81b51043 
   chip=0x05711106
   rev=0x07 hdr=0x00
   vendor   = 'VIA Technologies Inc'
   device   = 'VT82 EIDE Controller (All VIA Chipsets)'
   class= mass storage
   subclass = ATA
  
   Unfortunately I cannot say what motherboard is in the machine as it is
  a
   leased dedicated server.
 
  My system shows the same PATA controller;
 
  [EMAIL PROTECTED]:15:1:  class=0x01018a card=0x80ed1043 chip=0x05711106
  rev=0x06
  hdr=0x00
  vendor   = 'VIA Technologies Inc'
  device   = 'VT82 EIDE Controller (All VIA Chipsets)'
  class= mass storage
  subclass = ATA
 
  The only difference is that your chipset has a higher revision number.
 
  But it is recognized without problems:
 
  atapci1: VIA 8237 UDMA133 controller port
  0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 15.1 on pci0
 
  This is on STABLE:
 
  FreeBSD slackbox.xs4all.nl 6.1-STABLE FreeBSD 6.1-STABLE #0: Sat Sep  9
  14:46:57 CEST 2006
  [EMAIL PROTECTED]:/usr/obj/usr/src/sys/RFS  amd64
 
 
 
  That pci-id is used by several different VIA chips for the PATA
  controller.
  The FreeBSD ata(4) driver searches among the other PCI-ids in the box to
  find out which chips it actually is.
 
  It may be that the first one is some recent chip that is not yet
  recognized
  by ata(4).  The complete output out of 'pciconf -l' might be useful. (And
  possibly that of 'dmesg' as well.)
  It is also possible that the driver is looking for some device 

Re: VIA IDE controller not detected on RELENG_6

2006-10-14 Thread Dominic Bishop
 On Fri, Oct 13, 2006 at 07:51:41AM +0200, Roland Smith wrote:
 On Thu, Oct 12, 2006 at 11:59:00PM +0100, Dominic Bishop wrote:
  I am running a RELENG_6 from yesterday on amd64 and the VIA PATA
  controller is being detected as GENERIC ATA, from dmesg:
 
  atapci0: GENERIC ATA controller port
  0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 15.0 on
 pci0
 
  uname -a:
  FreeBSD 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Wed Oct 11 22:10:03
 UTC
  2006 :/usr/obj/usr/src/sys/PPV1  amd64
 
  The kernel config is simply a generic kernel with SMP, device polling
 and
  geli/crypto added to it.
 
  The device in question from pciconf -lv:
 
  [EMAIL PROTECTED]:15:0:  class=0x01018a card=0x81b51043 chip=0x05711106
  rev=0x07 hdr=0x00
  vendor   = 'VIA Technologies Inc'
  device   = 'VT82 EIDE Controller (All VIA Chipsets)'
  class= mass storage
  subclass = ATA
 
  Unfortunately I cannot say what motherboard is in the machine as it is
 a
  leased dedicated server.

 My system shows the same PATA controller;

 [EMAIL PROTECTED]:15:1:  class=0x01018a card=0x80ed1043 chip=0x05711106
 rev=0x06
 hdr=0x00
 vendor   = 'VIA Technologies Inc'
 device   = 'VT82 EIDE Controller (All VIA Chipsets)'
 class= mass storage
 subclass = ATA

 The only difference is that your chipset has a higher revision number.

 But it is recognized without problems:

 atapci1: VIA 8237 UDMA133 controller port
 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 15.1 on pci0

 This is on STABLE:

 FreeBSD slackbox.xs4all.nl 6.1-STABLE FreeBSD 6.1-STABLE #0: Sat Sep  9
 14:46:57 CEST 2006
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/RFS  amd64



 That pci-id is used by several different VIA chips for the PATA
 controller.
 The FreeBSD ata(4) driver searches among the other PCI-ids in the box to
 find out which chips it actually is.

 It may be that the first one is some recent chip that is not yet
 recognized
 by ata(4).  The complete output out of 'pciconf -l' might be useful. (And
 possibly that of 'dmesg' as well.)
 It is also possible that the driver is looking for some device that has
 been
 disabled in the BIOS and therefore is not found.


 As for which motherboard it is the 'card=' part of the pciconf outputs
 indicates that both of you have motherboards from ASUS.



 --
 Insert your favourite quote here.
 Erik Trulsson
 [EMAIL PROTECTED]



As suggested here is the complete pciconf -l output:

[EMAIL PROTECTED]:0:0:  class=0x06 card=0x chip=0x03361106 rev=0x00
hdr=0x00
[EMAIL PROTECTED]:0:1:  class=0x06 card=0x chip=0x13361106 rev=0x00
hdr=0x00
[EMAIL PROTECTED]:0:2:  class=0x06 card=0x chip=0x23361106 rev=0x00
hdr=0x00
[EMAIL PROTECTED]:0:3:  class=0x06 card=0x chip=0x33361106 rev=0x00
hdr=0x00
[EMAIL PROTECTED]:0:4:  class=0x06 card=0x chip=0x43361106 rev=0x00
hdr=0x00
[EMAIL PROTECTED]:0:5:  class=0x080020 card=0x chip=0x53361106 rev=0x00
hdr=0x00
[EMAIL PROTECTED]:0:6:  class=0x06 card=0x0008 chip=0x62901106 rev=0x00
hdr=0x00
[EMAIL PROTECTED]:0:7:  class=0x06 card=0x chip=0x73361106 rev=0x00
hdr=0x00
[EMAIL PROTECTED]:1:0:  class=0x060400 card=0x0070 chip=0xb1881106 rev=0x00
hdr=0x01
[EMAIL PROTECTED]:15:0: class=0x01018a card=0x81b51043 chip=0x05711106 rev=0x07
hdr=0x00
[EMAIL PROTECTED]:16:0: class=0x0c0300 card=0x81b51043 chip=0x30381106 rev=0x90
hdr=0x00
[EMAIL PROTECTED]:16:1: class=0x0c0300 card=0x81b51043 chip=0x30381106 rev=0x90
hdr=0x00
[EMAIL PROTECTED]:16:2: class=0x0c0300 card=0x81b51043 chip=0x30381106 rev=0x90
hdr=0x00
[EMAIL PROTECTED]:16:3: class=0x0c0300 card=0x81b51043 chip=0x30381106 rev=0x90
hdr=0x00
[EMAIL PROTECTED]:16:4: class=0x0c0320 card=0x81b51043 chip=0x31041106 rev=0x90
hdr=0x00
[EMAIL PROTECTED]:17:0: class=0x060100 card=0x81b51043 chip=0x32871106 rev=0x00
hdr=0x00
[EMAIL PROTECTED]:17:7: class=0x06 card=0x287e1106 chip=0x287e1106 rev=0x00
hdr=0x00
[EMAIL PROTECTED]:19:0: class=0x060400 card=0x chip=0x287b1106 rev=0x00
hdr=0x01
[EMAIL PROTECTED]:19:1: class=0x060401 card=0x chip=0x287a1106 rev=0x00
hdr=0x01
[EMAIL PROTECTED]:24:0: class=0x06 card=0x chip=0x11001022 rev=0x00
hdr=0x00
[EMAIL PROTECTED]:24:1: class=0x06 card=0x chip=0x11011022 rev=0x00
hdr=0x00
[EMAIL PROTECTED]:24:2: class=0x06 card=0x chip=0x11021022 rev=0x00
hdr=0x00
[EMAIL PROTECTED]:24:3: class=0x06 card=0x chip=0x11031022 rev=0x00
hdr=0x00
[EMAIL PROTECTED]:0:0:  class=0x03 card=0x81b51043 chip=0x32301106 rev=0x01
hdr=0x00
[EMAIL PROTECTED]:1:0:  class=0x040300 card=0x81b51043 chip=0x32881106 rev=0x00
hdr=0x00
[EMAIL PROTECTED]:8:0:  class=0x02 card=0x000c8086 chip=0x12298086 rev=0x08
hdr=0x00

And here is a complete dmesg from the machine:

Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University 

Re: VIA IDE controller not detected on RELENG_6

2006-10-12 Thread Roland Smith
On Thu, Oct 12, 2006 at 11:59:00PM +0100, Dominic Bishop wrote:
 I am running a RELENG_6 from yesterday on amd64 and the VIA PATA
 controller is being detected as GENERIC ATA, from dmesg:
 
 atapci0: GENERIC ATA controller port
 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 15.0 on pci0
 
 uname -a:
 FreeBSD 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Wed Oct 11 22:10:03 UTC
 2006 :/usr/obj/usr/src/sys/PPV1  amd64
 
 The kernel config is simply a generic kernel with SMP, device polling and
 geli/crypto added to it.
 
 The device in question from pciconf -lv:
 
 [EMAIL PROTECTED]:15:0:  class=0x01018a card=0x81b51043 chip=0x05711106
 rev=0x07 hdr=0x00
 vendor   = 'VIA Technologies Inc'
 device   = 'VT82 EIDE Controller (All VIA Chipsets)'
 class= mass storage
 subclass = ATA
 
 Unfortunately I cannot say what motherboard is in the machine as it is a
 leased dedicated server.

My system shows the same PATA controller;

[EMAIL PROTECTED]:15:1:  class=0x01018a card=0x80ed1043 chip=0x05711106 
rev=0x06 
hdr=0x00
vendor   = 'VIA Technologies Inc'
device   = 'VT82 EIDE Controller (All VIA Chipsets)'
class= mass storage
subclass = ATA

The only difference is that your chipset has a higher revision number.

But it is recognized without problems:

atapci1: VIA 8237 UDMA133 controller port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 15.1 on pci0

This is on STABLE:

FreeBSD slackbox.xs4all.nl 6.1-STABLE FreeBSD 6.1-STABLE #0: Sat Sep  9 
14:46:57 CEST 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/RFS  amd64


Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgp9nj2aP1qJl.pgp
Description: PGP signature