Page MenuHomeFreeBSD

Enable parsing simple-bus 'ranges' with multiple entries
ClosedPublic

Authored by mw on Aug 5 2017, 10:10 AM.
Tags
Referenced Files
Unknown Object (File)
Sep 26 2024, 2:41 PM
Unknown Object (File)
Sep 26 2024, 11:10 AM
Unknown Object (File)
Sep 22 2024, 9:09 PM
Unknown Object (File)
Sep 22 2024, 5:39 PM
Unknown Object (File)
Sep 21 2024, 9:57 PM
Unknown Object (File)
Sep 12 2024, 3:15 AM
Unknown Object (File)
Sep 4 2024, 2:08 PM
Unknown Object (File)
Sep 2 2024, 4:56 PM

Details

Summary

This patch makes possible to boot with up to 8 ranges in soc.
Dynamic allocation cannot be used, because ftd_get_ranges
function is called early, when malloc is not available.

Change is required for the alignment of Marvell Armada 38x
device trees present in sys/gnu/dts/arm - originally
the platform has 6 entries in simple-bus 'ranges'.

Diff Detail

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

Event Timeline

manu edited edge metadata.

Add Nathan as he is the maintainer of ofw.

Hi @nwhitehorn - do you have any objections to the patch?

This revision is now accepted and ready to land.Aug 8 2017, 9:45 AM

Looks good. We may need to think some more about the implementation of this function if we need to bump it again, but I cannot think of a better approach offhand.

As a general comment, we should eventually remove all of these fdt_* functions, since they duplicate the equivalent OF_* and ofw_* functions in dev/ofw. The existing code is there for compat with old code only.

This revision was automatically updated to reflect the committed changes.