From: "Jan Beulich" Subject: [PATCH XSA-59] VT-d: extend quirks to newer desktop chipsets Date: Tue, 09 Jun 2015 10:05:40 +0100 Message-ID: <5576C8840200007800082793@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part93A7BD74.1__=" Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z2FTi-000433-RE for xen-devel@lists.xenproject.org; Tue, 09 Jun 2015 09:05:50 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: Yang Z Zhang , Kevin Tian , Donald D Dugger List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part93A7BD74.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline We're being told that while on the server side the issue we're trying to work around is fixed starting with IvyBridge (another round of double checking is going on before we're going to remove the one IvyBridge ID that we're currently applying the workaround for), on the desktop side even Skylake still requires the workaround. Hence we need to add a whole bunch of desktop IDs. Signed-off-by: Jan Beulich --- a/xen/drivers/passthrough/vtd/quirks.c +++ b/xen/drivers/passthrough/vtd/quirks.c @@ -503,9 +503,13 @@ void pci_vtd_quirk(const struct pci_dev=20 case 0x0040: case 0x0044: case 0x0048: /* Nehalem/Westmere */ case 0x0100: case 0x0104: case 0x0108: /* Sandybridge */ case 0x0150: case 0x0154: case 0x0158: /* Ivybridge */ - case 0x0a04: /* Haswell ULT */ - case 0x0c00: case 0x0c04: case 0x0c08: /* Haswell */ - case 0x1600: case 0x1604: case 0x1608: /* Broadwell */ + case 0x0a00: case 0x0a04: case 0x0a08: case 0x0a0f: /* Haswell ULT */ + case 0x0c00: case 0x0c04: case 0x0c08: case 0x0c0f: /* Haswell */ + case 0x0d00: case 0x0d04: case 0x0d08: case 0x0d0f: /* Haswell */ + case 0x1600: case 0x1604: case 0x1608: case 0x160f: /* Broadwell */ + case 0x1610: case 0x1614: case 0x1618: /* Broadwell */ + case 0x1900: case 0x1904: case 0x1908: case 0x190c: case 0x190f: /* = Skylake */ + case 0x1910: case 0x1918: case 0x191f: /* Skylake */ bar =3D pci_conf_read32(seg, bus, dev, func, 0x6c); bar =3D (bar << 32) | pci_conf_read32(seg, bus, dev, func, 0x68); pa =3D bar & 0x7ffffff000UL; /* bits 12...38 */ --=__Part93A7BD74.1__= Content-Type: text/plain; name="xsa59-newer-Desktop.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="xsa59-newer-Desktop.patch" VT-d: extend quirks to newer desktop chipsets=0A=0AWe're being told that = while on the server side the issue we're trying=0Ato work around is fixed = starting with IvyBridge (another round of=0Adouble checking is going on = before we're going to remove the one=0AIvyBridge ID that we're currently = applying the workaround for), on the=0Adesktop side even Skylake still = requires the workaround. Hence we need=0Ato add a whole bunch of desktop = IDs.=0A=0ASigned-off-by: Jan Beulich =0A=0A--- = a/xen/drivers/passthrough/vtd/quirks.c=0A+++ b/xen/drivers/passthrough/vtd/= quirks.c=0A@@ -503,9 +503,13 @@ void pci_vtd_quirk(const struct pci_dev = =0A case 0x0040: case 0x0044: case 0x0048: /* Nehalem/Westmere */=0A = case 0x0100: case 0x0104: case 0x0108: /* Sandybridge */=0A case = 0x0150: case 0x0154: case 0x0158: /* Ivybridge */=0A- case 0x0a04: /* = Haswell ULT */=0A- case 0x0c00: case 0x0c04: case 0x0c08: /* Haswell = */=0A- case 0x1600: case 0x1604: case 0x1608: /* Broadwell */=0A+ = case 0x0a00: case 0x0a04: case 0x0a08: case 0x0a0f: /* Haswell ULT */=0A+ = case 0x0c00: case 0x0c04: case 0x0c08: case 0x0c0f: /* Haswell */=0A+ = case 0x0d00: case 0x0d04: case 0x0d08: case 0x0d0f: /* Haswell */=0A+ = case 0x1600: case 0x1604: case 0x1608: case 0x160f: /* Broadwell */=0A+ = case 0x1610: case 0x1614: case 0x1618: /* Broadwell */=0A+ case 0x1900: = case 0x1904: case 0x1908: case 0x190c: case 0x190f: /* Skylake */=0A+ = case 0x1910: case 0x1918: case 0x191f: /* Skylake */=0A bar =3D = pci_conf_read32(seg, bus, dev, func, 0x6c);=0A bar =3D (bar << 32) = | pci_conf_read32(seg, bus, dev, func, 0x68);=0A pa =3D bar & = 0x7ffffff000UL; /* bits 12...38 */=0A --=__Part93A7BD74.1__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__Part93A7BD74.1__=--