[PATCH v3 05/11] arc: mm: Convert to GENERIC_IOREMAP

2022-10-09 Thread Baoquan He
By taking GENERIC_IOREMAP method, the generic ioremap_prot() and iounmap() are visible and available to arch. Arch only needs to provide implementation of arch_ioremap() or arch_iounmap() if there's arch specific handling needed in its ioremap() or iounmap(). This change will simplify implementatio

Re: [PATCH v3 05/11] arc: mm: Convert to GENERIC_IOREMAP

2022-10-12 Thread Christophe Leroy
Le 09/10/2022 à 12:31, Baoquan He a écrit : > By taking GENERIC_IOREMAP method, the generic ioremap_prot() and > iounmap() are visible and available to arch. Arch only needs to > provide implementation of arch_ioremap() or arch_iounmap() if there's > arch specific handling needed in its ioremap()

Re: [PATCH v3 05/11] arc: mm: Convert to GENERIC_IOREMAP

2022-10-13 Thread Baoquan He
On 10/12/22 at 10:17am, Christophe Leroy wrote: .. > > -/* > > - * ioremap with access flags > > - * Cache semantics wise it is same as ioremap - "forced" uncached. > > - * However unlike vanilla ioremap which bypasses ARC MMU for addresses in > > - * ARC hardware uncached region, this one stil