[Bug 239341] HDA support doesn't work for me

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jul 20 13:14:14 UTC 2019


            Bug ID: 239341
           Summary: HDA support doesn't work for me
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bhyve
          Assignee: virtualization at FreeBSD.org
          Reporter: shamaz.mazum at gmail.com

Created attachment 205930
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=205930&action=edit
Patch that fixes the problem for me

Hello. I am running FreeBSD 12.0-RELEASE and want to try hda (audio) support,
which was added to CURRENT recently (base r349335). So I have cherry-picked
that commit (I use git mirror on github) and rebuilt bhyve.

When I add HDA device, bhyve aborts on assertion:

root at vonbraun:~ # bhyve -c 1 -m 2G -w -H -s 0,hostbridge -s
4,ahci-cd,/home/vasily/Fedora-Workstation-Live-x86_64-30-1.2.iso -s
6,hda,play=/dev/dsp -s 29,fbuf,tcp=,w=1920,h=1080 -s
30,xhci,tablet -s 31,lpc -l com1,stdio -l bootrom,BHYVE_UEFI.fd fedora
(Fedora is booting. Some messages skipped.)
Assertion failed: (!err), function hda_set_sdctl, file
/usr/src/usr.sbin/bhyve/pci_hda.c, line 1072.

Here are the last lines is bhyve_hda.log:

hda_set_sdctl-1063: stream_ind: 0x4 old: 0x50001c value: 0x50001e
hda_stream_start-677: stream: 0x4 bdl_cnt: 0x3 bdl_paddr: 0x773c5000
hda_stream_start-706: Fail to get the guest virtual address

So I have examined pci_hda.c and discovered that bdle pointer in
hda_stream_start function is shifted by 4 bytes from actual position of that
structure in memory. I cannot explain it, but the following patch fixes the
problem. Maybe it's because I did not rebuild the whole system, but maybe it's
a bug in bhyve. Please tell me is HDA support work on your machine.

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-virtualization mailing list