From: Paul M. <le...@li...> - 2007-03-05 08:06:38
|
On Wed, Feb 21, 2007 at 01:38:56PM +0100, Manuel Lauss wrote: > PCMCIA is (again) broken, this time on 2.6.21-rc1. > After doing a p3_ioremap() of AREA5/6, accesses to it > will hang (a simple CIS dump for example simply hangs > on the first readb()). Kernel is not dead (sysrq-t from usb kbd works). > > X breaks too, btw. It just sits there and consumes 80% CPU. > > Reverting "lazy dcache writeback optimizations" fixes both issues on > my SH7760. > Can you verify whether this works? diff --git a/arch/sh/mm/tlb-flush.c b/arch/sh/mm/tlb-flush.c index d2f7b4a..927414f 100644 --- a/arch/sh/mm/tlb-flush.c +++ b/arch/sh/mm/tlb-flush.c @@ -160,7 +160,7 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long phys = pte_val(pte) & PTE_PHYS_MASK; int dirty = test_and_clear_bit(PG_dcache_dirty, &page->flags); - if (dirty) + if (dirty || mapping_mapped(mapping)) __flush_wback_region((void *)P1SEGADDR(phys), PAGE_SIZE); } |