diff options
author | Prarit Bhargava <prarit@redhat.com> | 2018-10-08 11:06:18 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-13 11:08:38 -0800 |
commit | 12b00f1e518ca9f2a2247ac31da1b5e7c6da4064 (patch) | |
tree | cfc556e1c23998ba76a4ea1e0d95a73cf5e0ca57 /tools | |
parent | 60fa88f6713a5d251971a9a425a12feec12376bf (diff) | |
download | linux-stable-12b00f1e518ca9f2a2247ac31da1b5e7c6da4064.tar.gz linux-stable-12b00f1e518ca9f2a2247ac31da1b5e7c6da4064.tar.bz2 linux-stable-12b00f1e518ca9f2a2247ac31da1b5e7c6da4064.zip |
cpupower: Fix AMD Family 0x17 msr_pstate size
[ 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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/power/cpupower/utils/helpers/amd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/power/cpupower/utils/helpers/amd.c b/tools/power/cpupower/utils/helpers/amd.c index 58d23997424d..9607ada5b29a 100644 --- a/tools/power/cpupower/utils/helpers/amd.c +++ b/tools/power/cpupower/utils/helpers/amd.c @@ -33,7 +33,7 @@ union msr_pstate { unsigned vid:8; unsigned iddval:8; unsigned idddiv:2; - unsigned res1:30; + unsigned res1:31; unsigned en:1; } fam17h_bits; unsigned long long val; |