Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3479465imu; Sun, 11 Nov 2018 16:03:16 -0800 (PST) X-Google-Smtp-Source: AJdET5d5wNSDcA+17usNA6fjXiZjFRD6Aays3ni06Z3THDAO6tYERt0k6LwrOfG1lvYQpkY+yMOk X-Received: by 2002:a65:530c:: with SMTP id m12mr15207947pgq.224.1541980996331; Sun, 11 Nov 2018 16:03:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541980996; cv=none; d=google.com; s=arc-20160816; b=Ur3MdvKsswqQYPJI1pvbfDdzmVIDmkqAFfN22wo/whqE5dFVfzKJfHkO/2jatBenVc tYfhyuyOe73PYdoVdk9SS471EJNS/iNy2B7vqFbrAWVub7NbC/xgqEqzxH4R8qG87847 SI+P7a3Z7VBXFZ87IPwZFs0vlJqexjQoh6NsHeh+3tyWA5KLU4nW1SN6wiOxbl5mheKP 71Y3WYtWuW3tOMUbFkcQMqjZM6c7q37ONb+JShjVh2FZ9Ljci9fvCOl8B2yg4UTGx13G yMKmwO/+VLBbgUR1gvdJZjgi+VTn4c3Qw0P8aBZzAXtEFSXG1UkwLyGwWwDKL0zYwEfQ soyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=jk0ufT32fc6ncIAq6//Hn3tVDt55X/7897hs7Q/th0M=; b=T70fFKiT7PQJeKWYg75Y0xnp+QgwRZAVuVIqnZabSId+h+8lABx/2qQ75xh7i3BwNv CTBkMO+dGT7L3lesmw9TX/NVYoxTfeaL21EPrnV79sjiDl6CjGQV344YJTrx8cvyn/CT Lh18JMUb6tLm0Fxnh1nKH5ri8qrn/448dhL1Bdi7/abU+94VD+/IIYHL1x1f68yqyy+d Vmlt34v57eDur4os+dUVgydcGxul7Bw5Nv5ZOoERkQ1l4A8PQIcOe1uk5amLtr94d1gm ofo7IpM1ge6KwbYIKg9lcwJNlwlKA71wgGFw83Ru1H7XnETxcPa15C1sM7jtFuunouGO yUgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GZTMWA53; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p12si2227200pli.239.2018.11.11.16.03.01; Sun, 11 Nov 2018 16:03:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GZTMWA53; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732428AbeKLJxA (ORCPT + 99 others); Mon, 12 Nov 2018 04:53:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:34210 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730196AbeKLIRx (ORCPT ); Mon, 12 Nov 2018 03:17:53 -0500 Received: from localhost (unknown [206.108.79.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7BF5E2175B; Sun, 11 Nov 2018 22:27:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975277; bh=lVVYmhqbHLiT9w8eUll+yDptSjpJJMAfI0bmiKIrg+w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GZTMWA53S3RFJAvZ39P/3QkaHSkmv7XE4fPcR8rGQiyloXHWWM13y8GzXLC8CIXYq l8vdsy/XXg9+PJ0+lhhv1fyEZs2BmCNI4O0essgAPYmr1GCp9UQc7X5hyf4Y1wS6xe 88mAt1IzZSTJYIz4jfbQJB2lJn3+YoHfHLzmnb9s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Prarit Bhargava , Shuah Khan , Stafford Horne , Sasha Levin Subject: [PATCH 4.19 191/361] cpupower: Fix AMD Family 0x17 msr_pstate size Date: Sun, 11 Nov 2018 14:18:58 -0800 Message-Id: <20181111221647.269594606@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221619.915519183@linuxfoundation.org> References: <20181111221619.915519183@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Prarit Bhargava [ 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 Cc: Shuah Khan Cc: Stafford Horne Signed-off-by: Shuah Khan (Samsung OSG) Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- tools/power/cpupower/utils/helpers/amd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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;