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

Re: IOMMU faults after S3


  • To: Jan Beulich <jbeulich@xxxxxxxx>, Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Wed, 1 Apr 2026 09:20:11 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • 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=0TvI/S6RtBZqmLJ0w11DVE6SnvpoilniE8POxdbT4gY=; b=TLnifcEFEkg6+DHFemNMlcvq7yLym0vZFKHI5RpyqzPNsK/aNzcTC3dXfUMFZoMFjcL4kjMI/yvrMi61QHDxkT5HFfZT5pxjtWB49flcP+PbqYKszwYS9xuKydIuheKsdfC4Tj7rW8TpseYWyG2s67MMqLQ6JWJiZ5DIv3ijuJ/lJ8jOiK9gCDeSGtBtfFdgJ1r1aqezMAR4Ha4Gy9UsCfgkgAPQJYrCYequjA0w/eFbfQwuphZ/f9YcDcpcSfhURJyeCuzkxMOHZT71fN38nKHjMsKcta2GqnCtlXh7OdqIs724MmpF+tlCUWQnPcBKxnP7iE1UzfbHsoyWx+31pg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Iq229BkR8fIaGeBdz0G4OIj/ItFu5p2hWg7DS6ATW++p6CTVEpkxI0XM/hqs4s7KuIVvoTFcaFo44isbuI0Cop+PBDEUq0MQa44k+W8J8kPnwrQ+TwDqHxZafxvvjLnTnChAqDOXwpCSx16KnzxISrFbEb2ZB/ZrdTRUExbFXyIXlweSA3DnsJIpqNLdEJjOJmgKwoo8v+YUfWf3FliJIpTe5Jx9V8rt18TkhCmduaKlUBc49Oa2F0nxCk7q0kiiY45hivER0DsS+OQ3WGeVECbX7mY70jlC4W0ycRZ8u/IDKP9Ua4IITXVyh39yt8WCuVn/Y0bS5ckujKeXvLJuGQ==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=citrix.com header.i="@citrix.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 01 Apr 2026 07:20:30 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 01/04/2026 9:14 am, Jan Beulich wrote:
> On 27.03.2026 11:19, Marek Marczykowski-Górecki wrote:
>> I noticed that on some systems, there are a lot of IOMMU faults after
>> S3. I can see it also on a laptop with MTL, but it affects also the ADL
>> gitlab runner:
>>
>>     https://gitlab.com/xen-project/hardware/xen/-/jobs/13661033722
>>     (XEN) [   37.201160] [VT-D]DMAR:[DMA Write] Request device 
>> [0000:00:1e.6] fault addr 0
>>     (XEN) [   37.201164] [VT-D]DMAR: reason 02 - Present bit in context 
>> entry is clear
>>     (XEN) [   37.202332] [VT-D]DMAR:[DMA Write] Request device 
>> [0000:00:1e.6] fault addr 0
>>     (XEN) [   37.202339] [VT-D]DMAR: reason 02 - Present bit in context 
>> entry is clear
>>
>> Interestingly, the 0000:00:1e.6 device is not even listed by lspci.
>>
>> The issue is present only on staging, not staging-4.21.
>>
>> Bisect says:
>>
>> 5ec93b2f19ff8873fca65d38c1164b0a56d3898b is the first bad commit
>> commit 5ec93b2f19ff8873fca65d38c1164b0a56d3898b
>> Author: Jan Beulich <jbeulich@xxxxxxxx>
>> Date:   Thu Jan 22 14:13:35 2026 +0100
>>
>>     x86/HPET: drop .set_affinity hook
> Looking into this, I find several things I can't quite understand (yet).
> First there is
>
> (XEN) [000000456c0fe39f] Disabling HPET for being unreliable
>
> which looks to only affect clocksource selection, but not use as
> broadcast source for CPU-idle management. (This may be an independent
> issue.)
>
> Then there is
>
> (XEN) [    2.760248] HPET: 8 timers usable for broadcast (8 total)
>
> which should only occur on ARAT-incapable systems. That should only be
> older hardware.

I'm not sure that's a reasonable assertion to draw.  The number of HPET
channels is down to the HPET alone, not anything to do with the CPU
capabilities.

>  (On my much older Skylake I don't see this line, for
> example.) What does CPUID leaf 6 have on this system? Sadly xen-cpuid
> is purely featureset based, and hence doesn't expose info about that
> leaf.

xen-cpuid -p

That will get you leaf 6, but there's no human-readable decode of it.

~Andrew



 


Rackspace

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