Hi,

yes, that's a known issue, with a temporary hack/fix attached
to this mail.

Patrick

diff --git sys/arch/arm/include/pmap.h sys/arch/arm/include/pmap.h
index c409ad3..544cd8d 100644
--- sys/arch/arm/include/pmap.h
+++ sys/arch/arm/include/pmap.h
@@ -328,6 +328,8 @@ do {                                                        
                \
                };                                                      \
                cpu_drain_writebuf();                                   \
        }                                                               \
+       asm("mcr p15, 0, r0, c8, c7, 0 /* Invalidate entire unified TLB */");   
\
+       cpu_drain_writebuf();                                           \
 } while (/*CONSTCOND*/0)
 
 #define        PTE_SYNC_RANGE(pte, cnt)                                        
\
@@ -344,6 +346,8 @@ do {                                                        
                \
                };                                                      \
                cpu_drain_writebuf();                                   \
        }                                                               \
+       asm("mcr p15, 0, r0, c8, c7, 0 /* Invalidate entire unified TLB */");   
\
+       cpu_drain_writebuf();                                           \
 } while (/*CONSTCOND*/0)
 
 #define        l1pte_valid(pde)        (((pde) & L1_TYPE_MASK) != L1_TYPE_INV)


On Wed, Feb 24, 2016 at 01:34:50AM +0100, Olivier Cherrier wrote:
> 
>       Hi,
> 
> Trying to install a cubieboard2, I get :
> 
>       OpenBSD/sunxi booting ...
>       arg0 0x0 arg1 0x10bb arg2 0x40000100
>       atag core flags 0 pagesize 0 rootdev 0
>       atag mem start 0x40000000 size 0x40000000
>       bootfile: 
>       bootargs: 
>       memory size derived from u-boot
>       bootconf.mem[0].address = 40000000 pages 262144/0x40000000
>       Allocating page tables
>       freestart = 0x40aaa000, free_pages = 259414 (0x0003f556)
>       IRQ stack: p0x40ad8000 v0xc0ad8000
>       ABT stack: p0x40ad9000 v0xc0ad9000
>       UND stack: p0x40ada000 v0xc0ada000
>       SVC stack: p0x40adb000 v0xc0adb000
>       Creating L1 page table at 0x40aac000
>       Mapping kernel
>       Constructing L2 page tables
>       undefined page pmap board type: 4283
>       Copyright (c) 1982, 1986, 1989, 1991, 1993
>       The Regents of the University of California.  All rights
>       reserved.
>       Copyright (c) 1995-2016 OpenBSD. All rights reserved.
>       http://www.OpenBSD.org
> 
>       OpenBSD 5.9 (RAMDISK) #41: Thu Feb 18 11:26:25 AEDT 2016
>       j...@armv7.jsg.id.au:/usr/src/sys/arch/armv7/compile/RAMDISK
>       real mem  = 1073741824 (1024MB)
>       avail mem = 1041670144 (993MB)
>       mainbus0 at root
>       cortex0 at mainbus0
>       ampintc0 at cortex0 nirq 160
>       agtimer0 at cortex0: tick rate 24000 KHz
>       cpu0 at mainbus0: ARM Cortex A7 rev 4 (ARMv7 core)
>       cpu0: DC enabled IC enabled WB disabled EABT branch
>       prediction enabled
>       cpu0: 32KB(32b/l,2way) I-cache, 32KB(64b/l,4way) wr-back
>       D-cache
>       sunxi0 at mainbus0: Allwinner A20
>       sxipio0 at sunxi0
>       sxiccmu0 at sunxi0
>       sxidog0 at sunxi0
>       sxirtc0 at sunxi0
>       sxiuart0 at sunxi0: console
>       sxiuart1 at sunxi0
>       sxiuart2 at sunxi0
>       sxiuart3 at sunxi0
>       sxiuart4 at sunxi0
>       sxiuart5 at sunxi0
>       sxiuart6 at sunxi0
>       sxiuart7 at sunxi0
>       sxie0 at sunxi0, address 02:0f:0b:03:c2:20
>       rlphy0 at sxie0 phy 1: RTL8201L 10/100 PHY, rev. 1
>       ahci0 at sunxi0 AHCI 1.1
>       scsibus0 at ahci0: 32 targets
>       ehci0 at sunxi0
>       usb0 at ehci0: USB revision 2.0
>       uhub0 at usb0 "Allwinner EHCI root hub" rev 2.00/1.00 addr 1
>       ehci1 at sunxi0
>       usb1 at ehci1: USB revision 2.0
>       uhub1 at usb1 "Allwinner EHCI root hub" rev 2.00/1.00 addr 1
>       gpio0 at sxipio0: 18 pins
>       gpio1 at sxipio0: 24 pins
>       gpio2 at sxipio0: 25 pins
>       gpio3 at sxipio0: 28 pins
>       gpio4 at sxipio0: 12 pins
>       gpio5 at sxipio0: 6 pins
>       gpio6 at sxipio0: 12 pins
>       gpio7 at sxipio0: 28 pins
>       gpio8 at sxipio0: 22 pins
>       boot device: lookup '' failed.
>       root on rd0a swap on rd0b dump on rd0b
>       WARNING: clock lost 16848 days
>       WARNING: CHECK AND RESET THE DATE!
>       pmap_fault_fixup: va 00008000 ftype 5 u pte 7ff3802e
>       pmap_fault_fixup: va 00008000 ftype 5 u pte 7ff3802e
>       pmap_fault_fixup: va 00008000 ftype 5 u pte 7ff3802e
>       pmap_fault_fixup: va 00008000 ftype 5 u pte 7ff3802e
>       pmap_fault_fixup: va 00008000 ftype 5 u pte 7ff3802e
>       pmap_fault_fixup: va 00008000 ftype 5 u pte 7ff3802e
>       pmap_fault_fixup: va 00008000 ftype 5 u pte 7ff3802e
>       pmap_fault_fixup: va 00008000 ftype 5 u pte 7ff3802e
>       pmap_fault_fixup: va 00008000 ftype 5 u pte 7ff3802e
>       pmap_fault_fixup: va 00008000 ftype 5 u pte 7ff3802e
>       pmap_fault_fixup: va 00008000 ftype 5 u pte 7ff3802e
>       pmap_fault_fixup: va 00008000 ftype 5 u pte 7ff3802e
>       [ snip similar lines pmap_fault_fixup ...]
>       uvm_fault(0xca4a9130, 8000, 2, 0) -> d
>       Fatal kernel mode data abort: 'Translation Fault (P)'
>       trapframe: 0xcc3cede0
>       DFSR=00002807, DFAR=00008000, spsr=80000113
>       r0 =00008000, r1 =00000fff, r2 =00000000, r3 =0000003f
>       r4 =cc3cf000, r5 =ca47e004, r6 =00000005, r7 =00000000
>       r8 =c0a6a9e8, r9 =c0a6b1a0, r10=c0a6a9e8, r11=cc3cee74
>       r12=00000040, ssp=cc3cee2c, slr=c041048c, pc =c0408d28
> 
>       panic: Fatal abort
> 
> 
> Is it a known issue ?
> 
> 
> Thanks !
> Best
> oc
> 
> 
> -- 
> Olivier Cherrier
> mailto:o...@symacx.com
> 

Reply via email to