From owner-freebsd-current@FreeBSD.ORG Tue May 13 12:36:13 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 331B61065677 for ; Tue, 13 May 2008 12:36:13 +0000 (UTC) (envelope-from cokane@freebsd.org) Received: from QMTA08.westchester.pa.mail.comcast.net (qmta08.westchester.pa.mail.comcast.net [76.96.62.80]) by mx1.freebsd.org (Postfix) with ESMTP id A3BCD8FC12 for ; Tue, 13 May 2008 12:36:12 +0000 (UTC) (envelope-from cokane@freebsd.org) Received: from OMTA05.westchester.pa.mail.comcast.net ([76.96.62.43]) by QMTA08.westchester.pa.mail.comcast.net with comcast id R04y1Z00B0vyq2s5803G00; Tue, 13 May 2008 12:35:54 +0000 Received: from discordia ([24.60.135.75]) by OMTA05.westchester.pa.mail.comcast.net with comcast id R0cB1Z00E1dmTCQ3R00000; Tue, 13 May 2008 12:36:12 +0000 X-Authority-Analysis: v=1.0 c=1 a=o7G1BpBIaKYA:10 a=JNcXg7yc1N4A:10 a=XFsXuKNdAAAA:8 a=LIM7v01avoxMS1vni_EA:9 a=PNQ9pXxJ6w3z5qFZ3FwA:7 a=HBemVjmUfZROK8JWyBPM_Ybl9d4A:4 a=LY0hPdMaydYA:10 a=VDczXkb54MYDsjezzewA:9 a=qt4daZO9mV6QNQ2zeNvTgGfvuGQA:4 a=rPt6xJ-oxjAA:10 Received: by discordia (Postfix, from userid 103) id 490BF35A7D4; Tue, 13 May 2008 08:36:11 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.1.8-gr1 (2007-02-13) on discordia X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.8-gr1 Received: from [172.20.1.3] (erwin.int.cokane.org [172.20.1.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by discordia (Postfix) with ESMTP id 958AC25AD3C; Tue, 13 May 2008 08:35:54 -0400 (EDT) From: Coleman Kane To: Thomas =?ISO-8859-1?Q?Nystr=F6m?= In-Reply-To: <48297FBC.5090906@saeab.se> References: <48297FBC.5090906@saeab.se> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-6ATZVK/HmBj9NihbnOyu" Organization: FreeBSD Project Date: Tue, 13 May 2008 08:34:19 -0400 Message-Id: <1210682059.1439.23.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1.1 FreeBSD GNOME Team Port Cc: current@freebsd.org Subject: Re: Disk not detected on ATI IXP600 SATA300 controller X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 May 2008 12:36:13 -0000 --=-6ATZVK/HmBj9NihbnOyu Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, 2008-05-13 at 13:47 +0200, Thomas Nystr=C3=B6m wrote: > Anyone else seen this? >=20 > Machine is HP Compaq 6715s and I'm running current (from yesterday). > During startup the internal SATA-disk is not detected. I have tried > both GENERIC and customized kernel with same bad result. > Everything works fine on 7.0R and 6.3R. >=20 > If I modify ata-chipset.c:ata_ati_ident() and removes the lines > that matches the ATA_ATI_IXP600_S1 type chip everything is working > when the ata-system uses the default/fallback driver for ATI. >=20 > dmesg and pciconf -lv attached (from the working system). >=20 > The releveant message from a failing system are (hand typed off the > screen, no serial port available): >=20 > atapci0: port 0x9000-0x9007,0x9007-0x900b= ,0x9010-0x9017, > 0x5018-0x501b,0x5020-0x502f mem 0xd0409000-0xd04093ff irq 16 at device 18= .0 on pci0 > atapci0: [THREAD] > atapci0: AHCI Version 230.07 controller with 4 ports PM not supported > ata2: on atapci0 > ata2: port not implemented > ata2: [ITHREAD] > ata3: on atapci0 > ata3: port not implemented > ata3: [ITHREAD] > ata4: on atapci0 > ata4: port not implemented > ata4: [ITHREAD] > ata5: on atapci0 > ata5: port not implemented > ata5: [ITHREAD] >=20 > What more info is needed? >=20 > /Thomas >=20 Thomas, I've fixed this, as I have the same notebook. It has also been confirmed by a few others. The problem is the fix is kind of ugly, and isn't something that is import-worthy into the kernel, as it requires a patch to change the memory-mapped I/O regions of the audio chipset during PCI device initialization. The bug in this laptop is that the person who wrote the BIOS table was kind enough to place the MMIO region for the AHCI interface on the SATA controller right smack in the middle of the range reserved for the HDA Audio controller. The result of this is that you cannot use the HDA Audio at all and you can't use the AHCI interface of the SATA controller (until you apply my fix). Here's my page on the subject, including a link to some 7.0-STABLE ISOs that you can download with my patch already applied: http://www.cokane.org/dokuwiki/freebsd/amd64_compatibility#getting_the_hp_c= ompaq_6715b_working You can also apply the patch to your own source tree that I have here: http://www.cokane.org/dokuwiki/freebsd/amd64_compatibility#the_onboard_ati_= sb600_hda_audio_controller You *won't* need to deal with any of the ATA-related stuff in that document, as that particular code was actually imported some time earlier. You'll need to perform the following at the loader prompt before you boot the hardware (from my analysis of your dmesg below): set hw.pci.hp6715b_membase_for_hd_audio=3D"0xd0414000" After you get the system installed, you can put this into /boot/loader.conf. Could you send me the output of "devinfo -uv" ? Additionally, you'll find a Win64 driver for the Broadcom Wifi card that works really well with the draft-n card on the laptop. Hope that helps. --=20 Coleman Kane > plain text document attachment (pciconf-lv.txt) > hostb0@pci0:0:0:0: class=3D0x060000 card=3D0x30c2103c chip=3D0x79101002 r= ev=3D0x00 hdr=3D0x00 > vendor =3D 'ATI Technologies Inc' > class =3D bridge > subclass =3D HOST-PCI > pcib1@pci0:0:1:0: class=3D0x060400 card=3D0x30c2103c chip=3D0x79121002 re= v=3D0x00 hdr=3D0x01 > vendor =3D 'ATI Technologies Inc' > class =3D bridge > subclass =3D PCI-PCI > pcib2@pci0:0:4:0: class=3D0x060400 card=3D0x30c2103c chip=3D0x79141002 re= v=3D0x00 hdr=3D0x01 > vendor =3D 'ATI Technologies Inc' > class =3D bridge > subclass =3D PCI-PCI > pcib3@pci0:0:5:0: class=3D0x060400 card=3D0x30c2103c chip=3D0x79151002 re= v=3D0x00 hdr=3D0x01 > vendor =3D 'ATI Technologies Inc' > class =3D bridge > subclass =3D PCI-PCI > pcib4@pci0:0:6:0: class=3D0x060400 card=3D0x30c2103c chip=3D0x79161002 re= v=3D0x00 hdr=3D0x01 > vendor =3D 'ATI Technologies Inc' > class =3D bridge > subclass =3D PCI-PCI > atapci0@pci0:0:18:0: class=3D0x01018f card=3D0x43801002 chip=3D0x43801002= rev=3D0x00 hdr=3D0x00 > vendor =3D 'ATI Technologies Inc' > device =3D 'IXP SB600 Serial ATA Controller' > class =3D mass storage > subclass =3D ATA > ohci0@pci0:0:19:0: class=3D0x0c0310 card=3D0x30c2103c chip=3D0x43871002 r= ev=3D0x00 hdr=3D0x00 > vendor =3D 'ATI Technologies Inc' > device =3D 'IXP SB600 USB Controller (OHCI0)' > class =3D serial bus > subclass =3D USB > ohci1@pci0:0:19:1: class=3D0x0c0310 card=3D0x30c2103c chip=3D0x43881002 r= ev=3D0x00 hdr=3D0x00 > vendor =3D 'ATI Technologies Inc' > device =3D 'IXP SB600 USB Controller (OHCI1)' > class =3D serial bus > subclass =3D USB > ohci2@pci0:0:19:2: class=3D0x0c0310 card=3D0x30c2103c chip=3D0x43891002 r= ev=3D0x00 hdr=3D0x00 > vendor =3D 'ATI Technologies Inc' > device =3D 'IXP SB600 USB Controller (OHCI2)' > class =3D serial bus > subclass =3D USB > ohci3@pci0:0:19:3: class=3D0x0c0310 card=3D0x30c2103c chip=3D0x438a1002 r= ev=3D0x00 hdr=3D0x00 > vendor =3D 'ATI Technologies Inc' > device =3D 'IXP SB600 USB Controller (OHCI3)' > class =3D serial bus > subclass =3D USB > ohci4@pci0:0:19:4: class=3D0x0c0310 card=3D0x30c2103c chip=3D0x438b1002 r= ev=3D0x00 hdr=3D0x00 > vendor =3D 'ATI Technologies Inc' > device =3D 'IXP SB600 USB Controller (OHCI4)' > class =3D serial bus > subclass =3D USB > ehci0@pci0:0:19:5: class=3D0x0c0320 card=3D0x30c2103c chip=3D0x43861002 r= ev=3D0x00 hdr=3D0x00 > vendor =3D 'ATI Technologies Inc' > device =3D 'IXP SB600 USB Controller (EHCI)' > class =3D serial bus > subclass =3D USB > none0@pci0:0:20:0: class=3D0x0c0500 card=3D0x30c2103c chip=3D0x43851002 r= ev=3D0x14 hdr=3D0x00 > vendor =3D 'ATI Technologies Inc' > device =3D 'IXP SB600 SMBUS Controller' > class =3D serial bus > subclass =3D SMBus > atapci1@pci0:0:20:1: class=3D0x010182 card=3D0x30c2103c chip=3D0x438c1002= rev=3D0x00 hdr=3D0x00 > vendor =3D 'ATI Technologies Inc' > device =3D 'IXP SB600 ATA Controller' > class =3D mass storage > subclass =3D ATA > none1@pci0:0:20:2: class=3D0x040300 card=3D0x30c2103c chip=3D0x43831002 r= ev=3D0x00 hdr=3D0x00 > vendor =3D 'ATI Technologies Inc' > device =3D 'IXP SB600 High Definition Audio Controller' > class =3D multimedia > isab0@pci0:0:20:3: class=3D0x060100 card=3D0x30c2103c chip=3D0x438d1002 r= ev=3D0x00 hdr=3D0x00 > vendor =3D 'ATI Technologies Inc' > device =3D 'IXP SB600 PCI to LPC Bridge' > class =3D bridge > subclass =3D PCI-ISA > pcib5@pci0:0:20:4: class=3D0x060401 card=3D0x00000000 chip=3D0x43841002 r= ev=3D0x00 hdr=3D0x01 > vendor =3D 'ATI Technologies Inc' > device =3D 'IXP SB600 PCI to PCI Bridge' > class =3D bridge > subclass =3D PCI-PCI > hostb1@pci0:0:24:0: class=3D0x060000 card=3D0x00000000 chip=3D0x11001022 = rev=3D0x00 hdr=3D0x00 > vendor =3D 'Advanced Micro Devices (AMD)' > device =3D '(K8) Athlon 64/Opteron HyperTransport Technology Conf= iguration' > class =3D bridge > subclass =3D HOST-PCI > hostb2@pci0:0:24:1: class=3D0x060000 card=3D0x00000000 chip=3D0x11011022 = rev=3D0x00 hdr=3D0x00 > vendor =3D 'Advanced Micro Devices (AMD)' > device =3D '(K8) Athlon 64/Opteron Address Map' > class =3D bridge > subclass =3D HOST-PCI > hostb3@pci0:0:24:2: class=3D0x060000 card=3D0x00000000 chip=3D0x11021022 = rev=3D0x00 hdr=3D0x00 > vendor =3D 'Advanced Micro Devices (AMD)' > device =3D '(K8) Athlon 64/Opteron DRAM Controller' > class =3D bridge > subclass =3D HOST-PCI > hostb4@pci0:0:24:3: class=3D0x060000 card=3D0x00000000 chip=3D0x11031022 = rev=3D0x00 hdr=3D0x00 > vendor =3D 'Advanced Micro Devices (AMD)' > device =3D '(K8) Athlon 64/Opteron Miscellaneous Control' > class =3D bridge > subclass =3D HOST-PCI > vgapci0@pci0:1:5:0: class=3D0x030000 card=3D0x30c2103c chip=3D0x791f1002 = rev=3D0x00 hdr=3D0x00 > vendor =3D 'ATI Technologies Inc' > device =3D 'RS690 ATI Mobility Radeon x1250' > class =3D display > subclass =3D VGA > bge0@pci0:16:0:0: class=3D0x020000 card=3D0x30c2103c chip=3D0x171314e4 re= v=3D0x02 hdr=3D0x00 > vendor =3D 'Broadcom Corporation' > device =3D 'NetLink BCM5906M Fast Ethernet PCIe' > class =3D network > subclass =3D ethernet > none2@pci0:48:0:0: class=3D0x028000 card=3D0x1371103c chip=3D0x431214e4 r= ev=3D0x02 hdr=3D0x00 > vendor =3D 'Broadcom Corporation' > device =3D 'BCM4310 broadcom wireless 1490 (dell)' > class =3D network > cbb0@pci0:2:4:0: class=3D0x060700 card=3D0x30c2103c chip=3D0x04761180 rev= =3D0xb6 hdr=3D0x02 > vendor =3D 'Ricoh Company, Ltd.' > device =3D 'unknown Ricoh R/RL/5C476(II)' > class =3D bridge > subclass =3D PCI-CardBus > plain text document attachment (dmesg.boot.txt) > Copyright (c) 1992-2008 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 is a registered trademark of The FreeBSD Foundation. > FreeBSD 8.0-CURRENT #5: Tue May 13 12:56:24 UTC 2008 > root@bongo.saeab.se:/usr/obj/usr/src/sys/BONGO > WARNING: WITNESS option enabled, expect reduced performance. > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: AMD Turion(tm) 64 X2 Mobile Technology TL-60 (1995.01-MHz 686-class = CPU) > Origin =3D "AuthenticAMD" Id =3D 0x60f82 Stepping =3D 2 > Features=3D0x178bfbff > Features2=3D0x2001 > AMD Features=3D0xea500800 > AMD Features2=3D0x11f > Cores per package: 2 > real memory =3D 2012938240 (1919 MB) > avail memory =3D 1966006272 (1874 MB) > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > ACPI Error (tbfadt-0516): 32/64X address mismatch in "Pm2ControlBlock": [= 8800] [ 0 8100], using 64X [20070320] > ioapic0: Changing APIC ID to 2 > ioapic0 irqs 0-23 on motherboard > kbd1 at kbdmux0 > acpi0: on motherboard > acpi0: [ITHREAD] > acpi0: Power Button (fixed) > unknown: I/O range not supported > acpi0: reservation of 0, 8000000 (3) failed > acpi0: reservation of 100000, fff00000 (3) failed > Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > acpi_timer0: <32-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0 > acpi_ec0: port 0x62,0x66 on acpi0 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > pcib1: at device 1.0 on pci0 > pci1: on pcib1 > vgapci0: port 0x4000-0x40ff mem 0xc0000000-0xc7f= fffff,0xd0200000-0xd020ffff,0xd0300000-0xd03fffff irq 19 at device 5.0 on p= ci1 > pcib2: at device 4.0 on pci0 > pci16: on pcib2 > bge0: mem 0xd0000000-0xd000ffff i= rq 16 at device 0.0 on pci16 > miibus0: on bge0 > brgphy0: PHY 1 on miibus0 > brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > bge0: Ethernet address: 00:1a:4b:83:26:75 > bge0: [ITHREAD] > pcib3: at device 5.0 on pci0 > pci32: on pcib3 > pcib4: at device 6.0 on pci0 > pci48: on pcib4 > pci48: at device 0.0 (no driver attached) > atapci0: port 0x9000-0x9007,0x9008-0x900b,0x9010-0x9= 017,0x5018-0x501b,0x5020-0x502f mem 0xd0409000-0xd04093ff irq 16 at device = 18.0 on pci0 > atapci0: [ITHREAD] > ata2: on atapci0 > ata2: [ITHREAD] > ata3: on atapci0 > ata3: [ITHREAD] > ohci0: mem 0xd0401000-0xd0401fff irq 23 a= t device 19.0 on pci0 > ohci0: [GIANT-LOCKED] > ohci0: [ITHREAD] > usb0: OHCI version 1.0, legacy support > usb0: on ohci0 > usb0: USB revision 1.0 > uhub0: on usb0 > uhub0: 2 ports with 2 removable, self powered > ohci1: mem 0xd0402000-0xd0402fff irq 17 a= t device 19.1 on pci0 > ohci1: [GIANT-LOCKED] > ohci1: [ITHREAD] > usb1: OHCI version 1.0, legacy support > usb1: on ohci1 > usb1: USB revision 1.0 > uhub1: on usb1 > uhub1: 2 ports with 2 removable, self powered > ohci2: mem 0xd0403000-0xd0403fff irq 17 a= t device 19.2 on pci0 > ohci2: [GIANT-LOCKED] > ohci2: [ITHREAD] > usb2: OHCI version 1.0, legacy support > usb2: on ohci2 > usb2: USB revision 1.0 > uhub2: on usb2 > uhub2: 2 ports with 2 removable, self powered > ohci3: mem 0xd0404000-0xd0404fff irq 17 a= t device 19.3 on pci0 > ohci3: [GIANT-LOCKED] > ohci3: [ITHREAD] > usb3: OHCI version 1.0, legacy support > usb3: on ohci3 > usb3: USB revision 1.0 > uhub3: on usb3 > uhub3: 2 ports with 2 removable, self powered > ohci4: mem 0xd0405000-0xd0405fff irq 17 a= t device 19.4 on pci0 > ohci4: [GIANT-LOCKED] > ohci4: [ITHREAD] > usb4: OHCI version 1.0, legacy support > usb4: on ohci4 > usb4: USB revision 1.0 > uhub4: on usb4 > uhub4: 2 ports with 2 removable, self powered > ehci0: mem 0xd0406000-0xd04060ff irq = 23 at device 19.5 on pci0 > ehci0: [GIANT-LOCKED] > ehci0: [ITHREAD] > usb5: EHCI version 1.0 > usb5: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4 > usb5: on ehci0 > usb5: USB revision 2.0 > uhub5: on usb5 > uhub5: 10 ports with 10 removable, self powered > pci0: at device 20.0 (no driver attached) > atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x= 5040-0x504f irq 16 at device 20.1 on pci0 > ata0: on atapci1 > ata0: [ITHREAD] > ata1: on atapci1 > ata1: [ITHREAD] > pci0: at device 20.2 (no driver attached) > isab0: at device 20.3 on pci0 > isa0: on isab0 > pcib5: at device 20.4 on pci0 > pci2: on pcib5 > cbb0: mem 0xd0100000-0xd0100fff irq 20 at de= vice 4.0 on pci2 > cardbus0: on cbb0 > pccard0: <16-bit PCCard bus> on cbb0 > cbb0: [ITHREAD] > cpu0: on acpi0 > powernow0: on cpu0 > acpi_throttle0: on cpu0 > cpu1: on acpi0 > powernow1: on cpu1 > acpi_throttle1: on cpu1 > acpi_throttle1: failed to attach P_CNT > device_attach: acpi_throttle1 attach returned 6 > battery0: on acpi0 > battery1: on acpi0 > acpi_acad0: on acpi0 > acpi_button0: on acpi0 > acpi_lid0: on acpi0 > acpi_tz0: on acpi0 > atrtc0: port 0x70-0x71,0x72-0x73 irq 8 on acpi0 > atkbdc0: port 0x60,0x64 irq 1 on acpi0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > atkbd0: [ITHREAD] > psm0: irq 12 on atkbdc0 > psm0: [GIANT-LOCKED] > psm0: [ITHREAD] > psm0: model IntelliMouse, device ID 3 > pmtimer0 on isa0 > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=3D0x300> > sio0: configured irq 4 not in bitmap of probed irqs 0 > sio0: port may not be enabled > sio0: configured irq 4 not in bitmap of probed irqs 0 > sio0: port may not be enabled > sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 > sio0: type 8250 or not responding > sio0: [FILTER] > sio1: configured irq 3 not in bitmap of probed irqs 0 > sio1: port may not be enabled > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > ums0: on uhub1 > ums0: 3 buttons and Z dir. > Timecounters tick every 1.000 msec > acd0: DVDR at ata0-master PIO4 > ACPI Error (exmutex-0479): Cannot release Mutex [C174], not acquired [200= 70320] > ACPI Error (psparse-0626): Method parse/execution failed [\\_SB_.C08B.C0F= E.C172.C1D4] (Node 0xc4d7a0c0), AE_AML_MUTEX_NOT_ACQUIRED > ACPI Error (psparse-0626): Method parse/execution failed [\\_SB_.C08B.C0F= E.C172.C1D5] (Node 0xc4d7a0a0), AE_AML_MUTEX_NOT_ACQUIRED > ACPI Error (psparse-0626): Method parse/execution failed [\\_SB_.C1EB._PS= R] (Node 0xc4d7d940), AE_AML_MUTEX_NOT_ACQUIRED > ad4: 152627MB at ata2-master UDMA33 > SMP: AP CPU #1 Launched! > WARNING: WITNESS option enabled, expect reduced performance. > Trying to mount root from ufs:/dev/ad4s3a --=20 Coleman Kane --=-6ATZVK/HmBj9NihbnOyu Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkgpiskACgkQcMSxQcXat5dybwCeI9DJG5W+e6CqQxDRHPKfiovI nyUAn3Y2MigsEwfte01AudXwNI0fONtJ =ds/S -----END PGP SIGNATURE----- --=-6ATZVK/HmBj9NihbnOyu--