Re: [PATCH v2] MIPS: io: add a barrier after register read in readX()

2018-04-03 Thread Sinan Kaya
On 4/3/2018 3:21 AM, Arnd Bergmann wrote: > On Mon, Apr 2, 2018 at 8:13 PM, Sinan Kaya wrote: >> While a barrier is present in writeX() function before the register write, >> a similar barrier is missing in the readX() function after the register >> read. This could allow

Re: [PATCH v2] MIPS: io: add a barrier after register read in readX()

2018-04-03 Thread Sinan Kaya
On 4/3/2018 3:21 AM, Arnd Bergmann wrote: > On Mon, Apr 2, 2018 at 8:13 PM, Sinan Kaya wrote: >> While a barrier is present in writeX() function before the register write, >> a similar barrier is missing in the readX() function after the register >> read. This could allow memory accesses

Re: [PATCH v2] MIPS: io: add a barrier after register read in readX()

2018-04-03 Thread Arnd Bergmann
On Mon, Apr 2, 2018 at 8:13 PM, Sinan Kaya wrote: > While a barrier is present in writeX() function before the register write, > a similar barrier is missing in the readX() function after the register > read. This could allow memory accesses following readX() to observe >

Re: [PATCH v2] MIPS: io: add a barrier after register read in readX()

2018-04-03 Thread Arnd Bergmann
On Mon, Apr 2, 2018 at 8:13 PM, Sinan Kaya wrote: > While a barrier is present in writeX() function before the register write, > a similar barrier is missing in the readX() function after the register > read. This could allow memory accesses following readX() to observe > stale data. > >

[PATCH v2] MIPS: io: add a barrier after register read in readX()

2018-04-02 Thread Sinan Kaya
While a barrier is present in writeX() function before the register write, a similar barrier is missing in the readX() function after the register read. This could allow memory accesses following readX() to observe stale data. Signed-off-by: Sinan Kaya Reported-by: Arnd

[PATCH v2] MIPS: io: add a barrier after register read in readX()

2018-04-02 Thread Sinan Kaya
While a barrier is present in writeX() function before the register write, a similar barrier is missing in the readX() function after the register read. This could allow memory accesses following readX() to observe stale data. Signed-off-by: Sinan Kaya Reported-by: Arnd Bergmann ---