1. 27 Sep, 2022 2 commits
  2. 12 Sep, 2022 3 commits
  3. 07 Sep, 2022 1 commit
  4. 03 Sep, 2022 5 commits
  5. 30 Aug, 2022 2 commits
  6. 26 Aug, 2022 2 commits
    • Deren Wu's avatar
      wifi: mt76: mt7921e: fix crash in chip reset fail · fa3fbe64
      Deren Wu authored
      In case of drv own fail in reset, we may need to run mac_reset several
      times. The sequence would trigger system crash as the log below.
      
      Because we do not re-enable/schedule "tx_napi" before disable it again,
      the process would keep waiting for state change in napi_diable(). To
      avoid the problem and keep status synchronize for each run, goto final
      resource handling if drv own failed.
      
      [ 5857.353423] mt7921e 0000:3b:00.0: driver own failed
      [ 5858.433427] mt7921e 0000:3b:00.0: Timeout for driver own
      [ 5859.633430] mt7921e 0000:3b:00.0: driver own failed
      [ 5859.633444] ------------[ cut here ]------------
      [ 5859.633446] WARNING: CPU: 6 at kernel/kthread.c:659 kthread_park+0x11d
      [ 5859.633717] Workqueue: mt76 mt7921_mac_reset_work [mt7921_common]
      [ 5859.633728] RIP: 0010:kthread_park+0x11d/0x150
      [ 5859.633736] RSP: 0018:ffff8881b676fc68 EFLAGS: 00010202
      ......
      [ 5859.633766] Call Trace:
      [ 5859.633768]  <TASK>
      [ 5859.633771]  mt7921e_mac_reset+0x176/0x6f0 [mt7921e]
      [ 5859.633778]  mt7921_mac_reset_work+0x184/0x3a0 [mt7921_common]
      [ 5859.633785]  ? mt7921_mac_set_timing+0x520/0x520 [mt7921_common]
      [ 5859.633794]  ? __kasan_check_read+0x11/0x20
      [ 5859.633802]  process_one_work+0x7ee/0x1320
      [ 5859.633810]  worker_thread+0x53c/0x1240
      [ 5859.633818]  kthread+0x2b8/0x370
      [ 5859.633824]  ? process_one_work+0x1320/0x1320
      [ 5859.633828]  ? kthread_complete_and_exit+0x30/0x30
      [ 5859.633834]  ret_from_fork+0x1f/0x30
      [ 5859.633842]  </TASK>
      
      Cc: stable@vger.kernel.org
      Fixes: 0efaf31d ("mt76: mt7921: fix MT7921E reset failure")
      Signed-off-by: default avatarDeren Wu <deren.wu@mediatek.com>
      Link: https://lore.kernel.org/r/727eb5ffd3c7c805245e512da150ecf0a7154020.1659452909.git.deren.wu@mediatek.comSigned-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      fa3fbe64
    • David S. Miller's avatar
      Merge tag 'wireless-2022-08-26' of git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless · 4ba9d38b
      David S. Miller authored
      Johannes Berg says:
      
      ====================
      pull-request: wireless-2022-08-26
      
      Here are a couple of fixes for the current cycle,
      see the tag description below.
      
      Just a couple of fixes:
       * two potential leaks
       * use-after-free in certain scan races
       * warning in IBSS code
       * error return from a debugfs file was wrong
       * possible NULL-ptr-deref when station lookup fails
      
      Please pull and let me know if there's any problem.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      4ba9d38b
  7. 25 Aug, 2022 23 commits
  8. 24 Aug, 2022 2 commits
    • Sylwester Dziedziuch's avatar
      i40e: Fix incorrect address type for IPv6 flow rules · bcf3a156
      Sylwester Dziedziuch authored
      It was not possible to create 1-tuple flow director
      rule for IPv6 flow type. It was caused by incorrectly
      checking for source IP address when validating user provided
      destination IP address.
      
      Fix this by changing ip6src to correct ip6dst address
      in destination IP address validation for IPv6 flow type.
      
      Fixes: efca91e8 ("i40e: Add flow director support for IPv6")
      Signed-off-by: default avatarSylwester Dziedziuch <sylwesterx.dziedziuch@intel.com>
      Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
      Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
      bcf3a156
    • Jacob Keller's avatar
      ixgbe: stop resetting SYSTIME in ixgbe_ptp_start_cyclecounter · 25d7a5f5
      Jacob Keller authored
      The ixgbe_ptp_start_cyclecounter is intended to be called whenever the
      cyclecounter parameters need to be changed.
      
      Since commit a9763f3c ("ixgbe: Update PTP to support X550EM_x
      devices"), this function has cleared the SYSTIME registers and reset the
      TSAUXC DISABLE_SYSTIME bit.
      
      While these need to be cleared during ixgbe_ptp_reset, it is wrong to clear
      them during ixgbe_ptp_start_cyclecounter. This function may be called
      during both reset and link status change. When link changes, the SYSTIME
      counter is still operating normally, but the cyclecounter should be updated
      to account for the possibly changed parameters.
      
      Clearing SYSTIME when link changes causes the timecounter to jump because
      the cycle counter now reads zero.
      
      Extract the SYSTIME initialization out to a new function and call this
      during ixgbe_ptp_reset. This prevents the timecounter adjustment and avoids
      an unnecessary reset of the current time.
      
      This also restores the original SYSTIME clearing that occurred during
      ixgbe_ptp_reset before the commit above.
      Reported-by: default avatarSteve Payne <spayne@aurora.tech>
      Reported-by: default avatarIlya Evenbach <ievenbach@aurora.tech>
      Fixes: a9763f3c ("ixgbe: Update PTP to support X550EM_x devices")
      Signed-off-by: default avatarJacob Keller <jacob.e.keller@intel.com>
      Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
      Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
      25d7a5f5