Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DP/HDMI audio not work when using GPU passthrough. #2

Open
Leoyzen opened this issue Mar 24, 2020 · 1 comment
Open

DP/HDMI audio not work when using GPU passthrough. #2

Leoyzen opened this issue Mar 24, 2020 · 1 comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@Leoyzen
Copy link
Owner

Leoyzen commented Mar 24, 2020

Many peoples feedback that theirs DP/HDMI would not work when using GPU passthrough. It is a common mistake that newbies would made but there is little discussion in the net.
You must put the graphic and graphic audio in the the bus but different function when passthrough them.

<!-- Assume we have a graphic(gfx(0x2d/0x0) and audio(0x2d/0x1)) -->
<hostdev mode='subsystem' type='pci' managed='yes'>
    <driver name='vfio'/>
    <source>
        <address domain='0x0000' bus='0x2d' slot='0x00' function='0x0'/>
    </source>
<!-- we put gfx under bus 0x01 and function 0x0, also with multifunction on. -->
    <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0' multifunction='on'/>
</hostdev>
<hostdev mode='subsystem' type='pci' managed='yes'>
    <driver name='vfio'/>
    <source>
        <address domain='0x0000' bus='0x2d' slot='0x00' function='0x1'/>
    </source>
<!-- we put graphic audio under the same bus 0x01 with gfx but different function 0x1-->
    <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x1'/>
</hostdev>
@Leoyzen Leoyzen added good first issue Good for newcomers question Further information is requested labels Mar 24, 2020
@Leoyzen
Copy link
Owner Author

Leoyzen commented Mar 24, 2020

Apple and Lilu/AppleALC will find the audio device along with graphic(in ioreg, they are in the bus but different function), so if you are not set it correctly, you will not get a working HDMI/DP audio.
Also noted this will break on-board audio too(AppleALC will confuse which one is truely the on-board audio)

@Leoyzen Leoyzen added documentation Improvements or additions to documentation and removed question Further information is requested labels Mar 27, 2020
@Leoyzen Leoyzen pinned this issue Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant