Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Cortex-A9 cache



Hello,
I'm working on support for the i.mx6sx SoC, which is a single-core cortex-a9.
I have the ccm module complete, but now I'm getting a cache-related KASSERT:
[   1.0000000] total memory = 1024 MB
[   1.0000000] avail memory = 986 MB
[   1.0000000] timecounter: Timecounters tick every 10.000 msec
[   1.0000000] Kernelized RAIDframe activated
[   1.0000000] armfdt0 (root)
[   1.0000000] simplebus0 at armfdt0: UDOO Neo Full
[   1.0000000] simplebus1 at simplebus0
[   1.0000000] cpus0 at simplebus0
[   1.0000000] simplebus2 at simplebus0
[   1.0000000] cpu0 at cpus0: Cortex-A9 r2p10 (Cortex V7A core)
[   1.0000000] cpu0: DC enabled IC enabled WB enabled LABT branch prediction enabled
[   1.0000000] cpu0: L1 32KB/32B 4-way (256 set) VIPT Instruction cache
[   1.0000000] cpu0: L1 32KB/32B 4-way (256 set) write-back-locking-C PIPT Data cache
[   1.0000000] vfp0 at cpu0: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[   1.0000000] cpufreqdt0 at cpu0
[   1.0000000] simplebus3 at simplebus1
[   1.0000000] simplebus4 at simplebus1
[   1.0000000] simplebus5 at simplebus1
[   1.0000000] simplebus6 at simplebus3
[   1.0000000] simplebus7 at simplebus5
[   1.0000000] imx6sxccm0 at simplebus3: Clock Control Module
[...]
[   1.0000000] syscon0 at simplebus3: System Controller Registers
[   1.0000000] syscon1 at simplebus3: System Controller Registers
[   1.0000000] gic0 at simplebus1: GIC
[   1.0000000] armgic0 at gic0: Generic Interrupt Controller, 160 sources (149 v
alid)
[   1.0000000] armgic0: 32 Priorities, 128 SPIs, 5 PPIs, 16 SGIs
[   1.0000000] fclock0 at simplebus0: 32768 Hz fixed clock (ckil)      
[   1.0000000] fclock1 at simplebus0: 24000000 Hz fixed clock (osc)    
[   1.0000000] fclock2 at simplebus0: 0 Hz fixed clock (ipp_di0)       
[   1.0000000] fclock3 at simplebus0: 0 Hz fixed clock (ipp_di1)       
[   1.0000000] fclock4 at simplebus0: 0 Hz fixed clock (anaclk1)       
[   1.0000000] fclock5 at simplebus0: 0 Hz fixed clock (anaclk2)       
[   1.0000000] imxsnvs0 at simplebus3: Secure Non-Volatile Storage     
[   1.0000000] imxsnvs0: id=0x3e, ver=1.2, ip_era=0x4, intg_opt=0x0, eco_rev=0x0
, config_opt=0x0
[   1.0000000] l2cc0 at simplebus1
[   1.0000000] arml2cc0 at l2cc0: ARM PL310 r3p2 L2 Cache Controller (disabled)
[   1.0000000] arml2cc0: cache enabled
[   1.0000000] panic: kernel diagnostic assertion "arm_pcache.dcache_line_size == arm_scache.dcache_line_size" failed: file "/dsk/l1/misc/bouyer/HEAD/clean/src/sys/arch/arm/cortex/pl310.c", line 203 pcache 32 scache 0
[   1.0000000] cpu0: Begin traceback...
[   1.0000000] 0x80caba5c: netbsd:db_panic+0x14
[   1.0000000] 0x80caba7c: netbsd:vpanic+0x114
[   1.0000000] 0x80caba94: netbsd:kern_assert+0x40
[   1.0000000] 0x80cabae4: netbsd:arml2cc_attach+0x468
[   1.0000000] 0x80cabb1c: netbsd:config_attach_internal+0x1d8
[   1.0000000] 0x80cabb64: netbsd:config_found+0xe4
[   1.0000000] 0x80cabbb4: netbsd:l2cc_fdt_attach+0xac
[   1.0000000] 0x80cabbec: netbsd:config_attach_internal+0x1d8
[   1.0000000] 0x80cabc2c: netbsd:config_attach+0x54
[   1.0000000] 0x80cabd9c: netbsd:fdt_scan+0x1c4
[   1.0000000] 0x80cabdbc: netbsd:fdt_rescan+0x58
[   1.0000000] 0x80cabdf4: netbsd:config_attach_internal+0x1d8
[   1.0000000] 0x80cabe3c: netbsd:config_found+0xe4
[   1.0000000] 0x80cabe7c: netbsd:arm_fdt_attach+0xa4
[   1.0000000] 0x80cabeb4: netbsd:config_attach_internal+0x1d8
[   1.0000000] 0x80cabef4: netbsd:config_rootfound+0x74
[   1.0000000] 0x80cabf14: netbsd:cpu_configure+0x68
[   1.0000000] 0x80cabf9c: netbsd:main+0x32c
[   1.0000000] 0x80cabfac: netbsd:kernel_text+0x54
[   1.0000000] cpu0: End traceback... 

Any idea, before I get deeper into this ?

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index