Re: [PATCH 2/9] lib/bitmap: implement bitmap_{empty, full} with bitmap_weight_eq()

2021-12-14 Thread Yury Norov
On Sun, Nov 28, 2021 at 10:10 AM Michał Mirosław wrote: > > On Sat, Nov 27, 2021 at 07:56:57PM -0800, Yury Norov wrote: > > Now as we have bitmap_weight_eq(), switch bitmap_full() and > > bitmap_empty() to using it. > > > > Signed-off-by: Yury Norov > > --- > > include/linux/bitmap.h | 26 ++

Re: [PATCH] ARC: mm: Update ARC_REG_*C_PTAG on each cacheline operation

2021-12-14 Thread Barbaros Tokaoglu
On 12/14/21 11:36 AM, Vladimir Isaev wrote: > On Dec 11, 2021 3:12 AM Barbaros Tokaoglu wrote: >> This patch is for a problem we observed on an ARC770D and MMUv3 >> implementation. >> The problem was although __flush_dcache_page() returns there were some >> cacheline >> entries that didn't flush to

[PATCH v2] ARC: mm: Update ARC_REG_*C_PTAG on each cacheline operation

2021-12-14 Thread Barbaros Tokaoglu
For 16 kB data cache with 4 ways and 32 byte cache lines we have tag LSB [(128 locations for each way: 7 bits) + byte offset (32 bytes: 5 bits)] lower than page offset (13 bits for 8 kB pages). So it is possible for PTAG to change even for single page loop. Hence update ARC_REG_*C_PTAG register on