Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3433731imu; Sun, 11 Nov 2018 15:01:27 -0800 (PST) X-Google-Smtp-Source: AJdET5dcj3PQXln0o/0FeBThdYh/IsYWaXmbK7h166+WGMSFi0v14zmVV6bDkjVSCdmUnZFIHksU X-Received: by 2002:a63:1b48:: with SMTP id b8mr15501241pgm.187.1541977287759; Sun, 11 Nov 2018 15:01:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541977287; cv=none; d=google.com; s=arc-20160816; b=ds3UX3hxwPJH1Ay2E+TZzn/C7YWsFnsVl+Bax53I3MsBAB71FLftxfeX4aSdNOHDaE 6Y7t6+0tCi+02Gok6pS/i3HB9XkP08y6z7OMy7eC3QdndCkmgjrqCc5QWHiFaN2Lt2MB az3UUI/2hQW+vuXqPoVVEQAZ9GUqBH/RQZ//o/bwAYBtCjrKmHn1SyyvzUi5fhohi84l FGDHwcFvJ1Tp/it56GAHp3mqua949F9rfktd/vF6tkh17+bGTXwWtd4XipDSO8B8S4qz WN9akg//PwzyfM67rinaW0TqBEdxbxjazDkyKO62dqa45L4RKKb/zg1k69i5tfVpKDq+ GgEQ== 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=qUSEq//dEtLzHAkXJt8eImUT1scIj0d9W2pAYIYlGww=; b=kf/ALwv74ZUGRiNfJwWo6xK9DtNCL4WSL6rXmZ5dcZbe6jHvUQl/oJTn8oS+6ZEUcG x7y8xIwDNVglpJiFfGUtqp4vX/kMdzAiwOktCYVmw1s6ZDTBmAQjlvEWCZCoTsqJYSf/ 6ZRNbdPXoLE/PzYj2k1Ul8OWm2yYTVfWvxWLvxNpoIWvdHbmQTOo7ZEroba0GaMlymaT ECbfZsCWIlxlyZnzIG4nRF65ltUMwWECYkLoY8U5ZTGGa9IAezIKsjS0NCZxxWJOCZJv mbAPlMsfLuDsn0xiDrnzcyInNwg98AnNw1Mo/XlsPQMZi5rNODtyKSrFaUPGDrI8KagR A1yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=r+9vMhCY; 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 i13si14941641pgc.41.2018.11.11.15.01.12; Sun, 11 Nov 2018 15:01:27 -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=r+9vMhCY; 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 S2390721AbeKLIWe (ORCPT + 99 others); Mon, 12 Nov 2018 03:22:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:52394 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390707AbeKLIWd (ORCPT ); Mon, 12 Nov 2018 03:22:33 -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 62C9E223C7; Sun, 11 Nov 2018 22:32:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975556; bh=xUTbXpOdEJ1Ptcx9HL1jSClFvqqClXl9x8RKWSqSDwo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r+9vMhCYz6qyulnC33HvuRlMcD+707ZMFaL5OxqQw3+DggASKTR65w0NkM6G8f+tQ EfcjcH1Lg4kYobCRqMJe/tV00Lz2evp3C+xUkPTR898SSJAeJsKw/un9osFWnGHM08 eX1mRbymDSDeNMy8jLvZ85bwHp1K+RlSbquzb2OI= 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.14 109/222] cpupower: Fix AMD Family 0x17 msr_pstate size Date: Sun, 11 Nov 2018 14:23:26 -0800 Message-Id: <20181111221657.567048289@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221647.665769131@linuxfoundation.org> References: <20181111221647.665769131@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.14-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;