• Huang, Ying's avatar
    x86: ioremap_nocache fix · 1c17f4d6
    Huang, Ying authored
    This patch fixes a bug of ioremap_nocache. ioremap_nocache() will call
    __ioremap() with flags != 0 to do the real work, which will call
    change_page_attr_addr() if phys_addr + size - 1 < (end_pfn_map << PAGE_SHIFT).
    But some pages between 0 ~ end_pfn_map << PAGE_SHIFT are not mapped by
    identity map, this will make change_page_attr_addr failed.
    
    This patch is based on latest x86 git and has been tested on x86_64 platform.
    Signed-off-by: default avatarHuang Ying <ying.huang@intel.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    1c17f4d6
ioremap_64.c 5.34 KB