• H
    LoongArch: Use TLB for ioremap() · e1aed15d
    Huacai Chen 提交于
    LoongArch inclusion
    category: feature
    bugzilla: https://gitee.com/openeuler/kernel/issues/I5OHOB
    
    --------------------------------
    
    We can support more cache attributes (e.g., CC, SUC and WUC) and page
    protection when we use TLB for ioremap(). The implementation is based
    on GENERIC_IOREMAP.
    
    The existing simple ioremap() implementation has better performance so
    we keep it and introduce ARCH_IOREMAP to control the selection.
    
    We move pagetable_init() earlier to make early ioremap() works, and we
    modify the PCI ecam mapping because the TLB-based version of ioremap()
    will actually take the size into account.
    Signed-off-by: NHuacai Chen <chenhuacai@loongson.cn>
    e1aed15d
pgtable-bits.h 5.2 KB