Skip to content

Commit c122505

Browse files
Wei Liuwenlingz
authored andcommitted
acrn-config: add 'xhci' usb mediator for laag and waag
Enable xhci usb mediator for whl-ipc-i5/whl-ipc-7 and KBL NUC for LaaG and WaaG. Tracked-On: #3854 Signed-off-by: Wei Liu <weix.w.liu@intel.com> Acked-by: Victor Sun <victor.sun@intel.com>
1 parent c0e1a5d commit c122505

File tree

1 file changed

+24
-1
lines changed
  • misc/acrn-config/launch_config

1 file changed

+24
-1
lines changed

misc/acrn-config/launch_config/com.py

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,26 @@ def vboot_arg_set(dm, vmid, config):
401401
print(" $boot_image_option \\",file=config)
402402

403403

404+
def xhci_args_set(names, vmid, config):
405+
board_name = names['board_name']
406+
uos_type = names['uos_types'][vmid]
407+
408+
# Get locate of vmid
409+
idx = 0
410+
#if board_name not in ("whl-ipc-i5", "whl-ipc-i7"):
411+
if uos_type in ("CLEARLINUX", "WINDOWS") and board_name in ("whl-ipc-i5", "whl-ipc-i7", "nuc7i7dnb"):
412+
for num in names['uos_types'].keys():
413+
idx += 1
414+
if num == vmid:
415+
break
416+
417+
# if the vmid is first vm
418+
if idx == 1:
419+
print(" -s {},xhci,1-2:2-2 \\".format(launch_cfg_lib.virtual_dev_slot("xhci")), file=config)
420+
elif idx > 1:
421+
print(" -s {},xhci,1-2:2-4 \\".format(launch_cfg_lib.virtual_dev_slot("xhci")), file=config)
422+
423+
404424
def dm_arg_set(names, sel, dm, vmid, config):
405425

406426
uos_type = names['uos_types'][vmid]
@@ -466,6 +486,9 @@ def dm_arg_set(names, sel, dm, vmid, config):
466486
print("{} \\".format(dm_str), file=config)
467487
print(" --windows \\", file=config)
468488

489+
# WA: XHCI args set
490+
xhci_args_set(names, vmid, config)
491+
469492
# GVT args set
470493
gvt_arg_set(uos_type, config)
471494

@@ -498,7 +521,7 @@ def dm_arg_set(names, sel, dm, vmid, config):
498521

499522
if not is_nuc_whl_clr(names, vmid):
500523
print(" -s {},wdt-i6300esb \\".format(launch_cfg_lib.virtual_dev_slot("wdt-i6300esb")), file=config)
501-
print(" -s {},xhci,1-1:1-2:1-3:2-1:2-2:2-3:cap=apl \\".format(launch_cfg_lib.virtual_dev_slot("xhci")), file=config)
524+
#print(" -s {},xhci,1-1:1-2:1-3:2-1:2-2:2-3:cap=apl \\".format(launch_cfg_lib.virtual_dev_slot("xhci")), file=config)
502525

503526
if uos_type != "PREEMPT-RT LINUX":
504527
if dm['vbootloader'][vmid] and dm['vbootloader'][vmid] == "vsbl":

0 commit comments

Comments
 (0)