Page MenuHomeFreeBSD

fdt: fix panic in fdt_slicer/geom due to recent geom changes
ClosedPublic

Authored by adrian on Sun, Apr 6, 11:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 15, 5:34 PM
Unknown Object (File)
Mon, Apr 14, 5:16 AM
Unknown Object (File)
Sun, Apr 13, 9:07 PM
Unknown Object (File)
Fri, Apr 11, 10:58 PM
Unknown Object (File)
Fri, Apr 11, 5:19 AM
Unknown Object (File)
Tue, Apr 8, 11:04 AM
Unknown Object (File)
Tue, Apr 8, 5:36 AM
Unknown Object (File)
Tue, Apr 8, 1:15 AM
Subscribers

Details

Summary

A recent change in GEOM ordering (c11b701915116bf512f3d77dfdac7a867f51ca0a -
"geom: Push GEOM sysinit ordering to after devctl" changed the GEOM init
ordering to SI_ORDER_THIRD. However, the FDT slicer / GEOM flash
slice code needs the GEOM subsystem to be initialised before it
starts loading in flash slices from FDT, and will panic because
the mutex isn't initialised.

So bump this now to SI_ORDER_FOURTH, so it occurs after the GEOM
initialisation.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable