Comment 338 for bug 1958019

Revision history for this message
In , cam (cam-linux-kernel-bugs) wrote :

<email address hidden> to BCC so we can avoid spamming with
trouble shooting. When we resolve this, we can share our findings.

(also check your spam folder for messages directly from me).

Linux should only have the dummy device as device is no longer available
to the host OS. That's good!

What do you see under system devices?
http://vasteel.neo-zeon.de/~hiryu/287/win10-vm.png

Anything relating to sound like mine?

On 6/26/21 9:46 AM, <email address hidden> wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=208555
>
> --- Comment #324 from Vincent Morel (<email address hidden>) ---
> Ok,
> updated the kernel param, now I have
> initrd=\EFI\Pop_OS-b0da9465-3702-45ac-91d3-7ca24016e875\initrd.img
> root=UUID=b0da9465-3702-45ac-91d3-7ca24016e875 ro quiet loglevel=0
> systemd.show_status=false splash
> pci-stub.ids=8086:a082,8086:a0c8,8086:a0a3,8086:a0a4 intel_iommu=on
>
> Try with or without "iommu=pt"
>
> Still no luck, no hcnag ein the VM.
> Note that since I added those 3 more adress from the group to the param, my
> audio show only "dummy" output in control panel of Linux.
>
> My VM start command is:
> #!/bin/bash
>
> _qemu=/opt/qemu/jcs/bin/qemu-system-x86_64
>
> sudo qemu-system-x86_64 -L ~/windows_vm/qemu/pc-bios -enable-kvm -hda
> win10.img
> -m 4G -smp 4 -vga std -device
> vfio-pci,host=0000:00:1f.3,multifunction=on,x-no-mmap=true -trace
> events=./events.txt -monitor stdio
>
> (In reply to Cameron Berkenpas from comment #322)
>> Things are not quite right. You do seem to have the right sound device
>> picked out, but you need to pass all the devices.
>>
>> Here's  your relevant IO group:
>> IOMMU Group 11:
>>         00:1f.0 ISA bridge [0601]: Intel Corporation Tiger Lake-LP LPC
>> Controller [8086:a082] (rev 20)
>>         00:1f.3 Multimedia audio controller [0401]: Intel Corporation
>> Tiger Lake-LP Smart Sound Technology Audio Controller [8086:a0c8] (rev 20)
>>         00:1f.4 SMBus [0c05]: Intel Corporation Tiger Lake-LP SMBus
>> Controller [8086:a0a3] (rev 20)
>>         00:1f.5 Serial bus controller [0c80]: Intel Corporation Tiger
>> Lake-LP SPI Controller [8086:a0a4] (rev 20)
>>
>> Your kernel command only lists your sound card. It should all of the
>> devices in this group.
>>
>> For example, I have:
>> vfio-pci.ids=8086:068d,8086:06c8,8086:06a3,8086:06a4
>>
>> Yours needs to be:
>> vfio-pci.ids=8086:a082,8086:a0c8,8086:a0a3,8086:a0a4
>>
>> In my experimentation in getting this to work, I also did not set
>> "iommu=pt". You might try removing that as well.
>>
>>> Yeah, here is the results:
>>>
>>> -Result from script:
>>> ./test.sh
>>> IOMMU Group 0:
>>> 00:00.0 Host bridge [0600]: Intel Corporation 11th Gen Core
>>> Processor
>>> Host Bridge/DRAM Registers [8086:9a14] (rev 01)
>>> IOMMU Group 1:
>>> 00:02.0 VGA compatible controller [0300]: Intel Corporation UHD
>>> Graphics [8086:9a49] (rev 01)
>>> IOMMU Group 2:
>>> 00:04.0 Signal processing controller [1180]: Intel Corporation
>>> Device
>>> [8086:9a03] (rev 01)
>>> IOMMU Group 3:
>>> 00:06.0 PCI bridge [0604]: Intel Corporation 11th Gen Core
>> Processor
>>> PCIe Controller [8086:9a09] (rev 01)
>>> IOMMU Group 4:
>>> 00:07.0 PCI bridge [0604]: Intel Corporation Tiger Lake-LP
>>> Thunderbolt
>>> PCI Express Root Port #2 [8086:9a27] (rev 01)
>>> IOMMU Group 5:
>>> 00:08.0 System peripheral [0880]: Intel Corporation Device
>>> [8086:9a11]
>>> (rev 01)
>>> IOMMU Group 6:
>>> 00:0d.0 USB controller [0c03]: Intel Corporation Tiger Lake-LP
>>> Thunderbolt USB Controller [8086:9a13] (rev 01)
>>> 00:0d.3 USB controller [0c03]: Intel Corporation Tiger Lake-LP
>>> Thunderbolt NHI #1 [8086:9a1d] (rev 01)
>>> IOMMU Group 7:
>>> 00:14.0 USB controller [0c03]: Intel Corporation Tiger Lake-LP
>>> USB
>>> 3.2
>>> Gen 2x1 xHCI Host Controller [8086:a0ed] (rev 20)
>>> 00:14.2 RAM memory [0500]: Intel Corporation Tiger Lake-LP Shared
>>> SRAM
>>> [8086:a0ef] (rev 20)
>>> IOMMU Group 8:
>>> 00:14.3 Network controller [0280]: Intel Corporation Wi-Fi 6
>>> AX201
>>> [8086:a0f0] (rev 20)
>>> IOMMU Group 9:
>>> 00:15.0 Serial bus controller [0c80]: Intel Corporation Tiger
>>> Lake-LP
>>> Serial IO I2C Controller #0 [8086:a0e8] (rev 20)
>>> IOMMU Group 10:
>>> 00:16.0 Communication controller [0780]: Intel Corporation Tiger
>>> Lake-LP Management Engine Interface [8086:a0e0] (rev 20)
>>> IOMMU Group 11:
>>> 00:1f.0 ISA bridge [0601]: Intel Corporation Tiger Lake-LP LPC
>>> Controller [8086:a082] (rev 20)
>>> 00:1f.3 Multimedia audio controller [0401]: Intel Corporation
>> Tiger
>>> Lake-LP Smart Sound Technology Audio Controller [8086:a0c8] (rev 20)
>>> 00:1f.4 SMBus [0c05]: Intel Corporation Tiger Lake-LP SMBus
>>> Controller
>>> [8086:a0a3] (rev 20)
>>> 00:1f.5 Serial bus controller [0c80]: Intel Corporation Tiger
>>> Lake-LP
>>> SPI Controller [8086:a0a4] (rev 20)
>>> IOMMU Group 12:
>>> 01:00.0 Non-Volatile memory controller [0108]: Samsung
>>> Electronics
>>> Co
>>> Ltd Device [144d:a809]
>>>
>>> -cat /proc/cmdline
>>> initrd=\EFI\Pop_OS-b0da9465-3702-45ac-91d3-7ca24016e875\initrd.img
>>> root=UUID=b0da9465-3702-45ac-91d3-7ca24016e875 ro quiet loglevel=0
>>> systemd.show_status=false splash pci-stub.ids=8086:a0c8 iommu=pt
>>> intel_iommu=on
>>>
>>> -The audio controller seems to appear in "Other devices->Multimedia Audio
>>> Controller" with the small sign on it telling me there is a problem
>> (driver)
>>> with it. I checked other device to see if there is something odd but all
>>> other
>>> stuff seems legit in Device Manager...
>>>
>>> -Downloaded the driver from Lenovo website and double check it is the good
>>> one
>>> (there is so much similar name in Lenovo website...). 13S Gen2 ITL
>>>
>>>
>>
>> https://support.lenovo.com/us/en/downloads/ds546687-realtek-audio-driver-for-windows-10-64-bit-thinkbook-13s-g2-itl-thinkbook-14s-g2-itl