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 7974247ECC3; Thu, 2 Jul 2026 10:16:06 +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=1782987367; cv=none; b=Soab504i7B563mChIgf4o1CdxhOmz/so/BCoP2GLKRFt4ThjJbzC9KaF+Mu/u095uT49jHXH4DYmHt0LDrFl/h5VFXth8yWN54HyMZ//K4Ykd+Sef2c9J/g7YHZOF3jEOptFtsGk2pIUGX2uz3fxAMk+TFC2jsZhjQF/su4HOTc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782987367; c=relaxed/simple; bh=jWg8fUxVM5m3osMWj/tGkJta0UTBhRWygfk/yF0FRYQ=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=aMtAV1P/V/yJ6dh08czarKZGVSddynXVqUcXXR/piC5GNEghP8WUnB0TWAithqV8UD5tqUmYWSfyQ6V5TsIZrL15fZO36ZAeRz4aFRsl/jNr3K50H3FewLhK/Lb3xaKWfeWaljZdc9MlMiXPVGvG0xABNTKV+a8a5tNQh3/Ks1o= 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=S6KnDDGx; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=+jMUk48B; 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="S6KnDDGx"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="+jMUk48B" Date: Thu, 02 Jul 2026 10:16:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1782987365; 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=6+CPUm73rqW3zPUtFF/0cMD6aplxKCIkfBPhUmeoipY=; b=S6KnDDGxqmKVNvY/dqmy/N+irwUoTqJYOX8tCKNtvEo8zeyVv8KK5fO/F0Nij9TWJf/HNz OPSuAdfI1olvaHJGFeebP74wmYVnNoxVMfFKI5nxbIfr0IoLBzNctUR33D++S/XUmQdXFa J1UUYEVDmEUgR02BlGPfbGpg2OaSU1sK+36WJPpGdYiZbwd5C2vUL9t+mpwWzSnIIzRrlA Cu3PmIuyS953IU5arshatZ03Ehkr2W5poebPu6KOChw9mYB7EtZjcoIweC+KY7gL+t5GCl Y4pzkuQ8xuE00dkfEr4N5gXl3HV7lPDak+rGchkec5Q5OEtXB5x/PkyzIHZgyQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1782987365; 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=6+CPUm73rqW3zPUtFF/0cMD6aplxKCIkfBPhUmeoipY=; b=+jMUk48BwWaaqpkO6ttzezowyRo5Ox3qWE2rZERM33A+StnZscO+GcT4rCV6xRWAbQuUpk OipjNkuGOMiyNWCA== 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] x86/hygon: Stop using 32-bit MSR interfaces Cc: Juergen Gross , Ingo Molnar , Pu Wen , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260629060526.3638272-11-jgross@suse.com> References: <20260629060526.3638272-11-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: <178298736345.3843924.15720477736216493475.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: c36c3d7e5dc49f0085e26ee4bcd2cb6493b0120e Gitweb: https://git.kernel.org/tip/c36c3d7e5dc49f0085e26ee4bcd2cb6493b= 0120e Author: Juergen Gross AuthorDate: Mon, 29 Jun 2026 08:05:01 +02:00 Committer: Ingo Molnar CommitterDate: Thu, 02 Jul 2026 11:54:51 +02:00 x86/hygon: Stop using 32-bit MSR interfaces The 32-bit MSR interface rdmsr_safe()is planned to be removed. Use the related 64-bit variant instead. Signed-off-by: Juergen Gross Signed-off-by: Ingo Molnar Cc: Pu Wen Link: https://patch.msgid.link/20260629060526.3638272-11-jgross@suse.com --- arch/x86/kernel/cpu/hygon.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/cpu/hygon.c b/arch/x86/kernel/cpu/hygon.c index 3e8891a..ec51c2b 100644 --- a/arch/x86/kernel/cpu/hygon.c +++ b/arch/x86/kernel/cpu/hygon.c @@ -125,11 +125,12 @@ static void bsp_init_hygon(struct cpuinfo_x86 *c) =20 static void early_init_hygon(struct cpuinfo_x86 *c) { - u32 dummy; + u64 val; =20 set_cpu_cap(c, X86_FEATURE_K8); =20 - rdmsr_safe(MSR_AMD64_PATCH_LEVEL, &c->microcode, &dummy); + rdmsrq_safe(MSR_AMD64_PATCH_LEVEL, &val); + c->microcode =3D (u32)val; =20 /* * c->x86_power is 8000_0007 edx. Bit 8 is TSC runs at constant rate