Page MenuHomeFreeBSD

[PPC64] Fix ofw_initrd
ClosedPublic

Authored by luporl on Jun 7 2019, 5:14 PM.
Tags
None
Referenced Files
F170836603: D20553.id58372.diff
Sun, Sep 6, 10:53 PM
F170836358: D20553.id58515.diff
Sun, Sep 6, 10:51 PM
F170813978: D20553.id58372.diff
Sun, Sep 6, 7:26 PM
Unknown Object (File)
Sun, Sep 6, 1:59 AM
Unknown Object (File)
Sun, Sep 6, 1:35 AM
Unknown Object (File)
Sat, Sep 5, 9:52 PM
Unknown Object (File)
Fri, Sep 4, 10:03 PM
Unknown Object (File)
Fri, Sep 4, 2:45 AM

Details

Summary

Before this change, OFW initrd (as md) handling code was simulating an
ofwbus device. But as there isn't really a Device Tree (DT) node
representing OFW initrd (it is specified in 2 properties under
/chosen), its driver was in fact stealing other driver's DT node.
This was noticed after MD_ROOT_MEM became default and QEMU's USB
keyboard stopped working under VNC.

This change consists in simplifying the process of detection and mapping of initrd memory,
turning it into a simple startup step, instead of trying to simulate a device.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable