From nobody@FreeBSD.org Tue Jun 28 12:55:44 2011 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CBA06106566B for ; Tue, 28 Jun 2011 12:55:44 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id BC3708FC08 for ; Tue, 28 Jun 2011 12:55:44 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p5SCtiCV091863 for ; Tue, 28 Jun 2011 12:55:44 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p5SCtiFs091862; Tue, 28 Jun 2011 12:55:44 GMT (envelope-from nobody) Message-Id: <201106281255.p5SCtiFs091862@red.freebsd.org> Date: Tue, 28 Jun 2011 12:55:44 GMT From: Anatoly Mashanov To: freebsd-gnats-submit@FreeBSD.org Subject: OQO 2: hdac0 attach returned 6 X-Send-Pr-Version: www-3.1 X-GNATS-Notify: >Number: 158391 >Category: kern >Synopsis: [pci] Resource allocation issues with hda/ath >Confidential: no >Severity: serious >Priority: low >Responsible: gavin >State: feedback >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jun 28 13:00:28 UTC 2011 >Closed-Date: >Last-Modified: Sun Jul 3 15:20:08 UTC 2011 >Originator: Anatoly Mashanov >Release: 8.2-RELEASE >Organization: - >Environment: FreeBSD oqo.nowhere.net 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: dmesg output contains: (after loading snd_hda.ko) hdac0: irq 17 at device 1.0 on pci2 hdac0: HDA Driver Revision: 20100226_0142 hdac0: 0x4000 bytes of rid 0x10 res 3 failed (0, 0xffffffff). hdac0: hdac_mem_alloc: Unable to allocate memory resource device_attach: hdac0 attach returned 6 ath0: irq 17 at device 4.0 on pci3 ath0: 0x10000 bytes of rid 0x10 res 3 failed (0, 0xffffffff). ath0: cannot map register space device_attach: ath0 attach returned 6 Correspondingly, WiFi and sound are absent. BIOS is latest available. Problem persists while: 8.2-RELEASE changed to 7.4-RELEASE; Custom kernel compiled with drivers inside or minimal kernel and kldload of drivers; Attempt to disable ACPI Trying anything imaginable setting in BIOS Attempt to cvsup to STABLE failed: kernel didn't compile Relevant files are http://plasmodius.dyndns.org/oqo Hardware: hostb0@pci0:0:0:0: class=0x060000 card=0x03241106 chip=0x03241106 rev=0x03 hdr=0x00 vendor = 'VIA Technologies, Inc.' device = 'CX700 Host Bridge' class = bridge subclass = HOST-PCI hostb1@pci0:0:0:1: class=0x060000 card=0x00000000 chip=0x13241106 rev=0x00 hdr=0x00 vendor = 'VIA Technologies, Inc.' device = 'CX700 Host Bridge' class = bridge subclass = HOST-PCI hostb2@pci0:0:0:2: class=0x060000 card=0x00000000 chip=0x23241106 rev=0x00 hdr=0x00 vendor = 'VIA Technologies, Inc.' device = 'CX700 Host Bridge' class = bridge subclass = HOST-PCI hostb3@pci0:0:0:3: class=0x060000 card=0x00000000 chip=0x33241106 rev=0x00 hdr=0x00 vendor = 'VIA Technologies, Inc.' device = 'CX700 Host Bridge' class = bridge subclass = HOST-PCI hostb4@pci0:0:0:4: class=0x060000 card=0x00000000 chip=0x43241106 rev=0x00 hdr=0x00 vendor = 'VIA Technologies, Inc.' device = 'CX700 Host Bridge' class = bridge subclass = HOST-PCI hostb5@pci0:0:0:7: class=0x060000 card=0x00000000 chip=0x73241106 rev=0x00 hdr=0x00 vendor = 'VIA Technologies, Inc.' device = 'CX700 Host Bridge' class = bridge subclass = HOST-PCI pcib1@pci0:0:1:0: class=0x060400 card=0x00000000 chip=0xb1981106 rev=0x00 hdr=0x01 vendor = 'VIA Technologies, Inc.' device = 'ProSavageDDR P4X600,Apollo KT400/A/600 CPU to AGP Bridge' class = bridge subclass = PCI-PCI atapci0@pci0:0:15:0: class=0x01018a card=0x05811106 chip=0x05811106 rev=0x00 hdr=0x00 vendor = 'VIA Technologies, Inc.' device = 'Bus Master IDE Controller; CX700/VX700 RAID Controller' class = mass storage subclass = ATA uhci0@pci0:0:16:0: class=0x0c0300 card=0x30381106 chip=0x30381106 rev=0x90 hdr=0x00 vendor = 'VIA Technologies, Inc.' device = 'VT82xxxxx UHCI USB 1.1 Controller (All VIA Chipsets)' class = serial bus subclass = USB uhci1@pci0:0:16:1: class=0x0c0300 card=0x30381106 chip=0x30381106 rev=0x90 hdr=0x00 vendor = 'VIA Technologies, Inc.' device = 'VT82xxxxx UHCI USB 1.1 Controller (All VIA Chipsets)' class = serial bus subclass = USB uhci2@pci0:0:16:2: class=0x0c0300 card=0x30381106 chip=0x30381106 rev=0x90 hdr=0x00 vendor = 'VIA Technologies, Inc.' device = 'VT82xxxxx UHCI USB 1.1 Controller (All VIA Chipsets)' class = serial bus subclass = USB ehci0@pci0:0:16:4: class=0x0c0320 card=0x31041106 chip=0x31041106 rev=0x90 hdr=0x00 vendor = 'VIA Technologies, Inc.' device = 'VT6202/12 USB 2.0 Enhanced Host Controller' class = serial bus subclass = USB isab0@pci0:0:17:0: class=0x060100 card=0x83241106 chip=0x83241106 rev=0x00 hdr=0x00 vendor = 'VIA Technologies, Inc.' device = 'CX700 PCI to ISA Bridge' class = bridge subclass = PCI-ISA hostb6@pci0:0:17:7: class=0x060000 card=0x324e1106 chip=0x324e1106 rev=0x00 hdr=0x00 vendor = 'VIA Technologies, Inc.' device = 'CX700 Internal Module Bus' class = bridge subclass = HOST-PCI pcib2@pci0:0:19:0: class=0x060400 card=0x00000000 chip=0x324b1106 rev=0x00 hdr=0x01 vendor = 'VIA Technologies, Inc.' device = 'CX700 Host Bridge' class = bridge subclass = PCI-PCI pcib3@pci0:0:19:1: class=0x060400 card=0x00000000 chip=0x324a1106 rev=0x00 hdr=0x01 vendor = 'VIA Technologies, Inc.' device = 'CX700 PCI to PCI Bridge' class = bridge subclass = PCI-PCI vgapci0@pci0:1:0:0: class=0x030000 card=0x31571106 chip=0x31571106 rev=0x03 hdr=0x00 vendor = 'VIA Technologies, Inc.' device = 'VIA/S3G Unichrome Pro IAGP (VIA VT8237)' class = display subclass = VGA none0@pci0:2:1:0: class=0x040300 card=0x32881106 chip=0x32881106 rev=0x10 hdr=0x00 vendor = 'VIA Technologies, Inc.' device = 'HDA Codec Realtek ALC660 (040300)' class = multimedia subclass = HDA ath0@pci0:3:4:0: class=0x020000 card=0x1602168c chip=0x001b168c rev=0x01 hdr=0x00 vendor = 'Atheros Communications Inc.' device = 'AR5006 family 802.11abg Wireless NIC' class = network subclass = ethernet rl0@pci0:3:5:0: class=0x020000 card=0x8139168c chip=0x813910ec rev=0x10 hdr=0x00 vendor = 'Realtek Semiconductor' device = 'Realtek RTL8139 Family PCI Fast Ethernet NIC (RTL-8139/8139C/8139D)' class = network subclass = ethernet >How-To-Repeat: Install 8.2-RELEASE or 7.4-RELEASE on OQO 2 cd /boot/kernel kldload snd_hda.ko >Fix: Both Atheros and sound are duly found under CURRENT 201105 snapshot, but there are other showstoppers (x11/openchrome hangup; usb flash not mountable) >Release-Note: >Audit-Trail: Responsible-Changed-From-To: freebsd-bugs->freebsd-multimedia Responsible-Changed-By: linimon Responsible-Changed-When: Tue Jun 28 14:11:38 UTC 2011 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=158391 State-Changed-From-To: open->feedback State-Changed-By: gavin State-Changed-When: Sat Jul 2 22:13:29 UTC 2011 State-Changed-Why: Hi, Could you please try two things: 1) Update to most recent -stable. If it fails to compile again make sure /etc/src.conf and /etc/make.conf are empty, rm -rf /usr/obj and try again. If it still doesn't compile, please email me the output from the compile. 2) If that kernel doesn't work, please recompile once more, but add "options NEW_PCIB" to your kernel config file. Let me know the results of both tests. Thanks Responsible-Changed-From-To: freebsd-multimedia->gavin Responsible-Changed-By: gavin Responsible-Changed-When: Sat Jul 2 22:13:29 UTC 2011 Responsible-Changed-Why: Track http://www.freebsd.org/cgi/query-pr.cgi?pr=158391 From: Gavin Atkinson To: Thor Ablestar Cc: bug-followup@FreeBSD.org Subject: Re: kern/158391: [pci] Resource allocation issues with hda/ath Date: Sun, 3 Jul 2011 16:11:16 +0100 (BST) On Sun, 3 Jul 2011, Thor Ablestar wrote: > I have already done it previously and have erased the installation since. > Update to recent stable succeeded, GENERIC kernel has been compiled, the error > persisted, error message was the same. > > Then I have added options NEW_PCIB to GENERIC. config GENERIC failed with > message stating that it does not know this option. Hmmm, how recent was your updated stable copy? This option was only merged about four days ago. This indeed the same patch that you refer to in 149306, so > Some time before this, I've tried to apply patch PR 149306 to 8.2-RELEASE and > failed with rejects, then tried to extract the already patched files relevant > to PR 149306 to 8.2-RELEASE and failed with lots of compile errors while > NEW_PCIB is in effect. Compile without NEW_PCIB was OK but the error > persisted. I am too old man to try to patch it myself. :) As I say, the NEW_PCIB changes in HEAD were backported to -stable, as SVN r223674, or at Wed Jun 29 15:58:26 2011 UTC if you manage your sources using cvsup. It would be good if you can verify that you have updated -stable to beyond that point - if you have and it still doesn't compile or work then we need to figure out why... > BTW: There are some others problems in CURRENT and in X server, should I > report them or it will be only a lot of unneeded warnings about temporary > glitches? If they are "it doesn't compile" then there's probably no need to report them as that will already be known about. If they are bugs where the code doesn't work as expected, please do report them. Please open one PR for each issue, unless you strongly feel that they are connected. Thanks, Gavin >Unformatted: