]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "powerpc/powernv/idle: Replace CPU feature check with PVR check"
authorPratik Rajesh Sampat <psampat@linux.ibm.com>
Wed, 26 Aug 2020 08:29:18 +0000 (13:59 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 27 Aug 2020 07:41:45 +0000 (17:41 +1000)
commitd525757172a68c85f257bf6515efd8e0b9aaa613
tree38f2c123981dc3d9ca5f4996aa46a9462e814e66
parentae88753a69b75a12f61897ce4e96c9cde9b72c25
Revert "powerpc/powernv/idle: Replace CPU feature check with PVR check"

cpuidle stop state implementation has minor optimizations for P10
where hardware preserves more SPR registers compared to P9. The
current P9 driver works for P10, although does few extra
save-restores. P9 driver can provide the required power management
features like SMT thread folding and core level power savings on a P10
platform.

Until the P10 stop driver is available, revert the commit which allows
for only P9 systems to utilize cpuidle and blocks all idle stop states
for P10. CPU idle states are enabled and tested on the P10 platform
with this fix.

This reverts commit c2494edca65cb580eef84ce9254e0b2f166d587d.

Fixes: c2494edca65c ("powerpc/powernv/idle: Replace CPU feature check with PVR check")
Signed-off-by: Pratik Rajesh Sampat <psampat@linux.ibm.com>
Reviewed-by: Vaidyanathan Srinivasan <svaidy@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200826082918.89306-1-psampat@linux.ibm.com
arch/powerpc/platforms/powernv/idle.c