From nobody Mon Mar 06 16:59:03 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PVlD90RL8z3w7Zp for ; Mon, 6 Mar 2023 16:59:21 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic315-54.consmr.mail.gq1.yahoo.com (sonic315-54.consmr.mail.gq1.yahoo.com [98.137.65.30]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PVlD84s7Pz426M for ; Mon, 6 Mar 2023 16:59:20 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1678121959; bh=PawE3kjekwZji4vysbSnt49eCx93B683h0XvCxa1+8o=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=fYJo0YbEk5DsjICB32gqUBDQGyiW7kO7b9+Hg3fyjslncMJFDbqjjRVmzYfbwQ3y50WfyREuIvxh0ppm3cRYRHCftZiEhgl8fLmUZ07lodfeZbZUjaME76k9vDy5wjq1uAPmoNvEpf8NkgXbJVtM372l2EqYEULLDEQKIfHVaBq6ryaR02eJgSOPkkopT6n6kF2MBIoIgWw6TZlZA7cb9CovHhcuqwNfv0vB30fCT0ZS5sOSZlyWdOQ6p7fB2lWZP3qcXRR0axXn8gLhqZe+1E8P54Cx/Mm9Uo/N202Ck3WuyoHvnNJnZ7L+L644VeZfpCZVUa1y6wK2IlY0HZDUlA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1678121959; bh=IH3r89EHJhYwTn1vb7MimB+aE8x7zwgqiM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M03qt__1oESREmjSWyK1mvDFk_xrajFk8qIX3p7F9mR4rw_hs38siYr32t5Lw3OgcSL OFXDe7OwJj5TJKpTxjJKZjT8yOKigXk1E_IMdMKx42v87OMQNK9CZAt2Ip4bpMlC8i8WxHL_Wfdm SJoBK8rkbV1sGreZRjdi9iXVP0HgP7L6yAy4JxqMxcLbIQdcfIOv92I.Hz91Qr3za1C9i0ztmh2R zEG_reJ5TDkIEsNU7_fsl4RxAxiAmNU62OmjB.GFT2tOijs991UL_TvWPsO01THgfI8qaLTU3Uhp 0Y21j6XGLnZzjbLPpEMs0UKLZxxEuOsVXK5gdPKi3OTblcMbvmKMR7Zp0LqStjXd8YbLTeOcG3FP KP5lNa5HKQErcLU.T2eXuRffQJGN3vbDVNUT2HyzPHz2ssnhXTLcA1riOCDCv.2yFaRbbkN2N.VD ZZNdolQiktcPmcxDttGUWJfitqB22UqUX9OGeO009J5kSdUOR6JCI9R58yX85afjKv4b8un2WnXd PR_.L_z.BHKKwDjXUJWDzOzC1Mc9oPapRO8KejlLvIOMw7yqsFZPT0cDSYLCltG0sEgJ4yyf.vYw - X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Mon, 6 Mar 2023 16:59:19 +0000 Received: by hermes--production-ne1-7688d778d7-vqkdr (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 984578853556969f883f250fadea7e74; Mon, 06 Mar 2023 16:59:16 +0000 (UTC) Content-Type: text/plain; charset=utf-8 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Subject: Re: panic: Called fill_fpregs while the kernel is using the VFP From: Mark Millard In-Reply-To: <20230306151928.GA51161@www.zefox.net> Date: Mon, 6 Mar 2023 08:59:03 -0800 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <003859D4-9CAB-492A-B433-915A0675CD44@yahoo.com> References: <20230306151928.GA51161@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Rspamd-Queue-Id: 4PVlD84s7Pz426M X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Mar 6, 2023, at 07:19, bob prohaska wrote: > This is new to me. Pi2 running armv7 at=20 > main-4b0552d5f4: Thu Feb 16 16:12:46 PST 2023 >=20 > panic: Called fill_fpregs while the kernel is using the VFP > cpuid =3D 3 > time =3D 1678112700 > KDB: stack backtrace: > db_trace_self() at db_trace_self > pc =3D 0xc05e5aec lr =3D 0xc007a684 (db_trace_self_wrapper+0x30) > sp =3D 0xdd2de790 fp =3D 0xdd2de8a8 > db_trace_self_wrapper() at db_trace_self_wrapper+0x30 > pc =3D 0xc007a684 lr =3D 0xc02e9184 (vpanic+0x140) > sp =3D 0xdd2de8b0 fp =3D 0xdd2de8d0 > r4 =3D 0x00000100 r5 =3D 0x00000000 > r6 =3D 0xc07875a1 r7 =3D 0xc0b12f08 > vpanic() at vpanic+0x140 > pc =3D 0xc02e9184 lr =3D 0xc02e8f64 (dump_savectx) > sp =3D 0xdd2de8d8 fp =3D 0xdd2de8dc > r4 =3D 0xe05bc900 r5 =3D 0xc4c19e90 > r6 =3D 0xdffb6e50 r7 =3D 0xd70afa40 > r8 =3D 0xdffb6e40 r9 =3D 0xe05bc900 > r10 =3D 0xdd2de960 > dump_savectx() at dump_savectx > pc =3D 0xc02e8f64 lr =3D 0xc05f2ea8 (set_regs) > sp =3D 0xdd2de8e4 fp =3D 0xdd2de8f8 > set_regs() at set_regs > pc =3D 0xc05f2ea8 lr =3D 0xc026ee34 (elf32_get_fpregset+0x2c) > sp =3D 0xdd2de900 fp =3D 0xdd2de908 > r4 =3D 0xdffb6e50 r5 =3D 0xc026ee08 > elf32_get_fpregset() at elf32_get_fpregset+0x2c > pc =3D 0xc026ee34 lr =3D 0xc026cd9c (elf32_coredump+0x308) > sp =3D 0xdd2de910 fp =3D 0xdd2de988 > r4 =3D 0xc09033d4 r10 =3D 0xdd2de960 > elf32_coredump() at elf32_coredump+0x308 > pc =3D 0xc026cd9c lr =3D 0xc02edfac (sigexit+0xce0) > sp =3D 0xdd2de990 fp =3D 0xdd2decf8 > r4 =3D 0x0000004e r5 =3D 0xddb6883c > r6 =3D 0xddb68754 r7 =3D 0xc026ca94 > r8 =3D 0xde22e2bc r9 =3D 0xddb687b0 > r10 =3D 0x00000000 > sigexit() at sigexit+0xce0 > pc =3D 0xc02edfac lr =3D 0xc02ee8ac (postsig+0x128) > sp =3D 0xdd2ded00 fp =3D 0xdd2ded88 > r4 =3D 0x00000006 r5 =3D 0xde2f5000 > r6 =3D 0xdd2ded20 r7 =3D 0xdd2ded18 > r8 =3D 0xde22e1f8 r9 =3D 0xd710cab8 > r10 =3D 0x00000005 > postsig() at postsig+0x128 > pc =3D 0xc02ee8ac lr =3D 0xc02f26dc (ast_sig+0x11c) > sp =3D 0xdd2ded90 fp =3D 0xdd2dee08 > r4 =3D 0xde2f5000 r5 =3D 0xde22e2bc > r6 =3D 0xc0753a8d r7 =3D 0x00000000 > r8 =3D 0xde22e1f8 r9 =3D 0x00000ab8 > r10 =3D 0x23adf040 > ast_sig() at ast_sig+0x11c > pc =3D 0xc02f26dc lr =3D 0xc0352fb0 (ast_handler+0xe0) > sp =3D 0xdd2dee10 fp =3D 0xdd2dee28 > r4 =3D 0xdd2dee40 r5 =3D 0x0000000e > r6 =3D 0x00004000 r7 =3D 0xc096bf9c > r8 =3D 0xde2f5000 r9 =3D 0x00000001 > ast_handler() at ast_handler+0xe0 > pc =3D 0xc0352fb0 lr =3D 0xc0352ec0 (ast+0x20) > sp =3D 0xdd2dee30 fp =3D 0xdd2dee38 > r4 =3D 0xdd2dee40 r5 =3D 0xde2f5000 > r6 =3D 0x00000000 r7 =3D 0x000001b1 > r8 =3D 0x24006570 r9 =3D 0x23adf040 > ast() at ast+0x20 > pc =3D 0xc0352ec0 lr =3D 0xc05e8410 (swi_exit+0x3c) > sp =3D 0xdd2dee40 fp =3D 0xbfbfcaf0 > r4 =3D 0x60000013 r5 =3D 0xde2f5000 > swi_exit() at swi_exit+0x3c > pc =3D 0xc05e8410 lr =3D 0xc05e8410 (swi_exit+0x3c) > sp =3D 0xdd2dee40 fp =3D 0xbfbfcaf0 > KDB: enter: panic > [ thread pid 8505 tid 100176 ] > Stopped at kdb_enter+0x54: ldrb r15, [r15, r15, ror r15]! > db>=20 >=20 See . . . For the fixes to this armv7/armv6 specific problem: Mon, 20 Feb 2023 =E2=80=A2 git: 24abb6b82102 - main - When saving a context on arm = call the vfp handler Andrew Turner Thu, 23 Feb 2023 =E2=80=A2 git: 4d2427f2c445 - main - arm: Unbreak debugging programs = that use FP instructions Kornel Dul=C4=99ba=20 =E2=80=A2 git: 98c666cf8758 - main - arm: Fix initialization of VFP = context Kornel Dul=C4=99ba=20 So you need 98c666cf8758 or later. For where it was broken: Sat, 04 Feb 2023 =E2=80=A2 git: 6926e2699ae5 - main - arm: Add support for using VFP in = kernel Kornel Dul=C4=99ba=20 =E2=80=A2 git: e5d7c5c857f8 - main - arm: mv: Add missing function = prototype Kornel Dul=C4=99ba=20 It can be nasty to try to build the kernel via a system running a broken kernel. Getting an appropriate vintage kernel via a snapshot can work around such issues. Another way is using an appropriate kernel.txz from what is available via looking around in: https://artifact.ci.freebsd.org/snapshot/main/?C=3DM&O=3DD After renaming/deleting /boot/kernel , that compressed tar file can be expanded with -C / involved to create a /boot/kernel/ on the armv7 media. With that kernel booted, then a normal build/install update can be done. (The wording does not deal with if you happen to end up with a temporary kernel that is broken in some other way: pick a different one in that case.) =3D=3D=3D Mark Millard marklmi at yahoo.com