From: nico@fluxnic.net (Nicolas Pitre) Date: Mon, 28 Sep 2009 09:53:25 -0400 (EDT) Subject: Disable highmem with SMP if no h/w TLB broadcasting In-Reply-To: <20090928101115.GF6715@n2100.arm.linux.org.uk> References: <20090927202937.GA26521@n2100.arm.linux.org.uk> <20090928101115.GF6715@n2100.arm.linux.org.uk> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, 28 Sep 2009, Russell King - ARM Linux wrote: > On Sun, Sep 27, 2009 at 09:37:22PM -0400, Nicolas Pitre wrote: > > On Sun, 27 Sep 2009, Russell King - ARM Linux wrote: > > > > > We suffer an unfortunate combination of "features" which makes highmem > > > support on platforms without hardware TLB maintainence broadcast difficult: > > > > > > - we need kmap_high_get() support for DMA cache coherence > > > - this requires kmap_high() to take a spinlock with IRQs disabled > > > - kmap_high() occasionally calls flush_all_zero_pkmaps() to clear > > > out old mappings > > > > Hmmm... I guess there could be a way to work around this limitation by > > replacing flush_tlb_kernel_range() with something that would set a per > > CPU flag on all CPUs to schedule TLB flushing the next time they call > > kmap_high(). > > Until we have a solution that's acceptable to everyone, I suggest that > the patch I attached is merged. Yes, no issue about that. I was just trying to think further. Nicolas