From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 96EF93B2FDC; Fri, 3 Jul 2026 09:39:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783071575; cv=none; b=D7k2zzbGa5XLn1z8UpmR2vPfmM8sCA38DJ1LargG/DD7B1/mmLp5VEIz9NFqL/+bN1Hvty+B1EGfolHV9HNJPGuEWev2vjcHHsKpBGa8Pl7BJQB5o0OIAXaRCQAryQEV5ybRckXbl/AMmj/LprH86k3F4XkifOXc9h9J92bLgME= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783071575; c=relaxed/simple; bh=rTyM2JO1mYgqK00aXAsGsRtovomLtOWzEzUFzjax7r8=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=KLGilHMXZ1TfQa7NhHs3o6WTJe3FQc9PL0ZlYIIG3NXnIFzHPob1JJcnudT5SgzO1cZsinVu5az28DoKCcVrFIF9xuUZKyybqA9vskotjb5X5zvgp9vRSDTLju2Tkqs8PzLBDqDhijO2xV+zjFH8F4fOcAveEDE2aO8nvpCpnqo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Lydvu7/u; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=S9dbwFzd; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Lydvu7/u"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="S9dbwFzd" Date: Fri, 03 Jul 2026 09:39:25 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1783071567; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2So3NLOdNN38ElqEQSIC+tNaJolj3dlAJvAJKbIAz3w=; b=Lydvu7/uBBJ6nNNh+z2qEsIgDAVQL5uqYIpzCLKYpefN1mRs8yGVWwwGBvrAtXXy79EugW C61RLktjLd4jdvET/3MOctmDfYdYuKuaMRUDUrJ6RMcetnDPJ5yUHCB79Om0bQw1soNgQU 14GzGROTqC6w1cI8kUK3zf6u7lr05T1Cu5ENFhBtKHn+jcrb66OrANxBkELf6PgKFTxrN9 Z+1L7hH2NK4TOucMuV4In4xq/+umHHnUxDXWUkGNeFgVvkU1Pbt66/E+nfiKyjbGlXU6m1 RW7S0iLx1lLFd0RV4WsFRvW+eE96brpKO4dEry4rESW52meNBJ8r4o8y3axb3A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1783071567; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2So3NLOdNN38ElqEQSIC+tNaJolj3dlAJvAJKbIAz3w=; b=S9dbwFzdueBhGlWMudXIf+EnDC4vlao0KdvXV4SauE3vcQQp1S17Wx0D8ih2UwIeD4yFLc 7HcylGdQXzlP/+BA== From: "tip-bot2 for Juergen Gross" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/msr] hwmon: Stop using 32-bit MSR interfaces Cc: Juergen Gross , Ingo Molnar , Guenter Roeck , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260629060526.3638272-30-jgross@suse.com> References: <20260629060526.3638272-30-jgross@suse.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178307156595.3843924.9782450723286768877.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the x86/msr branch of tip: Commit-ID: cd5102479d29842bc6e730401ec6e53a045a2994 Gitweb: https://git.kernel.org/tip/cd5102479d29842bc6e730401ec6e53a045= a2994 Author: Juergen Gross AuthorDate: Mon, 29 Jun 2026 08:05:20 +02:00 Committer: Ingo Molnar CommitterDate: Fri, 03 Jul 2026 11:33:59 +02:00 hwmon: Stop using 32-bit MSR interfaces The 32-bit MSR interface rdmsr() is planned to be removed. Use the related 64-bit variant instead. Signed-off-by: Juergen Gross Signed-off-by: Ingo Molnar Acked-by: Guenter Roeck Link: https://patch.msgid.link/20260629060526.3638272-30-jgross@suse.com --- drivers/hwmon/hwmon-vid.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/hwmon/hwmon-vid.c b/drivers/hwmon/hwmon-vid.c index 2df4956..dee42c1 100644 --- a/drivers/hwmon/hwmon-vid.c +++ b/drivers/hwmon/hwmon-vid.c @@ -237,16 +237,17 @@ static struct vrm_model vrm_models[] =3D { */ static u8 get_via_model_d_vrm(void) { - unsigned int vid, brand, __maybe_unused dummy; + u64 msr; + unsigned int vid, brand; static const char *brands[4] =3D { "C7-M", "C7", "Eden", "C7-D" }; =20 - rdmsr(0x198, dummy, vid); - vid &=3D 0xff; + rdmsrq(0x198, msr); + vid =3D (msr >> 32) & 0xff; =20 - rdmsr(0x1154, brand, dummy); - brand =3D ((brand >> 4) ^ (brand >> 2)) & 0x03; + rdmsrq(0x1154, msr); + brand =3D ((msr >> 4) ^ (msr >> 2)) & 0x03; =20 if (vid > 0x3f) { pr_info("Using %d-bit VID table for VIA %s CPU\n",