On Wed, 22 Aug 2018, Richard Henderson wrote: > On 08/22/2018 01:42 PM, Mikulas Patocka wrote: > > unsigned long flags = swpipl(IPL_MAX); > > > > - barrier(); > > + mb(); > > Maybe, but I doubt it makes a difference in practice. > > The swpipl is a transition through PALcode, and the > instruction queue will have been flushed into and out > of PALmode. Architecturally, PAL calls aren't memory barriers. It's hard to tell whether they are in practice. The possible problem here is reordering inside the chipset, not inside the CPU (ev45 is in-order). And the chipset doesn't care whether the CPU is executing inside PAL or not. > But of course the barrier shouldn't be required either. > > > r~ Mikulas
- Re: Alpha Avanti broken by 9ce8654323d69273b4977f76f11c9... Maciej W. Rozycki
- Re: Alpha Avanti broken by 9ce8654323d69273b4977f76f11c9... Mikulas Patocka
- Re: Alpha Avanti broken by 9ce8654323d69273b4977f76f11c9... Sinan Kaya
- Re: Alpha Avanti broken by 9ce8654323d69273b4977f76f11c9... Mikulas Patocka
- Re: Alpha Avanti broken by 9ce8654323d69273b4977f76f11c9... Will Deacon
- Re: Alpha Avanti broken by 9ce8654323d69273b4977f76f11c9... Sinan Kaya
- Re: Alpha Avanti broken by 9ce8654323d69273b4977f76f11c9... Will Deacon
- Re: Alpha Avanti broken by 9ce8654323d69273b4977f76f11c9... Sinan Kaya
- [PATCH] alpha: add barrier before writing to the hae reg... Mikulas Patocka
- Re: [PATCH] alpha: add barrier before writing to the hae... Richard Henderson
- Re: [PATCH] alpha: add barrier before writing to the hae... Mikulas Patocka
- Re: [PATCH] alpha: add barrier before writing to the hae... Richard Henderson
- Re: Alpha Avanti broken by 9ce8654323d69273b4977f76f11c9... Mikulas Patocka
- Re: Alpha Avanti broken by 9ce8654323d69273b4977f76f11c9... Maciej W. Rozycki
- [PATCH] add delay between port write and port read Mikulas Patocka
- Re: [PATCH] add delay between port write and port read Mikulas Patocka
- Re: [PATCH] add delay between port write and port read Arnd Bergmann
- Re: [PATCH] add delay between port write and port read Maciej W. Rozycki
- Re: [PATCH] add delay between port write and port read Mikulas Patocka
- Re: [PATCH] add delay between port write and port read Maciej W. Rozycki
- Re: [PATCH] add delay between port write and port read Mikulas Patocka
