Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/arch/arm/sunxi
On Tue, Jan 19, 2021 at 12:35:10AM +0000, Jason R Thorpe wrote:
> Module Name: src
> Committed By: thorpej
> Date: Tue Jan 19 00:35:10 UTC 2021
>
> Modified Files:
> src/sys/arch/arm/sunxi: sunxi_sramc.c
>
> Log Message:
> Use device_compatible_entry / of_search_compatible() rather than matching
> against multiple sets of compatibility strings.
>
>
> To generate a diff of this commit:
> cvs rdiff -u -r1.5 -r1.6 src/sys/arch/arm/sunxi/sunxi_sramc.c
This breaks cubietruck (fdt is: sun7i-a20-cubietruck.dtb):
[ 1.0000000] fclock0 at simplebus2: 25000000 Hz fixed clock (mii_phy_tx)
[ 1.0000000] fclock1 at simplebus2: 125000000 Hz fixed clock (gmac_int_tx)
[ 1.0000000] fclock2 at simplebus2: 24000000 Hz fixed clock (osc24M)
[ 1.0000000] fclock3 at simplebus2: 32768 Hz fixed clock (osc32k)
[ 1.0000000] gtmr0 at simplebus0: Generic Timer
[ 1.0000000] gtmr0: interrupting on GIC irq 27
[ 1.0000000] armgtmr0 at gtmr0: Generic Timer (24000 kHz, virtual)
[ 1.0000030] sun4ia10ccu0 at simplebus1: A20 CCU
[ 1.0000030] sunxinmi0 at simplebus1: NMI
[ 1.0000030] sunxigmacclk0 at simplebus2: GMAC MII/RGMII clock mux
[ 1.0000030] sunxigpio0 at simplebus1: PIO
[ 1.0000030] gpio0 at sunxigpio0: 175 pins
[ 1.0000030] sunxigpio0: interrupting on GIC irq 60
[ 1.0000030] sun4idma0 at simplebus1: DMA controller
[ 1.0000030] sun4idma0: interrupting on GIC irq 59
[ 1.0000030] sunxisramc0 at simplebus1: SRAM Controller
[ 1.0000030] uvm_fault(0x80b92d68, 0, 1) -> e
[ 1.0000030] Fatal kernel mode data abort: 'Translation Fault (S)'
[ 1.0000030] trapframe: 0x80bc8cf0
[ 1.0000030] FSR=00000005, FAR=00000000, spsr=60000353
[ 1.0000030] r0 =92cfd200, r1 =806b0910, r2 =00000000, r3 =00000000
[ 1.0000030] r4 =92a0cd00, r5 =000010c4, r6 =92cfd200, r7 =00000dd0
[ 1.0000030] r8 =806b0910, r9 =0000114c, r10=80634a80, r11=80bc8d94
[ 1.0000030] r12=92cf3988, ssp=80bc8d40, slr=804bc688, pc =80061fac
Stopped in pid 0.0 (system) at netbsd:sunxi_sramc_attach+0x16c: ldr
r2, [r2]
(gdb) list *(sunxi_sramc_attach+0x16c)
0x80061fac is in sunxi_sramc_attach (../../../../arch/arm/sunxi/sunxi_sramc.c:135).
130 if (dce != NULL) {
131 node = kmem_alloc(sizeof(*node), KM_SLEEP);
132 node->phandle = child;
133 node->area = dce->data;
134 TAILQ_INSERT_TAIL(&sc->sc_nodes, node, nodes);
135 aprint_verbose_dev(sc->sc_dev, "area: %s\n",
136 node->area->desc);
137 }
138 }
139 }
With the change backed out it boots fine (dmesg below).
Martin
--8<--
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
2018, 2019, 2020, 2021 The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 9.99.78 (GENERIC) #117: Tue Jan 19 19:14:10 CET 2021
martin%seven-days-to-the-wolves.aprisoft.de@localhost:/work/src/sys/arch/evbarm/compile/GENERIC
total memory = 2045 MB
avail memory = 1989 MB
entropy: no seed from bootloader
timecounter: Timecounters tick every 10.000 msec
Kernelized RAIDframe activated
armfdt0 (root)
simplebus0 at armfdt0: Cubietech Cubietruck
simplebus1 at simplebus0
cpus0 at simplebus0
simplebus2 at simplebus0
simplebus3 at simplebus0
cpu0 at cpus0: Cortex-A7 r0p4 (Cortex V7A core)
cpu0: DC enabled IC enabled WB enabled LABT branch prediction enabled
cpu0: 32KB/32B 2-way L1 VIPT Instruction cache
cpu0: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
cpu0: 256KB/64B 8-way write-through L2 PIPT Unified cache
vfp0 at cpu0: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
cpufreqdt0 at cpu0
cpu1 at cpus0
cpufreqdt1 at cpu1
gic0 at simplebus1: GIC
armgic0 at gic0: Generic Interrupt Controller, 160 sources (150 valid)
armgic0: 16 Priorities, 128 SPIs, 7 PPIs, 15 SGIs
fclock0 at simplebus2: 25000000 Hz fixed clock (mii_phy_tx)
fclock1 at simplebus2: 125000000 Hz fixed clock (gmac_int_tx)
fclock2 at simplebus2: 24000000 Hz fixed clock (osc24M)
fclock3 at simplebus2: 32768 Hz fixed clock (osc32k)
gtmr0 at simplebus0: Generic Timer
gtmr0: interrupting on GIC irq 27
armgtmr0 at gtmr0: Generic Timer (24000 kHz, virtual)
timecounter: Timecounter "armgtmr0" frequency 24000000 Hz quality 500
sun4ia10ccu0 at simplebus1: A20 CCU
sunxinmi0 at simplebus1: NMI
sunxigmacclk0 at simplebus2: GMAC MII/RGMII clock mux
sunxigpio0 at simplebus1: PIO
gpio0 at sunxigpio0: 175 pins
sunxigpio0: interrupting on GIC irq 60
sun4idma0 at simplebus1: DMA controller
sun4idma0: interrupting on GIC irq 59
sunxisramc0 at simplebus1: SRAM Controller
sunxisramc0: area: SRAM A3/A4
sunxisramc0: area: SRAM D
sunxidebe0 at simplebus1: Display Engine Backend (display-backend@1e60000)
sunxidebe1 at simplebus1: Display Engine Backend (display-backend@1e40000)
sunxihdmi0 at simplebus1: HDMI 1.3
sunxitcon0 at simplebus1: LCD/TV timing controller (lcd-controller@1c0c000)
sunxitcon0: tcon unit 0
sunxidebe0: debe unit 0
sunxidebe1: debe unit 1
sunxitcon1 at simplebus1: LCD/TV timing controller (lcd-controller@1c0d000)
sunxitcon1: tcon unit 1
connector0 at simplebus0: HDMI connector
sunxisid0 at simplebus1: Security ID EFUSE
com0 at simplebus1: DesignWare APB UART, no fifo
com0: console
com0: interrupting on GIC irq 33
com1 at simplebus1: DesignWare APB UART, no fifo
com1: interrupting on GIC irq 35
fregulator0 at simplebus0: vcc3v3
fregulator1 at simplebus0: usb0-vbus
fregulator2 at simplebus0: usb1-vbus
fregulator3 at simplebus0: usb2-vbus
fregulator4 at simplebus0: ahci-5v
sunxidep0 at simplebus0: autoconfiguration error: can't activate pipeline 0
sunxidep0: autoconfiguration error: can't activate pipeline 1
fregulator5 at simplebus0: vcc3v0
fregulator6 at simplebus0: vcc5v0
sunxiusbphy0 at simplebus1: USB PHY
sunxitwi0 at simplebus1: Marvell TWSI controller
sunxitwi0: interrupting on GIC irq 39
iic0 at sunxitwi0: I2C bus
axp20x0 at iic0 addr 0x34: AC used, battery present
axp20x0: DCDC2 1400mV
axp20x0: DCDC3 1250mV
axp20x0: LDO2 3000mV, LDO4 3300mV
axp20x0: LDO3 2800mV
axp20x0: RTC supercap charger enabled: 3000mV at 200uA
axp20xreg0 at axp20x0: dcdc2 (vdd-cpu)
axp20xreg1 at axp20x0: dcdc3 (vdd-int-dll)
sunxits0 at simplebus1: Touch Screen Controller
sunxits0: interrupting on GIC irq 61
/soc/display-frontend@1e00000 at simplebus1 not configured
/soc/display-frontend@1e20000 at simplebus1 not configured
mmcpwrseq0 at simplebus0: Simple MMC power sequence provider
awge0 at simplebus1: GMAC
awge0: interrupting on GIC irq 117
awge0: Core version: 00000000
awge0: Ethernet address 02:0e:03:41:63:14
rgephy0 at awge0 phy 1: RTL8211E 1000BASE-T media interface
rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
/soc/spdif@1c21000 at simplebus1 not configured
/spdif-out at simplebus0 not configured
sunximmc0 at simplebus1: SD/MMC controller
sunximmc0: interrupting on GIC irq 64
sunximmc1 at simplebus1: SD/MMC controller
sunximmc1: interrupting on GIC irq 67
motg0 at simplebus1: 'otg' mode not supported
ehci0 at simplebus1: EHCI
ehci0: interrupting on GIC irq 71
ehci0: EHCI version 1.0
ehci0: 1 companion controller, 1 port
usb0 at ehci0: USB revision 2.0
ohci0 at simplebus1: OHCI
ohci0: interrupting on GIC irq 96
ohci0: OHCI version 1.0
usb1 at ohci0: USB revision 1.0
/soc/crypto-engine@1c15000 at simplebus1 not configured
ahcisata0 at simplebus1: SATA
ahcisata0: interrupting on GIC irq 88
ahcisata0: ignoring broken port multiplier support
ahcisata0: AHCI revision 1.10, 1 port, 32 slots, CAP 0x6f24ff80<CCCS,PSC,SSC,PMD,SAM,ISS=0x2=Gen2,SCLO,SAL,SALP,SSS,SSNTF,SNCQ>
atabus0 at ahcisata0 channel 0
ehci1 at simplebus1: EHCI
ehci1: interrupting on GIC irq 72
ehci1: EHCI version 1.0
ehci1: 1 companion controller, 1 port
usb2 at ehci1: USB revision 2.0
ohci1 at simplebus1: OHCI
ohci1: interrupting on GIC irq 97
ohci1: OHCI version 1.0
usb3 at ohci1: USB revision 1.0
sunxiwdt0 at simplebus1: Watchdog
sunxiwdt0: default watchdog period is 16 seconds
sunxirtc0 at simplebus1: RTC
/soc/pwm@1c20e00 at simplebus1 not configured
/soc/ir@1c21800 at simplebus1 not configured
sunxicodec0 at simplebus1: A10 Audio Codec
audio0 at sunxicodec0: playback, capture, full duplex, independent
audio0: slinear_be:16 -> slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for playback
audio0: slinear_be:16 <- slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for recording
spkr0 at audio0: PC Speaker (synthesized)
wsbell at spkr0 not configured
sunxitwi1 at simplebus1: Marvell TWSI controller
sunxitwi1: interrupting on GIC irq 40
iic1 at sunxitwi1: I2C bus
sunxitwi2 at simplebus1: Marvell TWSI controller
sunxitwi2: interrupting on GIC irq 41
iic2 at sunxitwi2: I2C bus
/soc/gpu@1c40000 at simplebus1 not configured
psci0 at simplebus0: PSCI 0.1
armpmu0 at simplebus0: Performance Monitor Unit
gpioleds0 at simplebus0: cubietruck:blue:usr cubietruck:orange:usr cubietruck:white:usr cubietruck:green:usr
ausoc0 at simplebus0: On-board SPDIF
/soc/video-codec@1c0e000 at simplebus1 not configured
sunxitimer0 at simplebus1: Timer
timecounter: Timecounter "Timer 2" frequency 24000000 Hz quality 200
timecounter: Timecounter "LOSC" frequency 32768 Hz quality 150
sunxihstimer0 at simplebus1: High Speed Timer
timecounter: Timecounter "hstimer" frequency 152000000 Hz quality 300
sunxihstimer0: interrupting on GIC irq 113
genfb0 at simplebus3: Simple Framebuffer (1024x768 32-bpp @ 0xbfd00000)
genfb0: framebuffer at 0xbfd00000, size 1024x768, depth 32, stride 4096
wsdisplay0 at genfb0 kbdmux 1: console (default, vt100 emulation)
wsmux1: connecting to wsdisplay0
wsdisplay0: screen 1-3 added (default, vt100 emulation)
ausoc0: autoconfiguration error: couldn't acquire cpu dai on sound node
entropy: WARNING: extracting entropy too early
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
cpu1: Cortex-A7 r0p4 (Cortex V7A core)
cpu1: DC enabled IC enabled WB enabled LABT branch prediction enabled
cpu1: 32KB/32B 2-way L1 VIPT Instruction cache
cpu1: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
cpu1: 256KB/64B 8-way write-through L2 PIPT Unified cache
vfp1 at cpu1: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
cpufreqdt0: rate: 960.000 MHz, 1400000 uV
cpufreqdt1: rate: 960.000 MHz, 1400000 uV
sdmmc0 at sunximmc0
sdmmc1 at sunximmc1
armpmu0: interrupting on GIC irq 152
armpmu0: interrupting on GIC irq 153
uhub0 at usb0: NetBSD (0x0000) EHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1
uhub0: 1 port with 1 removable, self powered
uhub1 at usb2: NetBSD (0x0000) EHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1
uhub1: 1 port with 1 removable, self powered
uhub2 at usb3: NetBSD (0x0000) OHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
uhub2: 1 port with 1 removable, self powered
uhub3 at usb1: NetBSD (0x0000) OHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
uhub3: 1 port with 1 removable, self powered
sdmmc0: SD card status: 4-bit, C6
ld0 at sdmmc0: <0x00:0x0000:USD :0x00:0x00000000:0x0d1>
ld0: 1920 MB, 975 cyl, 64 head, 63 sec, 512 bytes/sect x 3932160 sectors
ahcisata0 port 0: device present, speed: 3.0Gb/s
IPsec: Initialized Security Association Processing.
aes: ARM NEON vpaes
chacha: ARM NEON ChaCha
adiantum: self-test passed
aes_ccm: self-test passed
blake2s: self-test passed
ld0: 4-bit width, High-Speed/SDR25, 50.000 MHz
sdmmc1: 4-bit width, 50.000 MHz
bwfm0 at sdmmc1 function 1
(manufacturer 0x2d0, product 0xa962) at sdmmc1 function 2 not configured
wd0 at atabus0 drive 0
wd0: <WDC WD3200KS-00PFB0>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 298 GB, 620181 cyl, 16 head, 63 sec, 512 bytes/sect x 625142448 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133), NCQ (1 tags)
wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA), NCQ (31 tags)
cgd: self-test aes-xts-256
cgd: self-test aes-xts-512
cgd: self-test aes-cbc-128
cgd: self-test aes-cbc-256
cgd: self-test 3des-cbc-192
cgd: self-test blowfish-cbc-448
cgd: self-test aes-cbc-128 (encblkno8)
cgd: self-tests passed
WARNING: 3 errors while detecting hardware; check system log.
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
kern.module.path=/stand/evbarm/9.99.78/modules
bwfm0: Firmware file default: brcmfmac43362-sdio.bin
bwfm0: Firmware file model-spec: brcmfmac43362-sdio.cubietech,cubietruck.bin
bwfm0: Found Firmware file: brcmfmac43362-sdio.bin
bwfm0: NVRAM file default: brcmfmac43362-sdio.txt
bwfm0: NVRAM file model-spec: brcmfmac43362-sdio.cubietech,cubietruck.txt
bwfm0: Found NVRAM file: brcmfmac43362-sdio.cubietech,cubietruck.txt
sunximmc1: WARNING: driver submitted a command while the controller was busy
sdmmc1: extended I/O error 16, r=40992 p=0xc4cf4e94 l=4 read
bwfm0: CHIPACTIVE
bwfm0: wl0: May 16 2018 23:42:49 version 5.90.244 FWID 01-0
bwfm0: address 98:3b:16:1e:6d:29
entropy: ready
Home |
Main Index |
Thread Index |
Old Index