diff options
| author | Rob Herring <[email protected]> | 2018-09-11 14:28:14 +0000 |
|---|---|---|
| committer | Rob Herring <[email protected]> | 2018-09-11 16:28:40 +0000 |
| commit | e54192b48da75f025ae4b277925eaf6aca1d13bd (patch) | |
| tree | f31ac5662c779ae66b72c91dcaf3be22087daeca /tools/perf/scripts/python/sched-migration.py | |
| parent | of: Add device_type access helper functions (diff) | |
| download | kernel-e54192b48da75f025ae4b277925eaf6aca1d13bd.tar.gz kernel-e54192b48da75f025ae4b277925eaf6aca1d13bd.zip | |
of: fix phandle cache creation for DTs with no phandles
With commit 0b3ce78e90fc ("of: cache phandle nodes to reduce cost of
of_find_node_by_phandle()"), a G3 PowerMac fails to boot. The root cause
is the DT for this system has no phandle properties when booted with
BootX. of_populate_phandle_cache() does not handle the case of no
phandles correctly. The problem is roundup_pow_of_two() for 0 is
undefined. The implementation subtracts 1 underflowing and then things
are in the weeds.
Fixes: 0b3ce78e90fc ("of: cache phandle nodes to reduce cost of of_find_node_by_phandle()")
Cc: [email protected] # 4.17+
Reported-by: Finn Thain <[email protected]>
Tested-by: Stan Johnson <[email protected]>
Reviewed-by: Frank Rowand <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions
