From 0267cc4ef144c01823fa1cd4d17bab363a1ba667 Mon Sep 17 00:00:00 2001 From: Qian Wang Date: Tue, 1 Sep 2020 10:29:48 +0800 Subject: [PATCH] HV: Fix SR-IOV problem on EHL hv: vpci: Add 0x45, which is the high-byte of device id of EHL, to the enumeration array in vhostbridge.c. This is to fix the problem that PCIe extended capabilities like SR-IOV cannot be used on EHL. Tracked-On: #5256 Signed-off-by: Qian Wang --- hypervisor/dm/vpci/vhostbridge.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hypervisor/dm/vpci/vhostbridge.c b/hypervisor/dm/vpci/vhostbridge.c index 9ead392f0..7369a22d3 100644 --- a/hypervisor/dm/vpci/vhostbridge.c +++ b/hypervisor/dm/vpci/vhostbridge.c @@ -53,10 +53,11 @@ KBL(7/8-gen) | 0x59 CFL/CFL-R(8/9-gen) | 0x3e ICL(10-gen) | 0x9b - EHL/TGL(11-gen) | 0x9a + EHL(11-gen) | 0x45 + TGL(11-gen) | 0x9a -------------------------------------------------------------------------------------- */ -static const uint32_t hostbridge_did_highbytes[] = {0x19U, 0x5aU, 0x59U, 0x3eU, 0x9aU, 0x9bU}; +static const uint32_t hostbridge_did_highbytes[] = {0x19U, 0x5aU, 0x59U, 0x3eU, 0x9aU, 0x45U, 0x9bU}; /* The vhostbridge we currently emulated is "Celeron N3350/Pentium N4200/Atom E3900 Series Host Bridge",