Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jul 2019 13:19:56 +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-lIfJLkj4l6@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-239341-27103@https.bugs.freebsd.org/bugzilla/>
References:  <bug-239341-27103@https.bugs.freebsd.org/bugzilla/>

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

Tiwei Bie <btw@mail.ustc.edu.cn> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |btw@mail.ustc.edu.cn

--- Comment #5 from Tiwei Bie <btw@mail.ustc.edu.cn> ---
According to
https://github.com/freebsd/freebsd/blob/1872e290af2d/sys/dev/sound/pci/hda/=
hdac_private.h#L146-L151
, it seems the definition of `struct hda_bdle` is wrong. Something like thi=
s is
needed:

diff --git c/usr.sbin/bhyve/pci_hda.c i/usr.sbin/bhyve/pci_hda.c
index ace88274ac9..e0324f46a95 100644
--- c/usr.sbin/bhyve/pci_hda.c
+++ i/usr.sbin/bhyve/pci_hda.c
@@ -80,10 +80,10 @@ typedef void (*hda_set_reg_handler)(struct hda_softc *s=
c,
uint32_t offset,
                uint32_t old);

 struct hda_bdle {
-       uint32_t addrh;
        uint32_t addrl;
+       uint32_t addrh;
+       uint32_t len;
        uint32_t ioc;
-       uint32_t len;
 } __packed;

 struct hda_bdle_desc {

--=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-lIfJLkj4l6>