[Letux-kernel] MIPS: Ingenic: Introduce SMP/SMT support.
周琰杰
zhouyanjie at wanyeetech.com
Thu Jun 17 17:46:53 CEST 2021
Hi Nikolaus,
于 Wed, 16 Jun 2021 17:38:26 +0200
"H. Nikolaus Schaller" <hns at goldelico.com> 写道:
> Hi,
> sorry for the long break.
>
> I had a hard disk failure (no data loss but very time consuming to
> repair) and wanted to take the chance to do an overdue system upgrade.
>
> Therefore I had to copy ca. 2 Terabytes of data multiple times and
> rebuild my cross-toolchains from scratch. And then it took a while
> until I could work as before due to minor differences here and there.
> In addition I had some other projects that were very demanding.
>
> Therefore I just have catched up with the latest upstream changes and
> built latest stable and linus/master based Letux kernels. No testing
> done so far (except successfully booting letux-5.13-rc6 on Raspberry
> Pi 3B+)...
>
> As the first task I have tried to reproduce your issue with makesd
> and sfdisk but initially wasn't able to.
>
> I tried Debian:
> 8 Jessie (2.25.2) - makesd ok
> 9 Stretch (2.29.2) - makesd ok
> 10 Buster (2.33.1) - makesd ok
> 11 Bullseye (2.36.1) - makesd ok
>
> Then I experimentally installed the Ubuntu 16
> fdisk-udeb_2.27.1-6ubuntu3_armhf.udeb package. This differs in search
> paths so it is tricky not to call the one from Debian installed in
> parallel...
>
> And with that binary I was able to reproduce your error message.
>
> The key issue is with comparing the result of "sfdisk --version" to
> the reference (2.26.2). The version where the argument list has
> changed and --in-order was removed.
>
> If you still have the setup prepared somewhere, just do 'makesd -u'
> and re-run building an SD card.
>
> Then we will see if the "Start sector 62929920 out of range" is still
> there and we can try to debug that.
I have executed "makesd -u", but there will still be errors about
"--in-order", and after manually modifying "makesd", then run
"DEV=/dev/sdf ./makesd -v latest ci20 -r https://download.goldelico.com/letux-debian-rootfs/stable-mipsel-quantumstep.tbz"
again, there will still be errors about "Start sector 62929920 out of range".
>
>
> So what is the status of the irq driver and SMP/SMT?
> Or should I wait until 5.14-rc1 because some stuff has been accepted
> for upstream?
I have made patches based on 5.13-rc6, but I want to know whether
it will work properly after adding a compatible string about JZ4730
to the previous irq driver, so that I can check whether the changes
I made in the new patch are valid.
Thanks and best regards!
>
> BR,
> Nikolaus
>
>
> > Am 03.06.2021 um 19:59 schrieb Zhou Yanjie
> > <zhouyanjie at wanyeetech.com>:
> >
> > Hi Nikolaus,
> >
> >
> >
> > What is the status now? And does the irq driver work fine on JZ4730
> > after add the compatible string of jz4730?
> >
> >
> >
> > Thanks and best regards!
> >
> >
> >
> > On 2021/5/28 上午2:37, H. Nikolaus Schaller wrote:
> >>
> >>
> >>> Am 27.05.2021 um 20:26 schrieb Zhou Yanjie
> >>> <zhouyanjie at wanyeetech.com>:
> >>>
> >>>
> >>>
> >>> On 2021/5/27 下午6:59, H. Nikolaus Schaller wrote:
> >>>> Hi,
> >>>>
> >>>>> Am 27.05.2021 um 12:27 schrieb Zhou Yanjie
> >>>>> <zhouyanjie at wanyeetech.com>:
> >>>>>
> >>>>> Hi
> >>>>>
> >>>>>>>
> >>>>>>> I run this, but get an error about "unknown option
> >>>>>>> --in-order",
> >>>>>> seems to be an incompatible sfdisk version (happened several
> >>>>>> times in the past years that sfdisk changed command options).
> >>>>>>
> >>>>>> Which version is your sfdisk?
> >>>>>
> >>>>>
> >>>>> It is 2.27.1
> >>>>
> >>>> Ok, maybe the version detection is broken :(
> >>>>
> >>>>>
> >>>>>
> >>>>>>
> >>>>>> I use sfdisk from util-linux 2.25.2 (Debian) but there is
> >>>>>> logic in the script to handle version 2.26.2 and later. But
> >>>>>> maybe this fails.
> >>>>>>
> >>>>>> As a workaround, please try to look for
> >>>>>>
> >>>>>> function sane_sfdisk {
> >>>>>>
> >>>>>> and replace
> >>>>>>
> >>>>>> sfdisk --in-order --Linux -uS "$@"
> >>>>>>
> >>>>>> by
> >>>>>>
> >>>>>> sfdisk "$@"
> >>>>>
> >>>>>
> >>>>> I have replaced that, but got new problem about "Start sector
> >>>>> 62929920 out of range",
> >>>>>
> >>>>>
> >>>>> below is the log:
> >>>>>
> >>>>> -: s:1
> >>>>> dd:https://download.goldelico.com/letux-u-boot/CI20/latest/u-boot-spl.bin
> >>>>> -: s:28
> >>>>> dd:https://download.goldelico.com/letux-u-boot/CI20/latest/u-boot.img
> >>>>> 1: ext4 s:25% p:4096
> >>>>> b:/boot+https://download.goldelico.com/letux-u-boot/CI20/latest/*
> >>>>> k:/boot+https://download.goldelico.com/letux-kernel/latest-ci20/uImage
> >>>>> dt:/boot+https://download.goldelico.com/letux-kernel/latest-ci20/device-trees.tbzr:https://download.goldelico.com/letux-debian-rootfs/stable-mipsel-quantumstep.tbz
> >>>>> m:https://download.goldelico.com/letux-kernel/latest-mips/modules.tgz
> >>>>> c:none 2: none s:0% p: b:/+none k:/+none dt:/+none r:none
> >>>>> m:none c:none 3: none s:0% p: b:/+none k:/+none dt:/+none
> >>>>> r:none m:none c:none 4: none s:0% p: b:/+none k:/+none
> >>>>> dt:/+none r:none m:none c:none umount: /dev/sdf: not mounted
> >>>>> umount: /dev/sdf: not mounted 总用量 0 记录了1024+0
> >>>>> 的读入记录了1024+0 的写出 1048576 bytes (1.0 MB, 1.0 MiB)
> >>>>> copied, 0.717079 s, 1.5 MB/s 记录了4+0 的读入记录了4+0 的写出 4
> >>>>> bytes copied, 0.00205241 s, 1.9 kB/s Checking that no-one is
> >>>>> using this disk right now ... OK
> >>>>>
> >>>>> Disk /dev/sdf: 30 GiB, 32220119040 bytes, 62929920 sectors
> >>>>> Units: sectors of 1 * 512 = 512 bytes
> >>>>> Sector size (logical/physical): 512 bytes / 512 bytes
> >>>>> I/O size (minimum/optimal): 512 bytes / 512 bytes
> >>>>>
> >>>>>>>> Created a new DOS disklabel with disk identifier
> >>>>>>>> 0xe1cbc61a.
> >>>>> Created a new partition 1 of type 'Linux' and of size 30 GiB.
> >>>>
> >>>> Looks all good.
> >>>>
> >>>>> Start sector 62929920 out of range.
> >>>>
> >>>> except this... Maybe once again some other tool reports a
> >>>> different string.
> >>>>
> >>>> Are you using Debian? If yes, which one?
> >>>
> >>>
> >>> I am using Kylin v10 system, I think it is developed based on
> >>> Ubuntu 16.04.
> >> Yes, that seems to fit. Ubuntu 16.04 appears to use sfdisk 2.27
> >> according to some google hits:
> >>
> >> BTW: https://github.com/Beckhoff/CX9020/issues/3
> >>
> >> Unfortunately I still have to wait until I can use my main machine
> >> again. Copying some 2 TB disk simply takes a lot of time.
> >>>
> >>>
> >>>
> >>>>
> >>>> I never tried to run it on for example Bullseyes or similar...
> >>
> >> Maybe I can try to run makesd on some ARM board with different
> >> Debian versions. Stretch should use 2.29 and reveal the bug.
> >>
> >> BR and thanks,
> >> Nikolaus
> >>
> >>>>
> >>>> BR and thanks,
> >>>> Nikolaus
> >>>>
> >>>>
> >>>>> Failed to add partition: 数值结果超出范围
> >>>>> /dev/sdf2: Leaving.
> >>>>>
> >>>>> Thanks an best regards!
> >>>>>
> >>>>>
> >>>>>>
> >>>>>> BR and thanks,
> >>>>>> Nikolaus
> >>>>>>
> >>>>>>> below is the log:
> >>>>>>>
> >>>>>>>
> >>>>>>> -: s:1
> >>>>>>> dd:https://download.goldelico.com/letux-u-boot/CI20/latest/u-boot-spl.bin
> >>>>>>> -: s:28
> >>>>>>> dd:https://download.goldelico.com/letux-u-boot/CI20/latest/u-boot.img
> >>>>>>> 1: ext4 s:25% p:4096
> >>>>>>> b:/boot+https://download.goldelico.com/letux-u-boot/CI20/latest/*
> >>>>>>> k:/boot+https://download.goldelico.com/letux-kernel/latest-ci20/uImage
> >>>>>>> dt:/boot+https://download.goldelico.com/letux-kernel/latest-ci20/device-trees.tbz
> >>>>>>> r:https://download.goldelico.com/letux-debian-rootfs/stable-mipsel-quantumstep.tbz
> >>>>>>> m:https://download.goldelico.com/letux-kernel/latest-mips/modules.tgz
> >>>>>>> c:none 2: none s:0% p: b:/+none k:/+none dt:/+none r:none
> >>>>>>> m:none c:none 3: none s:0% p: b:/+none k:/+none dt:/+none
> >>>>>>> r:none m:none c:none 4: none s:0% p: b:/+none k:/+none
> >>>>>>> dt:/+none r:none m:none c:none umount: /dev/sdf: not mounted
> >>>>>>> umount: /dev/sdf: not mounted 总用量 0 记录了1024+0
> >>>>>>> 的读入记录了1024+0 的写出 1048576 bytes (1.0 MB, 1.0 MiB)
> >>>>>>> copied, 0.176976 s, 5.9 MB/s 记录了4+0 的读入记录了4+0 的写出
> >>>>>>> 4 bytes copied, 0.00202867 s, 2.0 kB/s
> >>>>>> looks good up to here.
> >>>>>>
> >>>>>>> sfdisk: 未知的选项 `--in-order'
> >>>>>>>
> >>>>>>> Usage:
> >>>>>>> sfdisk [options] <dev> [[-N] <part>]
> >>>>>>> sfdisk [options] <command>
> >>>>>>>
> >>>>>>> Display or manipulate a disk partition table.
> >>>>>>>
> >>>>>>> Commands:
> >>>>>>> -A, --activate <dev> [<part> ...] list or set bootable MBR
> >>>>>>> partitions -d, --dump <dev> dump partition
> >>>>>>> table (usable for later input) -J, --json
> >>>>>>> <dev> dump partition table in JSON format
> >>>>>>> -g, --show-geometry [<dev> ...] list geometry of all or
> >>>>>>> specified devices -l, --list [<dev> ...] list
> >>>>>>> partitions of each device -F, --list-free [<dev> ...]
> >>>>>>> list unpartitions free areas of each device -s, --show-size
> >>>>>>> [<dev> ...] list sizes of all or specified devices -T,
> >>>>>>> --list-types print the recognized types (see
> >>>>>>> -X) -V, --verify [<dev> ...] test whether partitions
> >>>>>>> seem correct
> >>>>>>>
> >>>>>>> --part-label <dev> <part> [<str>] print or change partition
> >>>>>>> label --part-type <dev> <part> [<type>] print or change
> >>>>>>> partition type --part-uuid <dev> <part> [<uuid>] print or
> >>>>>>> change partition uuid --part-attrs <dev> <part> [<str>] print
> >>>>>>> or change partition attributes
> >>>>>>>
> >>>>>>> <dev> device (usually disk) path
> >>>>>>> <part> partition number
> >>>>>>> <type> partition type, GUID for GPT, hex
> >>>>>>> for MBR
> >>>>>>>
> >>>>>>> 选项:
> >>>>>>> -a, --append append partitions to existing
> >>>>>>> partition table -b, --backup backup partition
> >>>>>>> table sectors (see -O) --bytes print SIZE in
> >>>>>>> bytes rather than in human readable format -f,
> >>>>>>> --force disable all consistency checking
> >>>>>>> --color[=<when>] colorize output (auto, always or never)
> >>>>>>> colors are enabled by default -N, --partno <num>
> >>>>>>> specify partition number -n, --no-act do
> >>>>>>> everything except write to device --no-reread do
> >>>>>>> not check whether the device is in use -O, --backup-file
> >>>>>>> <path> override default backup file name -o, --output
> >>>>>>> <list> output columns -q, --quiet
> >>>>>>> suppress extra info messages -X, --label <name>
> >>>>>>> specify label type (dos, gpt, ...) -Y, --label-nested <name>
> >>>>>>> specify nested label type (dos, bsd)
> >>>>>>>
> >>>>>>> -L, --Linux deprecated, only for backward
> >>>>>>> compatibility -u, --unit S deprecated, only
> >>>>>>> sector unit is supported
> >>>>>>>
> >>>>>>> -h, --help display this help and exit
> >>>>>>> -v, --version output version information and exit
> >>>>>>>
> >>>>>>> Available columns (for -o):
> >>>>>>> gpt: Device Start End Sectors Size Type Type-UUID Attrs Name
> >>>>>>> UUID dos: Device Start End Sectors Cylinders Size Type Id
> >>>>>>> Attrs Boot End-C/H/S Start-C/H/S
> >>>>>>> bsd: Slice Start End Sectors Cylinders Size Type Bsize Cpg
> >>>>>>> Fsize sgi: Device Start End Sectors Cylinders Size Type Id
> >>>>>>> Attrs sun: Device Start End Sectors Cylinders Size Type Id
> >>>>>>> Flags
> >>>>>>>
> >>>>>>> For more details see sfdisk(8).
> >>>>>>>
> >>>>>>>
> >>>>>>>> This should do a fresh install of letux-5.13-rc2-ci20 (w/o
> >>>>>>>> SMP enabled). But I did run that last time some months ago
> >>>>>>>> and have made incremental updates.
> >>>>>>>>
> >>>>>>>> The makesd tool is here:
> >>>>>>>> https://projects.goldelico.com/p/gta04-makesd/
> >>>>>>>>
> >>>>>>>> Hope it works (at the moment the HDD of my build machine is
> >>>>>>>> broken so I have to repair it first which takes a lot of
> >>>>>>>> time).
> >>>>>>>>
> >>>>>>>> BR and thanks,
> >>>>>>>> Nikolaus
> >>>>>>>>
> >>>>>>>>> Thanks and best regards!
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>> Below is the log:
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> [ 0.000000] Linux version 5.13.0-rc2-letux-ci20+
> >>>>>>>>>> (zhouyanjie at zhouyanjie-virtual-machine)
> >>>>>>>>>> (mips-linux-gnu-gcc (Ingenic r3.2.1-gcc520 2017.12-15)
> >>>>>>>>>> 5.2.0, GNU ld (Ingenic r3.2.1-gcc520 2017.12-15) 2.25.51)
> >>>>>>>>>> #1 PREEMPT Thu May 27 10:59:38 CST 2021 [ 0.000000]
> >>>>>>>>>> CPU0 revision is: 3ee1024f (Ingenic XBurst) [ 0.000000]
> >>>>>>>>>> FPU revision is: 00330000 [ 0.000000] MIPS: machine is
> >>>>>>>>>> img,ci20 [ 0.000000] earlycon: jz4780_uart0 at MMIO
> >>>>>>>>>> 0x10034000 (options '') [ 0.000000] printk: bootconsole
> >>>>>>>>>> [jz4780_uart0] enabled [ 0.000000] printk: debug:
> >>>>>>>>>> ignoring loglevel setting. [ 0.000000] User-defined
> >>>>>>>>>> physical RAM map overwrite [ 0.000000] Initrd not found
> >>>>>>>>>> or empty - disabling initrd [ 0.000000] cma: Reserved
> >>>>>>>>>> 32 MiB at 0x01000000 [ 0.000000] Primary instruction
> >>>>>>>>>> cache 32kiB, VIPT, 8-way, 128 sets, linesize 32 bytes.
> >>>>>>>>>> [ 0.000000] Primary data cache 32kiB, VIPT, 8-way, 128
> >>>>>>>>>> sets, linesize 32 bytes. [ 0.000000] Unified secondary
> >>>>>>>>>> cache 512kiB, VIPT, 4-way, 1024 sets, linesize 128 bytes.
> >>>>>>>>>> [ 0.000000] Zone ranges: [ 0.000000] Normal [mem
> >>>>>>>>>> 0x0000000000000000-0x000000000fffffff] [ 0.000000]
> >>>>>>>>>> HighMem [mem 0x0000000010000000-0x000000005fffffff]
> >>>>>>>>>> [ 0.000000] Movable zone start for each node
> >>>>>>>>>> [ 0.000000] Early memory node ranges [ 0.000000]
> >>>>>>>>>> node 0: [mem 0x0000000000000000-0x000000000fffffff]
> >>>>>>>>>> [ 0.000000] node 0: [mem
> >>>>>>>>>> 0x0000000030000000-0x000000005fffffff] [ 0.000000]
> >>>>>>>>>> Initmem setup node 0 [mem
> >>>>>>>>>> 0x0000000000000000-0x000000005fffffff] [ 0.000000] On
> >>>>>>>>>> node 0 totalpages: 262144 [ 0.000000] Normal zone:
> >>>>>>>>>> 576 pages used for memmap [ 0.000000] Normal zone: 0
> >>>>>>>>>> pages reserved [ 0.000000] Normal zone: 65536 pages,
> >>>>>>>>>> LIFO batch:15 [ 0.000000] HighMem zone: 196608 pages,
> >>>>>>>>>> LIFO batch:63 [ 0.000000] pcpu-alloc: s0 r0 d32768
> >>>>>>>>>> u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0
> >>>>>>>>>> [ 0.000000] Built 1 zonelists, mobility grouping on.
> >>>>>>>>>> Total pages: 261568 [ 0.000000] Kernel command line:
> >>>>>>>>>> console=ttyS4,115200 console=tty0 mem=256M at 0x0
> >>>>>>>>>> mem=768M at 0x30000000 rootwait quiet rw root=/dev/mmcblk0p1
> >>>>>>>>>> dm9000.mac_addr=d0:31:10:ff:77:8a earlycon
> >>>>>>>>>> console=ttyS4,115200 clk_ignore_unused ignore_loglevel
> >>>>>>>>>> [ 0.000000] Dentry cache hash table entries: 32768
> >>>>>>>>>> (order: 5, 131072 bytes, linear) [ 0.000000]
> >>>>>>>>>> Inode-cache hash table entries: 16384 (order: 4, 65536
> >>>>>>>>>> bytes, linear) [ 0.000000] mem auto-init: stack:off,
> >>>>>>>>>> heap alloc:off, heap free:off [ 0.000000] Memory:
> >>>>>>>>>> 989600K/1048576K available (7971K kernel code, 806K
> >>>>>>>>>> rwdata, 2760K rodata, 356K init, 159K bss, 26208K
> >>>>>>>>>> reserved, 32768K cma-reserved, 786432K highmem)
> >>>>>>>>>> [ 0.000000] trace event string verifier disabled
> >>>>>>>>>> [ 0.000000] rcu: Preemptible hierarchical RCU
> >>>>>>>>>> implementation. [ 0.000000] Trampoline variant of
> >>>>>>>>>> Tasks RCU enabled. [ 0.000000] rcu: RCU calculated
> >>>>>>>>>> value of scheduler-enlistment delay is 10 jiffies.
> >>>>>>>>>> [ 0.000000] NR_IRQS: 256 [ 0.000000] random:
> >>>>>>>>>> get_random_bytes called from start_kernel+0x718/0x954 with
> >>>>>>>>>> crng_init=0 [ 0.000000] ingenic_tcu_clocksource_init:
> >>>>>>>>>> 65535 vs. 65535 [ 0.000000]
> >>>>>>>>>> ingenic_tcu_clocksource_init: 65535 vs. 65535
> >>>>>>>>>> [ 0.000000] clocksource: ingenic-timer: mask: 0xffff
> >>>>>>>>>> max_cycles: 0xffff, max_idle_ns: 38884100 ns
> >>>>>>>>>> [ 0.000000] ingenic_tcu_setup_cevt: 65535 vs. 65535
> >>>>>>>>>> [ 0.000000] ingenic_tcu_init: 16 vs. 16 [ 0.000002]
> >>>>>>>>>> sched_clock: 16 bits at 750kHz, resolution 1333ns, wraps
> >>>>>>>>>> every 43690000ns [ 0.008630] Console: colour dummy
> >>>>>>>>>> device 80x25 [ 0.014656] printk: console [tty0] enabled
> >>>>>>>>>> [ 0.018810] Calibrating delay loop... 1196.85 BogoMIPS
> >>>>>>>>>> (lpj=5984256) [ 0.065249] pid_max: default: 32768
> >>>>>>>>>> minimum: 301 [ 0.070070] LSM: Security Framework
> >>>>>>>>>> initializing [ 0.074790] Mount-cache hash table
> >>>>>>>>>> entries: 1024 (order: 0, 4096 bytes, linear)
> >>>>>>>>>> [ 0.082227] Mountpoint-cache hash table entries: 1024
> >>>>>>>>>> (order: 0, 4096 bytes, linear) [ 0.091726] Performance
> >>>>>>>>>> counters: No available PMU. [ 0.096799] rcu:
> >>>>>>>>>> Hierarchical SRCU implementation. [ 0.102167] devtmpfs:
> >>>>>>>>>> initialized [ 0.111645] clocksource: jiffies: mask:
> >>>>>>>>>> 0xffffffff max_cycles: 0xffffffff, max_idle_ns:
> >>>>>>>>>> 19112604462750000 ns [ 0.121934] wait_for_initramfs()
> >>>>>>>>>> called before rootfs_initcalls [ 0.128206] futex hash
> >>>>>>>>>> table entries: 256 (order: -1, 3072 bytes, linear)
> >>>>>>>>>> [ 0.136698] pinctrl core: initialized pinctrl subsystem
> >>>>>>>>>> [ 0.142801] regulator-dummy: no parameters, enabled
> >>>>>>>>>> [ 0.149365] NET: Registered protocol family 16
> >>>>>>>>>> [ 0.156574] thermal_sys: Registered thermal governor
> >>>>>>>>>> 'fair_share' [ 0.156591] thermal_sys: Registered
> >>>>>>>>>> thermal governor 'step_wise' [ 0.164563] thermal_sys:
> >>>>>>>>>> Registered thermal governor 'user_space' [ 0.170873]
> >>>>>>>>>> cpuidle: using governor menu [ 0.216765] platform
> >>>>>>>>>> 13050000.lcdc0: Fixing up cyclic dependency with
> >>>>>>>>>> 10180000.hdmi [ 0.239598] platform connector: Fixing up
> >>>>>>>>>> cyclic dependency with 10180000.hdmi [ 0.325261]
> >>>>>>>>>> jz4780-dma 13420000.dma: JZ4780 DMA controller initialised
> >>>>>>>>>> [ 0.335482] fixedregulator at 0 GPIO handle specifies
> >>>>>>>>>> active low - ignored [ 0.342923] eth0_power: 3300 mV,
> >>>>>>>>>> disabled [ 0.347262] reg-fixed-voltage
> >>>>>>>>>> fixedregulator at 0: eth0_power supplying 3300000uV
> >>>>>>>>>> [ 0.355371] fixedregulator at 2 GPIO handle specifies
> >>>>>>>>>> active low - ignored [ 0.362115] otg_power: 5000 mV,
> >>>>>>>>>> enabled [ 0.366606] reg-fixed-voltage fixedregulator at 2:
> >>>>>>>>>> otg_power supplying 5000000uV [ 0.374429] usb_power:
> >>>>>>>>>> 5000 mV, enabled [ 0.378655] reg-fixed-voltage
> >>>>>>>>>> fixedregulator at 3: usb_power supplying 5000000uV
> >>>>>>>>>> [ 0.386419] fixedregulator at 1 GPIO handle specifies
> >>>>>>>>>> active low - ignored [ 0.393239] wlan0_power: no
> >>>>>>>>>> parameters, disabled [ 0.398142] reg-fixed-voltage
> >>>>>>>>>> fixedregulator at 1: wlan0_power supplying 0uV [ 0.406311]
> >>>>>>>>>> SCSI subsystem initialized [ 0.411331] libata version
> >>>>>>>>>> 3.00 loaded. [ 0.416419] usbcore: registered new
> >>>>>>>>>> interface driver usbfs [ 0.423006] usbcore: registered
> >>>>>>>>>> new interface driver hub [ 0.428615] usbcore:
> >>>>>>>>>> registered new device driver usb [ 0.433934]
> >>>>>>>>>> usb_phy_generic usb_phy: Looking up vcc-supply from device
> >>>>>>>>>> tree [ 0.443418] jz4780-nemc
> >>>>>>>>>> 13410000.nemc: /nemc at 13410000/efuse at d0 requests invalid
> >>>>>>>>>> bank 0 [ 0.453554] jz4780-nemc
> >>>>>>>>>> 13410000.nemc: /nemc at 13410000/efuse at d0 has no addresses
> >>>>>>>>>> [ 0.461015] jz4780-nemc 13410000.nemc: JZ4780 NEMC
> >>>>>>>>>> initialised [ 0.467919] Advanced Linux Sound
> >>>>>>>>>> Architecture Driver Initialized. [ 0.476885]
> >>>>>>>>>> clocksource: Switched to clocksource ingenic-timer
> >>>>>>>>>> [ 0.527350] VFS: Disk quotas dquot_6.6.0 [ 0.531363]
> >>>>>>>>>> VFS: Dquot-cache hash table entries: 1024 (order 0, 4096
> >>>>>>>>>> bytes) [ 0.583457] NET: Registered protocol family 2
> >>>>>>>>>> [ 0.597413] IP idents hash table entries: 4096 (order:
> >>>>>>>>>> 3, 32768 bytes, linear) [ 0.617265]
> >>>>>>>>>> tcp_listen_portaddr_hash hash table entries: 512 (order:
> >>>>>>>>>> 0, 4096 bytes, linear) [ 0.625791] TCP established hash
> >>>>>>>>>> table entries: 2048 (order: 1, 8192 bytes, linear)
> >>>>>>>>>> [ 0.646951] TCP bind hash table entries: 2048 (order:
> >>>>>>>>>> 1, 8192 bytes, linear) [ 0.654105] TCP: Hash tables
> >>>>>>>>>> configured (established 2048 bind 2048) [ 0.677111] UDP
> >>>>>>>>>> hash table entries: 256 (order: 0, 4096 bytes, linear)
> >>>>>>>>>> [ 0.683725] UDP-Lite hash table entries: 256 (order: 0,
> >>>>>>>>>> 4096 bytes, linear) [ 0.707066] NET: Registered
> >>>>>>>>>> protocol family 1 [ 0.711982] RPC: Registered named
> >>>>>>>>>> UNIX socket transport module. [ 0.726903] RPC:
> >>>>>>>>>> Registered udp transport module. [ 0.731630] RPC:
> >>>>>>>>>> Registered tcp transport module. [ 0.736394] RPC:
> >>>>>>>>>> Registered tcp NFSv4.1 backchannel transport module.
> >>>>>>>>>> [ 0.759211] Initialise system trusted keyrings
> >>>>>>>>>> [ 0.767045] workingset: timestamp_bits=14 max_order=18
> >>>>>>>>>> bucket_order=4 [ 0.774071] squashfs: version 4.0
> >>>>>>>>>> (2009/01/31) Phillip Lougher [ 0.797787] Key type
> >>>>>>>>>> asymmetric registered [ 0.801911] Asymmetric key parser
> >>>>>>>>>> 'x509' registered [ 0.816973] bounce: pool size: 64
> >>>>>>>>>> pages [ 0.826954] Block layer SCSI generic (bsg) driver
> >>>>>>>>>> version 0.4 loaded (major 249) [ 0.834454] io scheduler
> >>>>>>>>>> mq-deadline registered [ 0.846943] io scheduler kyber
> >>>>>>>>>> registered [ 0.859047] Serial: 8250/16550 driver, 5
> >>>>>>>>>> ports, IRQ sharing disabled [ 0.879930]
> >>>>>>>>>> 10030000.serial: ttyS0 at MMIO 0x10030000 (irq = 51,
> >>>>>>>>>> base_baud = 3000000) is a 16550A [ 0.908290]
> >>>>>>>>>> 10031000.serial: ttyS1 at MMIO 0x10031000 (irq = 50,
> >>>>>>>>>> base_baud = 3000000) is a 16550A [ 0.928155]
> >>>>>>>>>> 10032000.serial: ttyS2 at MMIO 0x10032000 (irq = 49,
> >>>>>>>>>> base_baud = 3000000) is a 16550A [ 0.948301]
> >>>>>>>>>> 10033000.serial: ttyS3 at MMIO 0x10033000 (irq = 48,
> >>>>>>>>>> base_baud = 3000000) is a 16550A [ 0.959955]
> >>>>>>>>>> 10034000.serial: ttyS4 at MMIO 0x10034000 (irq = 34,
> >>>>>>>>>> base_baud = 3000000) is a 16550A [ 0.969857] printk:
> >>>>>>>>>> console [ttyS4] enabled [ 0.978379] printk: bootconsole
> >>>>>>>>>> [jz4780_uart0] disabled [ 1.009587] brd: module loaded
> >>>>>>>>>> [ 1.024993] loop: module loaded [ 1.030049] mtdoops:
> >>>>>>>>>> mtd device (mtddev=name/number) must be supplied
> >>>>>>>>>> [ 1.038561] spi_master spi0: cannot find modalias
> >>>>>>>>>> for /spi_gpio/spidev at 0 [ 1.045326] spi_master spi0:
> >>>>>>>>>> Failed to create SPI device for /spi_gpio/spidev at 0
> >>>>>>>>>> [ 1.054399] libphy: Fixed MDIO Bus: probed
> >>>>>>>>>> [ 1.059910] usbcore: registered new interface driver
> >>>>>>>>>> usb-storage [ 1.067310] mousedev: PS/2 mouse device
> >>>>>>>>>> common for all mice [ 1.074257] i2c /dev entries driver
> >>>>>>>>>> [ 1.078749] jz4780-i2c 10050000.i2c: Bus frequency is
> >>>>>>>>>> 400 KHz [ 1.086262] DCDC1: at 1200 mV, enabled
> >>>>>>>>>> [ 1.091049] act8865 0-005a: Looking up vp1-supply from
> >>>>>>>>>> device tree [ 1.097633] act8865 0-005a: Looking up
> >>>>>>>>>> vp1-supply property in node /i2c at 10050000/act8600 at 5a
> >>>>>>>>>> failed [ 1.106699] DCDC1: supplied by regulator-dummy
> >>>>>>>>>> [ 1.111478] random: fast init done [ 1.115061]
> >>>>>>>>>> DCDC2: at 1500 mV, enabled [ 1.119285] act8865 0-005a:
> >>>>>>>>>> Looking up vp2-supply from device tree [ 1.125515]
> >>>>>>>>>> act8865 0-005a: Looking up vp2-supply property in
> >>>>>>>>>> node /i2c at 10050000/act8600 at 5a failed [ 1.134786] DCDC2:
> >>>>>>>>>> supplied by regulator-dummy [ 1.139678] DCDC3: at 3300
> >>>>>>>>>> mV, enabled [ 1.143834] act8865 0-005a: Looking up
> >>>>>>>>>> vp3-supply from device tree [ 1.150322] act8865 0-005a:
> >>>>>>>>>> Looking up vp3-supply property in
> >>>>>>>>>> node /i2c at 10050000/act8600 at 5a failed [ 1.159433] DCDC3:
> >>>>>>>>>> supplied by regulator-dummy [ 1.164275] SUDCDC_REG4: at
> >>>>>>>>>> 5000 mV, disabled [ 1.169409] LDO5: at 2500 mV, enabled
> >>>>>>>>>> [ 1.173499] act8865 0-005a: Looking up inl-supply from
> >>>>>>>>>> device tree [ 1.179983] act8865 0-005a: Looking up
> >>>>>>>>>> inl-supply property in node /i2c at 10050000/act8600 at 5a
> >>>>>>>>>> failed [ 1.189103] LDO5: supplied by regulator-dummy
> >>>>>>>>>> [ 1.193866] LDO6: at 3300 mV, disabled [ 1.198081]
> >>>>>>>>>> act8865 0-005a: Looking up inl-supply from device tree
> >>>>>>>>>> [ 1.204313] act8865 0-005a: Looking up inl-supply
> >>>>>>>>>> property in node /i2c at 10050000/act8600 at 5a failed
> >>>>>>>>>> [ 1.213567] LDO6: supplied by regulator-dummy
> >>>>>>>>>> [ 1.218393] LDO7: at 3300 mV, disabled [ 1.222553]
> >>>>>>>>>> act8865 0-005a: Looking up inl-supply from device tree
> >>>>>>>>>> [ 1.229045] act8865 0-005a: Looking up inl-supply
> >>>>>>>>>> property in node /i2c at 10050000/act8600 at 5a failed
> >>>>>>>>>> [ 1.238161] LDO7: supplied by regulator-dummy
> >>>>>>>>>> [ 1.242914] LDO8: at 3300 mV, disabled [ 1.247142]
> >>>>>>>>>> act8865 0-005a: Looking up inl-supply from device tree
> >>>>>>>>>> [ 1.253371] act8865 0-005a: Looking up inl-supply
> >>>>>>>>>> property in node /i2c at 10050000/act8600 at 5a failed
> >>>>>>>>>> [ 1.262642] LDO8: supplied by regulator-dummy
> >>>>>>>>>> [ 1.267490] LDO_REG9: 3300 mV, enabled [ 1.271874]
> >>>>>>>>>> LDO_REG10: 1200 mV, enabled [ 1.277321] jz4780-i2c
> >>>>>>>>>> 10051000.i2c: Bus frequency is 100 KHz [ 1.284607]
> >>>>>>>>>> jz4780-i2c 10052000.i2c: Bus frequency is 100 KHz
> >>>>>>>>>> [ 1.292301] i2c 2-003c: Fixing up cyclic dependency
> >>>>>>>>>> with 13060000.cim [ 1.300645] jz4780-i2c 10053000.i2c:
> >>>>>>>>>> Bus frequency is 100 KHz [ 1.308213] jz4780-i2c
> >>>>>>>>>> 10054000.i2c: Bus frequency is 400 KHz [ 1.315906] IR
> >>>>>>>>>> NEC protocol handler initialized [ 1.321706] IR
> >>>>>>>>>> RC5(x/sz) protocol handler initialized [ 1.326795] IR
> >>>>>>>>>> RC6 protocol handler initialized [ 1.331503] IR JVC
> >>>>>>>>>> protocol handler initialized [ 1.336061] IR Sony
> >>>>>>>>>> protocol handler initialized [ 1.340838] IR SANYO
> >>>>>>>>>> protocol handler initialized [ 1.345569] IR Sharp
> >>>>>>>>>> protocol handler initialized [ 1.350327] IR MCE
> >>>>>>>>>> Keyboard/mouse protocol handler initialized [ 1.356185]
> >>>>>>>>>> IR XMP protocol handler initialized [ 1.360793] Driver
> >>>>>>>>>> for 1-wire Dallas network protocol. [ 1.368714]
> >>>>>>>>>> jz4740-mmc 13450000.mmc: Got CD GPIO [ 1.373441]
> >>>>>>>>>> jz4740-mmc 13450000.mmc: Looking up vmmc-supply from
> >>>>>>>>>> device tree [ 1.381041] jz4740-mmc 13460000.mmc:
> >>>>>>>>>> Looking up vmmc-supply from device tree [ 1.390615]
> >>>>>>>>>> ledtrig-cpu: registered to indicate activity on CPUs
> >>>>>>>>>> [ 1.396850] clocksource: ingenic-ost: mask: 0xffffffff
> >>>>>>>>>> max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
> >>>>>>>>>> [ 1.409350] jz4740-mmc 13460000.mmc: Looking up
> >>>>>>>>>> vmmc-supply property in node /mmc at 13460000 failed
> >>>>>>>>>> [ 1.418457] jz4740-mmc 13450000.mmc: Looking up
> >>>>>>>>>> vmmc-supply property in node /mmc at 13450000 failed
> >>>>>>>>>> [ 1.427639] jz4740-mmc 13460000.mmc: Looking up
> >>>>>>>>>> vqmmc-supply from device tree [ 1.434811] jz4740-mmc
> >>>>>>>>>> 13460000.mmc: Looking up vqmmc-supply property in
> >>>>>>>>>> node /mmc at 13460000 failed [ 1.443907] clocksource:
> >>>>>>>>>> Switched to clocksource ingenic-ost [ 1.449646]
> >>>>>>>>>> jz4740-mmc 13450000.mmc: Looking up vqmmc-supply from
> >>>>>>>>>> device tree [ 1.456830] jz4740-mmc 13450000.mmc:
> >>>>>>>>>> Looking up vqmmc-supply property in node /mmc at 13450000
> >>>>>>>>>> failed [ 1.465909] sched_clock: 32 bits at 3000kHz,
> >>>>>>>>>> resolution 333ns, wraps every 715827882841ns
> >>>>>>>>>> [ 1.476247] usbcore: registered new interface driver
> >>>>>>>>>> usbhid [ 1.484165] usbhid: USB HID core driver
> >>>>>>>>>> [ 1.489609] Initializing XFRM netlink socket
> >>>>>>>>>> [ 1.493936] NET: Registered protocol family 17
> >>>>>>>>>> [ 1.498538] jz4740-mmc 13460000.mmc: Ingenic SD/MMC
> >>>>>>>>>> card driver registered [ 1.505443] jz4740-mmc
> >>>>>>>>>> 13460000.mmc: Using PIO, 4-bit mode [ 1.512182]
> >>>>>>>>>> jz4740-mmc 13450000.mmc: Ingenic SD/MMC card driver
> >>>>>>>>>> registered [ 1.519326] jz4740-mmc 13450000.mmc: Using
> >>>>>>>>>> PIO, 4-bit mode [ 1.524903] NET: Registered protocol
> >>>>>>>>>> family 15 [ 1.530378] 9pnet: Installing 9P2000 support
> >>>>>>>>>> [ 1.534771] Key type dns_resolver registered
> >>>>>>>>>> [ 1.539980] Loading compiled-in X.509 certificates
> >>>>>>>>>> [ 1.557193] clk: Not disabling unused clocks
> >>>>>>>>>> [ 1.561519] ALSA device list: [ 1.564507] No
> >>>>>>>>>> soundcards found. [ 1.568799] Waiting for root
> >>>>>>>>>> device /dev/mmcblk0p1... [ 1.765471] mmc0: host does
> >>>>>>>>>> not support reading read-only switch, assuming
> >>>>>>>>>> write-enable [ 1.775498] mmc0: new high speed SDHC card
> >>>>>>>>>> at address b368 [ 1.782042] mmcblk0: mmc0:b368 CBADS
> >>>>>>>>>> 30.0 GiB [ 1.789365] mmcblk0: p1 [ 1.865196]
> >>>>>>>>>> EXT4-fs (mmcblk0p1): mounted filesystem with ordered data
> >>>>>>>>>> mode. Opts: (null). Quota mode: none. [ 1.875154] VFS:
> >>>>>>>>>> Mounted root (ext4 filesystem) on device 179:1.
> >>>>>>>>>> [ 1.894544] devtmpfs: mounted [ 1.898403] Freeing
> >>>>>>>>>> unused kernel memory: 356K [ 1.902892] This
> >>>>>>>>>> architecture does not have kernel memory protection.
> >>>>>>>>>> [ 1.909441] Run /sbin/init as init process
> >>>>>>>>>> [ 1.913561] with arguments:
> >>>>>>>>>> [ 1.916547] /sbin/init [ 1.919295] with
> >>>>>>>>>> environment: [ 1.922457] HOME=/ [ 1.924836]
> >>>>>>>>>> TERM=linux [ 1.991211] process '/lib/systemd/systemd'
> >>>>>>>>>> started with executable stack [ 3.080872] systemd[1]:
> >>>>>>>>>> System time before build time, advancing clock.
> >>>>>>>>>> [ 3.120113] systemd[1]: Failed to lookup module alias
> >>>>>>>>>> 'autofs4': Function not implemented [ 3.191522]
> >>>>>>>>>> systemd[1]: systemd 241 running in system mode. (+PAM
> >>>>>>>>>> +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP
> >>>>>>>>>> +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP
> >>>>>>>>>> +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2
> >>>>>>>>>> default-hierarchy=hybrid) [ 3.213497] systemd[1]:
> >>>>>>>>>> Detected architecture mips. [ 3.221439] systemd[1]: Set
> >>>>>>>>>> hostname to <debian>. [ 4.708842] systemd[1]:
> >>>>>>>>>> File /lib/systemd/system/systemd-journald.service:12
> >>>>>>>>>> configures an IP firewall (IPAddressDeny=any), but the
> >>>>>>>>>> local system does not support BPF/cgroup based
> >>>>>>>>>> firewalling. [ 4.726074] systemd[1]: Proceeding WITHOUT
> >>>>>>>>>> firewalling in effect! (This warning is only shown for the
> >>>>>>>>>> first loaded unit using IP firewalling.) [ 5.112474]
> >>>>>>>>>> random: systemd: uninitialized urandom read (16 bytes
> >>>>>>>>>> read) [ 5.127174] random: systemd: uninitialized
> >>>>>>>>>> urandom read (16 bytes read) [ 5.134225] systemd[1]:
> >>>>>>>>>> Listening on initctl Compatibility Named Pipe.
> >>>>>>>>>> [ 5.141428] random: systemd: uninitialized urandom read
> >>>>>>>>>> (16 bytes read) [ 5.150065] systemd[1]: Created slice
> >>>>>>>>>> User and Session Slice. [ 5.169160] systemd[1]:
> >>>>>>>>>> Listening on Journal Socket (/dev/log). [ 5.175704]
> >>>>>>>>>> systemd[1]: Listening on udev Kernel Socket.
> >>>>>>>>>> [ 5.183550] systemd[1]: Created slice
> >>>>>>>>>> system-getty.slice. [ 6.497418] Adding 393212k swap
> >>>>>>>>>> on /opt/swap/swapfile. Priority:-2 extents:4
> >>>>>>>>>> across:466940k SS [ 7.568516] systemd-journald[785]:
> >>>>>>>>>> Received request to flush runtime journal from PID 1
> >>>>>>>>>> [ 31.916930] eth0_power: disabling [ 31.920278]
> >>>>>>>>>> wlan0_power: disabling [ 100.156942] random: crng init
> >>>>>>>>>> done [ 100.160371] random: 7 urandom warning(s) missed
> >>>>>>>>>> due to ratelimiting
> >>>>>>>>>>
> >>>>>>>>>> On 2021/5/24 下午5:16, H. Nikolaus Schaller wrote:
> >>>>>>>>>>>> Am 24.05.2021 um 11:14 schrieb Zhou Yanjie
> >>>>>>>>>>>> <zhouyanjie at wanyeetech.com>:
> >>>>>>>>>>>>
> >>>>>>>>>>>> Hi Nikolaus,
> >>>>>>>>>>>>
> >>>>>>>>>>>>>> Do all these phenomena appear in the branch of
> >>>>>>>>>>>>>> work-jz4780-smp-v2?
> >>>>>>>>>>>>> Yes, after enabling SMP and INGENIC_OST. If SMP is
> >>>>>>>>>>>>> disabled everything is slower but fine.
> >>>>>>>>>>>> Sure, I will try it, and do you mean with new cache
> >>>>>>>>>>>> patch, irq patch, and smp patch, but turn off smp in
> >>>>>>>>>>>> menuconfig, then everything is fine?
> >>>>>>>>>>> Yes. I didn't see these boot hangs.
> >>>>>>>>>>>
> >>>>>>>>>>> BR and tnx,
> >>>>>>>>>>> Nikolaus
> >>>>
> >>
More information about the Letux-kernel
mailing list