Re: Problem: iwlwifi: Microcode SW error detected. Restarting 0x2000000

2016-07-10 Thread Niklas Sombert
Emmanuel Grumbach wrote:
> Thanks -this is the same bug as 
> https://bugzilla.kernel.org/show_bug.cgi?id=114501 then.
> Seems really Bluetooth related.

Yes, I can confirm that this problem doesn't occur when I rename
/lib/firmware/intel/ibt-hw-37.8.10-fw-1.10.3.11.e.bseq to something else.



signature.asc
Description: OpenPGP digital signature


RE: Problem: iwlwifi: Microcode SW error detected. Restarting 0x2000000

2016-07-10 Thread Grumbach, Emmanuel
> 
> Emmanuel Grumbach wrote:
> > In that case, please try -21.ucode and send me again the output of the
> firmware error.
> 
> $ dmesg | grep iwlwifi
> [   14.858440] iwlwifi :04:00.0: Unsupported splx structure
> [   14.863591] iwlwifi :04:00.0: loaded firmware version 21.361477.0
> op_mode iwlmvm
> [   14.891553] iwlwifi :04:00.0: Detected Intel(R) Dual Band
> Wireless AC 7265, REV=0x210
> [   14.893883] iwlwifi :04:00.0: L1 Enabled - LTR Enabled
> [   14.894346] iwlwifi :04:00.0: L1 Enabled - LTR Enabled
> [   24.346547] iwlwifi :04:00.0: L1 Enabled - LTR Enabled
> [   24.347232] iwlwifi :04:00.0: L1 Enabled - LTR Enabled
> [   24.413520] iwlwifi :04:00.0: L1 Enabled - LTR Enabled
> [   24.414081] iwlwifi :04:00.0: L1 Enabled - LTR Enabled
> [  455.386139] iwlwifi :04:00.0: L1 Enabled - LTR Enabled
> [  455.386709] iwlwifi :04:00.0: L1 Enabled - LTR Enabled
> [  455.610758] iwlwifi :04:00.0: Microcode SW error detected.
> Restarting 0x200.
> [  455.610761] iwlwifi :04:00.0: CSR values:
> [  455.610763] iwlwifi :04:00.0: (2nd byte of CSR_INT_COALESCING is
> CSR_INT_PERIODIC_REG)
> [  455.610787] iwlwifi :04:00.0:CSR_HW_IF_CONFIG_REG: 0X00c89200
> [  455.610842] iwlwifi :04:00.0:  CSR_INT_COALESCING: 0X0040
> [  455.610893] iwlwifi :04:00.0: CSR_INT: 0X
> [  455.610944] iwlwifi :04:00.0:CSR_INT_MASK: 0X
> [  455.610995] iwlwifi :04:00.0:   CSR_FH_INT_STATUS: 0X
> [  455.611046] iwlwifi :04:00.0: CSR_GPIO_IN: 0X
> [  455.611097] iwlwifi :04:00.0:   CSR_RESET: 0X
> [  455.611149] iwlwifi :04:00.0:CSR_GP_CNTRL: 0X080403c5
> [  455.611200] iwlwifi :04:00.0:  CSR_HW_REV: 0X0210
> [  455.611251] iwlwifi :04:00.0:  CSR_EEPROM_REG: 0Xd5d5
> [  455.611302] iwlwifi :04:00.0:   CSR_EEPROM_GP: 0X
> [  455.611353] iwlwifi :04:00.0:  CSR_OTP_GP_REG: 0Xd5d5
> [  455.611404] iwlwifi :04:00.0: CSR_GIO_REG: 0X00080042
> [  455.611455] iwlwifi :04:00.0:CSR_GP_UCODE_REG: 0X
> [  455.611506] iwlwifi :04:00.0:   CSR_GP_DRIVER_REG: 0X
> [  455.611557] iwlwifi :04:00.0:   CSR_UCODE_DRV_GP1: 0X
> [  455.611608] iwlwifi :04:00.0:   CSR_UCODE_DRV_GP2: 0X
> [  455.611660] iwlwifi :04:00.0: CSR_LED_REG: 0X0018
> [  455.611711] iwlwifi :04:00.0:CSR_DRAM_INT_TBL_REG:
> 0X881288b0
> [  455.611762] iwlwifi :04:00.0:CSR_GIO_CHICKEN_BITS: 0X27800200
> [  455.611813] iwlwifi :04:00.0: CSR_ANA_PLL_CFG: 0Xd5d5
> [  455.611867] iwlwifi :04:00.0:  CSR_MONITOR_STATUS_REG:
> 0Xd3b7ff77
> [  455.611921] iwlwifi :04:00.0:   CSR_HW_REV_WA_REG: 0X0001001a
> [  455.611971] iwlwifi :04:00.0:CSR_DBG_HPET_MEM_REG:
> 0X
> [  455.611973] iwlwifi :04:00.0: FH register values:
> [  455.612035] iwlwifi :04:00.0:
> FH_RSCSR_CHNL0_STTS_WPTR_REG: 0X0b357d00
> [  455.612047] iwlwifi :04:00.0:
> FH_RSCSR_CHNL0_RBDCB_BASE_REG: 0X00b2de60
> [  455.612058] iwlwifi :04:00.0:
> FH_RSCSR_CHNL0_WPTR: 0X
> [  455.612070] iwlwifi :04:00.0:
> FH_MEM_RCSR_CHNL0_CONFIG_REG: 0X00801114
> [  455.612082] iwlwifi :04:00.0:
> FH_MEM_RSSR_SHARED_CTRL_REG: 0X00fc
> [  455.612093] iwlwifi :04:00.0:
> FH_MEM_RSSR_RX_STATUS_REG: 0X0303
> [  455.612105] iwlwifi :04:00.0:
> FH_MEM_RSSR_RX_ENABLE_ERR_IRQ2DRV: 0X
> [  455.612117] iwlwifi :04:00.0:
> FH_TSSR_TX_STATUS_REG: 0X07ff0001
> [  455.612128] iwlwifi :04:00.0:
> FH_TSSR_TX_ERROR_REG: 0X
> [  455.612237] iwlwifi :04:00.0: Start IWL Error Log Dump:
> [  455.612239] iwlwifi :04:00.0: Status: 0x, count: 6
> [  455.612240] iwlwifi :04:00.0: Loaded firmware version: 21.361477.0
> [  455.612242] iwlwifi :04:00.0: 0x0034 | NMI_INTERRUPT_WDG
> 
> [  455.612243] iwlwifi :04:00.0: 0x02F0 | trm_hw_status0
> [  455.612245] iwlwifi :04:00.0: 0x | trm_hw_status1
> [  455.612246] iwlwifi :04:00.0: 0x000401CE | branchlink2
> [  455.612247] iwlwifi :04:00.0: 0x0004446C | interruptlink1
> [  455.612249] iwlwifi :04:00.0: 0x5C9A | interruptlink2
> [  455.612250] iwlwifi :04:00.0: 0x | data1
> [  455.612251] iwlwifi :04:00.0: 0x0002 | data2
> [  455.612252] iwlwifi :04:00.0: 0x0703 | data3
> [  455.612254] iwlwifi :04:00.0: 0x003CB2E5 | beacon time
> [  455.612255] iwlwifi :04:00.0: 0x00034D19 | tsf low
> [  455.612256] iwlwifi :04:00.0: 0x | tsf hi
> [  455.612257] iwlwifi :04:00.0: 0x | time gp1
> [  455.612259] iwlwifi :04:00.0: 0x00034D1A | time gp2
> [  455.612260] iwlwifi :04:00.0: 0x | uCode revision typ

Re: Problem: iwlwifi: Microcode SW error detected. Restarting 0x2000000

2016-07-10 Thread Niklas Sombert
Emmanuel Grumbach wrote:
> In that case, please try -21.ucode and send me again the output of the 
> firmware error.

$ dmesg | grep iwlwifi
[   14.858440] iwlwifi :04:00.0: Unsupported splx structure
[   14.863591] iwlwifi :04:00.0: loaded firmware version 21.361477.0
op_mode iwlmvm
[   14.891553] iwlwifi :04:00.0: Detected Intel(R) Dual Band
Wireless AC 7265, REV=0x210
[   14.893883] iwlwifi :04:00.0: L1 Enabled - LTR Enabled
[   14.894346] iwlwifi :04:00.0: L1 Enabled - LTR Enabled
[   24.346547] iwlwifi :04:00.0: L1 Enabled - LTR Enabled
[   24.347232] iwlwifi :04:00.0: L1 Enabled - LTR Enabled
[   24.413520] iwlwifi :04:00.0: L1 Enabled - LTR Enabled
[   24.414081] iwlwifi :04:00.0: L1 Enabled - LTR Enabled
[  455.386139] iwlwifi :04:00.0: L1 Enabled - LTR Enabled
[  455.386709] iwlwifi :04:00.0: L1 Enabled - LTR Enabled
[  455.610758] iwlwifi :04:00.0: Microcode SW error detected.
Restarting 0x200.
[  455.610761] iwlwifi :04:00.0: CSR values:
[  455.610763] iwlwifi :04:00.0: (2nd byte of CSR_INT_COALESCING is
CSR_INT_PERIODIC_REG)
[  455.610787] iwlwifi :04:00.0:CSR_HW_IF_CONFIG_REG: 0X00c89200
[  455.610842] iwlwifi :04:00.0:  CSR_INT_COALESCING: 0X0040
[  455.610893] iwlwifi :04:00.0: CSR_INT: 0X
[  455.610944] iwlwifi :04:00.0:CSR_INT_MASK: 0X
[  455.610995] iwlwifi :04:00.0:   CSR_FH_INT_STATUS: 0X
[  455.611046] iwlwifi :04:00.0: CSR_GPIO_IN: 0X
[  455.611097] iwlwifi :04:00.0:   CSR_RESET: 0X
[  455.611149] iwlwifi :04:00.0:CSR_GP_CNTRL: 0X080403c5
[  455.611200] iwlwifi :04:00.0:  CSR_HW_REV: 0X0210
[  455.611251] iwlwifi :04:00.0:  CSR_EEPROM_REG: 0Xd5d5
[  455.611302] iwlwifi :04:00.0:   CSR_EEPROM_GP: 0X
[  455.611353] iwlwifi :04:00.0:  CSR_OTP_GP_REG: 0Xd5d5
[  455.611404] iwlwifi :04:00.0: CSR_GIO_REG: 0X00080042
[  455.611455] iwlwifi :04:00.0:CSR_GP_UCODE_REG: 0X
[  455.611506] iwlwifi :04:00.0:   CSR_GP_DRIVER_REG: 0X
[  455.611557] iwlwifi :04:00.0:   CSR_UCODE_DRV_GP1: 0X
[  455.611608] iwlwifi :04:00.0:   CSR_UCODE_DRV_GP2: 0X
[  455.611660] iwlwifi :04:00.0: CSR_LED_REG: 0X0018
[  455.611711] iwlwifi :04:00.0:CSR_DRAM_INT_TBL_REG: 0X881288b0
[  455.611762] iwlwifi :04:00.0:CSR_GIO_CHICKEN_BITS: 0X27800200
[  455.611813] iwlwifi :04:00.0: CSR_ANA_PLL_CFG: 0Xd5d5
[  455.611867] iwlwifi :04:00.0:  CSR_MONITOR_STATUS_REG: 0Xd3b7ff77
[  455.611921] iwlwifi :04:00.0:   CSR_HW_REV_WA_REG: 0X0001001a
[  455.611971] iwlwifi :04:00.0:CSR_DBG_HPET_MEM_REG: 0X
[  455.611973] iwlwifi :04:00.0: FH register values:
[  455.612035] iwlwifi :04:00.0:
FH_RSCSR_CHNL0_STTS_WPTR_REG: 0X0b357d00
[  455.612047] iwlwifi :04:00.0:
FH_RSCSR_CHNL0_RBDCB_BASE_REG: 0X00b2de60
[  455.612058] iwlwifi :04:00.0:
FH_RSCSR_CHNL0_WPTR: 0X
[  455.612070] iwlwifi :04:00.0:
FH_MEM_RCSR_CHNL0_CONFIG_REG: 0X00801114
[  455.612082] iwlwifi :04:00.0:
FH_MEM_RSSR_SHARED_CTRL_REG: 0X00fc
[  455.612093] iwlwifi :04:00.0:
FH_MEM_RSSR_RX_STATUS_REG: 0X0303
[  455.612105] iwlwifi :04:00.0:
FH_MEM_RSSR_RX_ENABLE_ERR_IRQ2DRV: 0X
[  455.612117] iwlwifi :04:00.0:
FH_TSSR_TX_STATUS_REG: 0X07ff0001
[  455.612128] iwlwifi :04:00.0:
FH_TSSR_TX_ERROR_REG: 0X
[  455.612237] iwlwifi :04:00.0: Start IWL Error Log Dump:
[  455.612239] iwlwifi :04:00.0: Status: 0x, count: 6
[  455.612240] iwlwifi :04:00.0: Loaded firmware version: 21.361477.0
[  455.612242] iwlwifi :04:00.0: 0x0034 | NMI_INTERRUPT_WDG

[  455.612243] iwlwifi :04:00.0: 0x02F0 | trm_hw_status0
[  455.612245] iwlwifi :04:00.0: 0x | trm_hw_status1
[  455.612246] iwlwifi :04:00.0: 0x000401CE | branchlink2
[  455.612247] iwlwifi :04:00.0: 0x0004446C | interruptlink1
[  455.612249] iwlwifi :04:00.0: 0x5C9A | interruptlink2
[  455.612250] iwlwifi :04:00.0: 0x | data1
[  455.612251] iwlwifi :04:00.0: 0x0002 | data2
[  455.612252] iwlwifi :04:00.0: 0x0703 | data3
[  455.612254] iwlwifi :04:00.0: 0x003CB2E5 | beacon time
[  455.612255] iwlwifi :04:00.0: 0x00034D19 | tsf low
[  455.612256] iwlwifi :04:00.0: 0x | tsf hi
[  455.612257] iwlwifi :04:00.0: 0x | time gp1
[  455.612259] iwlwifi :04:00.0: 0x00034D1A | time gp2
[  455.612260] iwlwifi :04:00.0: 0x | uCode revision type
[  455.612261] iwlwifi :04:00.0: 0x0015 | uCode version major
[  455.612263] iwlwifi :04:00.0: 0x00058405 | uCode version minor
[  455.612264] iwlwifi :04:00.

RE: Problem: iwlwifi: Microcode SW error detected. Restarting 0x2000000

2016-07-10 Thread Grumbach, Emmanuel
> 
> Emmanuel Grumbach wrote:
> > Can you please try the newest firmware?
> > https://git.kernel.org/cgit/linux/kernel/git/iwlwifi/linux-
> firmware.git/commit/?id=72266846faa78b939a864842a2aa6ecd8fe6989b
> 
> Yes, I've tried the newest firmware. The problem still persists.
> 
> > You should pick up the -17.ucode version.
> > Note that I can't know if your device is 7265 or 7265D. In able to 
> > determine,
> please check:
> >
> https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi#and_7265_support
> 
> Yes, it's a 7265D.

In that case, please try -21.ucode and send me again the output of the firmware 
error.


> 
> > Thank you!
> 
> Thank you.



Re: Problem: iwlwifi: Microcode SW error detected. Restarting 0x2000000

2016-07-10 Thread Niklas Sombert
Emmanuel Grumbach wrote:
> Can you please try the newest firmware?
> https://git.kernel.org/cgit/linux/kernel/git/iwlwifi/linux-firmware.git/commit/?id=72266846faa78b939a864842a2aa6ecd8fe6989b

Yes, I've tried the newest firmware. The problem still persists.

> You should pick up the -17.ucode version.
> Note that I can't know if your device is 7265 or 7265D. In able to determine, 
> please check:
> https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi#and_7265_support

Yes, it's a 7265D.

> Thank you!

Thank you.



signature.asc
Description: OpenPGP digital signature


RE: Problem: iwlwifi: Microcode SW error detected. Restarting 0x2000000

2016-07-10 Thread Grumbach, Emmanuel
> 
> With a current kernel my wifi won't work after suspending and resuming
> my laptop (a ThinkPadd 11e).
> This has worked in 4.0.0 and below, so this is a regression.
> The commit that introduced this issue is
> 8d193ca26cc28019e760b77830295a0c349d90dc.
> 
> How to reproduce:
>  1. Boot.
>  2. Make sure that you are connected to wifi.
>  3. Suspend.
>  4. Wait a bit of time.
>  5. Resume.
>  6. See that the wifi is no longer functional.

This is very strange. I don't really see how the commit you mentioned can cause
this issue.

Can you please try the newest firmware?
https://git.kernel.org/cgit/linux/kernel/git/iwlwifi/linux-firmware.git/commit/?id=72266846faa78b939a864842a2aa6ecd8fe6989b
You should pick up the -17.ucode version.
Note that I can't know if your device is 7265 or 7265D. In able to determine, 
please check:
https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi#and_7265_support


Thank you!



Problem: iwlwifi: Microcode SW error detected. Restarting 0x2000000

2016-07-10 Thread Niklas Sombert
With a current kernel my wifi won't work after suspending and resuming
my laptop (a ThinkPadd 11e).
This has worked in 4.0.0 and below, so this is a regression.
The commit that introduced this issue is
8d193ca26cc28019e760b77830295a0c349d90dc.

How to reproduce:
 1. Boot.
 2. Make sure that you are connected to wifi.
 3. Suspend.
 4. Wait a bit of time.
 5. Resume.
 6. See that the wifi is no longer functional.

Here are a few pieces of output that I was told to include in the report:

$ cat /proc/version
Linux version 4.7.0-040700rc6-generic (kernel@gloin) (gcc version 5.4.0
20160609 (Ubuntu 5.4.0-6ubuntu1) ) #201607040332 SMP Mon Jul 4 07:34:26
UTC 2016
$ lsb_release -rd
Description:Ubuntu 16.04 LTS
Release:16.04
$ /usr/src/linux-headers-4.7.0-040700rc6/scripts/ver_linux
If some fields are empty or look unusual you may have an old version.
Compare to the current minimal requirements in Documentation/Changes.

Linux panzersperre 4.7.0-040700rc6-generic #201607040332 SMP Mon Jul 4
07:34:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

GNU C   5.3.1
GNU Make4.1
Binutils2.26
Util-linux  2.27.1
Mount   2.27.1
Module-init-tools   22
E2fsprogs   1.42.13
Pcmciautils 018
PPP 2.4.7
Linux C Library 2.23
Dynamic linker (ldd)2.23
Linux C++ Library   6.0.21
Procps  3.3.10
Net-tools   1.60
Kbd 1.15.5
Console-tools   1.15.5
Sh-utils8.25
Udev229
Wireless-tools  30
Modules Loaded  ablk_helper ac acpi_pad aesni_intel aes_x86_64
ahci ansi_cprng arc4 autofs4 battery binfmt_misc bluetooth bnep bridge
btbcm btintel btrfs btrtl btusb button ccm cfg80211 coretemp crc16
crc32c_intel crc32_pclmul crct10dif_pclmul cryptd ctr drbg drm
drm_kms_helper dw_dmac dw_dmac_core efi_pstore efivarfs efivars ehci_hcd
ehci_pci elan_i2c evdev fat fjes fuse gf128mul ghash_clmulni_intel
glue_helper hid hmac i2c_algo_bit i2c_designware_core
i2c_designware_platform i2c_hid i915 intel_cstate intel_pch_thermal
intel_powerclamp intel_rapl iptable_filter iptable_mangle iptable_nat
ip_tables ipt_MASQUERADE irqbypass iwlmvm iwlwifi joydev kvm kvm_intel
libahci libata llc lp lpc_ich lrw lz4_compress mac80211 media mei mei_me
mfd_core mii mmc_core nf_conntrack nf_conntrack_ipv4 nf_defrag_ipv4
nf_nat nf_nat_ipv4 nf_nat_masquerade_ipv4 nls_cp437 nls_utf8 nvram
parport parport_pc ppdev psmouse r8169 raid6_pq rfcomm rfkill scsi_mod
sdhci sdhci_acpi sd_mod serio_raw sg shpchp snd snd_compress
snd_hda_codec snd_hda_codec_generic snd_hda_codec_hdmi
snd_hda_codec_realtek snd_hda_core snd_hda_intel snd_hwdep snd_pcm
snd_rawmidi snd_seq snd_seq_device snd_seq_midi snd_seq_midi_event
snd_soc_core snd_soc_rl6347a snd_soc_rt286 snd_soc_rt298 snd_soc_ssm4567
snd_soc_sst_acpi snd_soc_sst_match snd_timer soc_button_array soundcore
stp thermal thinkpad_acpi tpm tpm_tis usb_common usbcore uvcvideo vfat
video videobuf2_core videobuf2_memops videobuf2_v4l2 videobuf2_vmalloc
videodev wmi x86_pkg_temp_thermal xhci_hcd xhci_pci xor x_tables
xt_CHECKSUM xt_tcpudp zram zsmalloc
$ cat /proc/cpuinfo
processor   : 0
vendor_id   : GenuineIntel
cpu family  : 6
model   : 61
model name  : Intel(R) Core(TM) M-5Y10c CPU @ 0.80GHz
stepping: 4
microcode   : 0x19
cpu MHz : 800.048
cache size  : 4096 KB
physical id : 0
siblings: 4
core id : 0
cpu cores   : 2
apicid  : 0
initial apicid  : 0
fpu : yes
fpu_exception   : yes
cpuid level : 20
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe
syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good
nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64
monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1
sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand
lahf_lm abm 3dnowprefetch epb intel_pt tpr_shadow vnmi flexpriority ept
vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx
smap xsaveopt dtherm ida arat pln pts
bugs:
bogomips: 1995.42
clflush size: 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

processor   : 1
vendor_id   : GenuineIntel
cpu family  : 6
model   : 61
model name  : Intel(R) Core(TM) M-5Y10c CPU @ 0.80GHz
stepping: 4
microcode   : 0x19
cpu MHz : 799.987
cache size  : 4096 KB
physical id : 0
siblings: 4
core id : 0
cpu cores   : 2
apicid  : 1
initial apicid  : 1
fpu : yes
fpu_exception   : yes
cpuid level : 20
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi m