freebsd-dev/sys/powerpc
Conrad Meyer d86e0b338f pmcr: Fix pstate setting on Power8
Fix p-state setting on Power8 by removing the accidental double-indirection of
the pstate_ids table.

The pstate_ids table comes from the OF property "ibm,pstate-ids."  On Power9,
the values happen to be identical to the indices, so the extra indirection was
harmless.  On Power8, the values were out of the range [0, npstates], so
pmcr_set() would fail the spec[0] range check with EINVAL.

While here, include both the value and index in the driver-specific register
array as spec[0] and spec[1] respectively.  They're redundant, but relatively
harmless, and it may aid debugging.

While here, fix the range check to exclude the index npstates, which is one
past the last valid index.

PR:		233693
Reported and tested by:	sbruno
Reviewed by:	jhibbits
2018-12-01 21:37:47 +00:00
..
aim powerpc: Don't include KERNBASE in genassym, it's unnecessary 2018-11-28 16:00:52 +00:00
booke powerpc/booke: Fix debug printfs in pmap 2018-11-28 04:02:26 +00:00
conf Enable evdev on ppc32 2018-11-20 19:31:02 +00:00
cpufreq pmcr: Fix pstate setting on Power8 2018-12-01 21:37:47 +00:00
fpu powerpc: Sync icache on SIGILL, in case of cache issues 2018-11-19 23:54:49 +00:00
include powerpc: Don't include KERNBASE in genassym, it's unnecessary 2018-11-28 16:00:52 +00:00
mambo sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
mikrotik - Allow different slicers for different flash types to be registered 2017-02-22 10:21:39 +00:00
mpc85xx powerpc: Prepare Book-E kernels for KERNBASE != run base 2018-11-28 02:00:27 +00:00
ofw powerpc: Blacklist the top 64kB range of the lower 4GB PA space 2018-09-25 02:34:28 +00:00
powermac Bump the number of fans supported from 8 to 12. 2018-10-30 11:51:09 +00:00
powernv powerpc/powernv: Restrict the busdma tag to only POWER8 2018-11-08 20:31:12 +00:00
powerpc Fix thread creation in PowerPC64 ELFv2 processes. 2018-11-29 03:39:11 +00:00
ps3 ifnet: Replace if_addr_lock rwlock with epoch + mutex 2018-05-18 20:13:34 +00:00
pseries powerpc64/xics: Fix comment typo 2018-10-21 02:25:56 +00:00
psim add snps IP uart support / genaralize UART 2018-08-19 21:10:21 +00:00