From owner-freebsd-questions@FreeBSD.ORG Sat Aug 11 16:11:28 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 892C116A41B; Sat, 11 Aug 2007 16:11:28 +0000 (UTC) (envelope-from mario.lobo@ipad.com.br) Received: from recife.ipad.com.br (recife.ipadnet.com.br [200.249.204.129]) by mx1.freebsd.org (Postfix) with ESMTP id F07F913C45B; Sat, 11 Aug 2007 16:11:25 +0000 (UTC) (envelope-from mario.lobo@ipad.com.br) Received: from lobo.ipad.com.br ([192.168.64.1]) (authenticated bits=0) by recife.ipad.com.br (8.12.8/8.12.8) with ESMTP id l7BGBNTi003784; Sat, 11 Aug 2007 13:11:23 -0300 From: Mario Lobo Organization: IPAD To: freebsd-questions@freebsd.org Date: Sat, 11 Aug 2007 16:11:21 +0000 User-Agent: KMail/1.9.4 X-Face: "j9,S@~?m[/.]/lb=?utf-8?q?S=5D=2EI=0A=09ITlWP=3A-?=" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708111611.22644.mario.lobo@ipad.com.br> Cc: freebsd-hackers@freebsd.org Subject: IDE ultraDMA problem (hackers WAS via IDE controller problem) - SOLVED !! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Aug 2007 16:11:28 -0000 *** Re-cap of problem: FreeBSD 6.2-STABLE was not recognizing the VT8237A south bridge ultraDMA ata controller on a P5VD2-X ASUS mobo. FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 4 ioapic0 irqs 0-23 on motherboard ioapic1 irqs 24-47 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: on motherboard acpi_hpet0: iomem 0xfe800000-0xfe8003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 2000 acpi0: Power Button (fixed) acpi0: reservation of fe800000, 100 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 cpu0: on acpi0 cpu1: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pcib2: irq 27 at device 2.0 on pci0 pci2: on pcib2 nvidia0: mem 0xdc000000-0xdcffffff,0xc0000000-0xcfffffff,0xdd000000-0xddffffff irq 24 at device 0.0 on pci2 nvidia0: [GIANT-LOCKED] atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 15.0 on pci0 ata0: on atapci0 ata1: on atapci0 *** end of recap pciconf -lv gave me this clue: atapci0@pci0:15:0: class=0x01018a card=0x81cf1043 chip=0x53371106 rev=0x07 hdr=0x00 vendor = 'VIA Technologies Inc' class = mass storage subclass = ATA 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! nvidia0: mem 0xdc000000-0xdcffffff,0xc0000000-0xcfffffff,0xdd000000-0xddffffff irq 24 at device 0.0 on pci2 nvidia0: [GIANT-LOCKED] pcib3: irq 31 at device 3.0 on pci0 pci3: on pcib3 atapci0: port 0xcc00-0xcc07,0xc800-0xc803,0xc400-0xc407,0xc000-0xc003,0xbc00-0xbc0f mem 0xdfefe000-0xdfefffff irq 28 at device 0.0 on pci3 atapci0: AHCI Version 01.00 controller with 2 ports detected ata2: on atapci0 ata3: on atapci0 ata4: on atapci0 atapci1: port 0xfc00-0xfc07,0xf800-0xf803,0xf400-0xf407,0xf000-0xf003,0xec00-0xec0f,0xe800-0xe8ff irq 21 at device 15.0 on pci0 ata5: on atapci1 ata6: on atapci1 atapci2: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe400-0xe40f at device 15.1 on pci0 ata0: on atapci2 ata1: on atapci2 ad0: 114498MB at ata0-master UDMA100 ad1: 117246MB at ata0-slave UDMA133 ad2: 76351MB at ata1-master UDMA133 acd0: DVDR at ata1-slave UDMA66 Normal life returned :-D I dont know if this fix applies to ALL mobos that use VIA chipset (VT8237A) but it shure did to my ASUS mobo Thanks Wojciech Puchar and Sten Daniel Soersdal for your kind attention. -- ********************************************************** //| //| Mario Lobo // |// | http://www.ipad.com.br // // ||||||| FreeBSD since 2.2.8 - 100% Rwindows-free **********************************************************