Messages in this thread Patch in this message | | | From | Thomas Schlichter <> | Subject | [PATCH][2.5] add some missing gloabl_flush_tlb() calls | Date | Fri, 21 Feb 2003 13:58:58 +0100 |
| |
I found some places where change_page_attr() is called without the corresponding global_flush_tlb(). This patch should fix it...
Thomas Schlichter
P.S.: I hope this fix is correct at the first try...--- linux-2.5.62/arch/i386/mm/ioremap.c.orig Fri Feb 21 12:26:36 2003 +++ linux-2.5.62/arch/i386/mm/ioremap.c Fri Feb 21 12:28:44 2003 @@ -205,6 +205,7 @@ iounmap(p); p = NULL; } + global_flush_tlb(); } return p; @@ -226,6 +227,7 @@ change_page_attr(virt_to_page(__va(p->phys_addr)), p->size >> PAGE_SHIFT, PAGE_KERNEL); + global_flush_tlb(); } kfree(p); } --- linux-2.5.62/arch/x86_64/mm/ioremap.c.orig Fri Feb 21 12:25:54 2003 +++ linux-2.5.62/arch/x86_64/mm/ioremap.c Fri Feb 21 12:27:58 2003 @@ -205,6 +205,7 @@ iounmap(p); p = NULL; } + global_flush_tlb(); } return p; @@ -226,6 +227,7 @@ change_page_attr(virt_to_page(__va(p->phys_addr)), p->size >> PAGE_SHIFT, PAGE_KERNEL); + global_flush_tlb(); } kfree(p); } --- linux-2.5.62/arch/x86_64/kernel/pci-gart.c.orig Fri Feb 21 12:39:40 2003 +++ linux-2.5.62/arch/x86_64/kernel/pci-gart.c Fri Feb 21 12:43:13 2003 @@ -437,6 +437,7 @@ } flush_gart(); + global_flush_tlb(); printk("PCI-DMA: aperture base @ %x size %u KB\n", aper_base, aper_size>>10); return 0;[unhandled content-type:application/pgp-signature] | |