Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Dec 2014 19:53:15 +0000 (UTC)
From:      Anthony Jenkins <scoobi_doo@yahoo.com>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        "wireless@freebsd.org" <wireless@freebsd.org>
Subject:   Re: Atheros AR9565 detected, not working
Message-ID:  <1156584761.958533.1418932395342.JavaMail.yahoo@jws10611.mail.bf1.yahoo.com>

next in thread | raw e-mail | index | archive | help
------=_Part_958532_988945889.1418932395341
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

The attached patch seems to get my rfkill GPIO working.  It seems ar9300_enable_rf_kill() is never called.  I added a call to it after ath_hal_enable_rfkill(), but this is probably not the right place (I see it called several times while the interface is up).

I also found several spots in the GPIO handling code which give up if the GPIO pin is 8, 9, 11 or greater than 13; my rfkill GPIO pin is 11 (0x0B).  I commented these out:


if ((gpio == AR9382_GPIO_PIN_8_RESERVED)  ||
(gpio == AR9382_GPIO_PIN_11_RESERVED) ||
(gpio == AR9382_GPIO_9_INPUT_ONLY))
{
return AH_FALSE;
}



if ((gpio == AR9382_GPIO_PIN_8_RESERVED) ||
(gpio == AR9382_GPIO_PIN_11_RESERVED) ||
(gpio > AR9382_MAX_GPIO_INPUT_PIN_NUM))
{
return;
}


Haven't narrowed down which is responsible for me being able to send this email using my AR9565.  Also I'm getting flooded with these messages since moving ath & wlan out of the kernel...my patch broke something, no?

ath0: ath_edma_rxfifo_alloc: Q1: alloc failed: i=0, nbufs=128?
ath0: ath_edma_rxbuf_alloc: nothing on rxbuf?!
ath0: ath_edma_rxfifo_alloc: Q1: alloc failed: i=1, nbufs=128?
ath0: ath_edma_rxbuf_alloc: nothing on rxbuf?!
ath0: ath_edma_rxfifo_alloc: Q1: alloc failed: i=0, nbufs=128?
ath0: ath_edma_rxbuf_alloc: nothing on rxbuf?!
ath0: ath_edma_rxfifo_alloc: Q1: alloc failed: i=1, nbufs=128?
ath0: ath_edma_rxbuf_alloc: nothing on rxbuf?!
ath0: ath_edma_rxfifo_alloc: Q1: alloc failed: i=0, nbufs=128?


Anthony
________________________________
From: Adrian Chadd <adrian@freebsd.org>
To: Anthony Jenkins <Scoobi_doo@yahoo.com> 
Cc: "freebsd-wireless@freebsd.org" <freebsd-wireless@freebsd.org> 
Sent: Monday, July 29, 2013 10:44 AM
Subject: Re: Atheros AR9565 detected, not working


Cool, thanks.

Please make sure you post patches for all the things you fix. I'd love
to see this kind of thing work out of the box. :)


-adrian

On 29 July 2013 07:36, Anthony Jenkins <Scoobi_doo@yahoo.com> wrote:
> Thanks Adrian,
>
> I've managed to fix a few things on this laptop, the remaining stuff is
> BIOS/ACPI related.  acpi_hp(4) isn't working, has something to do with WMI.
> Hoping if I fix the ACPI stuff I can
have me AR9565 working.  I'll poke
> around and report back; the RFKill suggestion is a good place to start
> looking.
>
> Thanks,
> Anthony
>
>
> On 07/29/13 10:30, Adrian Chadd wrote:
>>
>> Hm, maybe rfkill is set?
>>
>> The AR9565 is supported. I have the reference NICs from Atheros; they
>> work just fine.
>>
>> It may be some kind of ACPI setting to enable/disable RFKill so the
>> radio side is actually enabled.
>>
>> I'm sorry, I don't have much more than that to offer without having
>> the laptop here.
>>
>> If someone's willing to send me one, I'll get 10 + wireless working on
>> it and then hand it over to ixsystems to join the 'stuff we really
>> should get pcbsd running smoothly on' pile. They're about $500 off of
>>
amazon.com.
>>
>> Thanks,
>>
>>
>>
>> -adrian
>>
>> On 29 July 2013 07:21, Anthony Jenkins <Scoobi_doo@yahoo.com> wrote:
>>>
>>> I just got an HP ENVY Sleekbook 6z-1100 laptop hoping it came with a
>>> FreeBSD-supported wireless NIC.  It has an Atheros AR9565 and looking at
>>> the
>>> logs it _seems_ like it should be working, but I get no network traffic.
>>> I
>>> haven't started the Atheros debugging procedure yet, save to compile in
>>> option AH_DEBUG and move ath(4) out of the kernel & to a module to
>>> facilitate changes.  Works (of course) in Win8 which came with laptop.
>>> Wireless enabled LED is amber (disabled) in FreeBSD, goes from amber
to
>>> white (enabled) when I boot the Win8 HDD.
>>>
>>> Here's various logs and misc. system info.  What should I try next?
>>> Thanks
>>> in advance!
>>>
>>> [root@laptop /usr/src]# uname -a n
>>> FreeBSD laptop.qtchat.org 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Sat Jul
>>> 27
>>> 23:45:30 EDT 2013 root@laptop.qtchat.org:/usr/obj/usr/src/sys/MYKERNEL
>>> amd64
>>>
>>> [root@laptop /usr/src]# dmesg
>>> Copyright (c) 1992-2013 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 10.0-CURRENT #0: Sat Jul 27 23:45:30 EDT 2013
>>>      root@laptop.qtchat.org:/usr/obj/usr/src/sys/MYKERNEL amd64
>>> FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
>>> module_register: module pci/xhci already exists!
>>> Module pci/xhci failed to register: 17
>>> CPU: AMD A10-4655M APU with Radeon(tm) HD Graphics   (1996.31-MHz
>>> K8-class
>>> CPU)
>>>    Origin = "AuthenticAMD"  Id = 0x610f01  Family = 0x15  Model = 0x10
>>> Stepping = 1
>>>
>>>
Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
>>>
>>> Features2=0x3e98320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C>
>>>    AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
>>>    AMD
>>>
>>> Features2=0x1abbfff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,XOP,SKINIT,WDT,LWP,FMA4,<b17>,NodeId,TBM,<b23>,<b24>>
>>>    Standard Extended Features=0x8<BMI1>
>>>    TSC: P-state invariant, performance statistics
>>> real memory  = 17179869184 (16384 MB)
>>> avail memory = 15463530496 (14747 MB)
>>> Event timer "LAPIC" quality 400
>>> ACPI APIC Table: <HPQOEM 18DE   
>
>>> FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
>>> FreeBSD/SMP: 1 package(s) x 4 core(s)
>>>   cpu0 (BSP): APIC ID: 16
>>>   cpu1 (AP): APIC ID: 17
>>>   cpu2 (AP): APIC ID: 18
>>>   cpu3 (AP): APIC ID: 19
>>> ioapic0: Changing APIC ID to 4
>>> ioapic0 <Version 2.1> irqs 0-23 on motherboard
>>> kbd1 at kbdmux0
>>> acpi0: <HPQOEM SLIC-MPC> on motherboard
>>> acpi0: Power Button (fixed)
>>> cpu0: <ACPI CPU> on acpi0
>>> cpu1: <ACPI CPU> on acpi0
>>> cpu2: <ACPI CPU> on acpi0
>>> cpu3: <ACPI CPU> on acpi0
>>> hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff irq 0,8
>>> on
>>> acpi0
>>> Timecounter "HPET" frequency 14318180 Hz quality
950
>>> atrtc0: <AT realtime clock> port 0x70-0x71 on acpi0
>>> Event timer "RTC" frequency 32768 Hz quality 0
>>> attimer0: <AT timer> 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: <32-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
>>> acpi_ec0: <Embedded Controller: GPE 0x3> port 0x62,0x66 iomem
>>> 0xff000000-0xff000fff on acpi0
>>> acpi_button0: <Power Button> on acpi0
>>> pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
>>> pci0: <ACPI PCI bus> on pcib0
>>> vgapci0: <VGA-compatible display> port 0x3000-0x30ff mem
>>> 0xe0000000-0xefffffff,0xf0300000-0xf033ffff
irq 17 at device 1.0 on pci0
>>> acpi_video0: <ACPI video extension> on vgapci0
>>> hdac0: <ATI (0x9902) HDA Controller> mem 0xf0344000-0xf0347fff irq 18 at
>>> device 1.1 on pci0
>>> hdac0: hdac_get_capabilities: Invalid corb size (0); assuming 256.
>>> hdac0: hdac_get_capabilities: Invalid rirb size (0); assuming 256.
>>> pcib1: <ACPI PCI-PCI bridge> at device 4.0 on pci0
>>> pci1: <ACPI PCI bus> on pcib1
>>> pci1: <unknown> at device 0.0 (no driver attached)
>>> re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F PCIe Gigabit Ethernet> port
>>> 0x2000-0x20ff mem 0xf0004000-0xf0004fff,0xf0000000-0xf0003fff irq 16 at
>>> device 0.2 on pci1
>>> re0: Using 1 MSI-X message
>>> re0: turning off MSI enable bit.
>>> re0: ASPM disabled
>>> re0: Chip rev.
0x48800000
>>> re0: MAC rev. 0x00000000
>>> miibus0: <MII bus> on re0
>>> rgephy0: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 1 on
>>> miibus0
>>> rgephy0:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX,
>>> 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT-FDX, 1000baseT-FDX-master,
>>> 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
>>> re0: Ethernet address: 6c:3b:e5:81:21:f0
>>> pcib2: <ACPI PCI-PCI bridge> at device 5.0 on pci0
>>> pci2: <ACPI PCI bus> on pcib2
>>> ath0: <Qualcomm Atheros AR9565> mem 0xf0100000-0xf017ffff irq 17 at
>>> device
>>> 0.0 on pci2
>>> ar9300_set_stub_functions: setting stub functions
>>> ar9300_set_stub_functions: setting stub functions
>>> ar9300_attach: calling
ar9300_hw_attach
>>> ar9300_hw_attach: calling ar9300_eeprom_attach
>>> ar9300_flash_map: unimplemented for now
>>> Restoring Cal data from DRAM
>>> Restoring Cal data from EEPROM
>>> Restoring Cal data from Flash
>>> Restoring Cal data from Flash
>>> Restoring Cal data from OTP
>>> ar9300_hw_attach: ar9300_eeprom_attach returned 0
>>> ar9300_fill_capability_info: (MCI) MCI support = 1
>>> ath0: RX status length: 48
>>> ath0: RX buffer size: 4096
>>> ath0: TX descriptor length: 128
>>> ath0: TX status length: 36
>>> ath0: TX buffers per descriptor: 4
>>> ar9300_freebsd_setup_x_tx_desc: called, 0x0/0, 0x0/0, 0x0/0
>>> ath0: ath_edma_setup_rxfifo: type=0, FIFO depth = 16 entries
>>> ath0: ath_edma_setup_rxfifo: type=1, FIFO depth = 128
entries
>>> ath0: [HT] enabling HT modes
>>> ath0: [HT] enabling short-GI in 20MHz mode
>>> ath0: [HT] 1 stream STBC receive enabled
>>> ath0: [HT] 1 RX streams; 1 TX streams
>>> ath0: AR9565 mac 704.0 RF5110 phy 526.12
>>> ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0000
>>> xhci0: <XHCI (generic) USB 3.0 controller> mem 0xf0348000-0xf0349fff irq
>>> 18
>>> at device 16.0 on pci0
>>> usbus0: waiting for BIOS to give up control
>>> xhci0: 32 byte context size.
>>> usbus0 on xhci0
>>> ahci0: <AMD Hudson-2 AHCI SATA controller> port
>>> 0x3118-0x311f,0x3124-0x3127,0x3110-0x3117,0x3120-0x3123,0x3100-0x310f mem
>>> 0xf034e000-0xf034e7ff irq 19 at device 17.0 on pci0
>>> ahci0: AHCI v1.30 with 1 6Gbps ports, Port Multiplier supported
>>> ahcich0:
<AHCI channel> at channel 0 on ahci0
>>> ohci0: <OHCI (generic) USB controller> mem 0xf034d000-0xf034dfff irq 18
>>> at
>>> device 18.0 on pci0
>>> usbus1 on ohci0
>>> ehci0: <EHCI (generic) USB 2.0 controller> mem 0xf034c000-0xf034c0ff irq
>>> 17
>>> at device 18.2 on pci0
>>> usbus2: EHCI version 1.0
>>> usbus2 on ehci0
>>> ohci1: <OHCI (generic) USB controller> mem 0xf034b000-0xf034bfff irq 18
>>> at
>>> device 19.0 on pci0
>>> usbus3 on ohci1
>>> ehci1: <EHCI (generic) USB 2.0 controller> mem 0xf034a000-0xf034a0ff irq
>>> 17
>>> at device 19.2 on pci0
>>> usbus4: EHCI version 1.0
>>> usbus4 on ehci1
>>> pci0: <serial bus, SMBus> at device 20.0 (no driver attached)
>>> hdac1:
<Generic (0x780d1022) HDA Controller> mem 0xf0340000-0xf0343fff
>>> irq
>>> 16 at device 20.2 on pci0
>>> isab0: <PCI-ISA bridge> at device 20.3 on pci0
>>> isa0: <ISA bus> on isab0
>>> pcib3: <ACPI PCI-PCI bridge> at device 20.4 on pci0
>>> pci3: <ACPI PCI bus> on pcib3
>>> acpi_lid0: <Control Method Lid Switch> on acpi0
>>> acpi_tz0: <Thermal Zone> on acpi0
>>> acpi_tz0: _CRT value is absurd, ignored (226.8C)
>>> atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
>>> atkbd0: <AT Keyboard> irq 1 on atkbdc0
>>> kbd0 at atkbd0
>>> atkbd0: [GIANT-LOCKED]
>>> psm0: <PS/2 Mouse> irq 12 on atkbdc0
>>> psm0: [GIANT-LOCKED]
>>> psm0: model Synaptics Touchpad, device ID 0
>>>
battery0: <ACPI Control Method Battery> on acpi0
>>> acpi_acad0: <AC Adapter> on acpi0
>>> sc0: <System console> at flags 0x100 on isa0
>>> sc0: VGA <16 virtual consoles, flags=0x300>
>>> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
>>> ctl: CAM Target Layer loaded
>>> acpi_throttle0: <ACPI CPU Throttling> on cpu0
>>> acpi_throttle1: <ACPI CPU Throttling> on cpu1
>>> acpi_throttle1: failed to attach P_CNT
>>> device_attach: acpi_throttle1 attach returned 6
>>> acpi_throttle2: <ACPI CPU Throttling> on cpu2
>>> acpi_throttle2: failed to attach P_CNT
>>> device_attach: acpi_throttle2 attach returned 6
>>> acpi_throttle3: <ACPI CPU Throttling> on cpu3
>>> acpi_throttle3: failed to attach P_CNT
>>>
device_attach: acpi_throttle3 attach returned 6
>>> ZFS filesystem version: 5
>>> ZFS storage pool version: features support (5000)
>>> Timecounters tick every 1.000 msec
>>> hdacc0: <ATI R6xx HDA CODEC> at cad 0 on hdac0
>>> hdaa0: <ATI R6xx Audio Function Group> at nid 1 on hdacc0
>>> pcm0: <ATI R6xx (HDMI)> at nid 3 on hdaa0
>>> hdacc1: <IDT 92HD91BXX HDA CODEC> at cad 0 on hdac1
>>> hdaa1: <IDT 92HD91BXX Audio Function Group> at nid 1 on hdacc1
>>> pcm1: <IDT 92HD91BXX (Analog 2.0+HP/2.0)> at nid 13,11 and 12 on hdaa1
>>> pcm2: <IDT 92HD91BXX (Analog Mic)> at nid 17 on hdaa1
>>> usbus0: 5.0Gbps Super Speed USB v3.0
>>> usbus1: 12Mbps Full Speed USB v1.0
>>> usbus2: 480Mbps High Speed USB v2.0
>>> usbus3: 12Mbps Full Speed USB
v1.0
>>> usbus4: 480Mbps High Speed USB v2.0
>>> ugen3.1: <AMD> at usbus3
>>> uhub0: <AMD OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
>>> ugen2.1: <AMD> at usbus2
>>> uhub1: <AMD EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
>>> ugen1.1: <AMD> at usbus1
>>> uhub2: <AMD OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
>>> ugen0.1: <0x1022> at usbus0
>>> uhub3: <0x1022 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
>>> ugen4.1: <AMD> at usbus4
>>> uhub4: <AMD EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus4
>>> ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
>>> ada0: <Samsung SSD 840 Series DXT06B0Q> ATA-9 SATA 3.x device
>>> ada0: 600.000MB/s transfers (SATA 3.x,
UDMA6, PIO 8192bytes)
>>> ada0: Command Queueing enabled
>>> ada0: 238475MB (488397168 512 byte sectors: 16H 63S/T 16383C)
>>> ada0: Previously was known as ad4
>>> SMP: AP CPU #3 Launched!
>>> SMP: AP CPU #1 Launched!
>>> SMP: AP CPU #2 Launched!
>>> Timecounter "TSC" frequency 1996309068 Hz quality 1000
>>> Root mount waiting for: usbus4 usbus3 usbus2 usbus1 usbus0
>>> uhub0: 5 ports with 5 removable, self powered
>>> uhub2: 5 ports with 5 removable, self powered
>>> ACPI Error: No handler for Region [RCM0] (0xfffffe0026ac6b00)
>>> [SystemCMOS]
>>> (20130626/evregion-178)
>>> ACPI Error: Region SystemCMOS (ID=5) has no handler
>>> (20130626/exfldio-320)
>>> ACPI Error: Method parse/execution failed [\134_SB_.WMID.ESDT] (Node
>>> 0xfffffe0026adac40),
AE_NOT_EXIST (20130626/psparse-553)
>>> ACPI Error: Method parse/execution failed [\134_SB_.PCI0.LPC0.EC0_._Q42]
>>> (Node 0xfffffe0026ae8340), AE_NOT_EXIST (20130626/psparse-553)
>>> acpi_ec0: evaluation of query method _Q42 failed: AE_NOT_EXIST
>>> uhub3: 4 ports with 4 removable, self powered
>>> Root mount waiting for: usbus4 usbus2
>>> uhub1: 5 ports with 5 removable, self powered
>>> uhub4: 5 ports with 5 removable, self powered
>>> Root mount waiting for: usbus4 usbus2
>>> ugen2.2: <Ralink> at usbus2
>>> ugen4.2: <SuYin> at usbus4
>>> Trying to mount root from zfs:sys []...
>>> can't evaluate \134_SB_.PCI0.VGA_.LCD_._DCS - AE_NOT_FOUND
>>> can't evaluate \134_SB_.PCI0.VGA_.LCD_._DCS - AE_NOT_FOUND
>>> ugen3.2: <vendor 0x0cf3> at usbus3
>>>
ar9300_Stub_GetCTSTimeout: called
>>> ar9300_Stub_GetCTSTimeout: called
>>> ar9300_Stub_GetAntennaSwitch: called
>>> ar9300_Stub_GetAntennaSwitch: called
>>> wlan1: Ethernet address: 20:68:9d:c5:76:8d
>>> run0: <Ralink 11n Adapter, class 0/0, rev 2.00/1.01, addr 2> on usbus2
>>> run0: MAC/BBP RT3071 (rev 0x0213), RF RT3022 (MIMO 2T2R), address
>>> 1c:bd:b9:8c:9d:71
>>> ubt0: <vendor 0x0cf3 product 0x311f, class 224/1, rev 1.10/0.01, addr 2>
>>> on
>>> usbus3
>>> wlan0: Ethernet address: 1c:bd:b9:8c:9d:71
>>> run0: firmware RT3071 ver. 0.236 loaded
>>> WARNING: attempt to domain_add(bluetooth) after domainfinalize()
>>> WARNING: attempt to domain_add(netgraph) after domainfinalize()
>>> can't evaluate \134_SB_.PCI0.VGA_.LCD_._DCS - AE_NOT_FOUND
>>> can't
evaluate \134_SB_.PCI0.VGA_.LCD_._DCS - AE_NOT_FOUND
>>> WARNING pid 2654 (python2.7): ioctl sign-extension ioctl ffffffff80087467
>>> WARNING pid 2655 (python2.7): ioctl sign-extension ioctl ffffffff80087467
>>> WARNING pid 2656 (python2.7): ioctl sign-extension ioctl ffffffff80087467
>>> wlan0: Ethernet address: 1c:bd:b9:8c:9d:71
>>> run0: firmware RT3071 ver. 0.236 loaded
>>> wlan0: link state changed to UP
>>> can't evaluate \134_SB_.PCI0.VGA_.LCD_._DCS - AE_NOT_FOUND
>>> uhub3: at usbus0, port 1, addr 1 (disconnected)
>>> uhub2: at usbus1, port 1, addr 1 (disconnected)
>>> xhci_interrupt: host controller halted
>>> xhci_interrupt: host controller halted
>>> xhci_interrupt: host controller halted
>>> xhci_interrupt: host controller halted
>>> xhci_interrupt: host controller
halted
>>> xhci_interrupt: host controller halted
>>> xhci_interrupt: host controller halted
>>> uhub1: at usbus2, port 1, addr 1 (disconnected)
>>> ugen2.2: <Ralink> at usbus2 (disconnected)
>>> run0: at uhub1, port 1, addr 2 (disconnected)
>>> xhci_interrupt: host controller halted
>>> xhci_interrupt: host controller halted
>>> xhci_interrupt: host controller halted
>>> xhci_interrupt: host controller halted
>>> xhci_interrupt: host controller halted
>>> xhci_interrupt: host controller halted
>>> xhci_interrupt: host controller halted
>>> xhci_interrupt: host controller halted
>>> xhci_interrupt: host controller halted
>>> xhci_interrupt: host controller halted
>>> xhci_interrupt: host controller halted
>>> xhci_interrupt: host controller
halted
>>> xhci_interrupt: host controller halted
>>> xhci_interrupt: host controller halted
>>> xhci_interrupt: host controller halted
>>> xhci_interrupt: host controller halted
>>> xhci_interrupt: host controller halted
>>> wlan0: link state changed to DOWN
>>> uhub0: at usbus3, port 1, addr 1 (disconnected)
>>> ugen3.2: <vendor 0x0cf3> at usbus3 (disconnected)
>>> ubt0: at uhub0, port 4, addr 2 (disconnected)
>>> xhci_interrupt: host controller halted
>>> xhci_interrupt: host controller halted
>>> uhub4: at usbus4, port 1, addr 1 (disconnected)
>>> ugen4.2: <SuYin> at usbus4 (disconnected)
>>> ACPI Error: No handler for Region [RCM0] (0xfffffe0026ac6b00)
>>> [SystemCMOS]
>>> (20130626/evregion-178)
>>> ACPI Error: Region SystemCMOS (ID=5)
has no handler
>>> (20130626/exfldio-320)
>>> ACPI Error: Method parse/execution failed [\134_SB_.WMID.ESDT] (Node
>>> 0xfffffe0026adac40), AE_NOT_EXIST (20130626/psparse-553)
>>> ACPI Error: Method parse/execution failed [\134_PTS] (Node
>>> 0xfffffe0026ab4c80), AE_NOT_EXIST (20130626/psparse-553)
>>> acpi0: AcpiEnterSleepStatePrep failed - AE_NOT_EXIST
>>> can't evaluate \134_SB_.PCI0.VGA_.LCD_._DCS - AE_NOT_FOUND
>>> xhci0: 32 byte context size.
>>> uhub0: <0x1022 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
>>> uhub1: <AMD EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
>>> uhub2: <AMD EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus4
>>> uhub3: <AMD OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
>>> uhub4: <AMD OHCI root
HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
>>> uhub0: 4 ports with 4 removable, self powered
>>> uhub4: 5 ports with 5 removable, self powered
>>> uhub3: 5 ports with 5 removable, self powered
>>> uhub1: 5 ports with 5 removable, self powered
>>> uhub2: 5 ports with 5 removable, self powered
>>> ugen2.2: <Ralink> at usbus2
>>> run0: <Ralink 11n Adapter, class 0/0, rev 2.00/1.01, addr 2> on usbus2
>>> ugen4.2: <SuYin> at usbus4
>>> run0: MAC/BBP RT3071 (rev 0x0213), RF RT3022 (MIMO 2T2R), address
>>> 1c:bd:b9:8c:9d:71
>>> wlan0: Ethernet address: 1c:bd:b9:8c:9d:71
>>> run0: firmware RT3071 ver. 0.236 loaded
>>> ugen3.2: <vendor 0x0cf3> at usbus3
>>> ubt0: <vendor 0x0cf3 product 0x311f, class 224/1, rev 1.10/0.01, addr 2>
>>>
on
>>> usbus3
>>> wlan0: link state changed to UP
>>> can't evaluate \134_SB_.PCI0.VGA_.LCD_._DCS - AE_NOT_FOUND
>>>
>>> [root@laptop /usr/src]# cat /etc/rc.conf
>>> wlans_run0="wlan0"
>>> wlans_ath0="wlan1"
>>> ifconfig_wlan0="DHCP WPA"
>>> ...
>>>
>>> [root@laptop /usr/src]# ifconfig -a
>>> ath0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290
>>>      ether 20:68:9d:c5:76:8d
>>>      nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>>>      media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
>>>      status: no carrier
>>> wlan1:
flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
>>>      ether 20:68:9d:c5:76:8d
>>>      nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>>>      media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
>>>      status: no carrier
>>>      ssid "" channel 1 (2412 MHz 11b)
>>>      regdomain 106 indoor ecm authmode OPEN privacy OFF txpower 20 bmiss
>>> 7
>>>      scanvalid 60 wme burst bintval 0
>>> ...
>>>
>>> [root@laptop /usr/src]# /etc/rc.d/netif start ath0
>>> Starting Network: ath0.
>>> ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
>>>
2290
>>>      ether 20:68:9d:c5:76:8d
>>>      nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>>>      media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
>>>      status: associated
>>> Additional inet routing options: ignore ICMP redirect=YES log ICMP
>>> redirect=YES.
>>>
>>> [root@laptop /usr/src]# for iface in ath0 wlan1; do ifconfig ${iface};
>>> done
>>> ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
>>> 2290
>>>      ether 20:68:9d:c5:76:8d
>>>      nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>>>      media: IEEE 802.11 Wireless Ethernet autoselect mode
11g
>>>      status: associated
>>> wlan1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
>>> 1500
>>>      ether 20:68:9d:c5:76:8d
>>>      inet 67.215.65.145 netmask 0xff000000 broadcast 67.215.65.145
>>>      nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>>>      media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
>>>      status: no carrier
>>>      ssid "" channel 2 (2417 MHz 11g)
>>>      regdomain 106 indoor ecm authmode OPEN privacy OFF txpower 20 bmiss
>>> 7
>>>      scanvalid 60 protmode CTS wme burst
>>>
>>> [root@laptop /usr/src]# dmesg
>>> ...
>>> ath0: ath_edma_recv_tasklet: sc_inreset_cnt > 0; skipping
>>> ath0: ath_edma_recv_tasklet: sc_inreset_cnt > 0; skipping
>>> ath0: ath_edma_recv_tasklet: sc_inreset_cnt > 0; skipping
>>> ath0: ath_edma_recv_tasklet: sc_inreset_cnt > 0; skipping
>>> ath0: ath_edma_recv_tasklet: sc_inreset_cnt > 0; skipping
>>> ath0: ath_edma_recv_tasklet: sc_inreset_cnt > 0; skipping
>>>
>>>
>>> --
>>> Anthony Jenkins
>>> _______________________________________________
>>> freebsd-wireless@freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
>>> To unsubscribe, send any mail to
>>> "freebsd-wireless-unsubscribe@freebsd.org"
>
>
>
> --
> Anthony Jenkins
------=_Part_958532_988945889.1418932395341
Content-Type: text/x-patch
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=ath_ar9565_rfkill_gpio.patch
Content-ID: <328a6c7f-7faa-7209-74fe-77c8ead92959@yahoo.com>

SW5kZXg6IHN5cy9jb250cmliL2Rldi9hdGgvYXRoX2hhbC9hcjkzMDAvYXI5MzAwX2F0dGFjaC5j
Cj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT0KLS0tIHN5cy9jb250cmliL2Rldi9hdGgvYXRoX2hhbC9hcjkzMDAvYXI5MzAw
X2F0dGFjaC5jCShyZXZpc2lvbiAyNzU3NDIpCisrKyBzeXMvY29udHJpYi9kZXYvYXRoL2F0aF9o
YWwvYXI5MzAwL2FyOTMwMF9hdHRhY2guYwkod29ya2luZyBjb3B5KQpAQCAtMjc1OSw2ICsyNzU5
LDcgQEAKICAgICAgICAgYWhwLT5haF9wb2xhcml0eSAgID0gTVMoYWhwcml2LT5haF9yZnNpbGVu
dCwgRUVQX1JGU0lMRU5UX1BPTEFSSVRZKTsKIAogICAgICAgICBhdGhfaGFsX2VuYWJsZV9yZmtp
bGwoYWgsIEFIX1RSVUUpOworICAgICAgICBhcjkzMDBfZW5hYmxlX3JmX2tpbGwoYWgpOwogICAg
ICAgICBwX2NhcC0+aGFsUmZTaWxlbnRTdXBwb3J0ID0gQUhfVFJVRTsKICAgICB9CiAKSW5kZXg6
IHN5cy9jb250cmliL2Rldi9hdGgvYXRoX2hhbC9hcjkzMDAvYXI5MzAwX2dwaW8uYwo9PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09Ci0tL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DwgQVI5
MzgyX0dQSU9fUElOXzhfUkVTRVJWRUQgfAogICAgICAgICAgICAgICAgICAgMSA8PCBBUjkzODJf
R1BJT19QSU5fMTFfUkVTRVJWRUQpOworI2VuZGlmCiAgICAgfQogICAgIHJldHVybiBtYXNrOwog
fQpAQCAtNTY1LDEwICs1NzcsMTIgQEAKICAgICAgICAgaW52YWxpZCB8PSAxIDw8IEFSOTM4Ml9H
UElPX1BJTl84X1JFU0VSVkVEIHwKICAgICAgICAgICAgICAgICAgICAxIDw8IEFSOTM4Ml9HUElP
X1BJTl8xMV9SRVNFUlZFRDsKICAgICB9CisjaWYgMAogICAgIGlmIChtYXNrICYgaW52YWxpZCkg
ewogICAgICAgICBhdGhfaGFsX3ByaW50ZihhaCwgIiVzOiBpbnZhbGlkIEdQSU8gbWFzayAweCV4
XG4iLCBfX2Z1bmNfXywgbWFzayk7CiAgICAgICAgIHJldHVybiAtMTsKICAgICB9CisjZW5kaWYK
ICAgICBBSDkzMDAoYWgpLT5haF9ncGlvX21hc2sgPSBtYXNrOwogICAgIE9TX1JFR19XUklURShh
aCwgQVJfSE9TVElGX1JFRyhhaCwgQVJfR1BJT19JTlRSX1BPTCksIG1hc2sgJiBwb2xfbWFwKTsK
IAo=

------=_Part_958532_988945889.1418932395341--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1156584761.958533.1418932395342.JavaMail.yahoo>