Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jul 2019 13:14:13 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@FreeBSD.org
Subject:   [Bug 239341] HDA support doesn't work for me
Message-ID:  <bug-239341-27103@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239341

            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@FreeBSD.org
          Reporter: shamaz.mazum@gmail.com

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

Hello. I am running FreeBSD 12.0-RELEASE and want to try hda (audio) suppor=
t,
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@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=3D/dev/dsp -s 29,fbuf,tcp=3D127.0.0.1:5900,w=3D1920,h=3D1080 -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 i=
t's
a bug in bhyve. Please tell me is HDA support work on your machine.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-239341-27103>