Hi misc@,

I have an Alix 2d3 board with a RouterBoard R52Hn miniPCI wireless card,
featuring an AR9220 chip (full dmesg and debug messages are included in my mail
later), and I'm running it in hostap mode.

# dmesg | grep athn
                                                           athn0 at
pci0 dev 12 function 0 "Atheros AR9280" rev 0x01: irq 9
athn0: AR9280 rev 2 (2T2R), ROM rev 22, address xx:xx:xx:xx:xx:xx

# uname -a

OpenBSD host.domain 5.4 GENERIC#37 i386

This is a high power card, with 25dBm output power @802.11g 6Mbit and 22dBm
@802.11g 54Mbit, and is connected to a pair of 8dBi omnidirectional antennae.
However, both its range and its signal level at the same distance is similar to
those of my generic wireless router provided by my ISP. An other interesting
aspect is that when I connect to it either with an Android phone or with a
laptop (Kubuntu or Linux Mint), they correctly connect with 802.11g 54Mbit, but
tend to randomly downgrade the connection to as low as 802.11g 1Mbit, despite
the fact that they are in less than 2m distance with direct visibility to the
antennae. Using wget on the laptop, I couldn't get transfer speeds above
~1.5MBps (~12Mbit).

Similarly, when I use my card to scan the neighboring networks, I get similar
readings as with my laptop, however I suspect that this hardware should be
capable of more.

At first, I tried to force the media setting in hostname.athn0 to 802.11g
54Mbit, however it seems that the media is in fact in autoselect mode:

# cat /etc/hostname.athn0
inet x.x.x.x y.y.y.y
media OFDM54 mode 11g mediaopt hostap
nwid xxx
wpakey xxx
chan 3
wpaciphers ccmp
wpaprotos wpa2

# ifconfig athn0
athn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    lladdr xx:xx:xx:xx:xx:xx
    priority: 4
    groups: wlan
    media: IEEE802.11 OFDM54 mode 11g hostap (autoselect mode 11g hostap)
    status: active
    ieee80211: nwid xxx chan 3 bssid xx:xx:xx:xx:xx:xx wpakey xxx
wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher tkip
    inet x.x.x.x netmask xxx broadcast x.x.x.x
    inet6 xxx%athn0 prefixlen 64 scopeid 0x4

Is this the correct behaviour?

As the next step, I looked for a way to set the txpower setting manually.
Unfortunately, athn(4) doesn't support this feature, so I can't perform this
test.
Sidenote: the manual of ifconfig(8) doesn't state that not all drivers support
the txpower option, and, by looking at the source code ieee80211_ioctl.c it
turns out that the same error message is given in this case and in case of an
out of bound value:
        if ((ic->ic_caps & IEEE80211_C_TXPMGT) == 0) {
            error = EINVAL;
            break;
        }
        if (!(IEEE80211_TXPOWER_MIN <= txpower->i_val &&
            txpower->i_val <= IEEE80211_TXPOWER_MAX)) {
            error = EINVAL;
            break;
        }
While this is logically correct, I think it would be more informative to provide
a different error, or to note this behaviour in the man page.

For the next step, I started looking around at the source code of the athn
driver, but I'm not familiar nor with driver programming nor with wireless
cards, although I realized that the debug messages may be informative. So I have
compiled a new kernel, which differs from 5.4 GENERIC only that it is compiled
with the ATHN_DEBUG option, and athn_debug is set to a high value in athn.c.

Before the debug findings, some netstat:
# netstat -I athn0
Name    Mtu   Network     Address              Ipkts Ierrs    Opkts Oerrs Colls
athn0   1500  <Link>      xx:xx:xx:xx:xx:xx    78063 238708   119145  6479     0
athn0   1500  x.x.x.x/x   x.x.x.x              78063 238708   119145  6479     0
athn0   1500  xxx%athn    xxx                  78063 238708   119145  6479     0

Is it normal to have this amount of errors?

# netstat -W athn0
ieee80211 on athn0:
    0 input packets with bad version
    0 input packets too short
    0 input packets from wrong bssid
    551 input packet duplicates discarded
    0 input packets with wrong direction
    0 input multicast echo packets discarded
    173 input packets from unassociated station discarded
    0 input encrypted packets without wep/wpa config discarded
    48768 input unencrypted packets with wep/wpa config discarded
    0 input wep/wpa packets processing failed
    65 input packet decapsulations failed
    0 input management packets discarded
    124996 input control packets discarded
    0 input packets with truncated rate set
    0 input packets with missing elements
    0 input packets with elements too big
    20 input packets with elements too small
    0 input packets with invalid channel
    989693 input packets with mismatched channel
    0 node allocations failed
    54151 input packets with mismatched ssid
    0 input packets with unsupported auth algorithm
    0 input authentications failed
    0 input associations from wrong bssid
    0 input associations without authentication
    0 input associations with mismatched capabilities
    0 input associations without matching rates
    0 input associations with bad rsn ie
    2 input deauthentication packets
    0 input disassociation packets
    0 input packets with unknown subtype
    0 input packets failed for lack of mbufs
    0 input decryptions failed on crc
    0 input ahdemo management packets discarded
    0 input packets with bad auth request
    150 input eapol-key packets
    0 input eapol-key packets with bad mic
    3 input eapol-key packets replayed
    0 input packets with bad tkip mic
    0 input tkip mic failure notifications
    0 input packets on unauthenticated port
    0 output packets failed for lack of mbufs
    0 output packets failed for no nodes
    0 output packets of unknown management type
    13 output packets on unauthenticated port
    1 active scan started
    4 passive scans started
    689 nodes timed out
    0 failures with no memory for crypto ctx
    0 ccmp decryption errors
    0 ccmp replayed frames
    0 cmac icv errors
    0 cmac replayed frames
    0 tkip icv errors
    0 tkip replays

Is there any oddity here?

Finally, the things that seems odd to me in the debug messages:
Tx gain type=0x0
This means that the eeprom doesn't identify this card as high power, so the
table ar9280_2_0_tx_gain is used instead of ar9280_2_0_tx_gain_high_power. Can
this be correct?

During initialization, the card is reset multiple times ("needs a full reset"),
is this normal?

I don't see any reference of the Tx power/gain or Rx gain settings in the logs.
How could I check if the card is performing as intended?

Furthermore, there seems to be a lot of CRC errors in the log, and "beacon
stuck" messages. Is this normal?

Relevant parts from /var/run/dmesg.boot (with logging enabled):

OpenBSD 5.4 (GENERIC_ATHN_DEBUG) #0: Fri Jan 24 22:38:33 CET 2014
    
usern...@buildenv.my.domain:/usr/src/sys/arch/i386/compile/GENERIC_ATHN_DEBUG
...
athn0 at pci0 dev 12 function 0 "Atheros AR9280" rev 0x01: irq 9
AR_AN_TOP2 fixup required
Rx gain type=0x2
Tx gain type=0x0
128 key cache entries
using closed loop power control
txchainmask=0x3 rxchainmask=0x3
athn0: AR9280 rev 2 (2T2R), ROM rev 22, address xx:xx:xx:xx:xx:xx
...
AR_RTC_PLL_CONTROL=0x0000142c
AR_RTC_PLL_CONTROL=0x0000142c
writing modal init vals
writing common init vals
delta slope coeff exp=3 man=21737
delta slope coeff exp=3 man=19563
AR9280_PHY_SYNTH_CONTROL=0x30a0cccc
needs a full reset
AR_RTC_PLL_CONTROL=0x0000142c
writing modal init vals
writing common init vals
delta slope coeff exp=3 man=21737
delta slope coeff exp=3 man=19563
AR9280_PHY_SYNTH_CONTROL=0x30a0cccc
needs a full reset
AR_RTC_PLL_CONTROL=0x0000142c
writing modal init vals
writing common init vals
delta slope coeff exp=3 man=21692
delta slope coeff exp=3 man=19522
AR9280_PHY_SYNTH_CONTROL=0x30a12222
Tx qid=0 nsegs=1 ctl0=0x213f002e ctl1=0x100002a ctl3=0x1b1b1b1b
Tx interrupt mask=0x1
Tx done qid=0 status1=1 fail count=0
Tx interrupt mask=0x1
AR_RTC_PLL_CONTROL=0x0000142c
AR_RTC_PLL_CONTROL=0x0000142c
AR_RTC_PLL_CONTROL=0x0000142c
AR_RTC_PLL_CONTROL=0x0000142c
writing modal init vals
writing common init vals
delta slope coeff exp=3 man=21737
delta slope coeff exp=3 man=19563
AR9280_PHY_SYNTH_CONTROL=0x30a0cccc
needs a full reset
AR_RTC_PLL_CONTROL=0x0000142c
writing modal init vals
writing common init vals
delta slope coeff exp=3 man=21737
delta slope coeff exp=3 man=19563
AR9280_PHY_SYNTH_CONTROL=0x30a0cccc
needs a full reset
AR_RTC_PLL_CONTROL=0x0000142c
writing modal init vals
writing common init vals
delta slope coeff exp=3 man=21692
delta slope coeff exp=3 man=19522
AR9280_PHY_SYNTH_CONTROL=0x30a12222
Tx qid=0 nsegs=1 ctl0=0x213f002e ctl1=0x100002a ctl3=0x1b1b1b1b
Tx interrupt mask=0x1
Tx done qid=0 status1=1 fail count=0
Tx interrupt mask=0x1
AR_RTC_PLL_CONTROL=0x0000142c
AR_RTC_PLL_CONTROL=0x0000142c
AR_RTC_PLL_CONTROL=0x0000142c
AR_RTC_PLL_CONTROL=0x0000142c
writing modal init vals
writing common init vals
delta slope coeff exp=3 man=21737
delta slope coeff exp=3 man=19563
AR9280_PHY_SYNTH_CONTROL=0x30a0cccc
needs a full reset
AR_RTC_PLL_CONTROL=0x0000142c
writing modal init vals
writing common init vals
delta slope coeff exp=3 man=21737
delta slope coeff exp=3 man=19563
AR9280_PHY_SYNTH_CONTROL=0x30a0cccc
needs a full reset
AR_RTC_PLL_CONTROL=0x0000142c
writing modal init vals
writing common init vals
delta slope coeff exp=3 man=21692
delta slope coeff exp=3 man=19522
AR9280_PHY_SYNTH_CONTROL=0x30a12222
Tx qid=0 nsegs=1 ctl0=0x213f0035 ctl1=0x1000031 ctl3=0x1b1b1b1b
Tx interrupt mask=0x1
Tx done qid=0 status1=1 fail count=0
Tx interrupt mask=0x1
CRC error
needs a full reset
AR_RTC_PLL_CONTROL=0x0000142c
writing modal init vals
writing common init vals
delta slope coeff exp=3 man=21647
delta slope coeff exp=3 man=19482
AR9280_PHY_SYNTH_CONTROL=0x30a17777
Tx qid=0 nsegs=1 ctl0=0x213f0035 ctl1=0x1000031 ctl3=0x1b1b1b1b
Tx interrupt mask=0x1
Tx done qid=0 status1=1 fail count=0
Tx interrupt mask=0x1
needs a full reset
AR_RTC_PLL_CONTROL=0x0000142c
writing modal init vals
writing common init vals
delta slope coeff exp=3 man=21602
delta slope coeff exp=3 man=19442
AR9280_PHY_SYNTH_CONTROL=0x30a1cccc
Tx qid=0 nsegs=1 ctl0=0x213f0035 ctl1=0x1000031 ctl3=0x1b1b1b1b
Tx interrupt mask=0x1
Tx done qid=0 status1=1 fail count=0
Tx interrupt mask=0x1
AR_RTC_PLL_CONTROL=0x0000142c
AR_RTC_PLL_CONTROL=0x0000142c
AR_RTC_PLL_CONTROL=0x0000142c
AR_RTC_PLL_CONTROL=0x0000142c
writing modal init vals
writing common init vals
delta slope coeff exp=3 man=21737
delta slope coeff exp=3 man=19563
AR9280_PHY_SYNTH_CONTROL=0x30a0cccc
needs a full reset
AR_RTC_PLL_CONTROL=0x0000142c
writing modal init vals
writing common init vals
delta slope coeff exp=3 man=21737
delta slope coeff exp=3 man=19563
AR9280_PHY_SYNTH_CONTROL=0x30a0cccc
needs a full reset
AR_RTC_PLL_CONTROL=0x0000142c
writing modal init vals
writing common init vals
delta slope coeff exp=3 man=21692
delta slope coeff exp=3 man=19522
AR9280_PHY_SYNTH_CONTROL=0x30a12222
Tx qid=0 nsegs=1 ctl0=0x213f0035 ctl1=0x1000031 ctl3=0x1b1b1b1b
Tx interrupt mask=0x1
Tx done qid=0 status1=1 fail count=0
Tx interrupt mask=0x1
AR_RTC_PLL_CONTROL=0x0000142c
AR_RTC_PLL_CONTROL=0x0000142c
AR_RTC_PLL_CONTROL=0x0000142c
AR_RTC_PLL_CONTROL=0x0000142c
writing modal init vals
writing common init vals
delta slope coeff exp=3 man=21737
delta slope coeff exp=3 man=19563
AR9280_PHY_SYNTH_CONTROL=0x30a0cccc
needs a full reset
AR_RTC_PLL_CONTROL=0x0000142c
writing modal init vals
writing common init vals
delta slope coeff exp=3 man=21737
delta slope coeff exp=3 man=19563
AR9280_PHY_SYNTH_CONTROL=0x30a0cccc
needs a full reset
AR_RTC_PLL_CONTROL=0x0000142c
writing modal init vals
writing common init vals
delta slope coeff exp=3 man=21692
delta slope coeff exp=3 man=19522
AR9280_PHY_SYNTH_CONTROL=0x30a12222
Tx qid=0 nsegs=1 ctl0=0x213f0035 ctl1=0x1000031 ctl3=0x1b1b1b1b
Tx interrupt mask=0x1
Tx done qid=0 status1=1 fail count=0
Tx interrupt mask=0x1
AR_RTC_PLL_CONTROL=0x0000142c
AR_RTC_PLL_CONTROL=0x0000142c
AR_RTC_PLL_CONTROL=0x0000142c
AR_RTC_PLL_CONTROL=0x0000142c
writing modal init vals
writing common init vals
delta slope coeff exp=3 man=21647
delta slope coeff exp=3 man=19482
AR9280_PHY_SYNTH_CONTROL=0x30a17777
needs a full reset
AR_RTC_PLL_CONTROL=0x0000142c
writing modal init vals
writing common init vals
delta slope coeff exp=3 man=21647
delta slope coeff exp=3 man=19482
AR9280_PHY_SYNTH_CONTROL=0x30a17777
rate 2 index 0
0 fallbacks to 0
rate 4 index 1
1 fallbacks to 0
rate 11 index 2
2 fallbacks to 1
rate 22 index 3
3 fallbacks to 2
rate 12 index 4
4 fallbacks to 4
rate 18 index 5
5 fallbacks to 4
rate 24 index 6
6 fallbacks to 5
rate 36 index 7
7 fallbacks to 6
rate 48 index 8
8 fallbacks to 7
rate 72 index 9
9 fallbacks to 8
rate 96 index 10
10 fallbacks to 9
rate 108 index 11
11 fallbacks to 10
Tx qid=0 nsegs=1 ctl0=0x213f0078 ctl1=0x1000074 ctl3=0x1b1b1b1b
CRC error
Tx interrupt mask=0x1
Tx done qid=0 status1=1 fail count=0
Tx interrupt mask=0x1
AR_RTC_PLL_CONTROL=0x0000142c
AR_RTC_PLL_CONTROL=0x0000142c
AR_RTC_PLL_CONTROL=0x0000142c
AR_RTC_PLL_CONTROL=0x0000142c
writing modal init vals
writing common init vals
delta slope coeff exp=3 man=21647
delta slope coeff exp=3 man=19482
AR9280_PHY_SYNTH_CONTROL=0x30a17777
needs a full reset
AR_RTC_PLL_CONTROL=0x0000142c
writing modal init vals
writing common init vals
delta slope coeff exp=3 man=21647
delta slope coeff exp=3 man=19482
AR9280_PHY_SYNTH_CONTROL=0x30a17777
rate 2 index 0
0 fallbacks to 0
rate 4 index 1
1 fallbacks to 0
rate 11 index 2
2 fallbacks to 1
rate 22 index 3
3 fallbacks to 2
rate 12 index 4
4 fallbacks to 4
rate 18 index 5
5 fallbacks to 4
rate 24 index 6
6 fallbacks to 5
rate 36 index 7
7 fallbacks to 6
rate 48 index 8
8 fallbacks to 7
rate 72 index 9
9 fallbacks to 8
rate 96 index 10
10 fallbacks to 9
rate 108 index 11
11 fallbacks to 10
AR_RTC_PLL_CONTROL=0x0000142c
AR_RTC_PLL_CONTROL=0x0000142c
AR_RTC_PLL_CONTROL=0x0000142c
AR_RTC_PLL_CONTROL=0x0000142c
writing modal init vals
writing common init vals
delta slope coeff exp=3 man=21647
delta slope coeff exp=3 man=19482
AR9280_PHY_SYNTH_CONTROL=0x30a17777
needs a full reset
AR_RTC_PLL_CONTROL=0x0000142c
writing modal init vals
writing common init vals
delta slope coeff exp=3 man=21647
delta slope coeff exp=3 man=19482
AR9280_PHY_SYNTH_CONTROL=0x30a17777
rate 2 index 0
0 fallbacks to 0
rate 4 index 1
1 fallbacks to 0
rate 11 index 2
2 fallbacks to 1
rate 22 index 3
3 fallbacks to 2
rate 12 index 4
4 fallbacks to 4
rate 18 index 5
5 fallbacks to 4
rate 24 index 6
6 fallbacks to 5
rate 36 index 7
7 fallbacks to 6
rate 48 index 8
8 fallbacks to 7
rate 72 index 9
9 fallbacks to 8
rate 96 index 10
10 fallbacks to 9
rate 108 index 11
11 fallbacks to 10
beacon stuck
Tx interrupt mask=0x80
CRC error
Tx interrupt mask=0x80
Tx interrupt mask=0x80
CRC error
Tx interrupt mask=0x80
Tx interrupt mask=0x80
CRC error
Tx interrupt mask=0x80
Tx interrupt mask=0x80
Tx interrupt mask=0x80
Tx interrupt mask=0x80
Tx interrupt mask=0x80
Tx interrupt mask=0x80
Tx interrupt mask=0x80
Tx interrupt mask=0x80
Tx interrupt mask=0x80
CRC error
Tx interrupt mask=0x80
Tx interrupt mask=0x80
Tx interrupt mask=0x80
Tx interrupt mask=0x80
Tx interrupt mask=0x80
Tx interrupt mask=0x80
Tx interrupt mask=0x80
Tx interrupt mask=0x80
Tx interrupt mask=0x80
Tx interrupt mask=0x80
Tx interrupt mask=0x80
Tx interrupt mask=0x80
Tx interrupt mask=0x80
Tx interrupt mask=0x80
Tx interrupt mask=0x80
CRC error
Tx interrupt mask=0x80
Tx interrupt mask=0x80

Excerpt of /var/log/messages:

Jan 25 15:10:46 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:10:46 myhostname /bsd: CRC error
Jan 25 15:10:46 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:10:48 myhostname last message repeated 3 times
Jan 25 15:10:48 myhostname savecore: no core dump
Jan 25 15:10:48 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:10:49 myhostname last message repeated 16 times
Jan 25 15:10:49 myhostname /bsd: CRC error
Jan 25 15:10:50 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:10:50 myhostname /bsd: CRC error
Jan 25 15:10:50 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:10:50 myhostname /bsd: CRC error
Jan 25 15:10:50 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:10:50 myhostname /bsd: CRC error
Jan 25 15:10:50 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:10:50 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:10:50 myhostname /bsd: CRC error
Jan 25 15:10:50 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:10:50 myhostname /bsd: CRC error
Jan 25 15:10:50 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:10:50 myhostname /bsd: CRC error
Jan 25 15:10:50 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:10:51 myhostname last message repeated 4 times
Jan 25 15:10:51 myhostname /bsd: CRC error
Jan 25 15:10:51 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:10:51 myhostname last message repeated 4 times
Jan 25 15:10:51 myhostname /bsd: CRC error
Jan 25 15:10:51 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:10:52 myhostname last message repeated 6 times
Jan 25 15:10:52 myhostname /bsd: CRC error
Jan 25 15:10:52 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:10:52 myhostname /bsd: CRC error
Jan 25 15:10:52 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:10:53 myhostname last message repeated 12 times
Jan 25 15:10:53 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:10:54 myhostname last message repeated 4 times
Jan 25 15:10:54 myhostname /bsd: CRC error
Jan 25 15:10:54 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:10:56 myhostname last message repeated 26 times
Jan 25 15:10:57 myhostname /bsd: CRC error
Jan 25 15:10:57 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:10:57 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:10:57 myhostname /bsd: CRC error
Jan 25 15:10:57 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:10:57 myhostname last message repeated 2 times
Jan 25 15:10:57 myhostname /bsd: Tx qid=0 nsegs=1 ctl0=0x213f005f
ctl1=0x40005b ctl3=0x1b1b1b1b
Jan 25 15:10:57 myhostname last message repeated 3 times
Jan 25 15:10:57 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:10:57 myhostname /bsd: Tx done qid=0 status1=769 fail count=9
Jan 25 15:10:57 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:10:57 myhostname last message repeated 2 times
Jan 25 15:10:57 myhostname /bsd: Tx qid=0 nsegs=1 ctl0=0x213f005f
ctl1=0x40005b ctl3=0x1b1b1b1b
Jan 25 15:10:57 myhostname /bsd: Tx qid=0 nsegs=1 ctl0=0x213f005f
ctl1=0x40005b ctl3=0x1b1b1b1b
Jan 25 15:10:57 myhostname /bsd: CRC error
Jan 25 15:10:57 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:10:57 myhostname /bsd: Tx done qid=0 status1=1026 fail count=10
Jan 25 15:10:57 myhostname /bsd: Tx done qid=0 status1=1026 fail count=10
Jan 25 15:10:57 myhostname /bsd: Tx interrupt mask=0x81
Jan 25 15:10:57 myhostname /bsd: beacon stuck
Jan 25 15:10:57 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:10:59 myhostname last message repeated 12 times
Jan 25 15:10:59 myhostname /bsd: Tx qid=0 nsegs=1 ctl0=0x213f0022
ctl1=0x1e ctl3=0x1b1b1b1b
Jan 25 15:10:59 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:10:59 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:10:59 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:10:59 myhostname /bsd: beacon stuck
Jan 25 15:10:59 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:10:59 myhostname /bsd: rate 2 index 0
Jan 25 15:10:59 myhostname /bsd: 0 fallbacks to 0
Jan 25 15:10:59 myhostname /bsd: rate 4 index 1
Jan 25 15:10:59 myhostname /bsd: 1 fallbacks to 0
Jan 25 15:10:59 myhostname /bsd: rate 11 index 2
Jan 25 15:10:59 myhostname /bsd: 2 fallbacks to 1
Jan 25 15:10:59 myhostname /bsd: rate 12 index 4
Jan 25 15:10:59 myhostname /bsd: 3 fallbacks to 3
Jan 25 15:10:59 myhostname /bsd: rate 18 index 5
Jan 25 15:10:59 myhostname /bsd: 4 fallbacks to 3
Jan 25 15:10:59 myhostname /bsd: rate 22 index 3
Jan 25 15:10:59 myhostname /bsd: 5 fallbacks to 2
Jan 25 15:10:59 myhostname /bsd: rate 24 index 6
Jan 25 15:10:59 myhostname /bsd: 6 fallbacks to 4
Jan 25 15:10:59 myhostname /bsd: rate 36 index 7
Jan 25 15:10:59 myhostname /bsd: 7 fallbacks to 6
Jan 25 15:10:59 myhostname /bsd: rate 48 index 8
Jan 25 15:10:59 myhostname /bsd: 8 fallbacks to 7
Jan 25 15:10:59 myhostname /bsd: rate 72 index 9
Jan 25 15:10:59 myhostname /bsd: 9 fallbacks to 8
Jan 25 15:10:59 myhostname /bsd: rate 96 index 10
Jan 25 15:10:59 myhostname /bsd: 10 fallbacks to 9
Jan 25 15:10:59 myhostname /bsd: rate 108 index 11
Jan 25 15:10:59 myhostname /bsd: 11 fallbacks to 10
Jan 25 15:10:59 myhostname /bsd: Tx qid=0 nsegs=1 ctl0=0x213f0032
ctl1=0x2e ctl3=0x1b1b1b1b
Jan 25 15:10:59 myhostname /bsd: Tx qid=0 nsegs=1 ctl0=0x213f0087
ctl1=0x83 ctl3=0xc0c0c0c
Jan 25 15:10:59 myhostname /bsd: Tx interrupt mask=0x81
Jan 25 15:10:59 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:10:59 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:10:59 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:10:59 myhostname /bsd: CRC error
Jan 25 15:10:59 myhostname /bsd: beacon stuck
Jan 25 15:10:59 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:10:59 myhostname /bsd: Tx qid=0 nsegs=1 ctl0=0x213f00cf
ctl1=0xcb ctl3=0xc0c0c0c
Jan 25 15:10:59 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:10:59 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:10:59 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:10:59 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:10:59 myhostname /bsd: Tx qid=0 nsegs=1 ctl0=0x213f0084
ctl1=0x1000080 ctl3=0x1b1b1b1b
Jan 25 15:10:59 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:10:59 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:10:59 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:10:59 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:10:59 myhostname last message repeated 2 times
Jan 25 15:11:00 myhostname /bsd: Tx qid=0 nsegs=1 ctl0=0x213f0078
ctl1=0x1000074 ctl3=0x1b1b1b1b
Jan 25 15:11:00 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:00 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:11:00 myhostname /bsd: Tx interrupt mask=0x81
Jan 25 15:11:00 myhostname /bsd: Tx qid=0 nsegs=2 ctl0=0x213f019f
ctl1=0x10010bc ctl3=0x1b1b1b1b
Jan 25 15:11:01 myhostname /bsd: Tx qid=0 nsegs=2 ctl0=0x213f019f
ctl1=0x10010bc ctl3=0x1b1b1b1b
Jan 25 15:11:01 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:01 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:11:01 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:11:01 myhostname /bsd: CRC error
Jan 25 15:11:01 myhostname /bsd: Tx qid=0 nsegs=2 ctl0=0x213f019f
ctl1=0x10010bc ctl3=0x1b1b1b1b
Jan 25 15:11:01 myhostname last message repeated 7 times
Jan 25 15:11:01 myhostname /bsd: CRC error
Jan 25 15:11:01 myhostname /bsd: Tx qid=0 nsegs=2 ctl0=0x213f019f
ctl1=0x10010bc ctl3=0x1b1b1b1b
Jan 25 15:11:01 myhostname last message repeated 15 times
Jan 25 15:11:01 myhostname /bsd: CRC error
Jan 25 15:11:01 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:01 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:11:01 myhostname last message repeated 23 times
Jan 25 15:11:01 myhostname /bsd: Tx qid=0 nsegs=2 ctl0=0x213f019f
ctl1=0x10010bc ctl3=0x1b1b1b1b
Jan 25 15:11:01 myhostname /bsd: Tx qid=0 nsegs=1 ctl0=0x213f01b8
ctl1=0x10001b4 ctl3=0x1b1b1b1b
Jan 25 15:11:01 myhostname /bsd: CRC error
Jan 25 15:11:01 myhostname /bsd: Tx interrupt mask=0x81
Jan 25 15:11:01 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:11:01 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:11:01 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:11:01 myhostname /bsd: Tx qid=0 nsegs=2 ctl0=0x213f017c
ctl1=0x10bc ctl3=0xc0c0c0c
Jan 25 15:11:01 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:01 myhostname /bsd: Tx done qid=0 status1=257 fail count=1
Jan 25 15:11:01 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:01 myhostname /bsd: Tx qid=0 nsegs=1 ctl0=0x213f0084
ctl1=0x1000080 ctl3=0x1b1b1b1b
Jan 25 15:11:01 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:01 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:11:01 myhostname /bsd: beacon stuck
Jan 25 15:11:01 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:01 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:11:01 myhostname /bsd: Tx qid=0 nsegs=2 ctl0=0x213f017c
ctl1=0x10bc ctl3=0xc0c0c0c
Jan 25 15:11:01 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:01 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:11:01 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:01 myhostname /bsd: Tx qid=0 nsegs=1 ctl0=0x213f0054
ctl1=0x1000050 ctl3=0x1b1b1b1b
Jan 25 15:11:01 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:01 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:11:01 myhostname /bsd: Tx qid=0 nsegs=1 ctl0=0x213f0070
ctl1=0x100006c ctl3=0x1b1b1b1b
Jan 25 15:11:01 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:01 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:11:01 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:01 myhostname /bsd: Tx qid=0 nsegs=1 ctl0=0x213f0054
ctl1=0x1000050 ctl3=0x1b1b1b1b
Jan 25 15:11:01 myhostname /bsd: CRC error
Jan 25 15:11:01 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:01 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:11:01 myhostname /bsd: beacon stuck
Jan 25 15:11:01 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:11:01 myhostname /bsd: CRC error
Jan 25 15:11:01 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:11:01 myhostname last message repeated 3 times
Jan 25 15:11:01 myhostname /bsd: CRC error
Jan 25 15:11:01 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:11:02 myhostname last message repeated 4 times
Jan 25 15:11:02 myhostname /bsd: Tx qid=0 nsegs=1 ctl0=0x213f0054
ctl1=0x1000050 ctl3=0x1b1b1b1b
Jan 25 15:11:02 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:02 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:11:02 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:02 myhostname /bsd: beacon stuck
Jan 25 15:11:02 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:11:02 myhostname last message repeated 2 times
Jan 25 15:11:02 myhostname /bsd: Tx qid=0 nsegs=1 ctl0=0x213f0054
ctl1=0x1000050 ctl3=0x1b1b1b1b
Jan 25 15:11:02 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:02 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:11:02 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:02 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:11:03 myhostname last message repeated 5 times
Jan 25 15:11:03 myhostname /bsd: Tx qid=0 nsegs=2 ctl0=0x213f019f
ctl1=0x10010bc ctl3=0x1b1b1b1b
Jan 25 15:11:03 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:03 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:11:03 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:03 myhostname /bsd: Tx qid=0 nsegs=2 ctl0=0x213f017c
ctl1=0x10bc ctl3=0xc0c0c0c
Jan 25 15:11:03 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:03 myhostname /bsd: Tx done qid=0 status1=1 fail count=2
Jan 25 15:11:03 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:03 myhostname /bsd: Tx qid=0 nsegs=2 ctl0=0x213f017c
ctl1=0x10bc ctl3=0xc0c0c0c
Jan 25 15:11:03 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:03 myhostname /bsd: Tx done qid=0 status1=257 fail count=1
Jan 25 15:11:03 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:03 myhostname /bsd: Tx qid=0 nsegs=2 ctl0=0x213f017c
ctl1=0x10bc ctl3=0xc0c0c0c
Jan 25 15:11:03 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:03 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:11:03 myhostname /bsd: beacon stuck
Jan 25 15:11:03 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:03 myhostname /bsd: Tx interrupt mask=0x80
Jan 25 15:11:03 myhostname /bsd: Tx qid=0 nsegs=1 ctl0=0x213f0054
ctl1=0x1000050 ctl3=0x1b1b1b1b
Jan 25 15:11:03 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:03 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:11:03 myhostname /bsd: Tx qid=0 nsegs=1 ctl0=0x213f0054
ctl1=0x1000050 ctl3=0x1b1b1b1b
Jan 25 15:11:03 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:03 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:11:03 myhostname /bsd: Tx qid=0 nsegs=1 ctl0=0x213f0054
ctl1=0x1000050 ctl3=0x1b1b1b1b
Jan 25 15:11:03 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:03 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:11:03 myhostname /bsd: Tx interrupt mask=0x81
Jan 25 15:11:03 myhostname /bsd: Tx qid=0 nsegs=2 ctl0=0x213f019f
ctl1=0x10010bc ctl3=0x1b1b1b1b
Jan 25 15:11:03 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:03 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:11:03 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:03 myhostname /bsd: Tx qid=0 nsegs=2 ctl0=0x213f017c
ctl1=0x10bc ctl3=0xc0c0c0c
Jan 25 15:11:03 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:03 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:11:03 myhostname /bsd: Tx qid=0 nsegs=2 ctl0=0x213f019f
ctl1=0x10010bc ctl3=0x1b1b1b1b
Jan 25 15:11:03 myhostname /bsd: Tx interrupt mask=0x81
Jan 25 15:11:03 myhostname /bsd: Tx done qid=0 status1=1 fail count=0
Jan 25 15:11:03 myhostname /bsd: Tx interrupt mask=0x1
Jan 25 15:11:03 myhostname /bsd: Tx qid=0 nsegs=2 ctl0=0x213f017c
ctl1=0x10bc ctl3=0xc0c0c0c
Jan 25 15:11:04 myhostname /bsd: Tx qid=0 nsegs=2 ctl0=0x213f019f
ctl1=0x10010bc ctl3=0x1b1b1b1b
Jan 25 15:11:04 myhostname /bsd: Tx interrupt mask=0x1

Finally, dmesg:
OpenBSD 5.4 (GENERIC) #37: Tue Jul 30 12:05:01 MDT 2013
    dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD"
586-class) 499 MHz
cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX,MMXX,3DNOW2,3DNOW
real mem  = 267976704 (255MB)
avail mem = 252145664 (240MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 11/05/08, BIOS32 rev. 0 @ 0xfd088
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xe0000/0xa800
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x33
glxsb0 at pci0 dev 1 function 2 "AMD Geode LX Crypto" rev 0x00: RNG AES
vr0 at pci0 dev 9 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 10,
address xx:xx:xx:xx:xx:xx
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x004063, model 0x0034
vr1 at pci0 dev 10 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 11,
address xx:xx:xx:xx:xx:xx
ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x004063, model 0x0034
vr2 at pci0 dev 11 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 15,
address xx:xx:xx:xx:xx:xx
ukphy2 at vr2 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x004063, model 0x0034
athn0 at pci0 dev 12 function 0 "Atheros AR9280" rev 0x01: irq 9
athn0: AR9280 rev 2 (2T2R), ROM rev 22, address xx:xx:xx:xx:xx:xx
glxpcib0 at pci0 dev 15 function 0 "AMD CS5536 ISA" rev 0x03: rev 3,
32-bit 3579545Hz timer, watchdog, gpio, i2c
gpio0 at glxpcib0: 32 pins
iic0 at glxpcib0
maxtmp0 at iic0 addr 0x4c: lm86
pciide0 at pci0 dev 15 function 2 "AMD CS5536 IDE" rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <SanDisk SDCFH-004G>
wd0: 1-sector PIO, LBA48, 3815MB, 7813120 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
pciide0: channel 1 ignored (disabled)
ohci0 at pci0 dev 15 function 4 "AMD CS5536 USB" rev 0x02: irq 12,
version 1.0, legacy support
ehci0 at pci0 dev 15 function 5 "AMD CS5536 USB" rev 0x02: irq 12
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "AMD EHCI root hub" rev 2.00/1.00 addr 1
isa0 at glxpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "AMD OHCI root hub" rev 1.00/1.00 addr 1
mtrr: K6-family MTRR support (2 registers)
nvram: invalid checksum
vscsi0 at root
scsibus0 at vscsi0: 256 targets
softraid0 at root
scsibus1 at softraid0: 256 targets
root on wd0a (29b7c54721eb97be.a) swap on wd0b dump on wd0b
clock: unknown CMOS layout

To sum up, I would like to know if there are any problems evident from my logs,
and if my hardware is working at its intended performance. If not, I'd like to
ask what should be done to fix the errors.

Thank you in advance,

Marton

Reply via email to