Bug 235362

Summary: Cannot boot Jetson TK1 on FreeBSD 13.0-CURRENT
Product: Base System Reporter: Gerald Aryeetey <gndaryee>
Component: armAssignee: freebsd-arm mailing list <freebsd-arm>
Status: Closed FIXED    
Severity: Affects Only Me CC: mmel
Priority: ---    
Version: CURRENT   
Hardware: arm   
OS: Any   
Attachments:
Description Flags
Error log with printf statements showing lock state before initializing
none
Original error without printf statements
none
Changes to the configuration of JETSON-TK1 (to enable NFS)
none
Make arguments used to build & install JETSON-TK1 kernel
none
Changes to sys/gnu/dts/arm/tegra124-jetson-tk1.dts to bypass the error
none
Error log after changing sys/gnu/dts/arm/tegra124-jetson-tk1.dts to bypass error none

Description Gerald Aryeetey 2019-01-31 23:06:35 UTC
Created attachment 201568 [details]
Error log with printf statements showing lock state before initializing

Kernel crashes during boot when booting a Jetson TK1 from NFS. Booting the kernel dies early on with "vm reserv" already initialized.

Further investigation seems to show that not all of the mutexes used in the array were initialized to zero correctly.

Using git bisect, it appears the commit that brought in the issue is base r340337 which brought in Linux devicetree specifications.
After isolating the changes to the Jetson TK1, it appears that the memory region may be too big? Using a smaller length (256MB smaller) appears to resolve the issue.
Comment 1 Gerald Aryeetey 2019-01-31 23:07:11 UTC
Created attachment 201569 [details]
Original error without printf statements
Comment 2 Gerald Aryeetey 2019-01-31 23:07:50 UTC
Created attachment 201570 [details]
Changes to the  configuration of JETSON-TK1 (to enable NFS)
Comment 3 Gerald Aryeetey 2019-01-31 23:08:30 UTC
Created attachment 201571 [details]
Make arguments used to build & install JETSON-TK1 kernel
Comment 4 Gerald Aryeetey 2019-01-31 23:09:26 UTC
Created attachment 201572 [details]
Changes to sys/gnu/dts/arm/tegra124-jetson-tk1.dts to bypass the error
Comment 5 Gerald Aryeetey 2019-01-31 23:10:59 UTC
Created attachment 201573 [details]
Error log after changing sys/gnu/dts/arm/tegra124-jetson-tk1.dts to bypass error
Comment 6 commit-hook freebsd_committer 2019-02-06 06:04:32 UTC
A commit references this bug:

Author: mmel
Date: Wed Feb  6 06:03:44 UTC 2019
New revision: 343828
URL: https://svnweb.freebsd.org/changeset/base/343828

Log:
  Adapt FreeBSD specific DT stub for Jetson TK1 board to be consistent with
  update of devicetree to 4.19 in r340337.
  Our build system doesn't provide dependencies for included DTS files, so
  nobody noticed this issue for long time.

  PR:		235362
  MFC after:	1 week

Changes:
  head/sys/dts/arm/tegra124-jetson-tk1-fbsd.dts
Comment 7 Michal Meloun freebsd_committer 2019-02-06 06:14:55 UTC
Fixed in r343828.
Thanks for reporting.