From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) (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 47C7F387375 for ; Mon, 9 Feb 2026 18:38:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.136 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770662282; cv=none; b=OGpRskJH472fvvpjVWlkzfO9FAP6oMQ5Lwk5ppNa7aeS30rj2k0Q/aPUBlgt+Oj8Mup3f0aHKqIMC/p5GMlw3NwZZhNbKPKBFNPNfeS7O4X12MVavnTXxneP2cjL5oFHLcA8d5b/AOGVqpS0rxsn5DtSmD3U0A1KETugXSmr5l4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770662282; c=relaxed/simple; bh=ioUY4jDsmsJGprW1WaaQ0Pz3KLGcducDsQINeqXciqo=; h=Date:From:To:CC:Subject:In-Reply-To:References:Message-ID: MIME-Version:Content-Type; b=EMwLjmHc0wV9kwvb09IAXth96xqe8KNPur1GArIHdi3x4WmuGmyIUy9Uc1dS5fx3aGXCnHVLNa9V5mszyIvCozVqDW8y7S9DGn+6Z7Opl6eW1rSXgxCEnZNTehSabb1mvRvl4EgSbwuXAKeTam/G/sNCk5l5i2qzKBoSlGNIwzU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com; spf=pass smtp.mailfrom=zytor.com; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b=O2PSirV6; arc=none smtp.client-ip=198.137.202.136 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zytor.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="O2PSirV6" Received: from ehlo.thunderbird.net (c-76-133-66-138.hsd1.ca.comcast.net [76.133.66.138]) (authenticated bits=0) by mail.zytor.com (8.18.1/8.17.1) with ESMTPSA id 619IbWvA2925388 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Mon, 9 Feb 2026 10:37:33 -0800 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 619IbWvA2925388 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2026012301; t=1770662254; bh=Gpo1MFxbHKzn7qp63TcA9ud9sLUVlsSNJ3M/9IiQP5Y=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=O2PSirV6JTYsDvezGSbgng1FuYqmIShwZH/lK+T/Of5/BttGXgN/ZOTdSzLpYYdFK 6QdRabHKHbY02SVG7Qfqcgky9LxSy0OGaI1RnI6gK7HbsXAuBAIkpxRNQZ6omvyyOi 3C5vz+LfSz3CBq/du+e9OoazsV+beeUeZOq6nYBv6oIQ/xOjD8XNNKI8hsnuazUrV1 PSdPddlQ0GetLefN3ylqmEkn2qLgp08ySdy5JLUPkPRGvzO/fMvOjXXf+LIMQ3derf PzTphDyl4V8yy7AwAQTMfYx67vm27Db5vGRtj1GaoZWumYCpAVB2EHHcy6JxWVIaxq EUBaWCyMjIT1A== Date: Mon, 09 Feb 2026 10:37:25 -0800 From: "H. Peter Anvin" To: Juergen Gross , linux-kernel@vger.kernel.org, x86@kernel.org CC: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen Subject: =?US-ASCII?Q?Re=3A_=5BPATCH_v2_0/4=5D_x86/mtrr=3A_Allow_MTR?= =?US-ASCII?Q?R_updates_on_multiple_CPUs_in_parallel?= User-Agent: K-9 Mail for Android In-Reply-To: <35527cf2-322f-410b-9942-5cba0956b237@suse.com> References: <20260130113625.599305-1-jgross@suse.com> <35527cf2-322f-410b-9942-5cba0956b237@suse.com> Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On February 9, 2026 1:12:59 AM PST, Juergen Gross wrote= : >Ping? > >I'd really like to have this in 7=2E0, as it is fixing a real issue on >some machines =2E=2E=2E > > >Juergen > >On 30=2E01=2E26 12:36, Juergen Gross wrote: >> Today MTRR updates are serialized to not happen on multiple CPUs at the >> same time, as the related coding is using global variables=2E >>=20 >> On huge machines with lots of CPUs this can result in problems, as such >> updates are happening through stop_machine(), which will call the MTRR >> update function with interrupts off on all CPUs at the same time=2E The >> interrupts will be switched on only after the last CPU has finished >> the MTRR update=2E As the update is required to run in uncached mode, i= t >> can take easily several milliseconds on each CPU, resulting in the >> whole process to need several seconds=2E This in turn can cause the >> watchdog to trigger and to recognize a hard system lockup=2E >>=20 >> This series is changing the behavior by allowing the MTRR update to >> happen on all CPUs in parallel=2E >>=20 >> Changes in V2: >> - fix a function comment header in patch 2 >>=20 >> Juergen Gross (4): >> x86/mtrr: Move cache_enable() and cache_disable() to mtrr/generic=2E= c >> x86/mtrr: Introduce MTRR work state structure >> x86/mtrr: Add a prepare_set hook to mtrr_ops >> x86/mtrr: Drop cache_disable_lock >>=20 >> arch/x86/include/asm/cacheinfo=2Eh | 2 - >> arch/x86/include/asm/mtrr=2Eh | 2 - >> arch/x86/kernel/cpu/cacheinfo=2Ec | 80 +---------------- >> arch/x86/kernel/cpu/mtrr/generic=2Ec | 139 ++++++++++++++++++++++++--= --- >> arch/x86/kernel/cpu/mtrr/mtrr=2Ec | 3 + >> arch/x86/kernel/cpu/mtrr/mtrr=2Eh | 2 + >> 6 files changed, 122 insertions(+), 106 deletions(-) >>=20 > First of all, what machines are even needing MTRR updates these days?=20 This isn't a rhetorical question=2E It is important to understand what the= underlying problem is=2E