From owner-freebsd-arm@freebsd.org Mon Jan 11 22:23:36 2021 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1D8024E88F3 for ; Mon, 11 Jan 2021 22:23:36 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic313-20.consmr.mail.gq1.yahoo.com (sonic313-20.consmr.mail.gq1.yahoo.com [98.137.65.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DF7X760pMz3Gcc for ; Mon, 11 Jan 2021 22:23:35 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1610403813; bh=7okE2mNMlVSvY1jglNRBS/No/NpRF/6Locn0NxckKyW=; h=Subject:From:Date:To:From:Subject; b=ala/UHQjbnW5clnYDdTzl/xtUJ05zn5PLoj1jv0gKeTPDYrVbo5UhB6oSNtbFylvV6rkOJ38EgRX0keMcsGHn66VUunycqNydUdBsXuDX6nTN4/PoZfz37vK6mZYrGg76+08MPm46gbUzscy5FzBUgeNUBttf3z6+CKFPVwKIw86NkT8rHV276NwJdgM70toe3GhscV78bc6dQirn01CE5/s3tdJyc7LGseOlDLz2Q8Y3bvUEcgjptKL2g7AUuQFLSCjvWlsYt6GaEff0bvdGfh4c1qjD3JQcwq9F04renYKiqlGOLnnhYyBYJGwyXLhcfIwlSMzCMgVIqW7u0WRcg== X-YMail-OSG: IhtAYFAVM1luI7r7bufBFzLvTTtKcXxIAOMREE5syl_wNRZIN1E.o.PxncHJehb .dkA8nL3kJ.ebCoExCLgBm_sXcB5.wxnEhGdE.XdeGIALjzo6yThlJchAhry9mtYQoRbL0ELBWgJ tExPgh6kk23hjIvMJRiM8o7D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kubh8VmlJBPG07Qb5uyn6.aOv69rzw4UKR_09n8AF LkSw8ekq36xpJaPRFXm.7n7sfehiNXO9SNT.3GAT86MK3BQV4CziKu9Dqg1Zs0mKlgHJbNUgoO8e tvEHesdNK74bs8QESo_A.VG1Qg78QsImXERYXx8CPp4a6po0AM.IRzXpZjamHRGdxkFtBD9GcWSi nPMjdhGAe.8C5sRkqHivgDX.0.NlRFx4Tnq1hvCjoUi.hXqwfMfPue7m9NPfNzgfCx6d9kz5Okqn A2cAMzloZdGiBjSwNDO9O2QGO Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.gq1.yahoo.com with HTTP; Mon, 11 Jan 2021 22:23:33 +0000 Received: by smtp416.mail.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 2470f15e42f320053c473b8089e5cd72; Mon, 11 Jan 2021 22:23:28 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\)) Subject: Re: PR 252541: Early kernel panic on RPi4B (Too many early devmatch mappings) From: Mark Millard In-Reply-To: Date: Mon, 11 Jan 2021 14:23:28 -0800 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <7C6DC946-B7B6-42C8-A8B9-0471ED7B77AA@yahoo.com> References: To: Gordon Bergling X-Mailer: Apple Mail (2.3654.40.0.2.32) X-Rspamd-Queue-Id: 4DF7X760pMz3Gcc X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jan 2021 22:23:36 -0000 On 2021-Jan-11, at 12:47, Gordon Bergling wrote: > Hi, >=20 > I am currently investigating PR 252541 (Too many early devmatch = mappings) [1]. >=20 > The kernel panic happends on the RPi4B. Has anyone successfully booted = a rivision > on the RPi4B after: >=20 > = --------------------------------------------------------------------------= ------- > commit e83fdf8bb391579fa422d34663cd8c1f82a00dc0 > Author: Chuck Tuffli > AuthorDate: 2021-01-08 22:36:37 +0000 > Commit: Chuck Tuffli > CommitDate: 2021-01-08 22:41:45 +0000 >=20 > fix big-endian platforms after 6733401935f8 >=20 > The NVMe byte-swap routines for big-endian platforms used memcpy() = to > move the unaligned 64-bit value into a temp register to byte swap = it. > Instead of introducing a dependency, manually byte-swap the values = in > place. > = --------------------------------------------------------------------------= ------- >=20 > --Gordon >=20 > [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252541 I do my own builds but I'm running based on 19cca0b9613d with CommitDate 2021-01-09 16:21:33 -0800 : # ~/fbsd-based-on-what-freebsd-main.sh mm-src 19cca0b9613d7c3058e41baf0204245119732235 CommitDate: 2021-01-09 16:21:33 -0800 5d333ee67ac3 19cca0b9613d (HEAD -> mm-src) mm-src snapshot for mm's = patched build in git context. FreeBSD RPi4B 13.0-CURRENT FreeBSD 13.0-CURRENT = mm-src-c255807-g5d333ee67ac3 GENERIC-NODBG arm64 aarch64 1300134 = 1300134 In other words, the history spanned for e83fdf8bb391 and after is: * aio: fix the tests when ZFS is not available Alan Somers = 46 hours 2 -0/+5 * linuxkpi: Fix the "error: unknown type name 'u32'" compilation = issue when Neel Chauhan 47 hours 1 -0/+1 * netmap: vtnet: stop krings during interface reset Vincenzo = Maffione 48 hours 1 -1/+7 * netmap: refactor netmap_reset Vincenzo Maffione 2 days = 1 -45/+20 * netmap: iflib: fix asserts in netmap_fl_refill() Vincenzo = Maffione 2 days 1 -1/+2 * netmap: iflib: stop krings during interface reset Vincenzo = Maffione 2 days 2 -1/+10 * fileargs: add tests Mariusz Zaborski 2 days 3 = -0/+625 * tcp: don't use KTLS socket option on listening sockets Michael = Tuexen 4 days 1 -0/+10 * arm: revert MAXDSIZ change from 202aea9c82ea Kyle Evans = 2 days 1 -1/+1 * kevent(2): Bugfix for wrong EVFILT_TIMER timeouts Jan = Kokem=C3=BCller 2 days 1 -1/+1 * ldd: renumber executable type constants Ed Maste 2 days = 1 -2/+2 * diff: honour flags with -q Ed Maste 2 days 2 = -1/+13 * sysctl: improve debug.kdb.panic_str description Warner Losh = 2 days 1 -1/+1 * last(1): Add EXAMPLES section Fernando Apestegu=C3=ADa = 2 days 1 -4/+22 * man(1): Bump .Dd Fernando Apestegu=C3=ADa 2 days = 1 -1/+1 * man(1): Add EXAMPLES section Fernando Apestegu=C3=ADa = 2 days 1 -0/+35 * mvneta: Acquire the softc lock before clearing the MIB Mark = Johnston 2 days 1 -0/+2 * Add fib lookup testing module. Alexander V. Chernikov 2 days = 2 -0/+548 * Bring DPDK route lookups to FreeBSD. Alexander V. Chernikov = 2 days 17 -0/+6030 * Fix LINT kernel build after = 01f2e864f79584c0cd250a8e7cfb501a9985768a. Hans Petter Selasky = 3 days 1 -1/+4 * certctl: factor out certname resolution Kyle Evans 3 days = 1 -2/+17 * certctl: replace hardcoded uses of /usr/local Kyle Evans = 3 days 1 -2/+3 * fix big-endian platforms after 6733401935f8 Chuck Tuffli = 3 days 1 -5/+9 The RPi4B is a 8 GiByte one, booted directly from a USB3 SSD, no microsd card involved. I can boot either u-boot style or UEFI/ACPI style from the same media, just switching config.txt content. I do not have MMCCAM or the like: # more /usr/fbsd/mm-src/sys/arm64/conf/GENERIC-NODBG=20 # # GENERIC -- Custom configuration for the arm64/aarch64 # include "GENERIC" ident GENERIC-NODBG makeoptions DEBUG=3D-g # Build kernel with gdb(1) = debug symbols options ALT_BREAK_TO_DEBUGGER options KDB # Enable kernel debugger support # For minimum debugger support (stable branch) use: #options KDB_TRACE # Print a stack trace for a = panic options DDB # Enable the kernel debugger # Extra stuff: #options VERBOSE_SYSINIT=3D0 # Enable verbose sysinit = messages #options BOOTVERBOSE=3D1 #options BOOTHOWTO=3DRB_VERBOSE #options KTR #options KTR_MASK=3DKTR_TRAP ##options KTR_CPUMASK=3D0xF #options KTR_VERBOSE # Disable any extra checking for. . . nooptions DEADLKRES # Enable the deadlock resolver nooptions INVARIANTS # Enable calls of extra sanity = checking nooptions INVARIANT_SUPPORT # Extra sanity checks of = internal structures, required by INVARIANTS nooptions WITNESS # Enable checks to detect = deadlocks and cycles nooptions WITNESS_SKIPSPIN # Don't run witness on spinlocks = for speed nooptions DIAGNOSTIC nooptions MALLOC_DEBUG_MAXZONES # Separate malloc(9) zones nooptions BUF_TRACKING nooptions FULL_BUF_TRACKING =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)