1. 17 10月, 2016 1 次提交
  2. 12 10月, 2016 1 次提交
  3. 30 9月, 2016 10 次提交
  4. 26 9月, 2016 1 次提交
  5. 23 9月, 2016 2 次提交
  6. 22 9月, 2016 4 次提交
  7. 21 9月, 2016 1 次提交
  8. 20 9月, 2016 2 次提交
  9. 16 9月, 2016 3 次提交
  10. 12 9月, 2016 1 次提交
  11. 07 9月, 2016 3 次提交
  12. 02 9月, 2016 1 次提交
  13. 01 9月, 2016 2 次提交
  14. 27 8月, 2016 7 次提交
  15. 26 8月, 2016 1 次提交
    • F
      net: dsa: bcm_sf2: Fix race condition while unmasking interrupts · 4f101c47
      Florian Fainelli 提交于
      We kept shadow copies of which interrupt sources we have enabled and
      disabled, but due to an order bug in how intrl2_mask_clear was defined,
      we could run into the following scenario:
      
      CPU0					CPU1
      intrl2_1_mask_clear(..)
      sets INTRL2_CPU_MASK_CLEAR
      					bcm_sf2_switch_1_isr
      					read INTRL2_CPU_STATUS and masks with stale
      					irq1_mask value
      updates irq1_mask value
      
      Which would make us loop again and again trying to process and interrupt
      we are not clearing since our copy of whether it was enabled before
      still indicates it was not. Fix this by updating the shadow copy first,
      and then unasking at the HW level.
      
      Fixes: 246d7f77 ("net: dsa: add Broadcom SF2 switch driver")
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4f101c47
新手
引导
客服 返回
顶部