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 D47A6399351; Mon, 8 Jun 2026 08:03:22 +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=1780905804; cv=none; b=MbVmQXPBs7CziGAP6s/iWsuWSS9hIcWACvlTqOsWjw3tJOsNeoAIWyCyfbSVEM30gKDkYwWoBgmGoBq55I/LqqMwoEnahL1RNS9ig3Q3a6B3Gj2xriVVdXGgOWLe62qF6pySZEbRC0KaCTTtFCM0kMJY1cYWmThw0qhlNOCbEYU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780905804; c=relaxed/simple; bh=KcdZy59hKud2qyOuoDuxRkaByMb9RyO2JEGieNp2gtI=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=LsokN5GhK7XmTwReC73UELfHqeYhWg/+riq/icZZRLGNx91Oxquum/HCOaNfPLc6U/dGk16QDj5D0H/BIIbYPvB/5poDIdT0ub7RORZkC3VpJz5vkWJ1WfAy5+1NTlNs5ZgNzB3ZUWEG8M9cmuHW5fiDU7Q1X+ck2+8VVZhekvs= 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=113ltr72; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=rD83pH1F; 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="113ltr72"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="rD83pH1F" Date: Mon, 08 Jun 2026 08:03:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780905801; 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=gRVYo4ezw4Rc/9Vmv9eTLo3eZB0L5YhZDaXd0C7sTr4=; b=113ltr72uPzc5MJkymoI+xlDqYue6sIGyW1mLTknWebQVkkV6pMjm2SjcEep/KzQ6LUkqX iOZm8KFHzVYFnoua7SFhl/eHNZGdMaRjPUK368E1tGQbazYGRVcM/BEzeZH1b35nFOpVaS +iMMpAb2zPXtsVr9wVulofY90QDYqiPtN/CIby6hC9MMoVzK3SXXLvBxbDRAaWrquxxTKq kybnOBboB6BGqKUhqBmcaayD3YHswd+OR+QdNpmzlntEovQNRJXuXIntN2r23B8RBjBOh+ ByZizN3HRqJBwKGAlWTJ7HkcfAVgFb+3B078bK16AKdg/01X/1AF+6kI0H8flA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780905801; 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=gRVYo4ezw4Rc/9Vmv9eTLo3eZB0L5YhZDaXd0C7sTr4=; b=rD83pH1FquAU15+RzPit6dzGYNKOxRWqRrV+DPbviPxzzrt2po6LuYMlPL1DNjArjPXegn 5xhREMZO9DsnlCAw== 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/msr: Switch wrmsr_safe_on_cpu() users to wrmsrq_safe_on_cpu() Cc: K Prateek Nayak , Juergen Gross , Ingo Molnar , Dave Hansen , "Rafael J. Wysocki" , Daniel Lezcano , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260608051741.3207435-11-jgross@suse.com> References: <20260608051741.3207435-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: <178090579962.529383.6506120248039757464.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: 840b4014346442647354ad12a894d6d4ae3cb510 Gitweb: https://git.kernel.org/tip/840b4014346442647354ad12a894d6d4ae3= cb510 Author: Juergen Gross AuthorDate: Mon, 08 Jun 2026 07:17:40 +02:00 Committer: Ingo Molnar CommitterDate: Mon, 08 Jun 2026 10:01:49 +02:00 x86/msr: Switch wrmsr_safe_on_cpu() users to wrmsrq_safe_on_cpu() In order to prepare retiring wrmsr_safe_on_cpu() switch wrmsr_safe_on_cpu() users to wrmsrq_safe_on_cpu(). Tested-by: K Prateek Nayak Signed-off-by: Juergen Gross Signed-off-by: Ingo Molnar Reviewed-by: Dave Hansen Cc: Rafael J. Wysocki Cc: Daniel Lezcano Link: https://patch.msgid.link/20260608051741.3207435-11-jgross@suse.com --- arch/x86/kernel/msr.c | 4 ++-- drivers/thermal/intel/intel_tcc.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/msr.c b/arch/x86/kernel/msr.c index 6033431..34bdb75 100644 --- a/arch/x86/kernel/msr.c +++ b/arch/x86/kernel/msr.c @@ -109,7 +109,7 @@ static ssize_t msr_write(struct file *file, const char __= user *buf, size_t count, loff_t *ppos) { const u32 __user *tmp =3D (const u32 __user *)buf; - u32 data[2]; + u64 data; u32 reg =3D *ppos; int cpu =3D iminor(file_inode(file)); int err =3D 0; @@ -134,7 +134,7 @@ static ssize_t msr_write(struct file *file, const char __= user *buf, =20 add_taint(TAINT_CPU_OUT_OF_SPEC, LOCKDEP_STILL_OK); =20 - err =3D wrmsr_safe_on_cpu(cpu, reg, data[0], data[1]); + err =3D wrmsrq_safe_on_cpu(cpu, reg, data); if (err) break; =20 diff --git a/drivers/thermal/intel/intel_tcc.c b/drivers/thermal/intel/intel_= tcc.c index c6772a5..59f70bb 100644 --- a/drivers/thermal/intel/intel_tcc.c +++ b/drivers/thermal/intel/intel_tcc.c @@ -261,7 +261,7 @@ int intel_tcc_set_offset(int cpu, int offset) if (cpu < 0) return wrmsr_safe(MSR_IA32_TEMPERATURE_TARGET, val.l, val.h); else - return wrmsr_safe_on_cpu(cpu, MSR_IA32_TEMPERATURE_TARGET, val.l, val.h); + return wrmsrq_safe_on_cpu(cpu, MSR_IA32_TEMPERATURE_TARGET, val.q); } EXPORT_SYMBOL_NS_GPL(intel_tcc_set_offset, "INTEL_TCC"); =20