Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Aug 2010 23:05:37 +0800
From:      Adrian Chadd <adrian@freebsd.org>
To:        =?ISO-8859-1?Q?Iv=E1n_Zaera_Avell=F3n?= <izaera@gmail.com>
Cc:        freebsd-stable@freebsd.org, =?KOI8-R?B?7cHLwdLVyyDyz83BziD3wczF0tjF18ne?= <n_diablo_n_f@pochta.ru>
Subject:   Re: Atheros AR2427 in FreeBSD 8.1
Message-ID:  <AANLkTimdNB25uzfbCe6bcq4NpgGOERhnepwU2-_FGY9N@mail.gmail.com>
In-Reply-To: <AANLkTikSQ31yz8jWnZ6K51LYyc6Of9xHxAAxdAegn=0z@mail.gmail.com>
References:  <15043432234b76fe1b2ad7382bfd0e7901412ad1@mail.qip.ru> <AANLkTikSQ31yz8jWnZ6K51LYyc6Of9xHxAAxdAegn=0z@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
There's a lot of fixes that need to be brought over for the more
recent atheros chips.

They can come from Linux ath9k, or by porting the code from openbsd
(which is based on the linux ath9k code, from what I can tell.)

So someone needs to do some legwork and help Rui (and I, I guess)
merge in all the chipset work done in ath9k.


adrian

2010/8/2 Iv=C3=A1n Zaera Avell=C3=B3n <izaera@gmail.com>:
> Hi there:
>
> It's not only a problem of your card. I have an Eee PC 1005HA with anothe=
r
> atheros card (officially supporter) and I experience the same error. I ha=
ve
> open a PR, have a look at it here:
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=3D148112
>
> It seems to be a problem of the wireless or the ath driver.
>
> Regards,
> Ivan
>
>
> 2010/7/31 =D0=9C=D0=B0=D0=BA=D0=B0=D1=80=D1=83=D0=BA =D0=A0=D0=BE=D0=BC=
=D0=B0=D0=BD =D0=92=D0=B0=D0=BB=D0=B5=D1=80=D1=8C=D0=B5=D0=B2=D0=B8=D1=87 <=
n_diablo_n_f@pochta.ru>
>
>> =C2=A0 =C2=A0 Hello! I have Asus Eee PC 1001PX wich Atheros AR2427. This=
 Wi-Fi
>> officially not supported by driver ath. But in OpenBSD and Linux this ca=
rd
>> supported.
>>
>> =C2=A0 =C2=A0 I added to ath/ath_hal/ar9285_attath.c:
>>
>> ar9285Probe(uint16_t vendorid, uint16_t devid)
>> tatic const char* ar9285Probe(uint16_t vendorid, uint16_t devid)
>> {
>> =C2=A0 =C2=A0 =C2=A0 =C2=A0if (vendorid =3D=3D ATHEROS_VENDOR_ID &amp;&a=
mp; devid =3D=3D
>> AR9285_DEVID_PCIE)
>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0return "Atheros 9=
285";
>> =C2=A0 =C2=A0 =C2=A0 =C2=A0if (vendorid =3D=3D ATHEROS_VENDOR_ID &amp;&a=
mp; devid =3D=3D
>> AR2427_DEVID_PCIE)
>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0return "Atheros 2=
427";
>> =C2=A0 =C2=A0 =C2=A0 =C2=A0return AH_NULL;
>> }
>>
>> =C2=A0 And to /ath/ath_hal_ah_dev_id.h:
>>
>> #define AR2427_DEVID_PCIE =C2=A0 =C2=A00x002c
>>
>> =C2=A0 I compile ath module witch debug. And the WiFi has to work. But t=
hen i
>> try to connect tp AP witch WEP crypt i see next: "ath0: bb hang detected
>> (0x80), reseting".
>>
>> =C2=A0 And my home AP DI-524 (WPA-PSK crypt) can not be found.
>>
>> =C2=A0 By this, I have a few questions. Can anyone help solve this probl=
em and
>> finish the driver. And will the official support for this card in the
>> FreeBSD?
>>
>> =C2=A0 Appendix:
>>
>> #kldload if_ath
>>
>> pci0: driver added
>> found-> =C2=A0 vendor=3D0x8086, dev=3D0x27d8, revid=3D0x02
>> =C2=A0 domain=3D0, bus=3D0, slot=3D27, func=3D0
>> =C2=A0 class=3D04-03-00, hdrtype=3D0x00, mfdev=3D0
>> =C2=A0 cmdreg=3D0x0006, statreg=3D0x0010, cachelnsz=3D8 (dwords)
>> =C2=A0 lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns=
)
>> =C2=A0 intpin=3Da, irq=3D22
>> =C2=A0 powerspec 2 =C2=A0supports D0 D3 =C2=A0current D0
>> =C2=A0 MSI supports 1 message, 64 bit
>> pci0:0:27:0: reprobing on driver added
>> found-> =C2=A0 vendor=3D0x8086, dev=3D0x27da, revid=3D0x02
>> =C2=A0 domain=3D0, bus=3D0, slot=3D31, func=3D3
>> =C2=A0 class=3D0c-05-00, hdrtype=3D0x00, mfdev=3D0
>> =C2=A0 cmdreg=3D0x0001, statreg=3D0x0280, cachelnsz=3D0 (dwords)
>> =C2=A0 lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns=
)
>> =C2=A0 intpin=3Db, irq=3D21
>> pci0:0:31:3: reprobing on driver added
>> pci1: driver added
>> pci2: driver added
>> found-> =C2=A0 vendor=3D0x168c, dev=3D0x002c, revid=3D0x01
>> =C2=A0 domain=3D0, bus=3D2, slot=3D0, func=3D0
>> =C2=A0 class=3D02-80-00, hdrtype=3D0x00, mfdev=3D0
>> =C2=A0 cmdreg=3D0x0407, statreg=3D0x0010, cachelnsz=3D8 (dwords)
>> =C2=A0 lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns=
)
>> =C2=A0 intpin=3Da, irq=3D17
>> =C2=A0 powerspec 3 =C2=A0supports D0 D1 D3 =C2=A0current D0
>> =C2=A0 MSI supports 1 message
>> pci0:2:0:0: reprobing on driver added
>> ath0: =C2=A0mem 0xfbff0000-0xfbffffff irq 17 at device 0.0 on pci2
>> pcib2: ath0 requested memory range 0xfbff0000-0xfbffffff: good
>> ioapic0: routing intpin 17 (PCI IRQ 17) to lapic 0 vector 59
>> ath0: [MPSAFE]
>> ath0: [ITHREAD]
>> ar9285Attach: sc 0xc49ca000 st 0x1 sh 0xe678d000
>> ar5416SetPowerMode: AWAKE -> AWAKE (set chip )
>> ar9285Attach: AR_SREV 0xc02ff
>> ar9285Attach: ID 0xc02ff VERSION 0x3 TYPE 0x0 REVISION 0x2
>> ath_hal_v4kEepromAttach Eeprom Magic =3D 0xa55a
>> ath_hal_v4kEepromAttach Eeprom Version 14.13
>> v4kEepromReadCTLInfo Numctls =3D 6
>> ar5416SetPowerMode: AWAKE -> AWAKE (set chip )
>> ar9280RfAttach: attach AR9280 radio
>> enableAniMIBCounters: Enable mib counters: OfdmPhyErrBase 0x0 cckPhyErrB=
ase
>> 0x0
>> ar9285Attach: return
>> getchannels: cc 0 regDmn 0xf0 mode 0xffffff ecm
>> getregstate: EEPROM cc 0 rd 0x10
>> getregstate: EEPROM rd 0x60
>> getchannels: !avail mode 0x6800c (0x2) flags 0x2150
>> getchannels: !avail mode 0x6800c (0x1) flags 0x140
>> ar5416GetChipPowerLimits: no min/max power for 2412/0xa0
>> Chan 2412: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2417/0xa0
>> Chan 2417: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2422/0xa0
>> Chan 2422: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2427/0xa0
>> Chan 2427: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2432/0xa0
>> Chan 2432: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2437/0xa0
>> Chan 2437: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2442/0xa0
>> Chan 2442: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2447/0xa0
>> Chan 2447: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2452/0xa0
>> Chan 2452: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2457/0xa0
>> Chan 2457: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2462/0xa0
>> Chan 2462: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2467/0xa0
>> Chan 2467: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2472/0xa0
>> Chan 2472: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2484/0xa0
>> Chan 2484: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2412/0x480
>> Chan 2412: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2417/0x480
>> Chan 2417: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2422/0x480
>> Chan 2422: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2427/0x480
>> Chan 2427: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2432/0x480
>> Chan 2432: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2437/0x480
>> Chan 2437: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2442/0x480
>> Chan 2442: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2447/0x480
>> Chan 2447: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2452/0x480
>> Chan 2452: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2457/0x480
>> Chan 2457: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2462/0x480
>> Chan 2462: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2467/0x480
>> Chan 2467: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2472/0x480
>> Chan 2472: MaxPow =3D 63 MinPow =3D 0
>> getchannels: !avail mode 0x6800c (0x20) flags 0xd0
>> getchannels: !avail mode 0x6800c (0x40) flags 0x150
>> getchannels: !avail mode 0x6800c (0x400) flags 0x8140
>> getchannels: !avail mode 0x6800c (0x200) flags 0x4140
>> getchannels: !avail mode 0x6800c (0x1000) flags 0x8480
>> getchannels: !avail mode 0x6800c (0x800) flags 0x4480
>> ar5416GetChipPowerLimits: no min/max power for 2412/0x10480
>> Chan 2412: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2417/0x10480
>> Chan 2417: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2422/0x10480
>> Chan 2422: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2427/0x10480
>> Chan 2427: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2432/0x10480
>> Chan 2432: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2437/0x10480
>> Chan 2437: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2442/0x10480
>> Chan 2442: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2447/0x10480
>> Chan 2447: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2452/0x10480
>> Chan 2452: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2457/0x10480
>> Chan 2457: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2462/0x10480
>> Chan 2462: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2467/0x10480
>> Chan 2467: MaxPow =3D 63 MinPow =3D 0
>> ar5416GetChipPowerLimits: no min/max power for 2472/0x10480
>> Chan 2472: MaxPow =3D 63 MinPow =3D 0
>> getchannels: !avail mode 0x6800c (0x10000) flags 0x10140
>> getchannels: !avail mode 0x6800c (0x80000) flags 0x20140
>> getchannels: !avail mode 0x6800c (0x100000) flags 0x40140
>> assignPrivateChannels: private[ =C2=A00] 2412/0xa0 -> channel 2412
>> assignPrivateChannels: private[ =C2=A01] 2417/0xa0 -> channel 2417
>> assignPrivateChannels: private[ =C2=A02] 2422/0xa0 -> channel 2422
>> assignPrivateChannels: private[ =C2=A03] 2427/0xa0 -> channel 2427
>> assignPrivateChannels: private[ =C2=A04] 2432/0xa0 -> channel 2432
>> assignPrivateChannels: private[ =C2=A05] 2437/0xa0 -> channel 2437
>> assignPrivateChannels: private[ =C2=A06] 2442/0xa0 -> channel 2442
>> assignPrivateChannels: private[ =C2=A07] 2447/0xa0 -> channel 2447
>> assignPrivateChannels: private[ =C2=A08] 2452/0xa0 -> channel 2452
>> assignPrivateChannels: private[ =C2=A09] 2457/0xa0 -> channel 2457
>> assignPrivateChannels: private[ 10] 2462/0xa0 -> channel 2462
>> assignPrivateChannels: private[ 11] 2467/0x2a0 -> channel 2467
>> assignPrivateChannels: private[ 12] 2472/0x2a0 -> channel 2472
>> assignPrivateChannels: private[ 13] 2484/0x2a0 -> channel 2484
>> assignPrivateChannels: 40 public, 14 private channels
>> ath_hal_init_channels: cc 0
>> ath_getchannels: eeprom rd 96 cc 0 (mapped rd 96 cc 0) location I ecm
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_hal_computetxtime: unknown phy 4 (rate ix 8)
>> ath_descdma_setup: rx DMA: 40 buffers 1 desc/buf
>> ath_descdma_setup: rx DMA map: 0xe679e000 (3840) -> 0x2325e000 (3840)
>> ath_descdma_setup: tx DMA: 200 buffers 10 desc/buf
>> ath_descdma_setup: tx DMA map: 0xe67cd000 (192000) -> 0x20400000 (192000=
)
>> ath_descdma_setup: beacon DMA: 4 buffers 1 desc/buf
>> ath_descdma_setup: beacon DMA map: 0xe67fd000 (384) -> 0x1570d000 (384)
>> ar5212SetupTxQueue: queue 9
>> ar5212SetupTxQueue: queue 8
>> ar5212SetupTxQueue: queue 0
>> ar5212SetupTxQueue: queue 1
>> ar5212SetupTxQueue: queue 2
>> ar5212SetupTxQueue: queue 3
>> ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
>> ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps
>> 24Mbps 36Mbps 48Mbps 54Mbps
>> ath0: 11ng MCS: 15Mbps 30Mbps 45Mbps 60Mbps 90Mbps 120Mbps 135Mbps 150Mb=
ps
>> 30Mbps 60Mbps 90Mbps 120Mbps 180Mbps 240Mbps 270Mbps 300Mbps
>> ath0: AR9285 mac 192.2 RF5133 phy 14.0
>> ath0: Use hw queue 1 for WME_AC_BE traffic
>> ath0: Use hw queue 0 for WME_AC_BK traffic
>> ath0: Use hw queue 2 for WME_AC_VI traffic
>> ath0: Use hw queue 3 for WME_AC_VO traffic
>> ath0: Use hw queue 8 for CAB traffic
>> ath0: Use hw queue 9 for beacons
>> ath0: using multicast key search
>> pci4: driver added
>> pci5: driver added
>>
>>
>> _______________________________________________
>> freebsd-stable@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
>> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org=
"
>>
>
>
>
> --
> Ivan Zaera
> http://www.factoria2.com/desde/correo
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
>



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