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 A0C7C2E736E; Tue, 28 Jul 2026 03:24:00 +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=1785209043; cv=none; b=lnE4ismk5r7bOcuWdVtowKPwpjHH+T4MPjXCr9AiM1TMH4bLGwKAlt0YKJg7xTjeFPjaXBnvyOuhPna2GOc4HA9fFVd76RNjURfB8VwSlB6MEAQzRVECj7SDUutOzpnqF446iNPOpeItBRPwEBuxnXtQVPvNcdC0J0nMgM36kro= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785209043; c=relaxed/simple; bh=RbKpx96mPtENULKXPAk/ZX3Asvn31mzJN2MLxXd/2yk=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=Ni2RfAHweYc7qgKIFogL5umKKAB1Sa7JZl26iYAZgtYCmGo0aXA3AbiY0dPjOHqSDJALSyhc7OVVgmCqoukkhXj0BWgtCubkV7nPenMAW6aWnk5h5KYphZdR7dt4PSrFxAJmSlRDmSq4LHE/6q0LSC//0H85VWXEmsj2OuiRE2I= 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=pjhAtZ12; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=jPyGzR2c; 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="pjhAtZ12"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="jPyGzR2c" Date: Tue, 28 Jul 2026 03:23:55 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1785209037; 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=LibxypZqGgV3iteTwRxAelzZm3a9XYiF9MhsvDLqdIg=; b=pjhAtZ12g/ewI6E+nlaV1dH5d4VjGH100ONTKtY7cT6d+Xou+pY8iW2NJUJDUfjeExseqJ Jt99uG9iFvXKQvInpzzi4FB44+aBgc0+ObJCo4sqirs1cfH4whz1FPGBCoApM8umhE0EpR 4rfI+PaZ/rJJE8Q0x6+xoHQs8hjgFrVP7CnjP5hF5V+yEhA1Lm4ZoX/Dv1taZpxDOLq7o/ Rh+cTMcitSpREz0MO9GIasOM2E3f41tooU2Tgpgiw2pDjfRyYH/jPKTWK9JLxot2HiWtbc zwWgVwIV+bqpppgIAeyAyY3yk4WlxtNsxZALWSkCe0MUEKD+w4HtV7bytVBD9A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1785209037; 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=LibxypZqGgV3iteTwRxAelzZm3a9XYiF9MhsvDLqdIg=; b=jPyGzR2cNni9yeUJQ0Xgen0kma/efeXszCEQKMiF3PLBzTign6cRlBeMri+gNvk+HQm1WV fdT4NebFsPHdpMBw== From: "tip-bot2 for Ahmed S. Darwish" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cpu] x86/cpu/transmeta: Rescan CPUID(0x1) after modifying capabilities Cc: "Ahmed S. Darwish" , "Borislav Petkov (AMD)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260528153923.403473-9-darwi@linutronix.de> References: <20260528153923.403473-9-darwi@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178520903568.112641.6281274860095717745.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/cpu branch of tip: Commit-ID: bec89bf9eacbfdcaead88e9a611215fcad3c5cf4 Gitweb: https://git.kernel.org/tip/bec89bf9eacbfdcaead88e9a611215fcad3= c5cf4 Author: Ahmed S. Darwish AuthorDate: Thu, 28 May 2026 17:37:30 +02:00 Committer: Borislav Petkov (AMD) CommitterDate: Mon, 27 Jul 2026 19:43:41 -07:00 x86/cpu/transmeta: Rescan CPUID(0x1) after modifying capabilities Transmeta CPUs allow masking CPUID(0x1).EDX feature flags via MSR writes. If a bit is cleared in the 0x80860004 MSR, its corresponding feature flag is not reported by CPUID. Refresh the CPUID parser's CPUID(0x1) cache after all MSR bits are unmasked. Note, the MSR 0x80860004 semantics are documented in the "BIOS Programmer's Guide: Transmeta Crusoe Processor" document, dated June 14, 2002. Signed-off-by: Ahmed S. Darwish Signed-off-by: Borislav Petkov (AMD) Link: https://patch.msgid.link/20260528153923.403473-9-darwi@linutronix.de --- arch/x86/kernel/cpu/transmeta.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kernel/cpu/transmeta.c b/arch/x86/kernel/cpu/transmeta.c index 1fdcd69..d9e0edb 100644 --- a/arch/x86/kernel/cpu/transmeta.c +++ b/arch/x86/kernel/cpu/transmeta.c @@ -88,6 +88,7 @@ static void init_transmeta(struct cpuinfo_x86 *c) /* Unhide possibly hidden capability flags */ rdmsr(0x80860004, cap_mask, uk); wrmsr(0x80860004, ~0, uk); + cpuid_refresh_leaf(c, 0x1); c->x86_capability[CPUID_1_EDX] =3D cpuid_edx(0x00000001); wrmsr(0x80860004, cap_mask, uk); =20