Date: Sat, 06 Jun 2020 19:44:58 +0000 From: Robert Crowston <crowston@protonmail.com> To: =?UTF-8?Q?Klaus_K=C3=BCchemann?= <maciphone2@googlemail.com> Cc: Kyle Evans <kevans@freebsd.org>, "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> Subject: Re: Report: FreeBSD on Rpi4 8 GB model Message-ID: <TOfPYaU1tsGAVzQ8BHRMQKLpEJ3n-kGyxXrTnkciwTs5iQQlrRsN-ZfV_Dp2hbhfJR8mJHIaaPm6CTCW-Ga2kyA0cwG_IVWfq6wQZBWgiLA=@protonmail.com> In-Reply-To: <D14EC630-3BE9-4E19-B76A-B721C2BBBF75@googlemail.com> References: <kb9ZDoXeXjZQGaI_pHItcwGDLz9nl5FzAe-_mxkI1N9MAFSkDpvFbwt-JUy-YmoOg-3C9bFyiNYgUoGvAnJZvsxbbGVHP4ZlUC84EgCd6A0=@protonmail.com> <F6CF4F00-44EA-4980-9B45-F7EE92738351@googlemail.com> <CACNAnaGwsrgQsSGxxOTr4n6cxP_ts3Z07pmTwb8inGzNXR2B3w@mail.gmail.com> <D14EC630-3BE9-4E19-B76A-B721C2BBBF75@googlemail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> No, SPIN_PAGES=3D2 is fine I confirm that CONFIG_RPI_EFI_NR_SPIN_PAGES 2 is sufficient. > Even without this setting, it should still largely boot; > you'll just only have half the memory you wanted. Without raising the spin pages limit, the kernel panics while trying to sta= rt the secondary CPUs. I don't have a working JTAG so I can't diagnose exac= tly why, but the spin table thing seemed like an obvious thing to check. Starting CPU 1 (1) panic: Failed to start CPU 1 (1), error 16 cpuid =3D 0 time =3D 1 KDB: stack backtrace: db_trace_self() at db_trace_self_wrapper+0x28 pc =3D 0xffff00000075cd0c lr =3D 0xffff00000010a0ac sp =3D 0xffff000000010590 fp =3D 0xffff000000010790 db_trace_self_wrapper() at vpanic+0x194 pc =3D 0xffff00000010a0ac lr =3D 0xffff0000004185c0 sp =3D 0xffff0000000107a0 fp =3D 0xffff0000000107f0 vpanic() at panic+0x44 pc =3D 0xffff0000004185c0 lr =3D 0xffff000000418368 sp =3D 0xffff000000010800 fp =3D 0xffff0000000108b0 panic() at start_cpu+0x224 pc =3D 0xffff000000418368 lr =3D 0xffff00000076bd94 sp =3D 0xffff0000000108c0 fp =3D 0xffff0000000108c0 start_cpu() at cpu_init_fdt+0x34 pc =3D 0xffff00000076bd94 lr =3D 0xffff00000076b094 sp =3D 0xffff0000000108d0 fp =3D 0xffff000000010930 cpu_init_fdt() at ofw_cpu_early_foreach+0x180 pc =3D 0xffff00000076b094 lr =3D 0xffff00000020e0cc sp =3D 0xffff000000010940 fp =3D 0xffff000000010990 ofw_cpu_early_foreach() at mp_start+0x8c pc =3D 0xffff00000020e0cc lr =3D 0xffff000000472e98 sp =3D 0xffff0000000109a0 fp =3D 0xffff0000000109f0 mp_start() at mi_startup+0x12c pc =3D 0xffff000000472e98 lr =3D 0xffff0000003abfcc sp =3D 0xffff000000010a00 fp =3D 0xffff000000010a20 mi_startup() at virtdone+0x5c pc =3D 0xffff0000003abfcc lr =3D 0xffff00000000108c sp =3D 0xffff000000010a30 fp =3D 0x0000000000000000 KDB: enter: panic =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Saturday, 6 June 2020 20:29, Klaus K=C3=BCchemann via freebsd-arm <freeb= sd-arm@freebsd.org> wrote: > > > > Am 06.06.2020 um 21:19 schrieb Kyle Evans kevans@freebsd.org: > > On Sat, Jun 6, 2020 at 2:13 PM Klaus K=C3=BCchemann via freebsd-arm > > freebsd-arm@freebsd.org wrote: > > > > > > Am 06.06.2020 um 20:15 schrieb Robert Crowston via freebsd-arm free= bsd-arm@freebsd.org: > > > > =E2=80=A6... > > > > Edit board/raspberrypi/rpi/Kconfig, set RPI_EFI_NR_SPIN_PAGES to a = larger number (I picked 10, probably too big, but it was easier than doing = the arithmetic). > > > > =E2=80=A6=E2=80=A6 > > > > > > You mean that https://reviews.freebsd.org/D24085 rpi4_fragment has to= set SPIN_PAGES from 2 to 10 ? > > > This could be done in sysutils/u-boot-rpi4 , perhaps with something l= ike an #ifdef RPI4/8GB=E2=80=9C for the first try . > > > > No, SPIN_PAGES=3D2 is fine; the default in upstream is 1 because they > > don't need any more, so he would've needed to manually bump it to 2. > > You should be able to just add CONFIG_NR_DRAM_BANKS=3D8 to > > sysutils/u-boot-rpi4's rpi4_fragment and it 'just work' -- this was > > tested on IRC a couple days ago, and should be safe for all variants > > as far as I'm aware (but needed to test on my 4GB variant). Even > > without this setting, it should still largely boot; you'll just only > > have half the memory you wanted. > > Thanks, > > Kyle Evans > > Ah, thanks a lot ! > So it was too hasty from me to post to https://reviews.freebsd.org/D24085= :-) > Regards > Klaus > > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?TOfPYaU1tsGAVzQ8BHRMQKLpEJ3n-kGyxXrTnkciwTs5iQQlrRsN-ZfV_Dp2hbhfJR8mJHIaaPm6CTCW-Ga2kyA0cwG_IVWfq6wQZBWgiLA=>