Re: [PATCH 1/5] powerpc/64s: Move dcbt/dcbtst sequence into a macro

2024-03-13 Thread Michael Ellerman
On Thu, 29 Feb 2024 23:25:17 +1100, Michael Ellerman wrote: > There's an almost identical code sequence to specify load/store access > hints in __copy_tofrom_user_power7(), copypage_power7() and > memcpy_power7(). > > Move the sequence into a common macro, which is passed the registers to > use as

[PATCH 1/5] powerpc/64s: Move dcbt/dcbtst sequence into a macro

2024-02-29 Thread Michael Ellerman
There's an almost identical code sequence to specify load/store access hints in __copy_tofrom_user_power7(), copypage_power7() and memcpy_power7(). Move the sequence into a common macro, which is passed the registers to use as they differ slightly. There also needs to be a copy in the selftests,