1. 06 Nov, 2018 3 commits
    • Rafał Miłecki's avatar
      brcmutil: really fix decoding channel info for 160 MHz bandwidth · 3401d42c
      Rafał Miłecki authored
      Previous commit /adding/ support for 160 MHz chanspecs was incomplete.
      It didn't set bandwidth info and didn't extract control channel info. As
      the result it was also using uninitialized "sb" var.
      
      This change has been tested for two chanspecs found to be reported by
      some devices/firmwares:
      1) 60/160 (0xee32)
         Before: chnum:50 control_ch_num:36
          After: chnum:50 control_ch_num:60
      2) 120/160 (0xed72)
         Before: chnum:114 control_ch_num:100
          After: chnum:114 control_ch_num:120
      
      Fixes: 330994e8 ("brcmfmac: fix for proper support of 160MHz bandwidth")
      Signed-off-by: default avatarRafał Miłecki <rafal@milecki.pl>
      Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
      3401d42c
    • John Stultz's avatar
      wlcore: Fixup "Add support for optional wakeirq" · b630806d
      John Stultz authored
      After commit 3c83dd57 ("wlcore: Add support for optional
      wakeirq") landed upstream, I started seeing the following oops
      on my HiKey board:
      
      [    1.870279] Unable to handle kernel read from unreadable memory at virtual address 0000000000000010
      [    1.870283] Mem abort info:
      [    1.870287]   ESR = 0x96000005
      [    1.870292]   Exception class = DABT (current EL), IL = 32 bits
      [    1.870296]   SET = 0, FnV = 0
      [    1.870299]   EA = 0, S1PTW = 0
      [    1.870302] Data abort info:
      [    1.870306]   ISV = 0, ISS = 0x00000005
      [    1.870309]   CM = 0, WnR = 0
      [    1.870312] [0000000000000010] user address but active_mm is swapper
      [    1.870318] Internal error: Oops: 96000005 [#1] PREEMPT SMP
      [    1.870327] CPU: 0 PID: 5 Comm: kworker/0:0 Not tainted 4.19.0-05129-gb3d1e8e #48
      [    1.870331] Hardware name: HiKey Development Board (DT)
      [    1.870350] Workqueue: events_freezable mmc_rescan
      [    1.870358] pstate: 60400005 (nZCv daif +PAN -UAO)
      [    1.870366] pc : wl1271_probe+0x210/0x350
      [    1.870371] lr : wl1271_probe+0x210/0x350
      [    1.870374] sp : ffffff80080739b0
      [    1.870377] x29: ffffff80080739b0 x28: 0000000000000000
      [    1.870384] x27: 0000000000000000 x26: 0000000000000000
      [    1.870391] x25: 0000000000000036 x24: ffffffc074ecb598
      [    1.870398] x23: ffffffc07ffdce78 x22: ffffffc0744ed808
      [    1.870404] x21: ffffffc074ecbb98 x20: ffffff8008ff9000
      [    1.870411] x19: ffffffc0744ed800 x18: ffffff8008ff9a48
      [    1.870418] x17: 0000000000000000 x16: 0000000000000000
      [    1.870425] x15: ffffffc074ecb503 x14: ffffffffffffffff
      [    1.870431] x13: ffffffc074ecb502 x12: 0000000000000030
      [    1.870438] x11: 0101010101010101 x10: 0000000000000040
      [    1.870444] x9 : ffffffc075400248 x8 : ffffffc075400270
      [    1.870451] x7 : 0000000000000000 x6 : 0000000000000000
      [    1.870457] x5 : 0000000000000000 x4 : 0000000000000000
      [    1.870463] x3 : 0000000000000000 x2 : 0000000000000000
      [    1.870469] x1 : 0000000000000028 x0 : 0000000000000000
      [    1.870477] Process kworker/0:0 (pid: 5, stack limit = 0x(____ptrval____))
      [    1.870480] Call trace:
      [    1.870485]  wl1271_probe+0x210/0x350
      [    1.870491]  sdio_bus_probe+0x100/0x128
      [    1.870500]  really_probe+0x1a8/0x2b8
      [    1.870506]  driver_probe_device+0x58/0x100
      [    1.870511]  __device_attach_driver+0x94/0xd8
      [    1.870517]  bus_for_each_drv+0x70/0xc8
      [    1.870522]  __device_attach+0xe0/0x140
      [    1.870527]  device_initial_probe+0x10/0x18
      [    1.870532]  bus_probe_device+0x94/0xa0
      [    1.870537]  device_add+0x374/0x5b8
      [    1.870542]  sdio_add_func+0x60/0x88
      [    1.870546]  mmc_attach_sdio+0x1b0/0x358
      [    1.870551]  mmc_rescan+0x2cc/0x390
      [    1.870558]  process_one_work+0x12c/0x320
      [    1.870563]  worker_thread+0x48/0x458
      [    1.870569]  kthread+0xf8/0x128
      [    1.870575]  ret_from_fork+0x10/0x18
      [    1.870583] Code: 92400c21 b2760021 a90687a2 97e95bf9 (f9400803)
      [    1.870587] ---[ end trace 1e15f81d3c139ca9 ]---
      
      It seems since we don't have a wakeirq value in the dts, the wakeirq
      value in wl1271_probe() is zero, which then causes trouble in
      irqd_get_trigger_type(irq_get_irq_data(wakeirq)).
      
      This patch tries to address this by checking if wakeirq is zero,
      and not trying to add it to the resources if that is the case.
      
      Fixes: 3c83dd57 ("wlcore: Add support for optional wakeirq")
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Kalle Valo <kvalo@codeaurora.org>
      Cc: Eyal Reizer <eyalr@ti.com>
      Cc: Anders Roxell <anders.roxell@linaro.org>
      Cc: linux-wireless@vger.kernel.org
      Acked-by: default avatarTony Lindgren <tony@atomide.com>
      Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
      Tested-by: default avatarAnders Roxell <anders.roxell@linaro.org>
      Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
      b630806d
    • Dan Carpenter's avatar
      ath9k: Fix a locking bug in ath9k_add_interface() · 461cf036
      Dan Carpenter authored
      We tried to revert commit d9c52fd1 ("ath9k: fix tx99 with monitor
      mode interface") but accidentally missed part of the locking change.
      
      The lock has to be held earlier so that we're holding it when we do
      "sc->tx99_vif = vif;" and also there in the current code there is a
      stray unlock before we have taken the lock.
      
      Fixes: 6df0580b ("ath9k: add back support for using active monitor interfaces for tx99")
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
      461cf036
  2. 04 Nov, 2018 9 commits
    • Linus Torvalds's avatar
      Linux 4.20-rc1 · 65102238
      Linus Torvalds authored
      65102238
    • Linus Torvalds's avatar
      Merge tag 'tags/upstream-4.20-rc1' of git://git.infradead.org/linux-ubifs · 42bd06e9
      Linus Torvalds authored
      Pull UBIFS updates from Richard Weinberger:
      
       - Full filesystem authentication feature, UBIFS is now able to have the
         whole filesystem structure authenticated plus user data encrypted and
         authenticated.
      
       - Minor cleanups
      
      * tag 'tags/upstream-4.20-rc1' of git://git.infradead.org/linux-ubifs: (26 commits)
        ubifs: Remove unneeded semicolon
        Documentation: ubifs: Add authentication whitepaper
        ubifs: Enable authentication support
        ubifs: Do not update inode size in-place in authenticated mode
        ubifs: Add hashes and HMACs to default filesystem
        ubifs: authentication: Authenticate super block node
        ubifs: Create hash for default LPT
        ubfis: authentication: Authenticate master node
        ubifs: authentication: Authenticate LPT
        ubifs: Authenticate replayed journal
        ubifs: Add auth nodes to garbage collector journal head
        ubifs: Add authentication nodes to journal
        ubifs: authentication: Add hashes to index nodes
        ubifs: Add hashes to the tree node cache
        ubifs: Create functions to embed a HMAC in a node
        ubifs: Add helper functions for authentication support
        ubifs: Add separate functions to init/crc a node
        ubifs: Format changes for authentication support
        ubifs: Store read superblock node
        ubifs: Drop write_node
        ...
      42bd06e9
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-4.20-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · 4710e789
      Linus Torvalds authored
      Pull NFS client bugfixes from Trond Myklebust:
       "Highlights include:
      
        Bugfix:
         - Fix build issues on architectures that don't provide 64-bit cmpxchg
      
        Cleanups:
         - Fix a spelling mistake"
      
      * tag 'nfs-for-4.20-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
        NFS: fix spelling mistake, EACCESS -> EACCES
        SUNRPC: Use atomic(64)_t for seq_send(64)
      4710e789
    • Linus Torvalds's avatar
      Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 35e74524
      Linus Torvalds authored
      Pull more timer updates from Thomas Gleixner:
       "A set of commits for the new C-SKY architecture timers"
      
      * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        dt-bindings: timer: gx6605s SOC timer
        clocksource/drivers/c-sky: Add gx6605s SOC system timer
        dt-bindings: timer: C-SKY Multi-processor timer
        clocksource/drivers/c-sky: Add C-SKY SMP timer
      35e74524
    • Linus Torvalds's avatar
      Merge tag 'ntb-4.20' of git://github.com/jonmason/ntb · 04578e84
      Linus Torvalds authored
      Pull NTB updates from Jon Mason:
       "Fairly minor changes and bug fixes:
      
        NTB IDT thermal changes and hook into hwmon, ntb_netdev clean-up of
        private struct, and a few bug fixes"
      
      * tag 'ntb-4.20' of git://github.com/jonmason/ntb:
        ntb: idt: Alter the driver info comments
        ntb: idt: Discard temperature sensor IRQ handler
        ntb: idt: Add basic hwmon sysfs interface
        ntb: idt: Alter temperature read method
        ntb_netdev: Simplify remove with client device drvdata
        NTB: transport: Try harder to alloc an aligned MW buffer
        ntb: ntb_transport: Mark expected switch fall-throughs
        ntb: idt: Set PCIe bus address to BARLIMITx
        NTB: ntb_hw_idt: replace IS_ERR_OR_NULL with regular NULL checks
        ntb: intel: fix return value for ndev_vec_mask()
        ntb_netdev: fix sleep time mismatch
      04578e84
    • Linus Torvalds's avatar
      Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 71e56028
      Linus Torvalds authored
      Pull scheduler fixes from Ingo Molnar:
       "A memory (under-)allocation fix and a comment fix"
      
      * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/topology: Fix off by one bug
        sched/rt: Update comment in pick_next_task_rt()
      71e56028
    • Linus Torvalds's avatar
      Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 601a8807
      Linus Torvalds authored
      Pull x86 fixes from Ingo Molnar:
       "A number of fixes and some late updates:
      
         - make in_compat_syscall() behavior on x86-32 similar to other
           platforms, this touches a number of generic files but is not
           intended to impact non-x86 platforms.
      
         - objtool fixes
      
         - PAT preemption fix
      
         - paravirt fixes/cleanups
      
         - cpufeatures updates for new instructions
      
         - earlyprintk quirk
      
         - make microcode version in sysfs world-readable (it is already
           world-readable in procfs)
      
         - minor cleanups and fixes"
      
      * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        compat: Cleanup in_compat_syscall() callers
        x86/compat: Adjust in_compat_syscall() to generic code under !COMPAT
        objtool: Support GCC 9 cold subfunction naming scheme
        x86/numa_emulation: Fix uniform-split numa emulation
        x86/paravirt: Remove unused _paravirt_ident_32
        x86/mm/pat: Disable preemption around __flush_tlb_all()
        x86/paravirt: Remove GPL from pv_ops export
        x86/traps: Use format string with panic() call
        x86: Clean up 'sizeof x' => 'sizeof(x)'
        x86/cpufeatures: Enumerate MOVDIR64B instruction
        x86/cpufeatures: Enumerate MOVDIRI instruction
        x86/earlyprintk: Add a force option for pciserial device
        objtool: Support per-function rodata sections
        x86/microcode: Make revision and processor flags world-readable
      601a8807
    • Linus Torvalds's avatar
      Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 01897f3e
      Linus Torvalds authored
      Pull perf updates and fixes from Ingo Molnar:
       "These are almost all tooling updates: 'perf top', 'perf trace' and
        'perf script' fixes and updates, an UAPI header sync with the merge
        window versions, license marker updates, much improved Sparc support
        from David Miller, and a number of fixes"
      
      * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (66 commits)
        perf intel-pt/bts: Calculate cpumode for synthesized samples
        perf intel-pt: Insert callchain context into synthesized callchains
        perf tools: Don't clone maps from parent when synthesizing forks
        perf top: Start display thread earlier
        tools headers uapi: Update linux/if_link.h header copy
        tools headers uapi: Update linux/netlink.h header copy
        tools headers: Sync the various kvm.h header copies
        tools include uapi: Update linux/mmap.h copy
        perf trace beauty: Use the mmap flags table generated from headers
        perf beauty: Wire up the mmap flags table generator to the Makefile
        perf beauty: Add a generator for MAP_ mmap's flag constants
        tools include uapi: Update asound.h copy
        tools arch uapi: Update asm-generic/unistd.h and arm64 unistd.h copies
        tools include uapi: Update linux/fs.h copy
        perf callchain: Honour the ordering of PERF_CONTEXT_{USER,KERNEL,etc}
        perf cs-etm: Correct CPU mode for samples
        perf unwind: Take pgoff into account when reporting elf to libdwfl
        perf top: Do not use overwrite mode by default
        perf top: Allow disabling the overwrite mode
        perf trace: Beautify mount's first pathname arg
        ...
      01897f3e
    • Linus Torvalds's avatar
      Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · e9ebc215
      Linus Torvalds authored
      Pull irq fixes from Ingo Molnar:
       "An irqchip driver fix and a memory (over-)allocation fix"
      
      * 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        irqchip/irq-mvebu-sei: Fix a NULL vs IS_ERR() bug in probe function
        irq/matrix: Fix memory overallocation
      e9ebc215
  3. 03 Nov, 2018 28 commits