arm SMP on Cortex-A15
Ian Lepore
ian at FreeBSD.org
Tue Mar 18 13:32:36 UTC 2014
On Mon, 2014-03-17 at 09:29 +0100, Wojciech Macek wrote:
> Hi,
>
> Finally I've found some time to continue SMP hacking. It seems that I
> isolated the tlb/pmam failures and developed two simple patches that help.
> There are still some pmap changes and TEX remap left, but I don't want to
> use them now.
> https://drive.google.com/folderview?id=0B-7yTLrPxaWtSzZPUGgtM3pnUjg&usp=sharing
> * 01 - ensure that TTB is set before TLB invalidation and flush BTB to
> comply the specs
> * 02 - add missing TLB invalidations to pmap and fix invalidation order
>
> I chose buildworld -j4 as a stresstest, and run it on Arndale (USB rootfs)
> and a different 4-core a15 chip (SATA rootfs). On both setups test passed
> and was significantly faster than the one with previous patchset.
>
> I'd like to submit these changes to FreeBSD tree (with some help from our
> local committers), so any comments and testing are really appreciated.
>
> Best regards,
> Wojtek
BTW, on line 1561 of pmap-v6.c there's an #ifdef DEBUG. If you change
that to #if 1 you'll find that sometimes the problem that code is
looking for happens:
fixup: pmap 0xc72c10bc, va 0x203f7000, ftype 1 - nothing to do!
fixup: l2 0xc781e0c4, l2b 0xc781e0ec, ptep 0xc76c83dc, pl1pd 0xe1ce680c
fixup: pte 0x11a2c67e, l1pd 0x670c8021, last code 0x0
I just noticed this last night and haven't dug into it yet. I'm running
on a quad-core cortex-a9 (imx6), BTW.
-- Ian
More information about the freebsd-arm
mailing list