Re: [PATCH 07/18] ARC: ioremap: use more commonly used PAGE_KERNEL based uncached flag

From: Vineet Gupta
Date: Wed Aug 11 2021 - 14:58:45 EST


On 8/10/21 10:18 PM, Mike Rapoport wrote:
- return ioremap_prot(paddr, size, pgprot_val(PAGE_KERNEL_NO_CACHE));
+ return ioremap_prot(paddr, size,
+ pgprot_val(pgprot_noncached(PAGE_KERNEL)));
But this becomes _PAGE_CACHEABLE now. What did I miss?

We now use pgprot_noncached()

arch/arc/include/asm/pgtable.h:30:#define pgprot_noncached(prot)        (__pgprot(pgprot_val(prot) & ~_PAGE_CACHEABLE))

-Vineet