There is a type promotion that transform count = -1 into a unsigned int causing
the default TCE SEG SIZE not being returned on a Boston POWER9 machine.
This machine does not have the 'ibm,supported-tce-sizes' entries, thus, count
is set to -1, and the function continue to execute instead of returning.
Details
Details
- Reviewers
wma jhibbits - Commits
- rS335013: powerpc64/powernv: Avoid type promotion
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/powerpc/powernv/opal_pci.c | ||
---|---|---|
224 ↗ | (On Diff #43623) | Looks good, except the semicolon at the end ;) |