Date: Thu, 27 Jul 2017 18:34:53 +0200 From: Henri Hennebert <hlh@restart.be> To: Emmanuel Vadot <manu@bidouilliste.com>, Andrew Turner <andrew@fubar.geek.nz> Cc: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> Subject: Re: PINE64+ Release APs, APs not started Message-ID: <cb9eef04-03ce-7124-b891-3252558beab5@restart.be> In-Reply-To: <20170727170250.638710a621ec98f69b348c84@bidouilliste.com> References: <79dd24d5-9669-a767-be2a-0e84bc4d22ae@restart.be> <20170727075234.dd3ec3c7959a302f402e6002@bidouilliste.com> <8161dee3-1cda-c95a-f05c-de898d203673@restart.be> <20170727164320.6a0736c0be8cc7574be4e1c7@bidouilliste.com> <6CC5EDB5-09CF-4037-AC5F-FFB6453B95F7@fubar.geek.nz> <20170727170250.638710a621ec98f69b348c84@bidouilliste.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 07/27/2017 17:02, Emmanuel Vadot wrote: > On Thu, 27 Jul 2017 15:57:40 +0100 > Andrew Turner <andrew@fubar.geek.nz> wrote: > >> >>> On 27 Jul 2017, at 15:43, Emmanuel Vadot <manu@bidouilliste.com> wrote: >>> >>> On Thu, 27 Jul 2017 14:31:18 +0200 >>> Henri Hennebert <hlh@restart.be <mailto:hlh@restart.be>> wrote: >>>> I think that the DTB is wrong. >>>> >>>> Note that my kernel config have: >>>> >>>> options FDT # Flattened Device Tree bus driver >>>> options FDT_DTB_STATIC # Statically embed a DTB file >>>> into a kernel image >>>> makeoptions FDT_DTS_FILE=pine64_plus.dts >>> >>> FDT_DTB_STATIC shouldn't be used unless you *exactly* know what you're >>> doing. Please use GENERIC kernel on ARM64. I will remove it from my kernel config. I previously encounter this problem: https://lists.freebsd.org/pipermail/freebsd-current/2017-May/065875.html so I don't load zfs and opensolaris before boot. I use this script to get my root fs on zfs: #!/bin/sh # PROVIDE: rebootonzfs # BEFORE: sysctl . /etc/rc.subr name="rebootonzfs" desc="Reboot with root on ZFS" command="/sbin/reboot" stop_cmd=":" start_cmd="rebootonzfs_start" rcvar="rebootonzfs_enable" rebootonzfs_start() { /sbin/zpool list /bin/kenv vfs.root.mountfrom="zfs:rpool/ROOT/default" ${command} -r } load_rc_config $name run_rc_command "$1" But today, I try with r321371 to load zfs and opensolaris before boot and it allow most of the time the Release APs to complete. Believing it is a timing problem, I modify mp_machdep.c: Index: sys/arm64/arm64/mp_machdep.c =================================================================== --- sys/arm64/arm64/mp_machdep.c (revision 321371) +++ sys/arm64/arm64/mp_machdep.c (working copy) @@ -209,6 +209,7 @@ if (mp_ncpus == 1) return; + DELAY(1000000); intr_pic_ipi_setup(IPI_AST, "ast", ipi_ast, NULL); intr_pic_ipi_setup(IPI_PREEMPT, "preempt", ipi_preempt, NULL); intr_pic_ipi_setup(IPI_RENDEZVOUS, "rendezvous", ipi_rendezvous, NULL); but it don't get better. Henri >> >> On arm64 we don?t use it so you just end up with a larger kernel image. >> >> Andrew >> > > I recall that you didn't want it but I assumed that some errors will > be thrown if specified, can we do that ? >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cb9eef04-03ce-7124-b891-3252558beab5>