projectacrn / acrn-hypervisor

Project ACRN hypervisor
BSD 3-Clause "New" or "Revised" License
1.13k stars 516 forks source link

[RTVM kernel 5.10]Fail to enable 7 PCI based VUART on 5.10.56 RTVM #6630

Closed fuzhongl closed 2 years ago

fuzhongl commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

Platform TGL

Codebase V2.6

Scenario Industry

To Reproduce 1.Use config-tool app to config 1 legacy vUART and 7 PCI based vUARTs as below and change 16 to 32 for MAX_EMULATED_MMIO as 32

And then generate new xml file. Rebuild ACRN with the generated xml file

2.boot SOS and RTVM

  1. In RTVM, $ lspci |grep MosChip ; to find out all PCI vuart serial controllers.

    $ dmesg |grep ttyS* ; to find out all ttyS devices.

Expected result

in RTVM can find all ttyS* devices for PCI based VUART

Actual result

can find 7 PCI VUART serial controllers with " lspci |grep MosChip ";

but only can find 3 pci vuart devices with "demsg | grep ttyS or ls /dev/ttyS "

fuzhongl commented 3 years ago

Need to modify the RTVM kernel config: From: CONFIG_SERIAL_8250_NR_UARTS=32 CONFIG_SERIAL_8250_RUNTIME_UARTS=4

To: CONFIG_SERIAL_8250_NR_UARTS=16 CONFIG_SERIAL_8250_RUNTIME_UARTS=16

fuzhongl commented 2 years ago

[External_System_ID] ACRN-7100

fuzhongl commented 2 years ago

Fixed in V2.7