From mboxrd@z Thu Jan 1 00:00:00 1970 From: catalin.marinas@arm.com (Catalin Marinas) Date: Wed, 27 Mar 2013 10:53:49 +0000 Subject: [PATCH 3/4] ARM: mm: kill unused TLB_CAN_READ_FROM_L1_CACHE and use ALT_SMP instead In-Reply-To: <1364235581-17900-4-git-send-email-will.deacon@arm.com> References: <1364235581-17900-1-git-send-email-will.deacon@arm.com> <1364235581-17900-4-git-send-email-will.deacon@arm.com> Message-ID: <20130327105348.GD801@MacBook-Pro.local> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, Mar 25, 2013 at 06:19:40PM +0000, Will Deacon wrote: > Many ARMv7 cores have hardware page table walkers that can read the L1 > cache. This is discoverable from the ID_MMFR3 register, although this > can be expensive to access from the low-level set_pte functions and is a > pain to cache, particularly with multi-cluster systems. > > A useful observation is that the multi-processing extensions for ARMv7 > require coherent table walks, meaning that we can make use of ALT_SMP > patching in proc-v7-* to patch away the cache flush safely for these > cores. > > Reported-by: Albin Tonnerre > Signed-off-by: Will Deacon Reviewed-by: Catalin Marinas There are some pmd flushing functions we should target as well (flush_pmd_entry, clean_pmd_entry) in this patch or a new one. -- Catalin