Re: ath0: could not map interrupt
Hi, I am wondering if anyone can confirm that any ath5k (preferably AR5413) series miniPCI wifi works on RB433/AH/UAH. Thank you in advance On Wed, Jan 2, 2013 at 10:29 PM, Monthadar Al Jaberi montha...@gmail.com wrote: On Wed, Jan 2, 2013 at 9:43 PM, Adrian Chadd adr...@freebsd.org wrote: ... sounds like a definite interrupt routing issue. Who's been knee deep in the interrupt handling code in MIPS lately? Grrr. I know there's been some FDT work in MIPS and that's touched some interrupt code.. maybe that's interfering? I am not sure, I just re-compiled my kernel for RSPRO and it seems to work. I install openwrt on rb433ah and ath0 associated ok. and I could ping between RSPRO(FreeBSD) and RB433AH(Openwrt). RSPRO and non working RB433AH running same kernel r243866. Attached is my kernel config hints. ( I am playing around with the ar71xx_spi but that should not effect the pci code, I hope). # # AR71XX -- Kernel configuration file for FreeBSD/MIPS for Atheros 71xx systems # # This includes all the common drivers for the AR71XX boards along with # the usb, net80211 and atheros driver code. # # $FreeBSD$ # machine mips mips ident RB433AH_MFS cpu CPU_MIPS4KC makeoptions KERNLOADADDR=0x8005 options HZ=1000 options HWPMC_HOOKS files ../atheros/files.ar71xx # For now, hints are per-board. hints RB433AH.hints makeoptions DEBUG=-g#Build kernel with gdb(1) debug symbols # Build these as modules so small platform builds will have the # modules already built. makeoptions MODULES_OVERRIDE=random gpio ar71xx if_gif if_gre if_bridge bridgestp usb wlan wlan_xauth wlan_acl wlan_wep wlan_tkip wlan_ccmp wlan_rssadapt wlan_amrr ath ath_pci options DDB options KDB options SCHED_4BSD #4BSD scheduler options INET#InterNETworking #optionsINET6 # IPv6 # options NFS_CL #Network Filesystem Client options PSEUDOFS#Pseudo-filesystem framework options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions # options NFS_LEGACYRPC # Debugging for use in -current options INVARIANTS options INVARIANT_SUPPORT options WITNESS options WITNESS_SKIPSPIN options DEBUG_REDZONE options DEBUG_MEMGUARD options FFS #Berkeley Fast Filesystem # options SOFTUPDATES #Enable FFS soft updates support # options UFS_ACL #Support for access control lists # options UFS_DIRHASH #Improve performance on big directories # options MSDOSFS # Read MSDOS filesystems; useful for USB/CF device pci device ar71xx_pci # RTC - requires hackery in the spibus code to work device pcf2123_rtc # GEOM modules device geom_redboot# to get access to the SPI flash partitions device geom_uzip # compressed in-memory filesystem hackery! device geom_map options GEOM_UZIP # NANDFS options NANDFS ## Boot from the first MFS uzip #optionsROOTDEVNAME=\ufs:md0.uzip\ #optionsMD_ROOT #optionsMD_ROOT_SIZE=9000 # Boot from NFS options NFSLOCKD#Network Lock Manager options NFSCLIENT #Network Filesystem Client options NFS_ROOT options BOOTP options BOOTP_NFSROOT options BOOTP_NFSV3 options BOOTP_WIRED_TO=arge1 options BOOTP_COMPAT options ROOTDEVNAME=\nfs:172.16.0.101:/usr/obj/rb433ah/nfs\ # 802.11 framework options IEEE80211_DEBUG options IEEE80211_ALQ options IEEE80211_SUPPORT_MESH # This option is currently broken for if_ath_tx. options IEEE80211_SUPPORT_TDMA options IEEE80211_AMPDU_AGE device wlan# 802.11 support device wlan_wep# 802.11 WEP support device wlan_ccmp # 802.11 CCMP support device wlan_tkip # 802.11 TKIP support device wlan_xauth # 802.11 hostap support device wlan_acl# 802.11 ACL support # Atheros wireless NICs device ath # Atheros interface support device ath_pci # Atheros PCI/Cardbus bus options ATH_DEBUG options ATH_DIAGAPI options ATH_ENABLE_11N options AH_DEBUG options AH_DEBUG_ALQ options ALQ device ath_hal option AH_SUPPORT_AR5416 device ath_rate_sample option AH_RXCFG_SDMAMW_4BYTES option AH_AR5416_INTERRUPT_MITIGATION # There's no DFS radar detection support yet so this won't actually # detect
Re: ath0: could not map interrupt
Maybe this is the root of the problem. On RSPRO the PCI start slot enumerating from 17. While RB433AH start from 18. That can explain why Slot 20 of RB433AH won't even attach (AR7161 only has 3 slots, slot 17 to 19). That can also explain why I get device_timeout on slot 18 and 19 cause they are miss aligned. And don't see any interrupts from ath(4) when enabling interrupt debugging. I will keep digging into why they won't start enumerating correct. br, On Fri, Jan 4, 2013 at 2:28 AM, Monthadar Al Jaberi montha...@gmail.com wrote: Hi, I am wondering if anyone can confirm that any ath5k (preferably AR5413) series miniPCI wifi works on RB433/AH/UAH. Thank you in advance On Wed, Jan 2, 2013 at 10:29 PM, Monthadar Al Jaberi montha...@gmail.com wrote: On Wed, Jan 2, 2013 at 9:43 PM, Adrian Chadd adr...@freebsd.org wrote: ... sounds like a definite interrupt routing issue. Who's been knee deep in the interrupt handling code in MIPS lately? Grrr. I know there's been some FDT work in MIPS and that's touched some interrupt code.. maybe that's interfering? I am not sure, I just re-compiled my kernel for RSPRO and it seems to work. I install openwrt on rb433ah and ath0 associated ok. and I could ping between RSPRO(FreeBSD) and RB433AH(Openwrt). RSPRO and non working RB433AH running same kernel r243866. Attached is my kernel config hints. ( I am playing around with the ar71xx_spi but that should not effect the pci code, I hope). # # AR71XX -- Kernel configuration file for FreeBSD/MIPS for Atheros 71xx systems # # This includes all the common drivers for the AR71XX boards along with # the usb, net80211 and atheros driver code. # # $FreeBSD$ # machine mips mips ident RB433AH_MFS cpu CPU_MIPS4KC makeoptions KERNLOADADDR=0x8005 options HZ=1000 options HWPMC_HOOKS files ../atheros/files.ar71xx # For now, hints are per-board. hints RB433AH.hints makeoptions DEBUG=-g#Build kernel with gdb(1) debug symbols # Build these as modules so small platform builds will have the # modules already built. makeoptions MODULES_OVERRIDE=random gpio ar71xx if_gif if_gre if_bridge bridgestp usb wlan wlan_xauth wlan_acl wlan_wep wlan_tkip wlan_ccmp wlan_rssadapt wlan_amrr ath ath_pci options DDB options KDB options SCHED_4BSD #4BSD scheduler options INET#InterNETworking #optionsINET6 # IPv6 # options NFS_CL #Network Filesystem Client options PSEUDOFS#Pseudo-filesystem framework options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions # options NFS_LEGACYRPC # Debugging for use in -current options INVARIANTS options INVARIANT_SUPPORT options WITNESS options WITNESS_SKIPSPIN options DEBUG_REDZONE options DEBUG_MEMGUARD options FFS #Berkeley Fast Filesystem # options SOFTUPDATES #Enable FFS soft updates support # options UFS_ACL #Support for access control lists # options UFS_DIRHASH #Improve performance on big directories # options MSDOSFS # Read MSDOS filesystems; useful for USB/CF device pci device ar71xx_pci # RTC - requires hackery in the spibus code to work device pcf2123_rtc # GEOM modules device geom_redboot# to get access to the SPI flash partitions device geom_uzip # compressed in-memory filesystem hackery! device geom_map options GEOM_UZIP # NANDFS options NANDFS ## Boot from the first MFS uzip #optionsROOTDEVNAME=\ufs:md0.uzip\ #optionsMD_ROOT #optionsMD_ROOT_SIZE=9000 # Boot from NFS options NFSLOCKD#Network Lock Manager options NFSCLIENT #Network Filesystem Client options NFS_ROOT options BOOTP options BOOTP_NFSROOT options BOOTP_NFSV3 options BOOTP_WIRED_TO=arge1 options BOOTP_COMPAT options ROOTDEVNAME=\nfs:172.16.0.101:/usr/obj/rb433ah/nfs\ # 802.11 framework options IEEE80211_DEBUG options IEEE80211_ALQ options IEEE80211_SUPPORT_MESH # This option is currently broken for if_ath_tx. options IEEE80211_SUPPORT_TDMA options IEEE80211_AMPDU_AGE device wlan# 802.11 support device wlan_wep# 802.11 WEP support device wlan_ccmp # 802.11 CCMP support device wlan_tkip # 802.11 TKIP support device wlan_xauth # 802.11 hostap support device wlan_acl# 802.11 ACL support # Atheros wireless NICs
Re: ath0: could not map interrupt
... wow. How the hell is that happening?! Adrian On 3 January 2013 20:54, Monthadar Al Jaberi montha...@gmail.com wrote: Maybe this is the root of the problem. On RSPRO the PCI start slot enumerating from 17. While RB433AH start from 18. That can explain why Slot 20 of RB433AH won't even attach (AR7161 only has 3 slots, slot 17 to 19). That can also explain why I get device_timeout on slot 18 and 19 cause they are miss aligned. And don't see any interrupts from ath(4) when enabling interrupt debugging. I will keep digging into why they won't start enumerating correct. br, On Fri, Jan 4, 2013 at 2:28 AM, Monthadar Al Jaberi montha...@gmail.com wrote: Hi, I am wondering if anyone can confirm that any ath5k (preferably AR5413) series miniPCI wifi works on RB433/AH/UAH. Thank you in advance On Wed, Jan 2, 2013 at 10:29 PM, Monthadar Al Jaberi montha...@gmail.com wrote: On Wed, Jan 2, 2013 at 9:43 PM, Adrian Chadd adr...@freebsd.org wrote: ... sounds like a definite interrupt routing issue. Who's been knee deep in the interrupt handling code in MIPS lately? Grrr. I know there's been some FDT work in MIPS and that's touched some interrupt code.. maybe that's interfering? I am not sure, I just re-compiled my kernel for RSPRO and it seems to work. I install openwrt on rb433ah and ath0 associated ok. and I could ping between RSPRO(FreeBSD) and RB433AH(Openwrt). RSPRO and non working RB433AH running same kernel r243866. Attached is my kernel config hints. ( I am playing around with the ar71xx_spi but that should not effect the pci code, I hope). # # AR71XX -- Kernel configuration file for FreeBSD/MIPS for Atheros 71xx systems # # This includes all the common drivers for the AR71XX boards along with # the usb, net80211 and atheros driver code. # # $FreeBSD$ # machine mips mips ident RB433AH_MFS cpu CPU_MIPS4KC makeoptions KERNLOADADDR=0x8005 options HZ=1000 options HWPMC_HOOKS files ../atheros/files.ar71xx # For now, hints are per-board. hints RB433AH.hints makeoptions DEBUG=-g#Build kernel with gdb(1) debug symbols # Build these as modules so small platform builds will have the # modules already built. makeoptions MODULES_OVERRIDE=random gpio ar71xx if_gif if_gre if_bridge bridgestp usb wlan wlan_xauth wlan_acl wlan_wep wlan_tkip wlan_ccmp wlan_rssadapt wlan_amrr ath ath_pci options DDB options KDB options SCHED_4BSD #4BSD scheduler options INET#InterNETworking #optionsINET6 # IPv6 # options NFS_CL #Network Filesystem Client options PSEUDOFS#Pseudo-filesystem framework options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions # options NFS_LEGACYRPC # Debugging for use in -current options INVARIANTS options INVARIANT_SUPPORT options WITNESS options WITNESS_SKIPSPIN options DEBUG_REDZONE options DEBUG_MEMGUARD options FFS #Berkeley Fast Filesystem # options SOFTUPDATES #Enable FFS soft updates support # options UFS_ACL #Support for access control lists # options UFS_DIRHASH #Improve performance on big directories # options MSDOSFS # Read MSDOS filesystems; useful for USB/CF device pci device ar71xx_pci # RTC - requires hackery in the spibus code to work device pcf2123_rtc # GEOM modules device geom_redboot# to get access to the SPI flash partitions device geom_uzip # compressed in-memory filesystem hackery! device geom_map options GEOM_UZIP # NANDFS options NANDFS ## Boot from the first MFS uzip #optionsROOTDEVNAME=\ufs:md0.uzip\ #optionsMD_ROOT #optionsMD_ROOT_SIZE=9000 # Boot from NFS options NFSLOCKD#Network Lock Manager options NFSCLIENT #Network Filesystem Client options NFS_ROOT options BOOTP options BOOTP_NFSROOT options BOOTP_NFSV3 options BOOTP_WIRED_TO=arge1 options BOOTP_COMPAT options ROOTDEVNAME=\nfs:172.16.0.101:/usr/obj/rb433ah/nfs\ # 802.11 framework options IEEE80211_DEBUG options IEEE80211_ALQ options IEEE80211_SUPPORT_MESH # This option is currently broken for if_ath_tx. options IEEE80211_SUPPORT_TDMA options IEEE80211_AMPDU_AGE device wlan# 802.11 support device wlan_wep# 802.11 WEP support device wlan_ccmp # 802.11 CCMP support device wlan_tkip # 802.11 TKIP support