[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] x86/intel: workaround several MONITOR/MWAIT errata


  • To: Roger Pau Monne <roger.pau@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Alejandro Vallejo <agarciav@xxxxxxx>
  • Date: Fri, 25 Apr 2025 13:36:42 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=citrix.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xi6HiV/v4lFN9EQLKuYbULt3tlbLUebiB7R37k61iU4=; b=n424bEoOgIhPflGRI5P6FCVLcyp0wdU5sSta1fpT+5Fu+Z0IjtgHoQeRIvs65mrMF93npIP6dSHJRn7Hy0gbhdFVmzsxfyDjndHLbDj8JDfKR52eJAGLhfl4YseV8Remh1xWyb7FOO06gZLidjf2RKz+dvUfVEV2fPYXcv6cVeqgYI2ORacJeDBhXTE+6KDdDSSrWZfVFz6Ghz1prtfyNgCwlctT33/jvjZC4ADzHvDnPRkVhc/DhbdRr3vF8y6WHAZp80409XHzn0H1QIfrLJHoBbEShPePJTYXh5USjEBOkUkmT/7mhmO0s2HKFuvMc7js3HOnriyY5swR0ehhAw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=auQvVieM7TO0xqGgdzLWTIDTrNAyWme3Q4dd34cOelogbLMy3W0zQ9sF8GAg2WuZc6IZ55bxTC3H1SiR97BA84BjbdX2qmsocTRGViZYQsLR0Y3Otuk8eFuaBG0S6LfM8HvHCVduQYmQeY0r/LJurK2BhONJBdEAtXZ0NMBrdSQ55GJrHjxGqfrGpMaQ/2thVs0YWJmNcJk3+PIbBiiGtx4hvRTqiqmR4mtao91NwbpTp444Yqfml91o3/bK1aZ3IifM6NRS29YXr0Id0+BffxV4rABirf5543eF3cERqsaM4oV5XUiBrYcQTxewts+v65Fo+AJY/XNmsOkaSQW4/A==
  • Cc: Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Frediano Ziglio <frediano.ziglio@xxxxxxxxx>, Xen-devel <xen-devel-bounces@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 25 Apr 2025 12:37:02 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Wed Apr 23, 2025 at 12:32 PM BST, Roger Pau Monne wrote:
> There are several errata on Intel regarding the usage of the MONITOR/MWAIT
> instructions, all having in common that stores to the monitored region
> might not wake up the CPU.
>
> Fix them by forcing the sending of an IPI for the affected models.
>
> The Ice Lake issue has been reproduced internally on XenServer hardware,
> and the fix does seem to prevent it.  The symptom was APs getting stuck in
> the idle loop immediately after bring up, which in turn prevented the BSP
> from making progress.

Ugh... so this is what it was... Awesome having this madness fixed.

Do you happen to know if Linux has a similar fix in place?

> This would happen before the watchdog was initialized, and hence the
> whole system would get stuck.

That's nasty. It was the misassumption that the watchdog was already
running that had me going in circles thinking it was a lockup rather
than a livelock. Oh, well.

I believe the kudos for finally being able to reproduce this goes to
Frediano?

Cheers,
Alejandro



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.