From nobody Mon Sep 4 23:44:19 2023 X-Original-To: hackers@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 4Rflbl5kHVz4rm80 for ; Mon, 4 Sep 2023 23:44:35 +0000 (UTC) (envelope-from crb@chrisbowman.com) Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rflbk4pDHz4JXK for ; Mon, 4 Sep 2023 23:44:34 +0000 (UTC) (envelope-from crb@chrisbowman.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chrisbowman-com.20230601.gappssmtp.com header.s=20230601 header.b=IRywtWGR; spf=none (mx1.freebsd.org: domain of crb@chrisbowman.com has no SPF policy when checking 2607:f8b0:4864:20::634) smtp.mailfrom=crb@chrisbowman.com; dmarc=none Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1bf092a16c9so14630155ad.0 for ; Mon, 04 Sep 2023 16:44:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisbowman-com.20230601.gappssmtp.com; s=20230601; t=1693871071; x=1694475871; darn=freebsd.org; h=to:date:message-id:subject:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=0toE99QewqVNjSjYc8m2i7ARBXWt4BuiA7l+4copmZE=; b=IRywtWGR7yyG2Q+cYixukzSvJ8xEAfZZZcAebT2YoTGdAUdFWKCQv+t6tpuWDCbpw2 E2utg0CtEhJzf4eTAN2Y2XmbcEAmYJqh0VHeDJuCpN8djhxVR6hQI0AzP0fr9N5bPjcX st3j4Q73tADL5bnrolSJdwplRtaI3mrnfgoDJgdnVbhoYy1JbPxA4maoLX1Lu7V3QKFJ qzS7PA1ws2xoxGXZFxPv68u4vxLmQRIKFVQKgZiCfe0KTgjkDEM1bNltj25B3G/by3dP fdn2FzqSwZs94ath/0CzvSivcpJTdYe5QS/jpPMRC66J2663sp+YkyS2gzO6DArh3yRk PrRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693871071; x=1694475871; h=to:date:message-id:subject:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=0toE99QewqVNjSjYc8m2i7ARBXWt4BuiA7l+4copmZE=; b=kbxvK78R7jokMlk2dLbpp8SVopn5u2ChteqyB5yJCEbnSSChwc7qJTUjyWnuJZeT6b xgegT7R8pSF/sDK73peuMoBFv994YBWfKt3t0KvA8R+UKu4d3xFGhaIEY6/hDkqhG0X8 f0jiDKlEnm6vZqBHB7isgbAboDTFSoE/ON02AcT2sIApnHk2lc395PSTKr5AbcGr/3EI vQ4Z2Tncoeq3hiPN5W085g9fGw/3i4fWqnDDw3zbf7YzfA/t6qTtg8oTqwMDzaRbXqKI L8On5oWPCNbMVmS2x46MiQdRG6CLP2SUJ3E8OjhuhQx4extXF+mf+7HNqA0stjxd+IyB zP1A== X-Gm-Message-State: AOJu0YxAaXilI4cMZ/gDVvvYwNdHtkO1d9ZMXgYdC3/+RXANLWYLgQKg FNZHqkDRoWItF4SprLbzLE4ELIG+4dme+C7bVuWicg== X-Google-Smtp-Source: AGHT+IE8HyGJf5BQU3obC0kiwqrYDZv41TEIrLUKEiXZcMqgvEsjYeHRqNiyZWachM/7ESdP/upPyg== X-Received: by 2002:a17:902:e887:b0:1bd:d911:2a85 with SMTP id w7-20020a170902e88700b001bdd9112a85mr14429139plg.12.1693871071172; Mon, 04 Sep 2023 16:44:31 -0700 (PDT) Received: from smtpclient.apple ([2600:1700:5430:10b1:bd53:4baa:f6a1:5b2e]) by smtp.gmail.com with ESMTPSA id w10-20020a170902e88a00b001bbd8cf6b57sm8063756plg.230.2023.09.04.16.44.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Sep 2023 16:44:30 -0700 (PDT) From: Christopher Bowman Content-Type: multipart/alternative; boundary="Apple-Mail=_15CB57CB-A5DB-4F0C-B748-B95ABD7615D3" List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.500.231\)) Subject: Trouble booting current on ARM Message-Id: Date: Mon, 4 Sep 2023 16:44:19 -0700 To: hackers@freebsd.org X-Mailer: Apple Mail (2.3731.500.231) X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.80 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[chrisbowman-com.20230601.gappssmtp.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[hackers@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::634:from]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DKIM_TRACE(0.00)[chrisbowman-com.20230601.gappssmtp.com:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; DMARC_NA(0.00)[chrisbowman.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[hackers@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4Rflbk4pDHz4JXK --Apple-Mail=_15CB57CB-A5DB-4F0C-B748-B95ABD7615D3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I=E2=80=99ve been using an Arty-Z7 from Diligent for several years now. = This is a AMD/Xilinx ZYNQ based board. It=E2=80=99s mostly similar to a = ZED board which has an in tree kernel cobfug. It has worked fine with = 13.0. I=E2=80=99m now looking to mow my work forward and keep pace with = the project. I=E2=80=99d like to eventually upgrade to 14.0 when it = comes out. In preparation I built a new release using sources from = after the 14.0 branch. I=E2=80=99m able to cross build fine but when I = boot the kernel I see the crash below, Has anyone seen panic: Storing = an invalid VFP state. Any information or ideas about what might be = happening before I try to debug? Any information at all would be = helpful. Is anyone else running a Zynq based board of any kind with a recent 14.0 = or current kernel? Thanks for any help, Christopher GDB: debug ports: uart GDB: current port: uart KDB: debugger backends: ddb gdb KDB: current backend: ddb Copyright (c) 1992-2023 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights = reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 15.0-CURRENT armv7 1500000 #3 main-n265107-03d104888cae: Fri Sep = 1 20:18:55 PDT 2023 crb@eclipse.ChrisBowman.com:/usr/obj/tmp/src/arm.armv7/sys/ARTYZ7 = arm FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git = llvmorg-16.0.6-0-g7cbf1a259152) WARNING: WITNESS option enabled, expect reduced performance. WARNING: 32-bit kernels are deprecated and may be removed in FreeBSD = 15.0. CPU: ARM Cortex-A9 r3p0 (ECO: 0x00000000) CPU Features:=20 Multiprocessing, Thumb2, Security, VMSAv7, Coherent Walk Optional instructions:=20 UMULL, SMULL, SIMD(ext) LoUU:2 LoC:2 LoUIS:2=20 Cache level 1: 32KB/32B 4-way data cache WB Read-Alloc Write-Alloc 32KB/32B 4-way instruction cache Read-Alloc real memory =3D 536866816 (511 MB) avail memory =3D 511369216 (487 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs arc4random: WARNING: initial seeding bypassed the cryptographic random = device because it was not yet seeded and the knob = 'bypass_before_seeding' was enabled. random: entropy device external interface ofwbus0: regfix0: on ofwbus0 simplebus0: on ofwbus0 simple_mfd0: mem = 0xf8000000-0xf8000fff on simplebus0 l2cache0: mem 0xf8f02000-0xf8f02fff irq 8 on = simplebus0 l2cache0: cannot allocate IRQ, not using interrupt l2cache0: Part number: 0x3, release: 0x8 l2cache0: L2 Cache enabled: 512KB/32B 8 ways gic0: mem = 0xf8f01000-0xf8f01fff,0xf8f00100-0xf8f001ff on simplebus0 gic0: pn 0x39, arch 0x1, rev 0x2, implementer 0x43b irqs 96 mp_tmr0: mem 0xf8f00200-0xf8f0021f irq 29 on = simplebus0 Timecounter "MPCore" frequency 50000000 Hz quality 800 mp_tmr1: mem 0xf8f00600-0xf8f0061f irq 36 on = simplebus0 Event timer "MPCore" frequency 50000000 Hz quality 1000 cpulist0: on ofwbus0 cpu0: on cpulist0 uart0: mem 0xe0000000-0xe0000fff irq 9 on simplebus0 uart0: console (-1,n,8,1) zy7_qspi0: mem 0xe000d000-0xe000dfff = irq 13 on simplebus0 zy7_qspi0: must have ref-clock property device_attach: zy7_qspi0 attach returned 6 cgem0: mem = 0xe000b000-0xe000bfff irq 14 on simplebus0 cgem0: could not retrieve reference clock. miibus0: on cgem0 rgephy0: PHY 0 on = miibus0 rgephy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, = 1000baseT-FDX, 1000baseT-FDX-master, auto rgephy1: PHY 1 on = miibus0 rgephy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, = 1000baseT-FDX, 1000baseT-FDX-master, auto cgem0: Ethernet address: 66:da:ac:ca:9e:86 sdhci_fdt0: mem = 0xe0100000-0xe0100fff irq 17 on simplebus0 sdhci_fdt0: 1 slot(s) allocated mmc0: on sdhci_fdt0 zy7_devcfg0: mem 0xf8007000-0xf80070ff irq 28 on = simplebus0 Timecounters tick every 1.000 msec usb_needs_explore_all: no devclass panic: Storing an invalid VFP state cpuid =3D 0 time =3D 1 KDB: stack backtrace: db_trace_self() at db_trace_self pc =3D 0xc04fcbf8 lr =3D 0xc0071424 = (db_trace_self_wrapper+0x30) sp =3D 0xc0a14930 fp =3D 0xc0a14a48 db_trace_self_wrapper() at db_trace_self_wrapper+0x30 pc =3D 0xc0071424 lr =3D 0xc02039cc (vpanic+0x140) sp =3D 0xc0a14a50 fp =3D 0xc0a14a70 r4 =3D 0x00000100 r5 =3D 0x00000000 r6 =3D 0xc05b70fb r7 =3D 0xc072f7a8 vpanic() at vpanic+0x140 pc =3D 0xc02039cc lr =3D 0xc02037ac (doadump) sp =3D 0xc0a14a78 fp =3D 0xc0a14a7c r4 =3D 0x2009e010 r5 =3D 0xcfc96000 r6 =3D 0xc06f6da9 r7 =3D 0xcf0cce90 r8 =3D 0xc07a2800 r9 =3D 0xc07408c4 r10 =3D 0xc071f1e0 doadump() at doadump pc =3D 0xc02037ac lr =3D 0xc0520eb0 (fpu_kern_enter) sp =3D 0xc0a14a84 fp =3D 0xc0a14a90 r4 =3D 0xc071f1e0 r5 =3D 0xc0a14a7c r6 =3D 0xc02037ac r10 =3D 0xc0a14a84 fpu_kern_enter() at fpu_kern_enter pc =3D 0xc0520eb0 lr =3D 0xc051e0c8 (cpu_switch+0x5c) sp =3D 0xc0a14a98 fp =3D 0xcfc96000 r4 =3D 0xc0520eb0 r5 =3D 0xc0a14e90 r6 =3D 0x00000000 r10 =3D 0xc07a2800 cpu_switch() at cpu_switch+0x5c pc =3D 0xc051e0c8 lr =3D 0xc051e0c8 (cpu_switch+0x5c) sp =3D 0xc0a14a98 fp =3D 0xcfc96000 Unwind failure (no registers changed) KDB: enter: panic [ thread pid 0 tid 100000 ] Stopped at kdb_enter+0x54: ldrb r15, [r15, r15, ror r15]! db>=20= --Apple-Mail=_15CB57CB-A5DB-4F0C-B748-B95ABD7615D3 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 I=E2=80=99ve = been using an Arty-Z7 from Diligent for several years now.  This is = a AMD/Xilinx ZYNQ based board.  It=E2=80=99s mostly similar to a = ZED board which has an in tree kernel cobfug.  It has worked fine = with 13.0.  I=E2=80=99m now looking to mow my work forward and keep = pace with the project.  I=E2=80=99d like to eventually upgrade to = 14.0 when it comes out.  In preparation I built a new release using = sources from after the 14.0 branch.  I=E2=80=99m able to cross = build fine but when I boot the kernel I see the crash below,  Has = anyone seen panic: Storing an invalid VFP state. =  Any information or ideas about what might be happening before I = try to debug?  Any information at all would be = helpful.

Is anyone else running a Zynq based board of = any kind with a recent 14.0 or current kernel?
Thanks for any = help,
Christopher



GDB: debug ports: uart

GDB: current port: uart

KDB: debugger backends: ddb gdb

KDB: current backend: ddb

Copyright (c) 1992-2023 The FreeBSD Project.

Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, = 1992, 1993, 1994

= The Regents of the University of California. All rights = reserved.

FreeBSD is a registered trademark of The FreeBSD = Foundation.

FreeBSD 15.0-CURRENT armv7 1500000 #3 = main-n265107-03d104888cae: Fri Sep  1 20:18:55 PDT 2023

    = crb@eclipse.ChrisBowman.com:/usr/obj/tmp/src/arm.armv7/sys/ARTYZ7 = arm

FreeBSD clang version 16.0.6 = (https://github.com/llvm/llvm-project.git = llvmorg-16.0.6-0-g7cbf1a259152)

WARNING: WITNESS option enabled, expect reduced = performance.

WARNING: 32-bit kernels are deprecated and may be = removed in FreeBSD 15.0.

CPU: ARM Cortex-A9 r3p0 (ECO: 0x00000000)

CPU Features: 

  Multiprocessing, Thumb2, Security, VMSAv7, = Coherent Walk

Optional instructions: 

  UMULL, SMULL, SIMD(ext)

LoUU:2 LoC:2 LoUIS:2 

Cache level 1:

 32KB/32B 4-way data cache WB Read-Alloc = Write-Alloc

 32KB/32B 4-way instruction cache Read-Alloc

real memory  =3D 536866816 (511 MB)

avail memory =3D 511369216 (487 MB)

FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs

arc4random: WARNING: initial seeding bypassed the = cryptographic random device because it was not yet seeded and the knob = 'bypass_before_seeding' was enabled.

random: entropy device external interface

ofwbus0: <Open Firmware Device Tree>

regfix0: <Fixed Regulator> on ofwbus0

simplebus0: <Flattened device tree simple bus> on = ofwbus0

simple_mfd0: <Simple MFD (Multi-Functions = Device)> mem 0xf8000000-0xf8000fff on simplebus0

l2cache0: <PL310 L2 cache controller> mem = 0xf8f02000-0xf8f02fff irq 8 on simplebus0

l2cache0: cannot allocate IRQ, not using interrupt

l2cache0: Part number: 0x3, release: 0x8

l2cache0: L2 Cache enabled: 512KB/32B 8 ways

gic0: <ARM Generic Interrupt Controller> mem = 0xf8f01000-0xf8f01fff,0xf8f00100-0xf8f001ff on simplebus0

gic0: pn 0x39, arch 0x1, rev 0x2, implementer 0x43b = irqs 96

mp_tmr0: <ARM MPCore Timers> mem = 0xf8f00200-0xf8f0021f irq 29 on simplebus0

Timecounter "MPCore" frequency 50000000 Hz quality = 800

mp_tmr1: <ARM MPCore Timers> mem = 0xf8f00600-0xf8f0061f irq 36 on simplebus0

Event timer "MPCore" frequency 50000000 Hz quality = 1000

cpulist0: <Open Firmware CPU Group> on = ofwbus0

cpu0: <Open Firmware CPU> on cpulist0

uart0: <Cadence UART> mem 0xe0000000-0xe0000fff = irq 9 on simplebus0

uart0: console (-1,n,8,1)

zy7_qspi0: <Zynq Quad-SPI Flash Controller> mem = 0xe000d000-0xe000dfff irq 13 on simplebus0

zy7_qspi0: must have ref-clock property

device_attach: zy7_qspi0 attach returned 6

cgem0: <Cadence CGEM Gigabit Ethernet Interface> = mem 0xe000b000-0xe000bfff irq 14 on simplebus0

cgem0: could not retrieve reference clock.

miibus0: <MII bus> on cgem0

rgephy0: <RTL8169S/8110S/8211 1000BASE-T media = interface> PHY 0 on miibus0

rgephy0:  none, 10baseT, 10baseT-FDX, 100baseTX, = 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto

rgephy1: <RTL8169S/8110S/8211 1000BASE-T media = interface> PHY 1 on miibus0

rgephy1:  none, 10baseT, 10baseT-FDX, 100baseTX, = 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto

cgem0: Ethernet address: 66:da:ac:ca:9e:86

sdhci_fdt0: <Zynq-7000 generic fdt SDHCI = controller> mem 0xe0100000-0xe0100fff irq 17 on simplebus0

sdhci_fdt0: 1 slot(s) allocated

mmc0: <MMC/SD bus> on sdhci_fdt0

zy7_devcfg0: <Zynq devcfg block> mem = 0xf8007000-0xf80070ff irq 28 on simplebus0

Timecounters tick every 1.000 msec

usb_needs_explore_all: no devclass

panic: Storing an invalid VFP state

cpuid =3D 0

time =3D 1

KDB: stack backtrace:

db_trace_self() at db_trace_self

= pc =3D 0xc04fcbf8  lr =3D 0xc0071424 = (db_trace_self_wrapper+0x30)

= sp =3D 0xc0a14930  fp =3D 0xc0a14a48

db_trace_self_wrapper() at = db_trace_self_wrapper+0x30

= pc =3D 0xc0071424  lr =3D 0xc02039cc = (vpanic+0x140)

= sp =3D 0xc0a14a50  fp =3D 0xc0a14a70

= r4 =3D 0x00000100  r5 =3D 0x00000000

= r6 =3D 0xc05b70fb  r7 =3D 0xc072f7a8

vpanic() at vpanic+0x140

= pc =3D 0xc02039cc  lr =3D 0xc02037ac (doadump)

= sp =3D 0xc0a14a78  fp =3D 0xc0a14a7c

= r4 =3D 0x2009e010  r5 =3D 0xcfc96000

= r6 =3D 0xc06f6da9  r7 =3D 0xcf0cce90

= r8 =3D 0xc07a2800  r9 =3D 0xc07408c4

= r10 =3D 0xc071f1e0

doadump() at doadump

= pc =3D 0xc02037ac  lr =3D 0xc0520eb0 = (fpu_kern_enter)

= sp =3D 0xc0a14a84  fp =3D 0xc0a14a90

= r4 =3D 0xc071f1e0  r5 =3D 0xc0a14a7c

= r6 =3D 0xc02037ac r10 =3D 0xc0a14a84

fpu_kern_enter() at fpu_kern_enter

= pc =3D 0xc0520eb0  lr =3D 0xc051e0c8 = (cpu_switch+0x5c)

= sp =3D 0xc0a14a98  fp =3D 0xcfc96000

= r4 =3D 0xc0520eb0  r5 =3D 0xc0a14e90

= r6 =3D 0x00000000 r10 =3D 0xc07a2800

cpu_switch() at cpu_switch+0x5c

= pc =3D 0xc051e0c8  lr =3D 0xc051e0c8 = (cpu_switch+0x5c)

= sp =3D 0xc0a14a98  fp =3D 0xcfc96000

Unwind failure (no registers changed)

KDB: enter: panic

[ thread pid 0 tid 100000 ]

Stopped at      kdb_enter+0x54: = ldrb    r15, [r15, r15, ror r15]!

db> 

= --Apple-Mail=_15CB57CB-A5DB-4F0C-B748-B95ABD7615D3--