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
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/powerpc/powernv/platform_powernv.c | ||
---|---|---|
535–536 ↗ | (On Diff #67458) | 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 | ||
---|---|---|
535–536 ↗ | (On Diff #67458) | Right, it's better indeed. |
sys/powerpc/powernv/platform_powernv.c | ||
---|---|---|
532–534 ↗ | (On Diff #67462) | 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 ↗ | (On Diff #67462) | Right, do you think it's ok now? |