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

RE: RMRRs and Phantom Functions


  • To: "Cooper, Andrew" <andrew.cooper3@xxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
  • Date: Wed, 27 Apr 2022 03:39:00 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=P4sda8vTB8u+PTFtV9QVyGUfwdsWbCqqA2coi5Sv3wg=; b=Dy/9GnrgOw/vwdJRFjF7Bc3s/3jHTIGwUxBEVofogqriip5h9iqNEP/k6JhpdabuXutELLdUZKDLNQg5McQNPoSp3EaodccJw1Oy9/2RXk8g8q2mdKcdw2nkp/AYPUYs05w9hcTfJo+Y2370B9lPs1oK3PpKjx+bdjvnD/T0QY7sMnzxSsDgD4qXkIwgDLvQ4unpWfOIk8m5C9xqT0QS4ACg6i0i0uDYdpkEioaPapleTP/TnC34uE6YgwDDZzRan2G4lBU3s0qYrJpOCYaTt9ENn+uFo7/aPf7tS1gnweM2zuzofChG7RmFbikR8bkKKbvVAyJut3wz7nYwT5APgA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nwGHg0VblUxCdJGADxdXx833Xxdm4UqEbj3MXxX1GeJ0crilLPLHguwSQYFs1OS8BgDABaZ3hbG3X0weY8lmipSDsCa/u8ujTjswlrmLWG0T2ayZdF89m1jltDEnURBrwTrB+Hi22VxU59dtVMckdX1PAjl98v7BvLZG5Od9YYgccg7iBWo+rtIFu8DHGT5hwYAR4FcJ59WMp1ZIUkWwlzwV1AcVC0hoG8ZOoUpWALl8lKwq4ltiL+PwX+1nQo4H3Qv19r8FKwiFaPAINJSRu/2JM7Ubm+WIOv5RDfy+5ilGGzilgZ75jTnOj3+Klywm/3lcexsWynQ5tID/kIBWiA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com;
  • Cc: Pau Monné, Roger <roger.pau@xxxxxxxxxx>, "Beulich, Jan" <JBeulich@xxxxxxxx>, Edwin Torok <edvin.torok@xxxxxxxxxx>
  • Delivery-date: Wed, 27 Apr 2022 03:39:26 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHYWZZDIrEkmq9fL0+3qLNT2+7QyK0DHAnA
  • Thread-topic: RMRRs and Phantom Functions

> From: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>
> Sent: Wednesday, April 27, 2022 1:52 AM
> 
> Hello,
> 
> Edvin has found a machine with some very weird properties.  It is an HP
> ProLiant BL460c Gen8 with:
> 
>  \-[0000:00]-+-00.0  Intel Corporation Xeon E5/Core i7 DMI2
>              +-01.0-[11]--
>              +-01.1-[02]--
>              +-02.0-[04]--+-00.0  Emulex Corporation OneConnect 10Gb NIC
> (be3)
>              |            +-00.1  Emulex Corporation OneConnect 10Gb NIC
> (be3)
>              |            +-00.2  Emulex Corporation OneConnect 10Gb
> iSCSI Initiator (be3)
>              |            \-00.3  Emulex Corporation OneConnect 10Gb
> iSCSI Initiator (be3)
> 
> yet all 4 other functions on the device periodically hit IOMMU faults
> (~once every 5 mins, so definitely stats).
> 
> (XEN) [VT-D]DMAR:[DMA Write] Request device [0000:04:00.4] fault addr
> bdf80000
> (XEN) [VT-D]DMAR:[DMA Write] Request device [0000:04:00.5] fault addr
> bdf80000
> (XEN) [VT-D]DMAR:[DMA Write] Request device [0000:04:00.6] fault addr
> bdf80000
> (XEN) [VT-D]DMAR:[DMA Write] Request device [0000:04:00.7] fault addr
> bdf80000
> 
> There are several RMRRs covering the these devices, with:
> 
> (XEN) [VT-D]found ACPI_DMAR_RMRR:
> (XEN) [VT-D] endpoint: 0000:03:00.0
> (XEN) [VT-D] endpoint: 0000:01:00.0
> (XEN) [VT-D] endpoint: 0000:01:00.2
> (XEN) [VT-D] endpoint: 0000:04:00.0
> (XEN) [VT-D] endpoint: 0000:04:00.1
> (XEN) [VT-D] endpoint: 0000:04:00.2
> (XEN) [VT-D] endpoint: 0000:04:00.3
> (XEN) [VT-D]dmar.c:608:   RMRR region: base_addr bdf8f000 end_addr
> bdf92fff
> 
> being the one relevant to these faults.  I've not manually decoded the
> DMAR table because device paths are horrible to follow but there are at
> least the correct number of endpoints.  The functions all have SR-IOV
> (disabled) and ARI (enabled).  None have any Phantom functions described.
> 
> Specifying pci-phantom=04:00,1 does appear to work around the faults,
> but it's not right, because functions 1 thru 3 aren't actually phantom.
> 
> Also, I don't see any logic which actually wires up phantom functions
> like this to share RMRRs/IVMDs in IO contexts.  The faults only
> disappear as a side effect of 04:00.0 and 04:00.4 being in dom0, as far
> as I can tell.
> 
> Simply giving the RMRR via rmrr= doesn't work (presumably because of no
> patching actual devices, but there's no warning), but it feels as if it
> ought to.
> 

What is the Xen version? Does it include Jan's change for per-device
quarantine?

btw it's weird why those NIC devices require RMRR in the first place...

 


Rackspace

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