From nobody Wed Sep 6 05:55:36 2023 X-Original-To: freebsd-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 4RgWnf0C38z4ssP7 for ; Wed, 6 Sep 2023 05:55:50 +0000 (UTC) (envelope-from crb@chrisbowman.com) Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) (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 4RgWnd0q2cz4KVQ for ; Wed, 6 Sep 2023 05:55:49 +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=Xs2utrVJ; spf=none (mx1.freebsd.org: domain of crb@chrisbowman.com has no SPF policy when checking 2607:f8b0:4864:20::42b) smtp.mailfrom=crb@chrisbowman.com; dmarc=none Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-68a3082c771so442052b3a.0 for ; Tue, 05 Sep 2023 22:55:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisbowman-com.20230601.gappssmtp.com; s=20230601; t=1693979747; x=1694584547; darn=freebsd.org; h=to:date:message-id:subject:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=TV8Qi9aW8PlfdhI7fCMtfxrFRumiHVgMRVIKnQZ5gV0=; b=Xs2utrVJ9X1vAAhTT1EsAYtUlp5fksiHwJucT4FR2Y/dwHuLQYZrWDO73ZLhs6lnVa yX4nfpCAYMShx7Fl/WtqZy4FZKUcev3vynJkEndSm3HkWVSuL4o4nYCJcAXUBDvTzRjS UO5MPl29R0yKZ+72IWQJBSXt5sg5PsqT3SEOE1w04wjdEjxrE1+wwKQdDmL5tXIAbNLf 9zrdR5RSXbNsmTexzaXlLS3fE3ax9bHszgGSKjFE6P+WIautckPiv0jR64dpLcKRZ8D9 NM+SyvkWWYMf14AiNKClVlcedUPtuGbHtrPl9DnTQJBr7WjXrrr1HqBu0CrqOzhD19dh rwjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693979747; x=1694584547; h=to:date:message-id:subject:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=TV8Qi9aW8PlfdhI7fCMtfxrFRumiHVgMRVIKnQZ5gV0=; b=EhwAjIkhz1KNrKw7QVSuLb9tz17m7sCB5gFrAs1EJDMBbOtGMWu+I9OTxwJVwOIj64 YU8z+LJ05lpuu0tqtAJ181UOLGyjgUECHzayPcj6DdAvD2kK4BF45l7SNkmazJY4HmJs xUOAmbq7qikS7NxGO0ELlec7dtosxEnHmjJMZDaioMouNnnWvqwAQaMdIRuelJ1O8vr2 sNa5uKrwiLP2xJbARPKR10WN+E/3oNgexgZlYPoQGtg1kN2C6r+6k5OO6LwideKV6OGa WvJtVcucl6XtvgeyFcQWE9ORuHhvQVl+XD5XLb7YZdriQhQ0TdNFPZqd5px5DRgS1VDT 8Fpg== X-Gm-Message-State: AOJu0Yzv6ApYteGRk7q9tK2eguQloLukEb/3EXwbXrnYqOb0aFTnFH43 VCSLNfOlB9jgmzZqOZ2Cxeek796qrt6paeu9BK42UA== X-Google-Smtp-Source: AGHT+IEhxsYexmiE745qRPCeWKHvvb5ZoKQKEREjEHOm6BPjEFlEVodXVyMI9NJHQiBGgxUtpJnNeg== X-Received: by 2002:a05:6a20:54a2:b0:133:38cb:2b93 with SMTP id i34-20020a056a2054a200b0013338cb2b93mr20320195pzk.9.1693979747239; Tue, 05 Sep 2023 22:55:47 -0700 (PDT) Received: from smtpclient.apple ([2600:1700:5430:10b1:950c:7ab8:ebbf:4521]) by smtp.gmail.com with ESMTPSA id j22-20020a62b616000000b0068bdb0be6b8sm9969821pff.33.2023.09.05.22.55.46 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Sep 2023 22:55:46 -0700 (PDT) From: Christopher Bowman Content-Type: multipart/alternative; boundary="Apple-Mail=_46CCF1F6-FBA3-4145-B153-798AEDE55049" 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 AMD/Xilinx Zynq ARM based board Message-Id: <383D43E7-7BCB-452F-B8D6-7A65153FD2AD@chrisbowman.com> Date: Tue, 5 Sep 2023 22:55:36 -0700 To: freebsd-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_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-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]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::42b:from]; R_SPF_NA(0.00)[no SPF record]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; 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)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4RgWnd0q2cz4KVQ --Apple-Mail=_46CCF1F6-FBA3-4145-B153-798AEDE55049 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 config. It has worked fine with = 13.0. I=E2=80=99m now looking to mowe 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=_46CCF1F6-FBA3-4145-B153-798AEDE55049 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 config.  It has worked fine = with 13.0.  I=E2=80=99m now looking to mowe 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=_46CCF1F6-FBA3-4145-B153-798AEDE55049--