2013-10-01 08:17:59

by Matt Chen

[permalink] [raw]
Subject: iwlegacy: iwl4965 reload firmware issue.

Hi guys,

Recently a user reported a issue happened in his Intel 4965 wifi
issue. The issue happened to him is as below :

1. Boot system
2. Wait for 10 min
3. Look at dmesg output

412.869861] iwl4965 0000:03:00.0: Microcode SW error detected. Restarting
0x82000000.
[ 412.869867] iwl4965 0000:03:00.0: Loaded firmware version: 228.61.2.24
[ 412.869882] iwl4965 0000:03:00.0: Start IWL Error Log Dump:
[ 412.869884] iwl4965 0000:03:00.0: Status: 0x000213E4, count: 5
[ 412.870053] iwl4965 0000:03:00.0: Desc Time
data1 data2 line
[ 412.870056] iwl4965 0000:03:00.0: FH49_ERROR (0x000C)
1661571581 0x00000008 0x03130000 208
[ 412.870058] iwl4965 0000:03:00.0: pc blink1 blink2 ilink1 ilink2
hcmd
[ 412.870060] iwl4965 0000:03:00.0: 0x0046C 0x07A10 0x004C2 0x006DA 0x07A5A
0x2B0001C
[ 412.870062] iwl4965 0000:03:00.0: FH register values:
[ 412.870076] iwl4965 0000:03:00.0: FH49_RSCSR_CHNL0_STTS_WPTR_REG:
0X132c1e00
[ 412.870090] iwl4965 0000:03:00.0: FH49_RSCSR_CHNL0_RBDCB_BASE_REG:
0X0133bfe0
[ 412.870103] iwl4965 0000:03:00.0: FH49_RSCSR_CHNL0_WPTR:
0X000000f8
[ 412.870117] iwl4965 0000:03:00.0: FH49_MEM_RCSR_CHNL0_CONFIG_REG:
0X00819000
[ 412.870131] iwl4965 0000:03:00.0: FH49_MEM_RSSR_SHARED_CTRL_REG:
0X0000003c
[ 412.870144] iwl4965 0000:03:00.0: FH49_MEM_RSSR_RX_STATUS_REG:
0X03130000
[ 412.870158] iwl4965 0000:03:00.0: FH49_MEM_RSSR_RX_ENABLE_ERR_IRQ2DRV:
0X00000000
[ 412.870171] iwl4965 0000:03:00.0: FH49_TSSR_TX_STATUS_REG:
0X07ff0002
[ 412.870185] iwl4965 0000:03:00.0: FH49_TSSR_TX_ERROR_REG:
0X00000000
[ 412.870282] ieee80211 phy0: Hardware restart was requested



I traced the path, found it happened in
drivers/net/wireless/iwlegacy/4965-mac.c: il4965_irq_tasklet(), which
is handling the interrupt from pci bus. Also found it happenes in :
/* Error detected by uCode */
if (inta & CSR_INT_BIT_SW_ERR) {
IL_ERR("Microcode SW error detected. " " Restarting 0x%X.\n", inta);
il->isr_stats.sw++;
il_irq_handle_error(il);
handled |= CSR_INT_BIT_SW_ERR;
}

The restart path is through il_irq_handle_error(il). My question is if
this is a firmware issue, driver issue or hardware issue ?


Thanks.


2013-10-02 09:22:57

by Stanislaw Gruszka

[permalink] [raw]
Subject: Re: iwlegacy: iwl4965 reload firmware issue.

On Tue, Oct 01, 2013 at 04:17:44PM +0800, Matt Chen wrote:
> The restart path is through il_irq_handle_error(il). My question is if
> this is a firmware issue, driver issue or hardware issue ?

Most likely driver issue, microcode error usually mean that driver provide
wrong values to the firmware or differently abuse firmware work.

Stanislaw