]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
cpupower: Fix AMD Family 0x17 msr_pstate size
authorPrarit Bhargava <prarit@redhat.com>
Mon, 8 Oct 2018 15:06:18 +0000 (11:06 -0400)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:57:01 +0000 (19:57 -0600)
commit520a535186da348f7df7ea5023eb45a01bddaf43
treeaad375fe675bd52258ea1795cface5d68d8eaa01
parent3d2502b13f8a0a3506c5e71df08375f54ae614d7
cpupower: Fix AMD Family 0x17 msr_pstate size

BugLink: https://bugs.launchpad.net/bugs/1836802
[ Upstream commit 8c22e2f695920ebd94f9a53bcf2a65eb36d4dba1 ]

The msr_pstate data is only 63 bits long and should be 64 bits.

Add in the missing bit from res1 for AMD Family 0x17.

Reference: https://www.amd.com/system/files/TechDocs/54945_PPR_Family_17h_Models_00h-0Fh.pdf, page 138.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Stafford Horne <shorne@gmail.com>
Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
tools/power/cpupower/utils/helpers/amd.c