1. 08 Jun, 2017 2 commits
    • Chris Wilson's avatar
      e1000e: Undo e1000e_pm_freeze if __e1000_shutdown fails · 833521eb
      Chris Wilson authored
      An error during suspend (e100e_pm_suspend),
      
      [  429.994338] ACPI : EC: event blocked
      [  429.994633] e1000e: EEE TX LPI TIMER: 00000011
      [  430.955451] pci_pm_suspend(): e1000e_pm_suspend+0x0/0x30 [e1000e] returns -2
      [  430.955454] dpm_run_callback(): pci_pm_suspend+0x0/0x140 returns -2
      [  430.955458] PM: Device 0000:00:19.0 failed to suspend async: error -2
      [  430.955581] PM: Some devices failed to suspend, or early wake event detected
      [  430.957709] ACPI : EC: event unblocked
      
      lead to complete failure:
      
      [  432.585002] ------------[ cut here ]------------
      [  432.585013] WARNING: CPU: 3 PID: 8372 at kernel/irq/manage.c:1478 __free_irq+0x9f/0x280
      [  432.585015] Trying to free already-free IRQ 20
      [  432.585016] Modules linked in: cdc_ncm usbnet x86_pkg_temp_thermal intel_powerclamp coretemp mii crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_hda_codec snd_hwdep lpc_ich snd_hda_core snd_pcm mei_me mei sdhci_pci sdhci i915 mmc_core e1000e ptp pps_core prime_numbers
      [  432.585042] CPU: 3 PID: 8372 Comm: kworker/u16:40 Tainted: G     U          4.10.0-rc8-CI-Patchwork_3870+ #1
      [  432.585044] Hardware name: LENOVO 2356GCG/2356GCG, BIOS G7ET31WW (1.13 ) 07/02/2012
      [  432.585050] Workqueue: events_unbound async_run_entry_fn
      [  432.585051] Call Trace:
      [  432.585058]  dump_stack+0x67/0x92
      [  432.585062]  __warn+0xc6/0xe0
      [  432.585065]  warn_slowpath_fmt+0x4a/0x50
      [  432.585070]  ? _raw_spin_lock_irqsave+0x49/0x60
      [  432.585072]  __free_irq+0x9f/0x280
      [  432.585075]  free_irq+0x34/0x80
      [  432.585089]  e1000_free_irq+0x65/0x70 [e1000e]
      [  432.585098]  e1000e_pm_freeze+0x7a/0xb0 [e1000e]
      [  432.585106]  e1000e_pm_suspend+0x21/0x30 [e1000e]
      [  432.585113]  pci_pm_suspend+0x71/0x140
      [  432.585118]  dpm_run_callback+0x6f/0x330
      [  432.585122]  ? pci_pm_freeze+0xe0/0xe0
      [  432.585125]  __device_suspend+0xea/0x330
      [  432.585128]  async_suspend+0x1a/0x90
      [  432.585132]  async_run_entry_fn+0x34/0x160
      [  432.585137]  process_one_work+0x1f4/0x6d0
      [  432.585140]  ? process_one_work+0x16e/0x6d0
      [  432.585143]  worker_thread+0x49/0x4a0
      [  432.585145]  kthread+0x107/0x140
      [  432.585148]  ? process_one_work+0x6d0/0x6d0
      [  432.585150]  ? kthread_create_on_node+0x40/0x40
      [  432.585154]  ret_from_fork+0x2e/0x40
      [  432.585156] ---[ end trace 6712df7f8c4b9124 ]---
      
      The unwind failures stems from commit 28002099 ("e1000e: Refactor PM
      flows"), but it may be a later patch that introduced the non-recoverable
      behaviour.
      
      Fixes: 28002099 ("e1000e: Refactor PM flows")
      Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99847Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
      Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
      833521eb
    • Colin Ian King's avatar
      igb: make a few local functions static · b476deab
      Colin Ian King authored
      Clean up a few sparse warnings, these following
      functions can be made static:
      
      drivers/net/ethernet/intel/igb/igb_main.c: warning: symbol
        'igb_add_mac_filter' was not declared. Should it be static?
      drivers/net/ethernet/intel/igb/igb_main.c: warning: symbol
        'igb_del_mac_filter' was not declared. Should it be static?
      drivers/net/ethernet/intel/igb/igb_main.c: warning: symbol
        'igb_set_vf_mac_filter' was not declared. Should it be static?
      Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
      Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
      Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
      b476deab
  2. 07 Jun, 2017 33 commits
  3. 06 Jun, 2017 5 commits
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · b29794ec
      Linus Torvalds authored
      Pull networking fixes from David Miller:
      
       1) Made TCP congestion control documentation match current reality,
          from Anmol Sarma.
      
       2) Various build warning and failure fixes from Arnd Bergmann.
      
       3) Fix SKB list leak in ipv6_gso_segment().
      
       4) Use after free in ravb driver, from Eugeniu Rosca.
      
       5) Don't use udp_poll() in ping protocol driver, from Eric Dumazet.
      
       6) Don't crash in PCI error recovery of cxgb4 driver, from Guilherme
          Piccoli.
      
       7) _SRC_NAT_DONE_BIT needs to be cleared using atomics, from Liping
          Zhang.
      
       8) Use after free in vxlan deletion, from Mark Bloch.
      
       9) Fix ordering of NAPI poll enabled in ethoc driver, from Max
          Filippov.
      
      10) Fix stmmac hangs with TSO, from Niklas Cassel.
      
      11) Fix crash in CALIPSO ipv6, from Richard Haines.
      
      12) Clear nh_flags properly on mpls link up. From Roopa Prabhu.
      
      13) Fix regression in sk_err socket error queue handling, noticed by
          ping applications. From Soheil Hassas Yeganeh.
      
      14) Update mlx4/mlx5 MAINTAINERS information.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (78 commits)
        net: stmmac: fix a broken u32 less than zero check
        net: stmmac: fix completely hung TX when using TSO
        net: ethoc: enable NAPI before poll may be scheduled
        net: bridge: fix a null pointer dereference in br_afspec
        ravb: Fix use-after-free on `ifconfig eth0 down`
        net/ipv6: Fix CALIPSO causing GPF with datagram support
        net: stmmac: ensure jumbo_frm error return is correctly checked for -ve value
        Revert "sit: reload iphdr in ipip6_rcv"
        i40e/i40evf: proper update of the page_offset field
        i40e: Fix state flags for bit set and clean operations of PF
        iwlwifi: fix host command memory leaks
        iwlwifi: fix min API version for 7265D, 3168, 8000 and 8265
        iwlwifi: mvm: clear new beacon command template struct
        iwlwifi: mvm: don't fail when removing a key from an inexisting sta
        iwlwifi: pcie: only use d0i3 in suspend/resume if system_pm is set to d0i3
        iwlwifi: mvm: fix firmware debug restart recording
        iwlwifi: tt: move ucode_loaded check under mutex
        iwlwifi: mvm: support ibss in dqa mode
        iwlwifi: mvm: Fix command queue number on d0i3 flow
        iwlwifi: mvm: rs: start using LQ command color
        ...
      b29794ec
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc · e87f327e
      Linus Torvalds authored
      Pull sparc fixes from David Miller:
      
       1) Fix TLB context wrap races, from Pavel Tatashin.
      
       2) Cure some gcc-7 build issues.
      
       3) Handle invalid setup_hugepagesz command line values properly, from
          Liam R Howlett.
      
       4) Copy TSB using the correct address shift for the huge TSB, from Mike
          Kravetz.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc:
        sparc64: delete old wrap code
        sparc64: new context wrap
        sparc64: add per-cpu mm of secondary contexts
        sparc64: redefine first version
        sparc64: combine activate_mm and switch_mm
        sparc64: reset mm cpumask after wrap
        sparc/mm/hugepages: Fix setup_hugepagesz for invalid values.
        sparc: Machine description indices can vary
        sparc64: mm: fix copy_tsb to correctly copy huge page TSBs
        arch/sparc: support NR_CPUS = 4096
        sparc64: Add __multi3 for gcc 7.x and later.
        sparc64: Fix build warnings with gcc 7.
        arch/sparc: increase CONFIG_NODES_SHIFT on SPARC64 to 5
      e87f327e
    • David Rientjes's avatar
      compiler, clang: suppress warning for unused static inline functions · abb2ea7d
      David Rientjes authored
      GCC explicitly does not warn for unused static inline functions for
      -Wunused-function.  The manual states:
      
      	Warn whenever a static function is declared but not defined or
      	a non-inline static function is unused.
      
      Clang does warn for static inline functions that are unused.
      
      It turns out that suppressing the warnings avoids potentially complex
      #ifdef directives, which also reduces LOC.
      
      Suppress the warning for clang.
      Signed-off-by: default avatarDavid Rientjes <rientjes@google.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      abb2ea7d
    • David S. Miller's avatar
      Merge branch 'sparc64-context-wrap-fixes' · b3aefc2f
      David S. Miller authored
      Pavel Tatashin says:
      
      ====================
      sparc64: context wrap fixes
      
      This patch series contains fixes for context wrap: when we are out of
      context ids, and need to get a new version.
      
      It fixes memory corruption issues which happen when more than number of
      context ids (currently set to 8K) number of processes are started
      simultaneously, and processes can get a wrong context.
      
      sparc64: new context wrap:
      - contains explanation of new wrap method, and also explanation of races
        that it solves
      sparc64: reset mm cpumask after wrap
      - explains issue of not reseting cpu mask on a wrap
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b3aefc2f
    • Pavel Tatashin's avatar
      sparc64: delete old wrap code · 0197e41c
      Pavel Tatashin authored
      The old method that is using xcall and softint to get new context id is
      deleted, as it is replaced by a method of using per_cpu_secondary_mm
      without xcall to perform the context wrap.
      Signed-off-by: default avatarPavel Tatashin <pasha.tatashin@oracle.com>
      Reviewed-by: default avatarBob Picco <bob.picco@oracle.com>
      Reviewed-by: default avatarSteven Sistare <steven.sistare@oracle.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      0197e41c