Re: [PATCH v2] powerpc xmon: use `dcbf` inplace of `dcbi` instruction for 64bit Book3S

2020-03-28 Thread Balamuruhan S
On Fri, 2020-03-27 at 16:12 +0100, Christophe Leroy wrote: > > Le 27/03/2020 à 10:03, Balamuruhan S a écrit : > > On Fri, 2020-03-27 at 07:48 +0100, Christophe Leroy wrote: > > > Le 26/03/2020 à 07:15, Balamuruhan S a écrit : > > > > Data Cache Block Invalidate (dcbi) instruction was implemented b

Re: [PATCH v2] powerpc xmon: use `dcbf` inplace of `dcbi` instruction for 64bit Book3S

2020-03-27 Thread Christophe Leroy
Le 27/03/2020 à 19:19, Segher Boessenkool a écrit : On Fri, Mar 27, 2020 at 04:12:13PM +0100, Christophe Leroy wrote: Maybe you could also change invalidate_dcache_range(): for (i = 0; i < size >> shift; i++, addr += bytes) { if (IS_ENABLED(CONFIG_PPC_BOOK3S_64))

Re: [PATCH v2] powerpc xmon: use `dcbf` inplace of `dcbi` instruction for 64bit Book3S

2020-03-27 Thread Segher Boessenkool
On Fri, Mar 27, 2020 at 04:12:13PM +0100, Christophe Leroy wrote: > Maybe you could also change invalidate_dcache_range(): > > for (i = 0; i < size >> shift; i++, addr += bytes) { > if (IS_ENABLED(CONFIG_PPC_BOOK3S_64)) > dcbf(addr); > else >

Re: [PATCH v2] powerpc xmon: use `dcbf` inplace of `dcbi` instruction for 64bit Book3S

2020-03-27 Thread Christophe Leroy
Le 27/03/2020 à 10:03, Balamuruhan S a écrit : On Fri, 2020-03-27 at 07:48 +0100, Christophe Leroy wrote: Le 26/03/2020 à 07:15, Balamuruhan S a écrit : Data Cache Block Invalidate (dcbi) instruction was implemented back in PowerPC architecture version 2.03. It is obsolete and attempt to us

Re: [PATCH v2] powerpc xmon: use `dcbf` inplace of `dcbi` instruction for 64bit Book3S

2020-03-27 Thread Balamuruhan S
On Fri, 2020-03-27 at 07:48 +0100, Christophe Leroy wrote: > > Le 26/03/2020 à 07:15, Balamuruhan S a écrit : > > Data Cache Block Invalidate (dcbi) instruction was implemented back in > > PowerPC > > architecture version 2.03. It is obsolete and attempt to use of this > > illegal > > instruction

Re: [PATCH v2] powerpc xmon: use `dcbf` inplace of `dcbi` instruction for 64bit Book3S

2020-03-26 Thread Christophe Leroy
Le 26/03/2020 à 07:15, Balamuruhan S a écrit : Data Cache Block Invalidate (dcbi) instruction was implemented back in PowerPC architecture version 2.03. It is obsolete and attempt to use of this illegal instruction results in a hypervisor emulation assistance interrupt. So, ifdef it out the op

[PATCH v2] powerpc xmon: use `dcbf` inplace of `dcbi` instruction for 64bit Book3S

2020-03-25 Thread Balamuruhan S
Data Cache Block Invalidate (dcbi) instruction was implemented back in PowerPC architecture version 2.03. It is obsolete and attempt to use of this illegal instruction results in a hypervisor emulation assistance interrupt. So, ifdef it out the option `i` in xmon for 64bit Book3S. 0:mon> fi cpu 0x