Re: [PATCH net] net: dsa: bcm_sf2: Fix race condition while unmasking interrupts

2016-08-25 Thread David Miller
From: Florian Fainelli Date: Wed, 24 Aug 2016 11:01:20 -0700 > 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

[PATCH net] net: dsa: bcm_sf2: Fix race condition while unmasking interrupts

2016-08-24 Thread 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: CPU0CPU1 intrl2_1_mask_clear(..) sets INTRL2_CPU_MASK_CLEAR