On Tuesday 14 August 2007 19:33, John Baldwin wrote: > On Saturday 11 August 2007 12:11:21 pm Mario Lobo wrote: > > after a long,long search, I found that chip id 0x53371106 belongs to > > SATA150 controller, not PATA !! Then I enabled all mass storage > > controllers on the board ( although no SATA drives present ), then two > > more ids showed up: > > > > chip=0x016a10de (jmicron SATA300) > > chip=0x05711106 <- thats it !! > > > > Then I went iinto /usr/src/sys/dev/ata/ata-pci.h and changed the line > > > > from > > #define ATA_VIA8237A 0x05911106 > > to > > #define ATA_VIA8237A 0x05711106 > > > > recompiled, install and BANG! > > 6.x already has support for this ID as: > > #define ATA_VIA82C571 0x05711106 > > so you shouldn't have needed to change the code at all.
sounds right but it isn't. Look at e the code from /usr/src/sys/dev/ata/ata-chpset.c -------------------------------------------------------------------------- if (pci_get_devid(dev) == ATA_VIA82C571) { if (!(idx = ata_find_chip(dev, ids, -99))) return ENXIO; } else { if (!(idx = ata_match_chip(dev, new_ids))) return ENXIO; } -------------------------------------------------------------------------- new_ids doesn't have an id for ATA_VIA8237A (ata-pci.h defines ATA_VIA8237A as 0x0591, which is not what my mobo gives out !) . Besides, the VIA8237A SATA150 controllers ids itself as 0x5337, which is not even in the data base at http://pci-ids.ucw.cz/iii/?i=1106 So I added a new id to ata-pci.h: #define ATA_VIA8237AS 0x53371106 and added this line to ata-chipset.c: { ATA_VIA8237AS, 0x00, 7, 0x00, ATA_SA150, "8237A" }, now, all my controllers get properly identified and work !. my mobo is an ASUS P5VD2-X. DEFINETLY ( at least for the mobo I have at home), the ids ARE: 5337 is for VT8237A SATA150 0571 is for VT8237A Bus Master IDE 016a is for jmicron SATA300 And these ids are confirmed by the XP drivers downloade from ASUS! Either ASUS played around with ids in this mobo or the database is screwed up. -- ********************************************************** //| //| Mario Lobo // |// | http://www.ipad.com.br // // ||||||| FreeBSD since 2.2.8 - 100% Rwindows-free ********************************************************** _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"