> i'm sorry i haven't been able to completely follow this
> thread. could you or 
> joerg give us a short overview: what chipset and platform
> are we talking

ath_info gives:

sleep_ctl reg 00000000   reset_ctl reg 00000000
 -==Device Information==-
MAC Revision: 5213A (0x59)
Device type:  3
5GHz PHY Revision: 5112B (0x36)

/============== EEPROM Information =============\
| EEPROM Version:   4.8 | EEPROM Size:  16 kbit |
| EEMAP:              1 | Reg. Domain:     0x00 |
|================= Capabilities ================|
| 802.11a Support:  yes | Turbo-A disabled: no  |
| 802.11b Support:  yes | Turbo-G disabled: no  |
| 802.11g Support:  yes | 2GHz XR disabled: no  |
| RFKill  Support:  no  | 5GHz XR disabled: no  |
| 32kHz   Crystal:  yes |                       |
\===============================================/

/=========================================================\
|          Calibration data common for all modes          |
|=========================================================|
|          CCK/OFDM gain delta:             3             |
|          CCK/OFDM power delta:           10             |
|          Scaled CCK delta:               15             |
|          2GHz Antenna gain:               1             |
|          5GHz Antenna gain:               4             |
|          Turbo 2W maximum dBm:           32             |
|          Target power start:          0x17d             |
|          EAR Start:                   0x1e7             |
\=========================================================/

/=========================================================\
|          Calibration data for 802.11a operation         |
|=========================================================|
| I power:              0x08 | Q power:              0x1f |
| Use fixed bias:       0x01 | Max turbo power:      0x20 |
| Max XR power:         0x22 | Switch Settling Time: 0x2d |
| Tx/Rx attenuation:    0x0f | TX end to XLNA On:    0x02 |
| TX end to XPA Off:    0x00 | TX end to XPA On:     0x0e |
| 62db Threshold:       0x0f | XLNA gain:            0x0d |
| XPD:                  0x01 | XPD gain:             0x02 |
| I gain:               0x0a | Tx/Rx margin:         0x0b |
| False detect backoff: 0x00 | Noise Floor Threshold: -54 |
| ADC desired size:      -32 | PGA desired size:      -80 |
|=========================================================|
| Antenna control   0:  0x00 | Antenna control   1:  0x02 |
| Antenna control   2:  0x01 | Antenna control   3:  0x00 |
| Antenna control   4:  0x00 | Antenna control   5:  0x00 |
| Antenna control   6:  0x01 | Antenna control   7:  0x02 |
| Antenna control   8:  0x00 | Antenna control   9:  0x00 |
| Antenna control  10:  0x00 | Antenna control  11:  0x00 |
|=========================================================|
| Octave Band 0:           2 | db 0:                    2 |
| Octave Band 1:           2 | db 1:                    2 |
| Octave Band 2:           2 | db 2:                    2 |
| Octave Band 3:           2 | db 3:                    2 |
\=========================================================/
/============== Per rate power calibration ===========\
| Freq | 6-24Mbit/s | 36Mbit/s |  48Mbit/s | 54Mbit/s |
|======|============|==========|===========|==========|
| 5180 |    17.00   |  16.00   |   15.00   |  14.00   |
|======|============|==========|===========|==========|
| 5320 |    17.00   |  16.00   |   15.00   |  14.00   |
|======|============|==========|===========|==========|
| 5500 |    16.00   |  15.00   |   14.00   |  13.00   |
|======|============|==========|===========|==========|
| 5805 |    16.00   |  15.00   |   14.00   |  13.00   |
\=====================================================/
/=================== Per channel power calibration ====================\
| Freq | pwr_0 | pwr_1 | pwr_2 | pwr_3 |pwrx3_0|pwrx3_1|pwrx3_2|max_pwr|
|      | pcdac | pcdac | pcdac | pcdac | pcdac | pcdac | pcdac |       |
|======|=======|=======|=======|=======|=======|=======|=======|=======|
| 5180 | 11.50 | 14.00 | 18.00 | 21.50 |  0.00 |  0.00 |  0.00 | 21.50 |
|      |  [30] |  [36] |  [40] |  [42] |  [20] |  [35] |  [63] |       |
|======|=======|=======|=======|=======|=======|=======|=======|=======|
| 5320 | 12.25 | 14.50 | 18.25 | 21.00 |  0.00 |  0.00 |  0.00 | 21.00 |
|      |  [30] |  [36] |  [40] |  [42] |  [20] |  [35] |  [63] |       |
|======|=======|=======|=======|=======|=======|=======|=======|=======|
| 5745 | 10.75 | 12.00 | 14.00 | 19.50 |  0.00 |  0.00 |  0.00 | 19.50 |
|      |  [31] |  [35] |  [39] |  [43] |  [20] |  [35] |  [63] |       |
|======|=======|=======|=======|=======|=======|=======|=======|=======|
| 5805 | 10.75 | 12.00 | 15.00 | 19.00 |  0.00 |  0.00 |  0.00 | 19.00 |
|      |  [31] |  [35] |  [39] |  [43] |  [20] |  [35] |  [63] |       |
\======================================================================/

/=========================================================\
|          Calibration data for 802.11b operation         |
|=========================================================|
| I power:              0x00 | Q power:              0x00 |
| Use fixed bias:       0x00 | Max turbo power:      0x00 |
| Max XR power:         0x00 | Switch Settling Time: 0x28 |
| Tx/Rx attenuation:    0x1e | TX end to XLNA On:    0x02 |
| TX end to XPA Off:    0x00 | TX end to XPA On:     0x07 |
| 62db Threshold:       0x1c | XLNA gain:            0x0d |
| XPD:                  0x01 | XPD gain:             0x02 |
| I gain:               0x0a | Tx/Rx margin:         0x21 |
| False detect backoff: 0x00 | Noise Floor Threshold:  -1 |
| ADC desired size:      -38 | PGA desired size:      -80 |
|=========================================================|
| Antenna control   0:  0x00 | Antenna control   1:  0x02 |
| Antenna control   2:  0x11 | Antenna control   3:  0x01 |
| Antenna control   4:  0x01 | Antenna control   5:  0x01 |
| Antenna control   6:  0x01 | Antenna control   7:  0x12 |
| Antenna control   8:  0x02 | Antenna control   9:  0x02 |
| Antenna control  10:  0x02 | Antenna control  11:  0x00 |
|=========================================================|
| Octave Band 0:           2 | db 0:                    2 |
| Octave Band 1:           2 | db 1:                    2 |
| Octave Band 2:           0 | db 2:                    0 |
| Octave Band 3:           0 | db 3:                    0 |
\=========================================================/
/============== Per rate power calibration ===========\
| Freq |   1Mbit/s  | 2Mbit/s  | 5.5Mbit/s | 11Mbit/s |
|======|============|==========|===========|==========|
| 2412 |    19.00   |  19.00   |   19.00   |  19.00   |
|======|============|==========|===========|==========|
| 2472 |    19.00   |  19.00   |   19.00   |  19.00   |
\=====================================================/
/=================== Per channel power calibration ====================\
| Freq | pwr_0 | pwr_1 | pwr_2 | pwr_3 |pwrx3_0|pwrx3_1|pwrx3_2|max_pwr|
|      | pcdac | pcdac | pcdac | pcdac | pcdac | pcdac | pcdac |       |
|======|=======|=======|=======|=======|=======|=======|=======|=======|
| 2412 |  0.00 |  0.00 |  0.00 |  0.00 |  0.00 |  0.00 |  0.00 |  0.00 |
|      |   [0] |   [0] |   [0] |   [0] |  [20] |  [35] |  [63] |       |
|======|=======|=======|=======|=======|=======|=======|=======|=======|
| 2472 |  0.00 |  0.00 | -25.-50 | 28.00 | -25.-50 | -21.00 | -22.-50 | 28.00 |
|      | [105] | [111] | [124] | [150] |  [20] |  [35] |  [63] |       |
|======|=======|=======|=======|=======|=======|=======|=======|=======|
| 2484 | -25.-50 | 28.00 |  8.50 | 26.25 |  8.50 | 26.25 |  0.00 | 26.25 |
|      |   [0] |  [26] |  [30] |  [41] |  [20] |  [35] |  [63] |       |
\======================================================================/

/=========================================================\
|          Calibration data for 802.11g operation         |
|=========================================================|
| I power:              0x00 | Q power:              0x10 |
| Use fixed bias:       0x01 | Max turbo power:      0x20 |
| Max XR power:         0x26 | Switch Settling Time: 0x28 |
| Tx/Rx attenuation:    0x23 | TX end to XLNA On:    0x02 |
| TX end to XPA Off:    0x00 | TX end to XPA On:     0x0e |
| 62db Threshold:       0x1c | XLNA gain:            0x0d |
| XPD:                  0x01 | XPD gain:             0x02 |
| I gain:               0x0a | Tx/Rx margin:         0x21 |
| False detect backoff: 0x00 | Noise Floor Threshold:  -1 |
| ADC desired size:      -32 | PGA desired size:      -80 |
|=========================================================|
| Antenna control   0:  0x00 | Antenna control   1:  0x02 |
| Antenna control   2:  0x11 | Antenna control   3:  0x01 |
| Antenna control   4:  0x01 | Antenna control   5:  0x01 |
| Antenna control   6:  0x01 | Antenna control   7:  0x12 |
| Antenna control   8:  0x02 | Antenna control   9:  0x02 |
| Antenna control  10:  0x02 | Antenna control  11:  0x02 |
|=========================================================|
| Octave Band 0:           2 | db 0:                    2 |
| Octave Band 1:           2 | db 1:                    2 |
| Octave Band 2:           0 | db 2:                    0 |
| Octave Band 3:           0 | db 3:                    0 |
\=========================================================/
/============== Per rate power calibration ===========\
| Freq | 6-24Mbit/s | 36Mbit/s |  48Mbit/s | 54Mbit/s |
|======|============|==========|===========|==========|
| 2412 |    19.00   |  19.00   |   18.00   |  17.00   |
|======|============|==========|===========|==========|
| 2472 |    19.00   |  19.00   |   18.00   |  17.00   |
\=====================================================/
/=================== Per channel power calibration ====================\
| Freq | pwr_0 | pwr_1 | pwr_2 | pwr_3 |pwrx3_0|pwrx3_1|pwrx3_2|max_pwr|
|      | pcdac | pcdac | pcdac | pcdac | pcdac | pcdac | pcdac |       |
|======|=======|=======|=======|=======|=======|=======|=======|=======|
| 2447 |  0.00 |  0.00 | 22.00 | 19.00 | -15.-75 | -16.-75 |  0.00 | 19.00 |
|      | [205] | [213] | [216] | [239] |  [20] |  [35] |  [63] |       |
\======================================================================/

GPIO registers: CR 0x00000000, DO 0x00000000, DI 0x00000006
STA_ID0: 00:00:00:00:00:00
STA_ID1: 0x00000000, AP: 0, IBSS: 0, KeyCache Disable: 0
TIMER0: 0x00000b54, TBTT:  2900, TU: 0x17be0b54
TIMER1: 0x00005a90, DMAb:  2898, TU: 0x17be0b52 (-2)
TIMER2: 0x00005a50, SWBA:  2890, TU: 0x17c00b4a (+131062)
TIMER3: 0x00000b55, ATIM:  2901, TU: 0x17be0b55 (+1)
TSF: 0x0000005ef50036f6, TSFTU: 16397, TU: 0x17bd400d
BEACON: 0x00000064
LAST_TSTP: 0x57c8ff2b

Platform is a stock Intel PC with a 1GHz Centrino M.
 
> about? what has been tried, where do you think the bug
> lies? does it have 
> anything to do with noise calibration or not? 

Maybe, but other users have seen it triggered by scans:
http://article.gmane.org/gmane.linux.drivers.ath5k.devel/3552
 
> btw: the only time when i saw similar kinds of reset and
> register timeout 
> errors was when there was a DMA bug on my platform. could
> it be anything like 
> this?
> 
> > What if as a compromise in the near term we do just
> the wakeup part (not
> > all of reset) in a loop of length 2 with a FIXME?
> 
> that might be better... or even a WARN_ON... i think we
> need to review the 
> whole reset code.
> 
> bruno
> 


_______________________________________________
ath5k-devel mailing list
[email protected]
https://lists.ath5k.org/mailman/listinfo/ath5k-devel

Reply via email to