On some POWER8 machines, 'ibm,associativity' property may have 6
cells, which would overflow the 5 cells buffer being used.
There was also an issue with the "check if node is root" part,
that have been fixed too.
Details
Details
- Reviewers
jhibbits - Commits
- rS357262: [PPC64] Fix NUMA on POWER8
Diff Detail
Diff Detail
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 29018 Build 26990: arc lint + arc unit
Event Timeline
sys/powerpc/powernv/platform_powernv.c | ||
---|---|---|
531–534 | I would suggest you just move this up, and not bother with the OF_getproplen(), just do res = OF_getencprop(...) if (res < 0) { ... } |
sys/powerpc/powernv/platform_powernv.c | ||
---|---|---|
531–534 | Right, it's better indeed. |
sys/powerpc/powernv/platform_powernv.c | ||
---|---|---|
532–534 | I think this KASSERT() is unnecessary. A violation of this "invariant" is really a broken device tree, not a kernel bug. Maybe "if (res < sizeof(cell_t) * (platform_associativity + 1))" up above instead? We can limp along with a busted device tree, we don't need to panic. |
sys/powerpc/powernv/platform_powernv.c | ||
---|---|---|
532–534 | Right, do you think it's ok now? |