Re: [PATCH v3] drm/rockchip: Refactor the component match logic.

From: Heiko Stuebner
Date: Wed Mar 15 2017 - 13:30:52 EST


Am Mittwoch, 15. März 2017, 18:20:47 CET schrieb Jeffy Chen:
> Currently we are adding all components from the dts, if one of their
> drivers been disabled, we would not be able to bring up others.
>
> Refactor component match logic, follow exynos drm.
>
> Signed-off-by: Jeffy Chen <jeffy.chen@xxxxxxxxxxxxxx>
> Reviewed-by: Andrzej Hajda <a.hajda@xxxxxxxxxxx>

This reliably produces null pointer dereference errors in
__platform_driver_register called from rockchip_drm_init
on at least rk3036 and rk3288 (probably more) when applied on top of
Linus' tree from today. Log attached and Rockchip drm compiled as module.

I'm currently dug into other areas, so hadn't have time to investigate further
yet.


Heiko^C
U-Boot SPL 2016.11-01442-g5699f71-dirty (Nov 29 2016 - 23:23:39)


U-Boot 2016.11-01442-g5699f71-dirty (Nov 29 2016 - 23:23:39 +0100)

Model: Firefly-RK3288
DRAM: 2 GiB
MMC: dwmmc@ff0c0000: 0, dwmmc@ff0f0000: 1
Card did not respond to voltage select!
*** Warning - MMC init failed, using default environment

In: serial
Out: serial
Err: serial
Net:
Warning: ethernet@ff290000 (eth0) using random MAC address - ca:ff:bf:e6:3b:7d
eth0: ethernet@ff290000
Hit any key to stop autoboot: 2  1  0
ethernet@ff290000 Waiting for PHY auto negotiation to complete..... done
Speed: 100, full duplex
BOOTP broadcast 1
DHCP client bound to address 192.168.140.51 (15 ms)
Using ethernet@ff290000 device
TFTP from server 192.168.140.1; our IP address is 192.168.140.51
Filename 'hstuebner/firefly.vmlinuz'.
Load address: 0x4000000
Loading: *#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
##############################################
2.6 MiB/s
done
Bytes transferred = 7350967 (702ab7 hex)
## Loading kernel from FIT Image at 04000000 ...
Using 'conf@1' configuration
Trying 'kernel@1' kernel subimage
Description: Mainline kernel
Type: Kernel Image
Compression: uncompressed
Data Start: 0x040000e4
Data Size: 7311440 Bytes = 7 MiB
Architecture: ARM
OS: Linux
Load Address: 0x00280000
Entry Point: 0x00280000
Verifying Hash Integrity ... OK
## Loading fdt from FIT Image at 04000000 ...
Using 'conf@1' configuration
Trying 'fdt@1' fdt subimage
Description: RK3288-Firefly
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x046f91d8
Data Size: 37834 Bytes = 36.9 KiB
Architecture: ARM
Verifying Hash Integrity ... OK
Booting using the fdt blob at 0x46f91d8
Loading Kernel Image ... OK
Loading Device Tree to 0fff3000, end 0ffff3c9 ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x500
[ 0.000000] Linux version 4.11.0-rc2-01650-gaa6c2d83ac0f-dirty (hstuebner@phil) (gcc version 6.2.1 20161124 (Debian 6.2.1-5) ) #234 SMP Wed Mar 15 17:42:52 CET 2017
[ 0.000000] CPU: ARMv7 Processor [410fc0d1] revision 1 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Firefly-RK3288
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 64 MiB at 0x7c000000
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 16 pages/cpu @eef98000 s34380 r8192 d22964 u65536
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 522752
[ 0.000000] Kernel command line: earlyprintk console=ttyS2,115200n8 init=/sbin/init ip=dhcp nfsroot=192.168.140.1:/home/devel/nfs/rootfs-firefly root=/dev/nfs rw noinitrd
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 1994840K/2097152K available (10240K kernel code, 1192K rwdata, 4012K rodata, 2048K init, 535K bss, 36776K reserved, 65536K cma-reserved, 1245184K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0208000 - 0xc0d00000 (11232 kB)
[ 0.000000] .init : 0xc1200000 - 0xc1400000 (2048 kB)
[ 0.000000] .data : 0xc1400000 - 0xc152a1a0 (1193 kB)
[ 0.000000] .bss : 0xc152c000 - 0xc15b1fa8 ( 536 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU debugfs-based tracing is enabled.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=4.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=4
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000022] Switching to timer-based delay loop, resolution 41ns
[ 0.004450] Console: colour dummy device 80x30
[ 0.004482] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.004499] pid_max: default: 32768 minimum: 301
[ 0.004587] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.004600] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.005156] CPU: Testing write buffer coherency: ok
[ 0.005388] CPU0: thread -1, cpu 0, socket 5, mpidr 80000500
[ 0.005795] Setting up static identity map for 0x300000 - 0x300098
[ 0.010148] EFI services will not be available.
[ 0.010411] smp: Bringing up secondary CPUs ...
[ 0.011973] CPU1: thread -1, cpu 1, socket 5, mpidr 80000501
[ 0.013620] CPU2: thread -1, cpu 2, socket 5, mpidr 80000502
[ 0.015280] CPU3: thread -1, cpu 3, socket 5, mpidr 80000503
[ 0.015368] smp: Brought up 1 node, 4 CPUs
[ 0.015392] SMP: Total of 4 processors activated (192.00 BogoMIPS).
[ 0.015400] CPU: All CPU(s) started in SVC mode.
[ 0.016711] devtmpfs: initialized
[ 0.026893] VFP support v0.3: implementor 41 architecture 3 part 30 variant d rev 0
[ 0.027274] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.027295] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.029086] pinctrl core: initialized pinctrl subsystem
[ 0.031047] NET: Registered protocol family 16
[ 0.033119] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.035478] cpuidle: using governor menu
[ 0.036168] No ATAGs?
[ 0.036290] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.036305] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.038356] Serial: AMBA PL011 UART driver
[ 0.098241] vcc_5v: supplied by vcc_sys
[ 0.098724] vcc_host_5v: supplied by vcc_5v
[ 0.099203] vcc_otg_5v: supplied by vcc_5v
[ 0.103368] iommu: Adding device ff930000.vop to group 0
[ 0.103451] iommu: Adding device ff940000.vop to group 1
[ 0.104245] vgaarb: loaded
[ 0.105150] SCSI subsystem initialized
[ 0.105628] usbcore: registered new interface driver usbfs
[ 0.105702] usbcore: registered new interface driver hub
[ 0.105770] usbcore: registered new device driver usb
[ 0.107490] pps_core: LinuxPPS API ver. 1 registered
[ 0.107500] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@xxxxxxxx>
[ 0.107523] PTP clock support registered
[ 0.107739] EDAC MC: Ver: 3.0.0
[ 0.110150] clocksource: Switched to clocksource arch_sys_counter
[ 0.120577] NET: Registered protocol family 2
[ 0.121147] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.121239] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.121429] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.121518] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.121566] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.121729] NET: Registered protocol family 1
[ 0.122050] RPC: Registered named UNIX socket transport module.
[ 0.122063] RPC: Registered udp transport module.
[ 0.122071] RPC: Registered tcp transport module.
[ 0.122079] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.122957] hw perfevents: enabled with armv7_cortex_a12 PMU driver, 7 counters available
[ 0.125219] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[ 0.134113] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.134885] NFS: Registering the id_resolver key type
[ 0.134912] Key type id_resolver registered
[ 0.134922] Key type id_legacy registered
[ 0.134969] ntfs: driver 2.1.32 [Flags: R/O].
[ 0.136607] bounce: pool size: 64 pages
[ 0.136658] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[ 0.136671] io scheduler noop registered
[ 0.136680] io scheduler deadline registered
[ 0.136872] io scheduler cfq registered (default)
[ 0.136883] io scheduler mq-deadline registered
[ 0.164617] dma-pl330 ff250000.dma-controller: Loaded driver for PL330 DMAC-241330
[ 0.164637] dma-pl330 ff250000.dma-controller: DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16
[ 0.165379] dma-pl330 ffb20000.dma-controller: Loaded driver for PL330 DMAC-241330
[ 0.165397] dma-pl330 ffb20000.dma-controller: DBUFF-64x8bytes Num_Chans-5 Num_Peri-6 Num_Events-10
[ 0.226205] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 0.228541] ff180000.serial: ttyS0 at MMIO 0xff180000 (irq = 38, base_baud = 1500000) is a 16550A
[ 0.229514] ff190000.serial: ttyS1 at MMIO 0xff190000 (irq = 39, base_baud = 1500000) is a 16550A
[ 0.230488] ff690000.serial: ttyS2 at MMIO 0xff690000 (irq = 40, base_baud = 1500000) is a 16550A
[ 0.997020] console [ttyS2] enabled
[ 1.001888] ff1b0000.serial: ttyS3 at MMIO 0xff1b0000 (irq = 41, base_baud = 1500000) is a 16550A
[ 1.013557] SuperH (H)SCI(F) driver initialized
[ 1.019867] msm_serial: driver initialized
[ 1.024711] STMicroelectronics ASC driver initialized
[ 1.051599] brd: module loaded
[ 1.062784] loop: module loaded
[ 1.076450] libphy: Fixed MDIO Bus: probed
[ 1.082323] CAN device driver interface
[ 1.087742] bgmac_bcma: Broadcom 47xx GBit MAC driver loaded
[ 1.095796] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[ 1.102341] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 1.109028] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[ 1.116827] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 1.126214] rk_gmac-dwmac ff290000.ethernet: PTP uses main clock
[ 1.133002] rk_gmac-dwmac ff290000.ethernet: phy regulator is not available yet, deferred probing
[ 1.145403] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
[ 1.153754] usbcore: registered new interface driver pegasus
[ 1.160153] usbcore: registered new interface driver asix
[ 1.166240] usbcore: registered new interface driver ax88179_178a
[ 1.173113] usbcore: registered new interface driver cdc_ether
[ 1.179687] usbcore: registered new interface driver smsc75xx
[ 1.186189] usbcore: registered new interface driver smsc95xx
[ 1.192669] usbcore: registered new interface driver net1080
[ 1.199033] usbcore: registered new interface driver cdc_subset
[ 1.205711] usbcore: registered new interface driver zaurus
[ 1.212024] usbcore: registered new interface driver cdc_ncm
[ 1.220361] dwc2 ff540000.usb: ff540000.usb supply vusb_d not found, using dummy regulator
[ 1.229654] dwc2 ff540000.usb: ff540000.usb supply vusb_a not found, using dummy regulator
[ 1.370334] dwc2 ff540000.usb: DWC OTG Controller
[ 1.375621] dwc2 ff540000.usb: new USB bus registered, assigned bus number 1
[ 1.383558] dwc2 ff540000.usb: irq 45, io mem 0xff540000
[ 1.390367] hub 1-0:1.0: USB hub found
[ 1.394601] hub 1-0:1.0: 1 port detected
[ 1.399513] dwc2 ff580000.usb: ff580000.usb supply vusb_d not found, using dummy regulator
[ 1.408854] dwc2 ff580000.usb: ff580000.usb supply vusb_a not found, using dummy regulator
[ 1.780194] dwc2 ff580000.usb: dwc2_check_param_tx_fifo_sizes: Invalid parameter g-tx-fifo-size, setting to default average
[ 1.792691] dwc2 ff580000.usb: EPs: 10, dedicated fifos, 972 entries in SPRAM
[ 1.801103] dwc2 ff580000.usb: DWC OTG Controller
[ 1.806396] dwc2 ff580000.usb: new USB bus registered, assigned bus number 2
[ 1.814332] dwc2 ff580000.usb: irq 46, io mem 0xff580000
[ 1.820342] usb 1-1: new high-speed USB device number 2 using dwc2
[ 1.828084] hub 2-0:1.0: USB hub found
[ 1.832342] hub 2-0:1.0: 1 port detected
[ 1.837756] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.845081] ehci-pci: EHCI PCI platform driver
[ 1.850099] ehci-platform: EHCI generic platform driver
[ 1.856221] ehci-orion: EHCI orion driver
[ 1.860901] SPEAr-ehci: EHCI SPEAr driver
[ 1.865567] ehci-st: EHCI STMicroelectronics driver
[ 1.871208] ehci-exynos: EHCI EXYNOS driver
[ 1.876097] ehci-atmel: EHCI Atmel driver
[ 1.880778] tegra-ehci: Tegra EHCI driver
[ 1.885470] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.892404] ohci-pci: OHCI PCI platform driver
[ 1.897425] ohci-platform: OHCI generic platform driver
[ 1.903506] ohci-omap3: OHCI OMAP3 driver
[ 1.908163] SPEAr-ohci: OHCI SPEAr driver
[ 1.912843] ohci-st: OHCI STMicroelectronics driver
[ 1.918477] ohci-atmel: OHCI Atmel driver
[ 1.923966] usbcore: registered new interface driver usb-storage
[ 1.936108] i2c /dev entries driver
[ 1.942266] rk3x-i2c ff140000.i2c: Initialized RK3xxx I2C bus at f0a87000
[ 1.950532] rk3x-i2c ff160000.i2c: Initialized RK3xxx I2C bus at f0a89000
[ 1.958764] rk3x-i2c ff170000.i2c: Initialized RK3xxx I2C bus at f0a8b000
[ 1.967534] fan53555-regulator 0-0040: FAN53555 Option[8] Rev[1] Detected!
[ 1.975311] fan53555-reg: supplied by vcc_sys
[ 1.982494] fan53555-regulator 0-0041: FAN53555 Option[8] Rev[1] Detected!
[ 1.990263] fan53555-reg: supplied by vcc_sys
[ 1.997099] REG1: supplied by vcc_sys
[ 2.002139] REG2: supplied by vcc_sys
[ 2.007109] REG3: supplied by vcc_sys
[ 2.012161] REG4: supplied by vcc_sys
[ 2.017173] REG5: supplied by vcc_sys
[ 2.022198] REG6: supplied by vcc_sys
[ 2.027335] REG7: supplied by vcc_sys
[ 2.031780] vcca_18: Bringing 3300000uV into 1800000-1800000uV
[ 2.039443] REG8: supplied by vcc_sys
[ 2.044315] REG9: supplied by vcc_sys
[ 2.049148] REG10: supplied by vcc_20
[ 2.054243] REG11: supplied by vcc_20
[ 2.059302] REG12: supplied by vcc_20
[ 2.064592] rk3x-i2c ff650000.i2c: Initialized RK3xxx I2C bus at f0a8d000
[ 2.072811] rk3x-i2c ff660000.i2c: Initialized RK3xxx I2C bus at f0a8f000
[ 2.083863] vcc28_dvp: supplied by vcc_io
[ 2.088531] dovdd_1v8: supplied by vcc28_dvp
[ 2.093487] vcc_flash: supplied by vcc_io
[ 2.099479] random: fast init done
[ 2.107969] rockchip-thermal ff280000.tsadc: Missing rockchip,grf property
[ 2.123097] hub 1-1:1.0: USB hub found
[ 2.127617] hub 1-1:1.0: 4 ports detected
[ 2.133069] cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 500000 KHz
[ 2.141536] cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 600000 KHz
[ 2.153392] sdhci: Secure Digital Host Controller Interface driver
[ 2.160315] sdhci: Copyright(c) Pierre Ossman
[ 2.165777] Synopsys Designware Multimedia Card Interface Driver
[ 2.172965] dwmmc_rockchip ff0c0000.dwmmc: IDMAC supports 32-bit address mode.
[ 2.181072] dwmmc_rockchip ff0c0000.dwmmc: Using internal DMA controller.
[ 2.188655] dwmmc_rockchip ff0c0000.dwmmc: Version ID is 270a
[ 2.195091] dwmmc_rockchip ff0c0000.dwmmc: DW MMC controller at irq 30,32 bit host data width,256 deep fifo
[ 2.206005] vcc_sd: supplied by vcc_io
[ 2.360189] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[ 2.400246] dwmmc_rockchip ff0c0000.dwmmc: 1 slots initialized
[ 2.408573] dwmmc_rockchip ff0d0000.dwmmc: IDMAC supports 32-bit address mode.
[ 2.416765] dwmmc_rockchip ff0d0000.dwmmc: Using internal DMA controller.
[ 2.424401] dwmmc_rockchip ff0d0000.dwmmc: Version ID is 270a
[ 2.430906] dwmmc_rockchip ff0d0000.dwmmc: DW MMC controller at irq 31,32 bit host data width,256 deep fifo
[ 2.442211] dwmmc_rockchip ff0d0000.dwmmc: Failed getting OCR mask: 0
[ 2.449484] mmc_host mmc1: card is non-removable.
[ 2.454952] dwmmc_rockchip ff0d0000.dwmmc: could not set regulator OCR (-22)
[ 2.462888] dwmmc_rockchip ff0d0000.dwmmc: failed to enable vmmc regulator
[ 2.500172] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[ 2.540163] dwmmc_rockchip ff0d0000.dwmmc: 1 slots initialized
[ 2.547006] dwmmc_rockchip ff0f0000.dwmmc: IDMAC supports 32-bit address mode.
[ 2.555109] dwmmc_rockchip ff0f0000.dwmmc: Using internal DMA controller.
[ 2.562697] dwmmc_rockchip ff0f0000.dwmmc: Version ID is 270a
[ 2.569130] dwmmc_rockchip ff0f0000.dwmmc: DW MMC controller at irq 32,32 bit host data width,256 deep fifo
[ 2.581287] mmc_host mmc2: card is non-removable.
[ 2.597800] dwmmc_rockchip ff0d0000.dwmmc: could not set regulator OCR (-22)
[ 2.605693] dwmmc_rockchip ff0d0000.dwmmc: failed to enable vmmc regulator
[ 2.613436] mmc_host mmc2: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[ 2.650173] mmc_host mmc1: Bus speed (slot 0) = 300000Hz (slot req 300000Hz, actual 300000HZ div = 0)
[ 2.660564] dwmmc_rockchip ff0f0000.dwmmc: 1 slots initialized
[ 2.667626] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.675948] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.682934] usbcore: registered new interface driver usbhid
[ 2.689150] usbhid: USB HID core driver
[ 2.696286] NET: Registered protocol family 10
[ 2.701818] Segment Routing with IPv6
[ 2.705934] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 2.712825] NET: Registered protocol family 17
[ 2.717788] can: controller area network core (rev 20120528 abi 9)
[ 2.722315] dwmmc_rockchip ff0d0000.dwmmc: could not set regulator OCR (-22)
[ 2.722318] dwmmc_rockchip ff0d0000.dwmmc: failed to enable vmmc regulator
[ 2.740327] NET: Registered protocol family 29
[ 2.745285] can: raw protocol (rev 20120528)
[ 2.750050] can: broadcast manager protocol (rev 20161123 t)
[ 2.754020] mmc_host mmc2: Bus speed (slot 0) = 50000000Hz (slot req 52000000Hz, actual 50000000HZ div = 0)
[ 2.754138] mmc2: new high speed MMC card at address 0001
[ 2.754354] mmcblk2: mmc2:0001 AWMB3R 14.6 GiB
[ 2.754438] mmcblk2boot0: mmc2:0001 AWMB3R partition 1 4.00 MiB
[ 2.754519] mmcblk2boot1: mmc2:0001 AWMB3R partition 2 4.00 MiB
[ 2.754599] mmcblk2rpmb: mmc2:0001 AWMB3R partition 3 4.00 MiB
[ 2.760175] mmc_host mmc1: Bus speed (slot 0) = 200000Hz (slot req 200000Hz, actual 200000HZ div = 0)
[ 2.808375] can: netlink gateway (rev 20130117) max_hops=1
[ 2.814670] Key type dns_resolver registered
[ 2.819519] ThumbEE CPU extension supported.
[ 2.823824] dwmmc_rockchip ff0d0000.dwmmc: could not set regulator OCR (-22)
[ 2.823827] dwmmc_rockchip ff0d0000.dwmmc: failed to enable vmmc regulator
[ 2.839842] Registering SWP/SWPB emulation handler
[ 2.849885] rk_gmac-dwmac ff290000.ethernet: PTP uses main clock
[ 2.850180] mmc_host mmc1: Bus speed (slot 0) = 187500Hz (slot req 100000Hz, actual 93750HZ div = 1)
[ 2.866859] rk_gmac-dwmac ff290000.ethernet: clock input or output? (input).
[ 2.874729] rk_gmac-dwmac ff290000.ethernet: TX delay(0x30).
[ 2.881056] rk_gmac-dwmac ff290000.ethernet: RX delay(0x10).
[ 2.887437] rk_gmac-dwmac ff290000.ethernet: clock input from PHY
[ 2.899255] rk_gmac-dwmac ff290000.ethernet: init for RGMII
[ 2.905625] stmmac - user ID: 0x10, Synopsys ID: 0x35
[ 2.911280] rk_gmac-dwmac ff290000.ethernet: Ring mode enabled
[ 2.917795] rk_gmac-dwmac ff290000.ethernet: DMA HW capability register supported
[ 2.926163] rk_gmac-dwmac ff290000.ethernet: Normal descriptors
[ 2.932779] rk_gmac-dwmac ff290000.ethernet: RX Checksum Offload Engine supported
[ 2.941145] rk_gmac-dwmac ff290000.ethernet: COE Type 2
[ 2.946980] rk_gmac-dwmac ff290000.ethernet: TX Checksum insertion supported
[ 2.954858] rk_gmac-dwmac ff290000.ethernet: Wake-Up On Lan supported
[ 2.962081] rk_gmac-dwmac ff290000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 4.097066] libphy: stmmac: probed
[ 4.100872] rk_gmac-dwmac ff290000.ethernet (unnamed net_device) (uninitialized): PHY ID 001cc915 at 0 IRQ POLL (stmmac-0:00) active
[ 4.114189] rk_gmac-dwmac ff290000.ethernet (unnamed net_device) (uninitialized): PHY ID 001cc915 at 1 IRQ POLL (stmmac-0:01)
[ 4.128658] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 4.136533] hctosys: unable to open rtc device (rtc0)
[ 4.142991] rk_gmac-dwmac ff290000.ethernet eth0: device MAC address ca:ff:bf:e6:3b:7d
[ 4.152161] RTL8211E Gigabit Ethernet stmmac-0:00: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=stmmac-0:00, irq=-1)
[ 4.268274] rk_gmac-dwmac ff290000.ethernet eth0: PTP not supported by HW
[ 4.275964] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 8.411305] rk_gmac-dwmac ff290000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 8.421174] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 8.450439] Sending DHCP requests ., OK
[ 8.534501] IP-Config: Got DHCP answer from 192.168.140.1, my address is 192.168.140.51
[ 8.543476] IP-Config: Complete:
[ 8.547091] device=eth0, hwaddr=ca:ff:bf:e6:3b:7d, ipaddr=192.168.140.51, mask=255.255.255.0, gw=192.168.140.1
[ 8.558775] host=192.168.140.51, domain=, nis-domain=(none)
[ 8.565507] bootserver=192.168.140.1, rootserver=192.168.140.1, rootpath= nameserver0=192.168.140.1
[ 8.576887] dovdd_1v8: disabling
[ 8.580509] vcc_sd: disabling
[ 8.584374] ttyS2 - failed to request DMA
[ 8.602816] VFS: Mounted root (nfs filesystem) on device 0:13.
[ 8.610234] devtmpfs: mounted
[ 8.615508] Freeing unused kernel memory: 2048K
[ 8.893368] systemd[1]: System time before build time, advancing clock.
[ 9.052511] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[ 9.073857] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 9 (stretch)!

[ 9.572630] systemd[1]: Reached target Remote File Systems.
[ OK ] Reached target Remote File Systems.
[ 9.610498] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Started Dispatch Password Requests to Console Directory Watch.
[ 9.650375] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ 9.680485] systemd[1]: Created slice System Slice.
[ OK ] Created slice System Slice.
[ 9.712437] systemd[1]: Mounting Debug File System...
Mounting Debug File System...
[ 9.740988] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ OK ] Started Forward Password Requests to Wall Directory Watch.
[ 9.780654] systemd[1]: Listening on Journal Socket (/dev/log).
[ OK ] Listening on Journal Socket (/dev/log).
[ 9.810303] systemd[1]: Reached target Paths.
[ OK ] Reached target Paths.
[ OK ] Reached target Swap.
[ OK ] Listening on Syslog Socket.
[ OK ] Listening on udev Kernel Socket.
[ OK ] Listening on udev Control Socket.
[ OK ] Created slice system-getty.slice.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ OK ] Reached target Encrypted Volumes.
[ OK ] Listening on Journal Socket.
Starting Remount Root and Kernel File Systems...
Starting Create list of required stâce nodes for the current kernel...
Starting Load Kernel Modules...
[ OK ] Reached target Slices.
[ OK ] Reached target Sockets.
Starting Journal Service...
[ OK ] Mounted Debug File System.
[ OK ] Started Remount Root and Kernel File Systems.
[ OK ] Started Create list of required staâvice nodes for the current kernel.
[ OK ] Started Load Kernel Modules.
[ OK ] Started Journal Service.
Mounting Configuration File System...
Starting Apply Kernel Variables...
Starting Create Static Device Nodes in /dev...
Starting udev Coldplug all Devices...
Starting Flush Journal to Persistent Storage...
Starting Load/Save Random Seed...
[ OK ] Mounted Configuration File System.
[ OK ] Started Apply Kernel Variables.
[ OK ] Started Create Static Device Nodes in /dev.
[ OK ] Started Load/Save Random Seed.
Starting udev Kernel Device Manager...
[ OK ] Reached target Local File Systems (Pre).
[ OK ] Reached target Local File Systems.
Starting Raise network interfaces...
[ OK ] Started udev Kernel Device Manager.
[ 10.923711] systemd-journald[127]: Received request to flush runtime journal from PID 1
[ OK ] Started Flush Journal to Persistent Storage.
[ OK ] Started udev Coldplug all Devices.
Starting Create Volatile Files and Directories...
[ 11.076090] Unable to handle kernel NULL pointer dereference at virtual address 0000001c
[ 11.085153] pgd = ed624000
[ 11.088174] [0000001c] *pgd=00000000
[ 11.092187] Internal error: Oops: 805 [#1] SMP ARM
[ 11.097537] Modules linked in: spi_rockchip rockchipdrm(+) dw_hdmi analogix_dp
[ 11.105619] CPU: 3 PID: 194 Comm: systemd-udevd Not tainted 4.11.0-rc2-01650-gaa6c2d83ac0f-dirty #234
[ 11.109817] rtc-hym8563 0-0051: no valid clock/calendar values available
[ 11.110577] rtc-hym8563 0-0051: rtc core: registered hym8563 as rtc0
[ 11.130498] Hardware name: Rockchip (Device Tree)
[ 11.135752] task: ed15ee00 task.stack: ed270000
[ 11.140815] PC is at __platform_driver_register+0x8/0x40
[ 11.146763] LR is at rockchip_drm_init+0x24/0x1000 [rockchipdrm]
[ 11.153476] pc : [<c0814940>] lr : [<bf028024>] psr: 80070113
[ 11.153476] sp : ed271de0 ip : c14fe1d8 fp : 00000024
[ 11.153477] r10: 00000000 r9 : 00000001 r8 : bf02006c
[ 11.153483] r7 : bf02006c r6 : 00000000 r5 : bf024500 r4 : 00000002
[ 11.153484] r3 : 00000000 r2 : ef5c8200 r1 : bf024500 r0 : 00000000
[ 11.153487] Flags: Nzcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
[ 11.153489] Control: 10c5387d Table: 2d62406a DAC: 00000051
[ 11.153492] Process systemd-udevd (pid: 194, stack limit = 0xed270220)
[ 11.153493] Stack: (0xed271de0 to 0xed272000)
[ 11.153497] 1de0: ffffe000 bf028000 00000000 ed53d040 ed53d124 c0301e9c ee15bec0 8020001f
[ 11.153501] 1e00: ee791018 bf024548 00000000 ed213240 ee164800 8040001b ed271e38 00000f9f
[ 11.153504] 1e20: ee001e80 ed271e38 00000f9f ee001f00 ed271e50 0000142d bf024500 00000001
[ 11.153507] 1e40: bf024500 00000001 bf024500 ed53d124 00000001 c03d3974 00000001 ed271f54
[ 11.153511] 1e60: 00000001 ed271f54 00000001 bf024500 ed53d100 c03b560c bf02450c 00007fff
[ 11.153514] 1e80: bf024500 c03b28a0 00000001 00000028 bf024548 ed264e8c ed271f54 bf024630
[ 11.153518] 1ea0: c109eea4 c0d0829c c0f94c90 c0f94cf4 c0f94c9c bf0246bc bf022e66 c0420001
[ 11.153521] 1ec0: 0001655c 00000000 c0427524 bf020024 00000007 bf02005c 00000001 00000000
[ 11.153524] 1ee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 11.153527] 1f00: 00000000 00000000 7fffffff 00000000 00000010 b6e74bb8 0000017b c0307e44
[ 11.153531] 1f20: ed270000 00000080 7f5d6ab0 c03b5cb8 7fffffff 00000000 00000003 00000000
[ 11.153534] 1f40: 00000000 f0c6a000 0001655c 00000000 00000000 f0c6a000 0001655c f0c7fecc
[ 11.153537] 1f60: f0c7fd24 f0c79964 0000e000 0000ec60 00000000 00000000 00000000 000076a0
[ 11.153540] 1f80: 00000027 00000028 0000001f 00000000 00000014 00000000 7f5e45e8 00000000
[ 11.153544] 1fa0: b22e3000 c0307e1c 7f5e45e8 00000000 00000010 b6e74bb8 00000000 b6e75398
[ 11.153547] 1fc0: 7f5e45e8 00000000 b22e3000 0000017b 00020000 7f5c46a0 00000000 7f5d6ab0
[ 11.153551] 1fe0: bec378f8 bec378e8 b6e6eaeb b6d7ef22 60070030 00000010 8a8f8f05 ad92923f
[ 11.153576] [<c0814940>] (__platform_driver_register) from [<bf028024>] (rockchip_drm_init+0x24/0x1000 [rockchipdrm])
[ 11.153594] [<bf028024>] (rockchip_drm_init [rockchipdrm]) from [<c0301e9c>] (do_one_initcall+0x44/0x168)
[ 11.153601] [<c0301e9c>] (do_one_initcall) from [<c03d3974>] (do_init_module+0x60/0x1f0)
[ 11.153608] [<c03d3974>] (do_init_module) from [<c03b560c>] (load_module+0x1da8/0x2240)
[ 11.153612] [<c03b560c>] (load_module) from [<c03b5cb8>] (SyS_finit_module+0xa8/0xb8)
[ 11.153617] [<c03b5cb8>] (SyS_finit_module) from [<c0307e1c>] (__sys_trace_return+0x0/0x10)
[ 11.153621] Code: e8bd4010 eaffe7be e59fc034 e1a03000 (e580101c)
[ 11.153649] ---[ end trace a1afd1f20022f94d ]---
[ 11.191445] rk3288-crypto ff8a0000.cypto-controller: Crypto Accelerator successfully registered
[ OK ] Found device /dev/ttyS2.
[ OK ] Started Create Volatile Files and Directories.
Starting Network Time Synchronization...
Starting Update UTMP about System Boot/Shutdown...
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Started Network Time Synchronization.
[ OK ] Started Raise network interfaces.
[ OK ] Reached target Network.
[ OK ] Reached target System Time Synchronized.
[ OK ] Reached target Network is Online.
[ OK ] Reached target System Initialization.
[ OK ] Started Daily apt activities.
[ OK ] Reached target Basic System.
Starting System Logging Service...
Starting /etc/rc.local Compatibility...
Starting getty on tty2-tty6 if dbus and logind are not available...
Starting LSB: Load kernel modules needed to enable cpufreq scaling...
[ OK ] Started Regular background program processing daemon.
Starting Permit User Sessions...
Starting LSB: exim Mail Transport Agent...
[ OK ] Started boardfarm-checkin.service.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Reached target Timers.
[ OK ] Started System Logging Service.
[ OK ] Started /etc/rc.local Compatibility.
[ OK ] Started Permit User Sessions.
[ OK ] Started Getty on tty3.
[ OK ] Started Getty on tty2.
[ OK ] Started Serial Getty on ttyS2.
[ OK ] Started Getty on tty1.
[ OK ] Started Getty on tty4.
[ OK ] Started Getty on tty5.
[ OK ] Started LSB: Load kernel modules needed to enable cpufreq scaling.
[ OK ] Started Getty on tty6.
Starting LSB: set CPUFreq kernel parameters...
[ OK ] Started getty on tty2-tty6 if dbus and logind are not available.
[ OK ] Reached target Login Prompts.
[ OK ] Started LSB: set CPUFreq kernel parameters.
[ OK ] Started LSB: exim Mail Transport Agent.
[ OK ] Reached target Multi-User System.
[ OK ] Reached target Graphical Interface.
Starting Update UTMP about System Runlevel Changes...
[ OK ] Started Update UTMP about System Runlevel Changes.

Debian GNU/Linux 9 192.168.140.51 ttyS2

192 login: root
Password:
Last login: Wed Mar 15 16:45:55 UTC 2017 on ttyS2

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@192:~# halt
[ OK ] Stopped target Timers.
[ OK ] Stopped Daily Cleanup of Temporary Directories.
[ OK ] Reached target Unmount All Filesystems. Stopping Serial Getty on ttyS2...
[ OK ] Stopped Getty on tty2.
[ OK ] Stopped System Logging Service.
[ OK ] Stopped Serial Getty on ttyS2.
[ OK ] Stopped Getty on tty1.
[ OK ] Stopped Getty on tty4.
[ OK ] Stopped Getty on tty5.
[ OK ] Stopped Getty on tty6.
[ OK ] Removed slice system-serial\x2dgetty.slice.
[ OK ] Stopped /etc/rc.local Compatibility.
Stopping Permit User Sessions...
[ OK ] Removed slice system-getty.slice.
[ OK ] Stopped LSB: set CPUFreq kernel parameters.
[ OK ] Stopped LSB: exim Mail Transport Agent.
[ OK ] Stopped Permit User Sessions.
[ OK ] Stopped target System Time Synchronized.
[ OK ] Stopped target Network is Online.
[ OK ] Stopped target Network.
Stopping Raise network interfaces...
Stopping LSB: Load kernel modules needed to enable cpufreq scaling...
[ OK ] Stopped LSB: Load kernel modules needed to enable cpufreq scaling.
[ OK ] Stopped target Remote File Systems.
[ OK ] Stopped target Basic System.
[ OK ] Stopped target Sockets.
[ OK ] Closed Syslog Socket.
[ OK ] Stopped target System Initialization.
Stopping Update UTMP about System Boot/Shutdown...
Stopping Load/Save Random Seed...
[ OK ] Stopped target Swap.
[ OK ] Stopped target Encrypted Volumes.
Stopping Network Time Synchronization...
[ OK ] Stopped target Paths.
[ OK ] Stopped Forward Password Requests to Wall Directory Watch.
[ OK ] Stopped Dispatch Password Requests to Console Directory Watch.
[ OK ] Stopped target Slices.
[ OK ] Stopped Network Time Synchronization.
[ OK ] Stopped Load/Save Random Seed.
[ OK ] Stopped Update UTMP about System Boot/Shutdown.
[ OK ] Stopped Create Volatile Files and Directories.
[ OK ] Stopped Raise network interfaces.
[ OK ] Stopped Apply Kernel Variables.
[ OK ] Stopped Load Kernel Modules.
[ OK ] Stopped target Local File Systems.
[ OK ] Stopped target Local File Systems (Pre).
[ OK ] Stopped Remount Root and Kernel File Systems.
[ OK ] Stopped Create Static Device Nodes in /dev.
[ OK ] Reached target Shutdown.
[ 24.932763] systemd-shutdow: 20 output lines suppressed due to ratelimiting
[ 24.975233] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[ 24.993980] systemd-journald[127]: Received SIGTERM from PID 1 (systemd-shutdow).
[ 55.297457] systemd-udevd[142]: giving up waiting for workers to finish
[ 55.305138] systemd-udevd[142]: event loop failed: Connection timed out
[ 114.992509] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[ 115.048699] systemd-shutdown[1]: Sending SIGKILL to PID 189 (systemd-udevd).
[ 115.057828] systemd-shutdown[1]: Sending SIGKILL to PID 193 (systemd-udevd).
[ 115.067045] systemd-shutdown[1]: Sending SIGKILL to PID 196 (systemd-udevd).
[ 115.140638] systemd-shutdown[1]: Unmounting file systems.
[ 115.146888] systemd-shutdown[1]: Remounting '/' read-only with options 'vers=2,rsize=4096,wsize=4096,namlen=255,hard,nolock,proto=udp,timeo=11,retrans=3,sec=sys,mountaddr=192.168.140.1,mountvers=1,mountproto=udp,local_lock=all,addr=192.168.140.1'.
[ 115.173443] systemd-shutdown[1]: Remounting '/' read-only with options 'vers=2,rsize=4096,wsize=4096,namlen=255,hard,nolock,proto=udp,timeo=11,retrans=3,sec=sys,mountaddr=192.168.140.1,mountvers=1,mountproto=udp,local_lock=all,addr=192.168.140.1'.
[ 115.198636] systemd-shutdown[1]: All filesystems unmounted.
[ 115.204970] systemd-shutdown[1]: Deactivating swaps.
[ 115.210632] systemd-shutdown[1]: All swaps deactivated.
[ 115.300144] reboot: System halted