FDT on x86 and for non-fdtbus devices.

Pawel Jakub Dawidek pjd at FreeBSD.org
Sat Feb 16 23:16:26 UTC 2013


On Thu, Feb 14, 2013 at 09:00:25AM -0800, Marcel Moolenaar wrote:
> 
> On Feb 14, 2013, at 6:45 AM, Robert N. M. Watson <rwatson at FreeBSD.org> wrote:
> 
> >> But I'm curious why your specific example wouldn't already live in the FDT for your board....
> > 
> > 
> > We want to put hardware configuration parameters in the on-board FDT.
> > 
> > We want to put software configuration parameters in the kernel targeted for the board.
> 
> /nod
> 
> I think it's a feature to instantiate GEOMs from the FDT.
> Creating a mirrored disk configuration when the disks are
> already in use cannot in general be done using tasting.
> The assumption that the last sector is free is invalid
> with GPT and it has created conformance problems for us
> already. Being able to construct the gmirror GEOM from the
> FDT eliminates the need to scribble meta-data on the disk
> and as such allows us to mirror 2 GPT disks at the disk
> level without instantaneously becoming non-conformant.

Gmirror is not the best example, but gstripe or gconcat could be
configured this way.

I know gmirror is not the subject here, but for those interested
explanation of why gmirror is not the best example is below.

The metadata is needed not only for tasting and configuring two disks as
a one gmirror provider, but also for other stuff, like:
- tracking synchronization progress,
- being able to tell which provider is out-of-date (on first write after
  one of the disks break we bump a counter in other disks metadata, so we
  can tell when the system is rebooted and disk is available again that it
  needs synchronization),
- being able to tell that system crashed/failed when gmirror was
  writing and components can be out of sync,
- being able to tell which mirror component was offlined by the
  administrator.
etc.

Ideally we would also support dirty bitmap that could speed up
synchronization and also needs some space (much more than single sector).

-- 
Pawel Jakub Dawidek                       http://www.wheelsystems.com
FreeBSD committer                         http://www.FreeBSD.org
Am I Evil? Yes, I Am!                     http://tupytaj.pl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20130217/b0b8d57d/attachment.sig>


More information about the freebsd-arch mailing list