1. 31 3月, 2017 2 次提交
    • L
      rtlwifi: Fix scheduling while atomic splat · 893dc68f
      Larry Finger 提交于
      Following commit cceb0a59 ("rtlwifi: Add work queue for c2h cmd."),
      the following BUG is reported when rtl8723be is used:
      
      BUG: sleeping function called from invalid context at mm/slab.h:432
      in_atomic(): 1, irqs_disabled(): 1, pid: 0, name: swapper/0
      CPU: 0 PID: 0 Comm: swapper/0 Tainted: G        W  O    4.11.0-rc3-wl+ #276
      Hardware name: TOSHIBA TECRA A50-A/TECRA A50-A, BIOS Version 4.50   09/29/2014
      Call Trace:
       <IRQ>
       dump_stack+0x63/0x89
       ___might_sleep+0xe9/0x130
       __might_sleep+0x4a/0x90
       kmem_cache_alloc_trace+0x19f/0x200
       ? rtl_c2hcmd_enqueue+0x3e/0x110 [rtlwifi]
       rtl_c2hcmd_enqueue+0x3e/0x110 [rtlwifi]
       rtl8723be_c2h_packet_handler+0xac/0xc0 [rtl8723be]
       rtl8723be_rx_command_packet+0x37/0x5c [rtl8723be]
       _rtl_pci_rx_interrupt+0x200/0x6b0 [rtl_pci]
       _rtl_pci_interrupt+0x20c/0x5d0 [rtl_pci]
       __handle_irq_event_percpu+0x3f/0x1d0
       handle_irq_event_percpu+0x23/0x60
       handle_irq_event+0x3c/0x60
       handle_fasteoi_irq+0xa2/0x170
       handle_irq+0x20/0x30
       do_IRQ+0x48/0xd0
       common_interrupt+0x89/0x89
      ...
      
      Although commit cceb0a59 converted most c2h commands to use a work
      queue, the Bluetooth coexistence routines can be in atomic mode when
      they execute such a call.
      
      Fixes: cceb0a59 ("rtlwifi: Add work queue for c2h cmd.")
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Cc: Ping-Ke Shih <pkshih@realtek.com>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      893dc68f
    • K
      Merge tag 'iwlwifi-for-kalle-2017-03-29' of... · d8a531cf
      Kalle Valo 提交于
      Merge tag 'iwlwifi-for-kalle-2017-03-29' of git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-fixes
      
      iwlwifi fixes for 4.11
      
      Here are three patches intended for 4.11.  The first one is an RCU fix
      by Sari.  The second one is a fix for a potential out-of-bounds access
      crash by Dan.  And finally, the third and bigger one, is a fix for
      IBSS, which has been broken since DQA was enabled in the driver.
      d8a531cf
  2. 24 3月, 2017 3 次提交
  3. 20 3月, 2017 1 次提交
    • R
      ath10k: fix incorrect wlan_mac_base in qca6174_regs · 6be3b6cc
      Ryan Hsu 提交于
      In the 'commit ebee76f7 ("ath10k: allow setting coverage class")',
      it inherits the design and the address offset from ath9k, but the address
      is not applicable to QCA6174, which leads to a random crash while doing the
      resume() operation, since the set_coverage_class.ops will be called from
      ieee80211_reconfig() when resume() (if the wow is not configured).
      
      Fix the incorrect address offset here to avoid the random crash.
      
      Verified on QCA6174/hw3.0 with firmware WLAN.RM.4.4-00022-QCARMSWPZ-2.
      
      kvalo: this also seems to fix a regression with firmware restart.
      
      Fixes: ebee76f7 ("ath10k: allow setting coverage class")
      Cc: <stable@vger.kernel.org> # v4.10
      Signed-off-by: NRyan Hsu <ryanhsu@qca.qualcomm.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      6be3b6cc
  4. 16 3月, 2017 16 次提交
  5. 15 3月, 2017 18 次提交