From owner-freebsd-virtualization@freebsd.org Tue Sep 22 15:40:24 2020 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DF9423ECCD6 for ; Tue, 22 Sep 2020 15:40:24 +0000 (UTC) (envelope-from ali.abdallah@suse.com) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.suse.de", Issuer "DigiCert SHA2 High Assurance Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bwlr834Rjz4C94 for ; Tue, 22 Sep 2020 15:40:24 +0000 (UTC) (envelope-from ali.abdallah@suse.com) X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1600789223; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=p81mvC340mXGJymPGn2S4RbYcpm2eoO9/QnO6k4AJBw=; b=ufcTQptVsST8vsquPXB9I1cqChic6UhBTZvNsSjq9MeqZWE66FARPEAtH2wbIjQ1QuPocX kbCC5FZIjJ88svnXdnopM27F4WMzbPGjxkLhEy9mYhQbyd8vcAZp6xn5lh97hvVNXb5DP9 n9Iz3RvRJx+AFN2VPzO1lHW1zpoE3oE= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id B252EB1F1 for ; Tue, 22 Sep 2020 15:40:59 +0000 (UTC) Date: Tue, 22 Sep 2020 17:40:21 +0200 From: Ali Abdallah To: freebsd-virtualization@freebsd.org Subject: HD audio problem on FreeBSD 12.1 bhyve VM Message-ID: <20200922154021.4kes7nyv2tadgofx@frix230> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Rspamd-Queue-Id: 4Bwlr834Rjz4C94 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=suse.com header.s=susede1 header.b=ufcTQptV; dmarc=pass (policy=none) header.from=suse.com; spf=pass (mx1.freebsd.org: domain of ali.abdallah@suse.com designates 195.135.220.15 as permitted sender) smtp.mailfrom=ali.abdallah@suse.com X-Spamd-Result: default: False [-4.77 / 15.00]; MID_RHS_NOT_FQDN(0.50)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.com:s=susede1]; NEURAL_HAM_MEDIUM(-0.95)[-0.953]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_MED(-2.00)[suse.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:195.135.220.15]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; TO_DN_NONE(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[195.135.220.15:from]; RCPT_COUNT_ONE(0.00)[1]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; NEURAL_SPAM_SHORT(0.39)[0.393]; DKIM_TRACE(0.00)[suse.com:+]; RCVD_IN_DNSWL_MED(-0.20)[195.135.220.15:from]; DMARC_POLICY_ALLOW(-0.50)[suse.com,none]; NEURAL_HAM_LONG(-1.01)[-1.010]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:29298, ipnet:195.135.220.0/22, country:DE]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-virtualization] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2020 15:40:24 -0000 Hello, I'm running FreeBSD 12.1 release host with the HD bhyve audio patch from 13-current. On a OpenSUSE 15.2 bhyve guest, audio works perfectly fine. However, on FreeBSD 12.1 only noise comes out. Using /dev/dsp4 (which is a USB sound device), audio works fine, but not on /dev/dsp0, the default sound device on my system. I see the following relevant errors: pcm0: chn_write(): pcm0:virtual:dsp0.vp0: play interrupt timeout, channel dead pcm0: chn_write(): pcm0:virtual:dsp0.vp0: play interrupt timeout, channel dead pin dump from FreeBSD 12.1 VM. ------------------------------ hdaa0: Dumping AFG pins: hdaa0: nid 0x as seq device conn jack loc color misc hdaa0: 3 00001010 1 0 Line-out Jack Unknown 0x00 Black 0 hdaa0: Caps: OUT Sense: 0x80000000 (connected) hdaa0: 5 00805020 2 0 Line-in Jack Unknown 0x00 Red 0 hdaa0: Caps: IN Sense: 0x80000000 (connected) hdaa0: NumGPIO=0 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=0 I tried sysctl dev.hdac.0.polling=1 with no success. Note that: The above problem is also reproducible on 13-Current 20200917. Any help is appreciated. Kind regards, Ali PS: Sorry, previously sent to the wrong mailing lists.