From owner-freebsd-wireless@freebsd.org Wed May 2 23:14:31 2018 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5167BFB722D for ; Wed, 2 May 2018 23:14:31 +0000 (UTC) (envelope-from freebsd@tim.thechases.com) Received: from cichlid.ash.relay.mailchannels.net (cichlid.ash.relay.mailchannels.net [23.83.222.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EC70D7FB36 for ; Wed, 2 May 2018 23:14:28 +0000 (UTC) (envelope-from freebsd@tim.thechases.com) X-Sender-Id: wwwh2|x-authuser|tim@thechases.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 105225013F8 for ; Wed, 2 May 2018 21:57:48 +0000 (UTC) Received: from uscentral455.accountservergroup.com (unknown [100.96.13.46]) (Authenticated sender: wwwh2) by relay.mailchannels.net (Postfix) with ESMTPA id AE689501511 for ; Wed, 2 May 2018 21:57:47 +0000 (UTC) X-Sender-Id: wwwh2|x-authuser|tim@thechases.com Received: from uscentral455.accountservergroup.com (uscentral455.accountservergroup.com [172.19.36.153]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.14.1); Wed, 02 May 2018 21:57:48 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: wwwh2|x-authuser|tim@thechases.com X-MailChannels-Auth-Id: wwwh2 X-Descriptive-Snatch: 3a9968f73339caa0_1525298267927_2017113192 X-MC-Loop-Signature: 1525298267926:3193310308 X-MC-Ingress-Time: 1525298267925 Received: from 172-0-250-193.lightspeed.rcsntx.sbcglobal.net ([172.0.250.193]:45232 helo=bigbox.christie.dr) by uscentral455.accountservergroup.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1fDzkw-001JBF-RK for freebsd-wireless@freebsd.org; Wed, 02 May 2018 17:57:46 -0400 Date: Wed, 2 May 2018 16:57:45 -0500 From: Tim Chase To: freebsd-wireless@freebsd.org Subject: ath0: could not map interrupt (again?) Message-ID: <20180502165745.59a5bfc4@bigbox.christie.dr> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AuthUser: tim@thechases.com X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 May 2018 23:14:31 -0000 I just replaced my rubbish BCM in my Dell Inspiron Mini10 (Atom CPU) with an Atheros mini-PCI and FreeBSD seems to have trouble bringing it up: # dmesg | grep ath0 ath0: mem 0xd8000000-0xd800ffff irq 17 at device 0.0 on pci2 ath0: could not map interrupt device_attach: ath0 attach returned 6 Checking for "irq 17" suggests that my pcib1 is already using that interrupt: # dmesg | grep "irq 17" pcib1: irq 17 at device 28.0 on pci0 ath0: mem 0xd8000000-0xd800ffff irq 17 at device 0.0 on pci2 I found a similar issue from back in 2013: https://lists.freebsd.org/pipermail/freebsd-wireless/2013-January/002736.html but it seems to be on a Mikrotik MIPS board. An OpenBSD install on the same machine seems to find it well enough to bring up the interface in case that helps. Full dmesg below in case there are other details I missed. Any suggestions on where I should go from here? Thanks! -tkc Copyright (c) 1992-2017 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 11.1-RELEASE #0 r321309: Fri Jul 21 04:10:47 UTC 2017 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386 FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM 4.0.0) VT(vga): resolution 640x480 CPU: Intel(R) Atom(TM) CPU Z520 @ 1.33GHz (1330.03-MHz 686-class CPU) Origin="GenuineIntel" Id=0x106c2 Family=0x6 Model=0x1c Stepping=2 Features=0xbfe9fbff Features2=0x40c3bd AMD Features=0x100000 AMD Features2=0x1 VT-x: (disabled in BIOS) HLT,PAUSE TSC: P-state invariant, performance statistics real memory = 2147483648 (2048 MB) avail memory = 2067849216 (1972 MB) Event timer "LAPIC" quality 100 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 hardware threads random: unblocking device. ioapic0 irqs 0-23 on motherboard SMP: AP CPU #1 Launched! Timecounter "TSC" frequency 1330025320 Hz quality 1000 random: entropy device external interface kbd1 at kbdmux0 module_register_init: MOD_LOAD (vesa, 0xc10123d0, 0) error 19 nexus0 vtvga0: on motherboard cryptosoft0: on motherboard aesni0: No AESNI support. acpi0: on motherboard ACPI Error: Could not enable PowerButton event (20170303/evxfevnt-339) ACPI Warning: Could not enable fixed event - PowerButton (2) (20170303/evxface-855) acpi0: Power Button (fixed) hpet0: iomem 0xfed00000-0xfed003ff irq 0,8 on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 950 Event timer "HPET" frequency 14318180 Hz quality 450 Event timer "HPET1" frequency 14318180 Hz quality 440 Event timer "HPET2" frequency 14318180 Hz quality 440 cpu0: on acpi0 cpu1: on acpi0 atrtc0: port 0x70-0x73 on acpi0 atrtc0: Warning: Couldn't map I/O. Event timer "RTC" frequency 32768 Hz quality 0 attimer0: port 0x40-0x43 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 acpi_ec0: port 0x62,0x66 on acpi0 acpi_lid0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pcib0: could not evaluate _ADR - AE_NOT_FOUND pcib0: Length mismatch for 3 range: 800000 vs 7fffff pci0: on pcib0 vgapci0: port 0x1800-0x1807 mem 0xd8100000-0xd817ffff,0xd0000000-0xd7ffffff,0xd8380000-0xd839ffff irq 16 at device 2.0 on pci0 vgapci0: Boot video device hdac0: mem 0xd83a0000-0xd83a3fff irq 22 at device 27.0 on pci0 pcib1: irq 17 at device 28.0 on pci0 pcib1: [GIANT-LOCKED] pci1: on pcib1 re0: port 0x2000-0x20ff mem 0xd8410000-0xd8410fff,0xd8400000-0xd840ffff irq 16 at device 0.0 on pci1 re0: Using 1 MSI-X message re0: Chip rev. 0x24800000 re0: MAC rev. 0x00400000 miibus0: on re0 rlphy0: PHY 1 on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow re0: Using defaults for TSO: 65518/35/2048 re0: Ethernet address: 00:24:e8:c6:d7:2c pcib2: irq 16 at device 28.1 on pci0 pcib2: [GIANT-LOCKED] pci2: on pcib2 ath0: mem 0xd8000000-0xd800ffff irq 17 at device 0.0 on pci2 ath0: could not map interrupt device_attach: ath0 attach returned 6 uhci0: port 0x1820-0x183f irq 23 at device 29.0 on pci0 uhci0: LegSup = 0x0000 usbus0 on uhci0 usbus0: 12Mbps Full Speed USB v1.0 uhci1: port 0x1840-0x185f irq 19 at device 29.1 on pci0 uhci1: LegSup = 0x0000 usbus1 on uhci1 usbus1: 12Mbps Full Speed USB v1.0 uhci2: port 0x1860-0x187f irq 18 at device 29.2 on pci0 uhci2: LegSup = 0x0000 usbus2 on uhci2 usbus2: 12Mbps Full Speed USB v1.0 ehci0: mem 0xd83a4000-0xd83a43ff irq 21 at device 29.7 on pci0 usbus3: EHCI version 1.0 usbus3 on ehci0 usbus3: 480Mbps High Speed USB v2.0 isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1810-0x181f at device 31.1 on pci0 ata0: at channel 0 on atapci0 acpi_acad0: on acpi0 battery0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse, device ID 3 pmtimer0 on isa0 orm0: at iomem 0xce800-0xcf7ff,0xe0000-0xe17ff pnpid ORM0000 on isa0 fdc0: No FDOUT register! ppc0: parallel port not found. est0: on cpu0 est1: on cpu1 ZFS NOTICE: KSTACK_PAGES is 2 which could result in stack overflow panic! Please consider adding 'options KSTACK_PAGES=4' to your kernel config ZFS NOTICE: Prefetch is disabled by default on i386 -- to enable, add "vfs.zfs.prefetch_disable=0" to /boot/loader.conf. ZFS WARNING: Recommended minimum kmem_size is 512MB; expect unstable behavior. Consider tuning vm.kmem_size and vm.kmem_size_max in /boot/loader.conf. ZFS filesystem version: 5 ZFS storage pool version: features support (5000) Timecounters tick every 1.000 msec nvme cam probe device init hdacc0: at cad 0 on hdac0 hdaa0: at nid 1 on hdacc0 pcm0: at nid 20,21 and 18 on hdaa0 pcm1: at nid 24 on hdaa0 hdacc1: at cad 1 on hdac0 hdaa1: at nid 1 on hdacc1 pcm2: at nid 3 on hdaa1 ugen0.1: at usbus0 ugen3.1: at usbus3 uhub0: on usbus0 uhub1: on usbus3 ugen1.1: at usbus1 ugen2.1: at usbus2 uhub2: on usbus1 uhub3: on usbus2 uhub0: 2 ports with 2 removable, self powered ada0 at ata0 bus 0 scbus0 target 0 lun 0 ada0: ATA8-ACS SATA 2.x device ada0: Serial Number WD-WX30A79W9772 ada0: 100.000MB/s transfersuhub2: (2 ports with 2 removable, self powered UDMA5, PIO 8192bytes) ada0: 238475MB (488397168 512 byte sectors) uhub3: 2 ports with 2 removable, self powered Trying to mount root from zfs:zroot/ROOT/default []... GEOM_ELI: Device ada0p3.eli created. GEOM_ELI: Encryption: AES-XTS 256 GEOM_ELI: Crypto: software Root mount waiting for: usbus3 uhub1: 8 ports with 8 removable, self powered Root mount waiting for: usbus3 ugen3.2: at usbus3 uhub4 on uhub1 uhub4: on usbus3 Root mount waiting for: usbus3 uhub4: 2 ports with 2 removable, self powered ugen3.3: at usbus3 Root mount waiting for: usbus3 ugen3.4: at usbus3 umass0 on uhub1 umass0: on usbus3 umass0: SCSI over Bulk-Only; quirks = 0x4000 umass0:1:0: Attached to scbus1 da0 at umass-sim0 bus 0 scbus1 target 0 lun 0 da0: Removable Direct Access SCSI device da0: Serial Number 20071114173400000 da0: 40.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not present da0: quirks=0x2 GEOM_ELI: Device ada0p2.eli created. GEOM_ELI: Encryption: AES-XTS 128 GEOM_ELI: Crypto: software re0: link state changed to DOWN re0: link state changed to UP re0: link state changed to DOWN re0: link state changed to UP re0: link state changed to DOWN re0: link state changed to UP