Bug 194643 - iwlwifi: 8260: TFD queue hang
Summary: iwlwifi: 8260: TFD queue hang
Status: CLOSED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: network-wireless (show other bugs)
Hardware: Intel Linux
: P1 normal
Assignee: DO NOT USE - assign "network-wireless-intel" component instead
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-21 08:18 UTC by Mike Cloaked
Modified: 2017-02-28 20:23 UTC (History)
1 user (show)

See Also:
Kernel Version: 4.9.9-1-ARCH
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Journal log including iwlwifi lines for the wireless disconnection event (268.57 KB, text/plain)
2017-02-21 08:18 UTC, Mike Cloaked
Details
Core24 with uSniffer (2.12 MB, application/octet-stream)
2017-02-21 20:27 UTC, Emmanuel Grumbach
Details
Failed build with kernel 4.10-0 (8.52 KB, text/plain)
2017-02-28 15:20 UTC, Mike Cloaked
Details
Successful build with kernel 4.9.11-1 (20.22 KB, text/plain)
2017-02-28 15:21 UTC, Mike Cloaked
Details
System journal with iwlwifi driver from master and debug firmware (203.33 KB, text/plain)
2017-02-28 16:26 UTC, Mike Cloaked
Details

Description Mike Cloaked 2017-02-21 08:18:45 UTC
Created attachment 254849 [details]
Journal log including iwlwifi lines for the wireless disconnection event

Running Intel AC-8260 in an Intel NUC6i5SYK with arch linux with current kernel 4.9.9-1 wireless connection frequently hangs, and the connection must be manually stopped and restarted. This problem has been present since installing the system a couple of months ago with earlier 4.9 kernels also. 

01:00.0 Network controller: Intel Corporation Wireless 8260 (rev 3a)
        Subsystem: Intel Corporation Device 9010
        Flags: bus master, fast devsel, latency 0, IRQ 278
        Memory at df000000 (64-bit, non-prefetchable) [size=8K]
        Capabilities: <access denied>
        Kernel driver in use: iwlwifi
        Kernel modules: iwlwifi

I will attach the journal log during a disconnect/reconnect for wireless which is controlled using NetworkManager and has regular disconnects particularly when transferring large files but also when using rsync for smaller files on my LAN.

Lines in the log which are relevant include:

Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Queue 2 stuck for 10000 ms.
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Current SW read_ptr 40 write_ptr 104
Feb 20 21:12:25 home2 kernel: iwl data: 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: FH TRBs(0) = 0x8915fa87
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: FH TRBs(1) = 0xc0110007
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: FH TRBs(2) = 0xeda9b79d
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: FH TRBs(3) = 0x8030000b
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: FH TRBs(4) = 0x27cdb943
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: FH TRBs(5) = 0x417d9080
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: FH TRBs(6) = 0x44b7d97c
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: FH TRBs(7) = 0x007090d7
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 0 is active and mapped to fifo 3 ra_tid 0x0000 [12,12]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 1 is active and mapped to fifo 2 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 2 is active and mapped to fifo 1 ra_tid 0x0000 [40,104]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 3 is active and mapped to fifo 0 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 4 is inactive and mapped to fifo 0 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 5 is inactive and mapped to fifo 0 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 6 is inactive and mapped to fifo 0 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 7 is inactive and mapped to fifo 0 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 8 is active and mapped to fifo 3 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 9 is active and mapped to fifo 7 ra_tid 0x0000 [216,216]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 10 is inactive and mapped to fifo 0 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 11 is inactive and mapped to fifo 0 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 12 is inactive and mapped to fifo 0 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 13 is inactive and mapped to fifo 0 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 14 is inactive and mapped to fifo 0 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 15 is active and mapped to fifo 5 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 16 is active and mapped to fifo 1 ra_tid 0x00ff [248,153]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 17 is inactive and mapped to fifo 0 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 18 is inactive and mapped to fifo 0 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 19 is inactive and mapped to fifo 0 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 20 is inactive and mapped to fifo 0 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 21 is inactive and mapped to fifo 0 ra_tid 0xff00 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 22 is inactive and mapped to fifo 0 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 23 is inactive and mapped to fifo 0 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 24 is inactive and mapped to fifo 0 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 25 is inactive and mapped to fifo 0 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 26 is inactive and mapped to fifo 0 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 27 is inactive and mapped to fifo 0 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 28 is inactive and mapped to fifo 0 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 29 is inactive and mapped to fifo 0 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Q 30 is inactive and mapped to fifo 0 ra_tid 0x0000 [0,0]
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Microcode SW error detected.  Restarting 0x2000000.
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: CSR values:
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: (2nd byte of CSR_INT_COALESCING is CSR_INT_PERIODIC_REG)
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:        CSR_HW_IF_CONFIG_REG: 0X00c89008
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:          CSR_INT_COALESCING: 0X00000040
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:                     CSR_INT: 0X00000000
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:                CSR_INT_MASK: 0X00000000
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:           CSR_FH_INT_STATUS: 0X00000000
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:                 CSR_GPIO_IN: 0X00000019
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:                   CSR_RESET: 0X00000000
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:                CSR_GP_CNTRL: 0X08040005
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:                  CSR_HW_REV: 0X00000201
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:              CSR_EEPROM_REG: 0Xd55555d5
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:               CSR_EEPROM_GP: 0Xd55555d5
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:              CSR_OTP_GP_REG: 0Xd55555d5
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:                 CSR_GIO_REG: 0X001f0042
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:            CSR_GP_UCODE_REG: 0X00000000
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:           CSR_GP_DRIVER_REG: 0X00000000
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:           CSR_UCODE_DRV_GP1: 0X00000000
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:           CSR_UCODE_DRV_GP2: 0X00000000
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:                 CSR_LED_REG: 0X00000060
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:        CSR_DRAM_INT_TBL_REG: 0X88455b8c
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:        CSR_GIO_CHICKEN_BITS: 0X07800200
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:             CSR_ANA_PLL_CFG: 0Xd55555d5
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:      CSR_MONITOR_STATUS_REG: 0Xc03803c0
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:           CSR_HW_REV_WA_REG: 0X0001001a
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:        CSR_DBG_HPET_MEM_REG: 0Xffff0010
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: FH register values:
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:         FH_RSCSR_CHNL0_STTS_WPTR_REG: 0X45ac0e00
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:        FH_RSCSR_CHNL0_RBDCB_BASE_REG: 0X045ac0d0
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:                  FH_RSCSR_CHNL0_WPTR: 0X000000e8
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:         FH_MEM_RCSR_CHNL0_CONFIG_REG: 0X00801054
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:          FH_MEM_RSSR_SHARED_CTRL_REG: 0X000000fc
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:            FH_MEM_RSSR_RX_STATUS_REG: 0X03030000
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:    FH_MEM_RSSR_RX_ENABLE_ERR_IRQ2DRV: 0X00000000
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:                FH_TSSR_TX_STATUS_REG: 0X07ff0001
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0:                 FH_TSSR_TX_ERROR_REG: 0X00000000
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Start IWL Error Log Dump:
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Status: 0x00000000, count: 6
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Loaded firmware version: 22.361476.0
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00000084 | NMI_INTERRUPT_UNKNOWN       
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x000002F0 | trm_hw_status0
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00000000 | trm_hw_status1
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x0000E9C8 | branchlink2
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x0002843C | interruptlink1
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00000180 | interruptlink2
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00000000 | data1
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00000080 | data2
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x07830000 | data3
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x1E001F39 | beacon time
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x6CD140C9 | tsf low
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x0000006B | tsf hi
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00000000 | time gp1
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x073DA50A | time gp2
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00000000 | uCode revision type
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00000016 | uCode version major
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00058404 | uCode version minor
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00000201 | hw version
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00C89008 | board version
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x10F8001C | hcmd
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00022002 | isr0
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00800000 | isr1
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x0800180A | isr2
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x004174C0 | isr3
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00000000 | isr4
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00000110 | last cmd Id
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00000000 | wait_event
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00000934 | l2p_control
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00000020 | l2p_duration
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00000003 | l2p_mhvalid
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00000010 | l2p_addr_match
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x0000000D | lmpm_pmg_sel
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x03071928 | timestamp
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x0034E8F8 | flow_handler
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Start IWL Error Log Dump:
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: Status: 0x00000000, count: 7
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00000070 | ADVANCED_SYSASSERT
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00000000 | umac branchlink1
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0xC008383C | umac branchlink2
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0xC008166C | umac interruptlink1
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0xC008166C | umac interruptlink2
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00000800 | umac data1
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0xC008166C | umac data2
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0xDEADBEEF | umac data3
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00000016 | umac major
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00058404 | umac minor
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0xC0886280 | frame pointer
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0xC0886280 | stack pointer
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x09D7014E | last host cmd
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: 0x00000000 | isr status reg
Feb 20 21:12:25 home2 kernel: ieee80211 phy0: Hardware restart was requested
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: L1 Enabled - LTR Enabled
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: L1 Enabled - LTR Enabled
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: L1 Enabled - LTR Enabled
Feb 20 21:12:25 home2 kernel: iwlwifi 0000:01:00.0: L1 Enabled - LTR Enabled
Comment 1 Mike Cloaked 2017-02-21 08:20:27 UTC
Switching off power_save did not stop the wireless disconnecting at fairly frequent intervals. (the default seems to be on).

# iw dev wlp1s0 get power_save
Power save: on

I have also tried 11n_disable=8 and 11n_disable=1 but the problem persists.
Comment 2 Emmanuel Grumbach 2017-02-21 20:27:57 UTC
Created attachment 254863 [details]
Core24 with uSniffer

Please try with the Core24 firmware which I attached here.

In order to use this, you need to install our Core24 driver from our backport tree. You can see the pointers and the instructions here:
https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi/core_release

The firmware attached here has debug probes. Please us it to get firmware dumps as explained here:
https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi/debugging#firmware_debugging

Please take the time to read the privacy notice here:
https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi/debugging#privacy_aspects
Comment 3 Mike Cloaked 2017-02-23 11:14:04 UTC
I am now running kernel 4.9.11-1-ARCH and the -27 firmware file is now installed since I have linux-firmware 20170217.12987ca-1 which has the file:

-rw-r--r-- 1 root root 2227284 Feb 19 14:08 /usr/lib/firmware/iwlwifi-8000C-27.ucode

However the system when booted to the new kernel is still loading the older firmware:

Feb 23 10:54:17 home2 kernel: iwlwifi 0000:01:00.0: enabling device (0000 -> 0002)
Feb 23 10:54:17 home2 kernel: iwlwifi 0000:01:00.0: Direct firmware load for iwlwifi-8000C-26.ucode failed with error -2
Feb 23 10:54:17 home2 kernel: iwlwifi 0000:01:00.0: Direct firmware load for iwlwifi-8000C-25.ucode failed with error -2
Feb 23 10:54:17 home2 kernel: iwlwifi 0000:01:00.0: Direct firmware load for iwlwifi-8000C-24.ucode failed with error -2
Feb 23 10:54:17 home2 kernel: iwlwifi 0000:01:00.0: Direct firmware load for iwlwifi-8000C-23.ucode failed with error -2
Feb 23 10:54:17 home2 kernel: iwlwifi 0000:01:00.0: loaded firmware version 22.391740.0 op_mode iwlmvm
Feb 23 10:54:17 home2 kernel: iwlwifi 0000:01:00.0: Detected Intel(R) Dual Band Wireless AC 8260, REV=0x208

I will try to find if I can get the newer firmware loaded, and if so then I will use the version with debug probes that you attached to this bug report. If not then I may need to wait until arch linux releases kernel 4.10 (presumably shortly) which will hopefully allow the -27 firmware to load during boot.
Comment 4 Emmanuel Grumbach 2017-02-23 11:21:12 UTC
That's why I pointed you to the backport tree.
Comment 5 Mike Cloaked 2017-02-23 14:53:16 UTC
I am not familiar with the build process for Core 24 but am trying to follow the recipe in the link you gave to the backport tree.

I have some errors when trying to build which I don't know how to deal with:

backport-iwlwifi]$ make defconfig-iwlwifi-public
Generating local configuration database from kernel ... done.
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer   -c -o conf.o conf.c
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer   -c -o zconf.tab.o zconf.tab.c
cc   conf.o zconf.tab.o   -o conf
#
# configuration written to .config
#

and when running the make command after doing sed -i 's/CPTCFG_IWLMVM_VENDOR_CMDS=y/# CPTCFG_IWLMVM_VENDOR_CMDS is not set/' .config, I then get:

backport-iwlwifi]$ make -j4
make[5]: 'conf' is up to date.
#
# configuration written to .config
#
Building backport-include/backport/autoconf.h ... done.
  CC [M]  /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/wireless/core.o
  CC [M]  /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/compat/main.o
  CC [M]  /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/mac80211/main.o
  CC [M]  /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/drivers/net/wireless/intel/iwlwifi/iwl-io.o
In file included from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/backport/backport.h:7:0,
                 from <command-line>:0:
./include/asm-generic/qrwlock.h: In function ‘__qrwlock_write_byte’:
In file included from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/backport/backport.h:7:0,
                 from <command-line>:0:
./include/asm-generic/qrwlock.h: In function ‘__qrwlock_write_byte’:
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:28: error: implicit declaration of function ‘config_enabled’ [-Werror=implicit-function-declaration]
 #define IS_BUILTIN(option) config_enabled(option)
                            ^
./include/asm-generic/qrwlock.h:156:26: note: in expansion of macro ‘IS_BUILTIN’
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                          ^~~~~~~~~~
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:28: error: implicit declaration of function ‘config_enabled’ [-Werror=implicit-function-declaration]
 #define IS_BUILTIN(option) config_enabled(option)
                            ^
./include/asm-generic/qrwlock.h:156:26: note: in expansion of macro ‘IS_BUILTIN’
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                          ^~~~~~~~~~
./include/asm-generic/qrwlock.h:156:37: error: ‘CONFIG_CPU_BIG_ENDIAN’ undeclared (first use in this function)
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
./include/asm-generic/qrwlock.h:156:37: error: ‘CONFIG_CPU_BIG_ENDIAN’ undeclared (first use in this function)
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
./include/asm-generic/qrwlock.h:156:37: note: each undeclared identifier is reported only once for each function it appears in
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
./include/asm-generic/qrwlock.h:156:37: note: each undeclared identifier is reported only once for each function it appears in
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
In file included from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/backport/backport.h:7:0,
                 from <command-line>:0:
./include/asm-generic/qrwlock.h: In function ‘__qrwlock_write_byte’:
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:28: error: implicit declaration of function ‘config_enabled’ [-Werror=implicit-function-declaration]
 #define IS_BUILTIN(option) config_enabled(option)
                            ^
./include/asm-generic/qrwlock.h:156:26: note: in expansion of macro ‘IS_BUILTIN’
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                          ^~~~~~~~~~
./include/asm-generic/qrwlock.h:156:37: error: ‘CONFIG_CPU_BIG_ENDIAN’ undeclared (first use in this function)
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
./include/asm-generic/qrwlock.h:156:37: note: each undeclared identifier is reported only once for each function it appears in
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
In file included from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/backport/backport.h:7:0,
                 from <command-line>:0:
./include/asm-generic/qrwlock.h: In function ‘__qrwlock_write_byte’:
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:28: error: implicit declaration of function ‘config_enabled’ [-Werror=implicit-function-declaration]
 #define IS_BUILTIN(option) config_enabled(option)
                            ^
./include/asm-generic/qrwlock.h:156:26: note: in expansion of macro ‘IS_BUILTIN’
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                          ^~~~~~~~~~
./include/asm-generic/qrwlock.h:156:37: error: ‘CONFIG_CPU_BIG_ENDIAN’ undeclared (first use in this function)
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
./include/asm-generic/qrwlock.h:156:37: note: each undeclared identifier is reported only once for each function it appears in
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
cc1: some warnings being treated as errors
make[6]: *** [scripts/Makefile.build:294: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/compat/main.o] Error 1
make[5]: *** [scripts/Makefile.build:544: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/compat] Error 2
make[5]: *** Waiting for unfinished jobs....
  CC [M]  /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/drivers/net/wireless/intel/iwlwifi/iwl-drv.o
In file included from ./include/linux/dynamic_debug.h:5:0,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/dynamic_debug.h:4,
                 from ./include/linux/printk.h:305,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/printk.h:5,
                 from ./include/linux/kernel.h:13,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kernel.h:3,
                 from ./include/asm-generic/bug.h:13,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/asm-generic/bug.h:3,
                 from ./arch/x86/include/asm/bug.h:35,
                 from ./include/linux/bug.h:4,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/include/net/mac80211.h:18,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/mac80211/main.c:12:
./include/linux/memcontrol.h: In function ‘mem_cgroup_disabled’:
./include/linux/memcontrol.h:282:32: error: ‘memory_cgrp_subsys_enabled_key’ undeclared (first use in this function)
  return !cgroup_subsys_enabled(memory_cgrp_subsys);
                                ^
./include/linux/jump_label.h:363:43: note: in definition of macro ‘static_branch_likely’
  if (__builtin_types_compatible_p(typeof(*x), struct static_key_true)) \
                                           ^
./include/linux/memcontrol.h:282:10: note: in expansion of macro ‘cgroup_subsys_enabled’
  return !cgroup_subsys_enabled(memory_cgrp_subsys);
          ^~~~~~~~~~~~~~~~~~~~~
./include/linux/memcontrol.h: In function ‘mem_cgroup_under_socket_pressure’:
./include/linux/memcontrol.h:805:28: error: ‘memory_cgrp_subsys_on_dfl_key’ undeclared (first use in this function)
  if (!cgroup_subsys_on_dfl(memory_cgrp_subsys) && memcg->tcpmem_pressure)
                            ^
./include/linux/jump_label.h:363:43: note: in definition of macro ‘static_branch_likely’
  if (__builtin_types_compatible_p(typeof(*x), struct static_key_true)) \
                                           ^
./include/linux/memcontrol.h:805:7: note: in expansion of macro ‘cgroup_subsys_on_dfl’
  if (!cgroup_subsys_on_dfl(memory_cgrp_subsys) && memcg->tcpmem_pressure)
       ^~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[8]: *** [scripts/Makefile.build:293: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/drivers/net/wireless/intel/iwlwifi/iwl-io.o] Error 1
make[8]: *** Waiting for unfinished jobs....
In file included from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/backport/backport.h:7:0,
                 from <command-line>:0:
./include/asm-generic/qrwlock.h: In function ‘__qrwlock_write_byte’:
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:28: error: implicit declaration of function ‘config_enabled’ [-Werror=implicit-function-declaration]
 #define IS_BUILTIN(option) config_enabled(option)
                            ^
./include/asm-generic/qrwlock.h:156:26: note: in expansion of macro ‘IS_BUILTIN’
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                          ^~~~~~~~~~
./include/asm-generic/qrwlock.h:156:37: error: ‘CONFIG_CPU_BIG_ENDIAN’ undeclared (first use in this function)
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
./include/asm-generic/qrwlock.h:156:37: note: each undeclared identifier is reported only once for each function it appears in
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
  CC [M]  /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/wireless/sysfs.o
cc1: some warnings being treated as errors
make[6]: *** [scripts/Makefile.build:293: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/wireless/core.o] Error 1
make[6]: *** Waiting for unfinished jobs....
cc1: some warnings being treated as errors
make[6]: *** [scripts/Makefile.build:293: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/mac80211/main.o] Error 1
make[6]: *** Waiting for unfinished jobs....
  CC [M]  /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/mac80211/status.o
cc1: some warnings being treated as errors
make[8]: *** [scripts/Makefile.build:293: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/drivers/net/wireless/intel/iwlwifi/iwl-drv.o] Error 1
make[7]: *** [scripts/Makefile.build:544: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/drivers/net/wireless/intel/iwlwifi] Error 2
make[6]: *** [scripts/Makefile.build:544: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/drivers/net/wireless/intel] Error 2
make[5]: *** [scripts/Makefile.build:544: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/drivers/net/wireless] Error 2
In file included from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/backport/backport.h:7:0,
                 from <command-line>:0:
./include/asm-generic/qrwlock.h: In function ‘__qrwlock_write_byte’:
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:28: error: implicit declaration of function ‘config_enabled’ [-Werror=implicit-function-declaration]
 #define IS_BUILTIN(option) config_enabled(option)
                            ^
./include/asm-generic/qrwlock.h:156:26: note: in expansion of macro ‘IS_BUILTIN’
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                          ^~~~~~~~~~
./include/asm-generic/qrwlock.h:156:37: error: ‘CONFIG_CPU_BIG_ENDIAN’ undeclared (first use in this function)
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
./include/asm-generic/qrwlock.h:156:37: note: each undeclared identifier is reported only once for each function it appears in
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
In file included from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/backport/backport.h:7:0,
                 from <command-line>:0:
./include/asm-generic/qrwlock.h: In function ‘__qrwlock_write_byte’:
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:28: error: implicit declaration of function ‘config_enabled’ [-Werror=implicit-function-declaration]
 #define IS_BUILTIN(option) config_enabled(option)
                            ^
./include/asm-generic/qrwlock.h:156:26: note: in expansion of macro ‘IS_BUILTIN’
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                          ^~~~~~~~~~
./include/asm-generic/qrwlock.h:156:37: error: ‘CONFIG_CPU_BIG_ENDIAN’ undeclared (first use in this function)
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
./include/asm-generic/qrwlock.h:156:37: note: each undeclared identifier is reported only once for each function it appears in
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
In file included from ./include/linux/dynamic_debug.h:5:0,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/dynamic_debug.h:4,
                 from ./include/linux/printk.h:305,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/printk.h:5,
                 from ./include/linux/kernel.h:13,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kernel.h:3,
                 from ./include/linux/skbuff.h:17,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/skbuff.h:3,
                 from ./include/linux/if_ether.h:23,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/if_ether.h:3,
                 from ./include/linux/etherdevice.h:25,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/etherdevice.h:3,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/mac80211/status.c:14:
./include/linux/memcontrol.h: In function ‘mem_cgroup_disabled’:
./include/linux/memcontrol.h:282:32: error: ‘memory_cgrp_subsys_enabled_key’ undeclared (first use in this function)
  return !cgroup_subsys_enabled(memory_cgrp_subsys);
                                ^
./include/linux/jump_label.h:363:43: note: in definition of macro ‘static_branch_likely’
  if (__builtin_types_compatible_p(typeof(*x), struct static_key_true)) \
                                           ^
./include/linux/memcontrol.h:282:10: note: in expansion of macro ‘cgroup_subsys_enabled’
  return !cgroup_subsys_enabled(memory_cgrp_subsys);
          ^~~~~~~~~~~~~~~~~~~~~
./include/linux/memcontrol.h: In function ‘mem_cgroup_under_socket_pressure’:
./include/linux/memcontrol.h:805:28: error: ‘memory_cgrp_subsys_on_dfl_key’ undeclared (first use in this function)
  if (!cgroup_subsys_on_dfl(memory_cgrp_subsys) && memcg->tcpmem_pressure)
                            ^
./include/linux/jump_label.h:363:43: note: in definition of macro ‘static_branch_likely’
  if (__builtin_types_compatible_p(typeof(*x), struct static_key_true)) \
                                           ^
./include/linux/memcontrol.h:805:7: note: in expansion of macro ‘cgroup_subsys_on_dfl’
  if (!cgroup_subsys_on_dfl(memory_cgrp_subsys) && memcg->tcpmem_pressure)
       ^~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[6]: *** [scripts/Makefile.build:293: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/wireless/sysfs.o] Error 1
make[5]: *** [scripts/Makefile.build:544: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/wireless] Error 2
cc1: some warnings being treated as errors
make[6]: *** [scripts/Makefile.build:293: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/mac80211/status.o] Error 1
make[5]: *** [scripts/Makefile.build:544: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/mac80211] Error 2
make[4]: *** [Makefile:1490: _module_/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi] Error 2
make[3]: *** [Makefile.build:6: modules] Error 2
make[2]: *** [Makefile.real:100: modules] Error 2
make[1]: *** [Makefile:43: modules] Error 2
make: *** [Makefile:30: default] Error 2

Is there something simple that I can do here to get the build to work please?
Comment 6 Emmanuel Grumbach 2017-02-26 10:38:53 UTC
what is your base kernel?
Comment 7 Mike Cloaked 2017-02-26 13:18:21 UTC
I am still running kernel 4.9.11-1-ARCH as per comment 3.
Comment 8 Emmanuel Grumbach 2017-02-26 13:42:33 UTC
probably because of changes in ARCH. Can you get 4.10 vanilla?
Comment 9 Mike Cloaked 2017-02-26 14:45:50 UTC
There is an arch linux mainline kernel in the aur (currently version 4.10-1), but also I could look into building the kernel myself using the Arch Build System, and I would imagine that 4.10 will appear in the arch testing repository before too long.  I have a busy schedule for several days but after that I will see if I can set up a kernel build for 4.10 if that version has not already arrived in the [testing] repo. Once done I will run a Core24 backports build and see if the build no longer fails, and if so continue the needed testing for iwlwifi. I will report back once I have had a chance to look into these build options.
Comment 10 Emmanuel Grumbach 2017-02-27 07:10:37 UTC
Hold on. We are fixing our backport tree to support your kernel.
Comment 11 Mike Cloaked 2017-02-27 08:28:22 UTC
OK - I now have kernel 4.10-1 but it will be a couple of days before I will be able to test the driver build again. I will wait till you have made the changes to the backport tree.
Comment 12 Emmanuel Grumbach 2017-02-27 11:19:12 UTC
I just pushed the master branch of the repository. Can you try the master branch with the Core24 firmware?

Thanks.
Comment 13 Mike Cloaked 2017-02-27 19:56:40 UTC
I am running kernel 4.10 but the wireless connection has now become very much slower, compared to kernel 4.9.11, and even more prone to very frequent connection hanging. Trying to run the git clone command to get the backport Core24 now is generally only running at a few tens of kB/sec and breaks before the git clone command is completed. I will keep trying to see if I can build driver - but if not I will have to see if I can move the machine to where I can get a wired connection in order to pull the files to try to build.
Comment 14 Mike Cloaked 2017-02-27 20:17:29 UTC
OK I will look for the master branch instead of the backport tree - I was looking at https://git.kernel.org/cgit/linux/kernel/git/iwlwifi/linux-firmware.git/ but I would appreciate it if you could correct me if this is the wrong place for the master branch as I didn't see any recent changes there.
Comment 15 Emmanuel Grumbach 2017-02-27 20:21:19 UTC
The git repo you mentioned here is the one that holds the firmware files, not the driver. The driver is here:

http://git.kernel.org/cgit/linux/kernel/git/iwlwifi/backport-iwlwifi.git/
Comment 16 Mike Cloaked 2017-02-27 20:36:34 UTC
I still get a build fail:

$ uname -r
4.10.0-1-ARCH

[mike@home2 git-wireless]$ git clone https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/backport-iwlwifi.git -b release/LinuxCore24
Cloning into 'backport-iwlwifi'...
remote: Counting objects: 58541, done.
remote: Compressing objects: 100% (850/850), done.
remote: Total 58541 (delta 1570), reused 2057 (delta 1252)
Receiving objects: 100% (58541/58541), 10.90 MiB | 7.00 KiB/s, done.
Resolving deltas: 100% (42511/42511), done.
[mike@home2 git-wireless]$ cd backport-iwlwifi/                                                         [mike@home2 backport-iwlwifi]$ make defconfig-iwlwifi-public                                            Generating local configuration database from kernel ... done.
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer   -c -o conf.o conf.c
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer   -c -o zconf.tab.o zconf.tab.c
cc   conf.o zconf.tab.o   -o conf
#
# configuration written to .config
#
[mike@home2 backport-iwlwifi]$ sed -i 's/CPTCFG_IWLMVM_VENDOR_CMDS=y/# CPTCFG_IWLMVM_VENDOR_CMDS is not set/' .config
[mike@home2 backport-iwlwifi]$ make -j4
make[5]: 'conf' is up to date.
#
# configuration written to .config
#
Building backport-include/backport/autoconf.h ... done.
  CC [M]  /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/compat/main.o
  CC [M]  /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/mac80211/main.o
  CC [M]  /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/drivers/net/wireless/intel/iwlwifi/iwl-io.o
  CC [M]  /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/wireless/core.o
In file included from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/backport/backport.h:7:0,
                 from <command-line>:0:
./include/asm-generic/qrwlock.h: In function ‘__qrwlock_write_byte’:
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:28: error: implicit declaration of function ‘config_enabled’ [-Werror=implicit-function-declaration]
 #define IS_BUILTIN(option) config_enabled(option)
                            ^
./include/asm-generic/qrwlock.h:156:26: note: in expansion of macro ‘IS_BUILTIN’
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                          ^~~~~~~~~~
./include/asm-generic/qrwlock.h:156:37: error: ‘CONFIG_CPU_BIG_ENDIAN’ undeclared (first use in this function)
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
./include/asm-generic/qrwlock.h:156:37: note: each undeclared identifier is reported only once for each function it appears in
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
In file included from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/backport/backport.h:7:0,
                 from <command-line>:0:
./include/asm-generic/qrwlock.h: In function ‘__qrwlock_write_byte’:
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:28: error: implicit declaration of function ‘config_enabled’ [-Werror=implicit-function-declaration]
 #define IS_BUILTIN(option) config_enabled(option)
                            ^
./include/asm-generic/qrwlock.h:156:26: note: in expansion of macro ‘IS_BUILTIN’
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                          ^~~~~~~~~~
./include/asm-generic/qrwlock.h:156:37: error: ‘CONFIG_CPU_BIG_ENDIAN’ undeclared (first use in this function)
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
./include/asm-generic/qrwlock.h:156:37: note: each undeclared identifier is reported only once for each function it appears in
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
In file included from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/backport/backport.h:7:0,
                 from <command-line>:0:
./include/asm-generic/qrwlock.h: In function ‘__qrwlock_write_byte’:
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:28: error: implicit declaration of function ‘config_enabled’ [-Werror=implicit-function-declaration]
 #define IS_BUILTIN(option) config_enabled(option)
                            ^
./include/asm-generic/qrwlock.h:156:26: note: in expansion of macro ‘IS_BUILTIN’
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                          ^~~~~~~~~~
./include/asm-generic/qrwlock.h:156:37: error: ‘CONFIG_CPU_BIG_ENDIAN’ undeclared (first use in this function)
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
./include/asm-generic/qrwlock.h:156:37: note: each undeclared identifier is reported only once for each function it appears in
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
In file included from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/backport/backport.h:7:0,
                 from <command-line>:0:
./include/asm-generic/qrwlock.h: In function ‘__qrwlock_write_byte’:
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:28: error: implicit declaration of function ‘config_enabled’ [-Werror=implicit-function-declaration]
 #define IS_BUILTIN(option) config_enabled(option)
                            ^
./include/asm-generic/qrwlock.h:156:26: note: in expansion of macro ‘IS_BUILTIN’
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                          ^~~~~~~~~~
./include/asm-generic/qrwlock.h:156:37: error: ‘CONFIG_CPU_BIG_ENDIAN’ undeclared (first use in this function)
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
./include/asm-generic/qrwlock.h:156:37: note: each undeclared identifier is reported only once for each function it appears in
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
cc1: some warnings being treated as errors
make[6]: *** [scripts/Makefile.build:295: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/compat/main.o] Error 1
make[5]: *** [scripts/Makefile.build:553: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/compat] Error 2
make[5]: *** Waiting for unfinished jobs....
  CC [M]  /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/drivers/net/wireless/intel/iwlwifi/iwl-drv.o
In file included from ./include/linux/dynamic_debug.h:5:0,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/dynamic_debug.h:4,
                 from ./include/linux/printk.h:320,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/printk.h:5,
                 from ./include/linux/kernel.h:13,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kernel.h:3,
                 from ./include/asm-generic/bug.h:13,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/asm-generic/bug.h:3,
                 from ./arch/x86/include/asm/bug.h:35,
                 from ./include/linux/bug.h:4,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/include/net/mac80211.h:18,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/mac80211/main.c:12:
./include/linux/memcontrol.h: In function ‘mem_cgroup_disabled’:
./include/linux/memcontrol.h:282:32: error: ‘memory_cgrp_subsys_enabled_key’ undeclared (first use in this function)
  return !cgroup_subsys_enabled(memory_cgrp_subsys);
                                ^
./include/linux/jump_label.h:363:43: note: in definition of macro ‘static_branch_likely’
  if (__builtin_types_compatible_p(typeof(*x), struct static_key_true)) \
                                           ^
./include/linux/memcontrol.h:282:10: note: in expansion of macro ‘cgroup_subsys_enabled’
  return !cgroup_subsys_enabled(memory_cgrp_subsys);
          ^~~~~~~~~~~~~~~~~~~~~
./include/linux/memcontrol.h: In function ‘mem_cgroup_under_socket_pressure’:
./include/linux/memcontrol.h:805:28: error: ‘memory_cgrp_subsys_on_dfl_key’ undeclared (first use in this function)
  if (!cgroup_subsys_on_dfl(memory_cgrp_subsys) && memcg->tcpmem_pressure)
                            ^
./include/linux/jump_label.h:363:43: note: in definition of macro ‘static_branch_likely’
  if (__builtin_types_compatible_p(typeof(*x), struct static_key_true)) \
                                           ^
./include/linux/memcontrol.h:805:7: note: in expansion of macro ‘cgroup_subsys_on_dfl’
  if (!cgroup_subsys_on_dfl(memory_cgrp_subsys) && memcg->tcpmem_pressure)
       ^~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[8]: *** [scripts/Makefile.build:294: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/drivers/net/wireless/intel/iwlwifi/iwl-io.o] Error 1
make[8]: *** Waiting for unfinished jobs....
In file included from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/backport/backport.h:7:0,
                 from <command-line>:0:
./include/asm-generic/qrwlock.h: In function ‘__qrwlock_write_byte’:
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:28: error: implicit declaration of function ‘config_enabled’ [-Werror=implicit-function-declaration]
 #define IS_BUILTIN(option) config_enabled(option)
                            ^
./include/asm-generic/qrwlock.h:156:26: note: in expansion of macro ‘IS_BUILTIN’
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                          ^~~~~~~~~~
./include/asm-generic/qrwlock.h:156:37: error: ‘CONFIG_CPU_BIG_ENDIAN’ undeclared (first use in this function)
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
./include/asm-generic/qrwlock.h:156:37: note: each undeclared identifier is reported only once for each function it appears in
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
  CC [M]  /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/wireless/sysfs.o
cc1: some warnings being treated as errors
make[6]: *** [scripts/Makefile.build:294: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/wireless/core.o] Error 1
make[6]: *** Waiting for unfinished jobs....
cc1: some warnings being treated as errors
make[6]: *** [scripts/Makefile.build:294: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/mac80211/main.o] Error 1
make[6]: *** Waiting for unfinished jobs....
  CC [M]  /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/mac80211/status.o
In file included from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/backport/backport.h:7:0,
                 from <command-line>:0:
./include/asm-generic/qrwlock.h: In function ‘__qrwlock_write_byte’:
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:28: error: implicit declaration of function ‘config_enabled’ [-Werror=implicit-function-declaration]
 #define IS_BUILTIN(option) config_enabled(option)
                            ^
./include/asm-generic/qrwlock.h:156:26: note: in expansion of macro ‘IS_BUILTIN’
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                          ^~~~~~~~~~
./include/asm-generic/qrwlock.h:156:37: error: ‘CONFIG_CPU_BIG_ENDIAN’ undeclared (first use in this function)
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
./include/asm-generic/qrwlock.h:156:37: note: each undeclared identifier is reported only once for each function it appears in
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
cc1: some warnings being treated as errors
make[8]: *** [scripts/Makefile.build:294: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/drivers/net/wireless/intel/iwlwifi/iwl-drv.o] Error 1
make[7]: *** [scripts/Makefile.build:553: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/drivers/net/wireless/intel/iwlwifi] Error 2
make[6]: *** [scripts/Makefile.build:553: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/drivers/net/wireless/intel] Error 2
make[5]: *** [scripts/Makefile.build:553: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/drivers/net/wireless] Error 2
In file included from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/backport/backport.h:7:0,
                 from <command-line>:0:
./include/asm-generic/qrwlock.h: In function ‘__qrwlock_write_byte’:
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:28: error: implicit declaration of function ‘config_enabled’ [-Werror=implicit-function-declaration]
 #define IS_BUILTIN(option) config_enabled(option)
                            ^
./include/asm-generic/qrwlock.h:156:26: note: in expansion of macro ‘IS_BUILTIN’
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                          ^~~~~~~~~~
./include/asm-generic/qrwlock.h:156:37: error: ‘CONFIG_CPU_BIG_ENDIAN’ undeclared (first use in this function)
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
./include/asm-generic/qrwlock.h:156:37: note: each undeclared identifier is reported only once for each function it appears in
  return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
                                     ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
 #define IS_BUILTIN(option) config_enabled(option)
                                           ^~~~~~
In file included from ./include/linux/dynamic_debug.h:5:0,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/dynamic_debug.h:4,
                 from ./include/linux/printk.h:320,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/printk.h:5,
                 from ./include/linux/kernel.h:13,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/kernel.h:3,
                 from ./include/linux/skbuff.h:17,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/skbuff.h:3,
                 from ./include/linux/if_ether.h:23,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/if_ether.h:3,
                 from ./include/linux/etherdevice.h:25,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/backport-include/linux/etherdevice.h:3,
                 from /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/mac80211/status.c:14:
./include/linux/memcontrol.h: In function ‘mem_cgroup_disabled’:
./include/linux/memcontrol.h:282:32: error: ‘memory_cgrp_subsys_enabled_key’ undeclared (first use in this function)
  return !cgroup_subsys_enabled(memory_cgrp_subsys);
                                ^
./include/linux/jump_label.h:363:43: note: in definition of macro ‘static_branch_likely’
  if (__builtin_types_compatible_p(typeof(*x), struct static_key_true)) \
                                           ^
./include/linux/memcontrol.h:282:10: note: in expansion of macro ‘cgroup_subsys_enabled’
  return !cgroup_subsys_enabled(memory_cgrp_subsys);
          ^~~~~~~~~~~~~~~~~~~~~
./include/linux/memcontrol.h: In function ‘mem_cgroup_under_socket_pressure’:
./include/linux/memcontrol.h:805:28: error: ‘memory_cgrp_subsys_on_dfl_key’ undeclared (first use in this function)
  if (!cgroup_subsys_on_dfl(memory_cgrp_subsys) && memcg->tcpmem_pressure)
                            ^
./include/linux/jump_label.h:363:43: note: in definition of macro ‘static_branch_likely’
  if (__builtin_types_compatible_p(typeof(*x), struct static_key_true)) \
                                           ^
./include/linux/memcontrol.h:805:7: note: in expansion of macro ‘cgroup_subsys_on_dfl’
  if (!cgroup_subsys_on_dfl(memory_cgrp_subsys) && memcg->tcpmem_pressure)
       ^~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[6]: *** [scripts/Makefile.build:294: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/wireless/sysfs.o] Error 1
make[5]: *** [scripts/Makefile.build:553: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/wireless] Error 2
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/mac80211/status.c: In function ‘ieee80211_calc_tx_latency’:
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/mac80211/status.c:705:38: error: request for member ‘tv64’ in something not a structure or union
  ts[IEEE80211_TX_LAT_ENTER] = skb_arv.tv64 >> 32;
                                      ^
/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/mac80211/status.c:706:15: error: request for member ‘tv64’ in something not a structure or union
  tmp = skb_arv.tv64 & 0xFFFFFFFF;
               ^
cc1: some warnings being treated as errors
make[6]: *** [scripts/Makefile.build:294: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/mac80211/status.o] Error 1
make[5]: *** [scripts/Makefile.build:553: /home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi/net/mac80211] Error 2
make[4]: *** [Makefile:1490: _module_/home/mike/Documents/debugging/nuc-wireless/git-wireless/backport-iwlwifi] Error 2
make[3]: *** [Makefile.build:6: modules] Error 2
make[2]: *** [Makefile.real:100: modules] Error 2
make[1]: *** [Makefile:43: modules] Error 2
make: *** [Makefile:30: default] Error 2
Comment 17 Emmanuel Grumbach 2017-02-27 20:43:50 UTC
Ok, I'll take that tomorrow with Johannes who knows about backport.
Comment 18 Mike Cloaked 2017-02-27 20:45:36 UTC
One question - Should I have used -b master in the git clone command? Or was what I did correct?
Comment 19 Mike Cloaked 2017-02-28 10:09:45 UTC
On a different machine running the stock arch kernel 4.9.11-1, but without the same wireless harware, I used a different git clone command to that in the link you originally gave - 

$ git clone https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/backport-iwlwifi.git

i.e. without the -b parameter, so presumably this gives the master branch? Anyway running the build on this machine with this method doesn't fail, so when I get back to the machine requiring the AC-8260 testing I will try to build with this method and if that succeeds then I will be able to install the driver and run the required tests.
Comment 20 Emmanuel Grumbach 2017-02-28 10:33:01 UTC
-b master is not needed. By default, you'll get the master branch.
Comment 21 Mike Cloaked 2017-02-28 15:19:09 UTC
OK - I have now managed to get a build to work and install successfully from master branch. Initially I tried to build when running kernel 4.10 but there were a few errors, so I downgraded the kernel back to 4.9.11-1 and ran the build again, and this worked without errors, and installed just fine. I will attach those logs shortly. 

Now that the driver is installed I will go back to your original comment in this bug report and look at running the diagnostics.
Comment 22 Mike Cloaked 2017-02-28 15:20:25 UTC
Created attachment 254981 [details]
Failed build with kernel 4.10-0
Comment 23 Emmanuel Grumbach 2017-02-28 15:21:17 UTC
great - thanks a lot for your perseverance here...
Comment 24 Mike Cloaked 2017-02-28 15:21:25 UTC
Created attachment 254983 [details]
Successful build with kernel 4.9.11-1
Comment 25 Mike Cloaked 2017-02-28 16:04:33 UTC
OK with the driver build from master branch, and installed, with my system running kernel 4.9.11-1-ARCH, and using the firmware that you attached in Comment #2 wireless AC-8260 is now running very sweetly indeed - I have run a soak test on tens of gigabytes of rsync download from a server in my LAN, and wireless has not disconnected even once. The wireless speed has been consistent with other laptops using their wireless (not 8260) in the same location, and has remained good quality.

So far no devcoredump directory has been created in /sys/devices/virtual/, presumably because wireless is no longer dis-associating. So it would seem that the changes you have made in the driver and/or firmware has made a huge difference and works well.

I am continuing to run soak tests on wireless rsync downloads as I write this comment, and if wireless disconnects and creates a dump I will upload to this report.

There were a couple of minor fail lines in the build for the driver when trying to build using kernel 4.10 and those errors are in the uploaded logs I attached earlier. At some point I will be able to test using kernel 4.10.X once those build errors are addressed, but in the meantime I now have a functional wireless connection for AC-8260 on this machine for the first time, so thank you for making the necessary changes.
Comment 26 Mike Cloaked 2017-02-28 16:25:18 UTC
OK finally after an hour or so I had a wireless connection drop - but it didn't seem to create the required directory in /sys/devices/virtual/ despite having done # echo 1 > /sys/kernel/debug/iwlwifi/0000\:01\:00.0/iwlmvm/fw_dbg_collect but there were some lines in the journal log:

Feb 28 16:14:23 home2 kernel: iwlwifi 0000:01:00.0: Failed to find station
Feb 28 16:14:23 home2 kernel: wlp1s0: failed to remove key (1, ff:ff:ff:ff:ff:ff) from hardware (-22)
Feb 28 16:14:23 home2 kernel: iwlwifi 0000:01:00.0: Failed to find station
Feb 28 16:14:23 home2 kernel: wlp1s0: failed to remove key (2, ff:ff:ff:ff:ff:ff) from hardware (-22)

Also I noted that 

# cat /sys/class/devcoredump/disabled 
0

Does this mean that I should change that file in order to get coredumps? Attaching current system log next.
Comment 27 Mike Cloaked 2017-02-28 16:26:07 UTC
Created attachment 254987 [details]
System journal with iwlwifi driver from master and debug firmware
Comment 28 Mike Cloaked 2017-02-28 17:22:57 UTC
I am continuing to run soak tests - and no further wireless drops after another hour of continuous rsync download within my LAN.
Comment 29 Emmanuel Grumbach 2017-02-28 17:45:05 UTC
I am not surprised it feels better. Most of the improvements come from the firmware.

The drop you saw is because of this:

Feb 28 16:14:22 home2 NetworkManager[283]: <info>  [1488298462.9653] device (wlp1s0): state change: activated -> deactivating (reason 'user-requested') [100 110 39]

Your NetworkManager decided to close the connection.
Yes - there is the error print that pops up about keys of the broadcast address. This is something we need to address.

Do you feel that you got the correct response to the bug you opened and that this bug can now be closed?
Comment 30 Mike Cloaked 2017-02-28 18:09:29 UTC
OK - yes, I had to close the wireless connection manually in the NetworkManager GUI after wireless stopped responding, and re-open the connection, but oddly at that point there was nothing else in the logs - after re-starting the connection it has continued to work without error. So it has been about two and a half hours of non-stop rsync, apart from that one disconnect event.  So yes at this point the response to the bug report is now that I have a working wireless connection with your latest firmware and driver.

Of course if further 4.9.X kernels are released to the arch repos then I can build the driver and presumably it will continue to work. When arch moves to the 4.10 kernels (currently only in the [testing] repo), then at present I guess I won't get a successful build of the driver with an updated kernel unless the master git branch for iwlwifi is patched to deal with that. I guess that the version of the driver and firmware that I am now using will become the default at some point, but in the interim I will need to build each time I get a kernel update from the arch [core] repo.

So for the present this bug can be closed - I will open a new report when arch moves to kernel 4.10 if I can't build the driver. Also I will need to replace the stock firmware with the version that you provided in this report until the time comes when the new version reaches the arch repos - it would be useful to know what the approximate timescale is for the next release of linux-firmware?

Thank you for working on this - it is very much appreciated.

Note You need to log in before you can comment on or make changes to this bug.