From owner-freebsd-virtualization@freebsd.org Thu Sep 24 14:22:27 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 355283F921D for ; Thu, 24 Sep 2020 14:22:27 +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 4Bxy1G3h9Hz4Vdh; Thu, 24 Sep 2020 14:22:26 +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=1600957344; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=y5LebnfSVgKxmaCArkLTjbbNVSEIY264iqSvmdFlpes=; b=oT0d2JmZWiea3DDL3wkP/uhYuNwJF3vleGYGRIXuJWZ7mgllZ8WiYIT62Of7/7KtWXWrhc o2ce7UOJUZHuPEGwrhm+lIehYKX0IshdoBIoBOAwyXjHVZFVn9DL8TS2joOkn5maChqCDd +MHCYYke2BzR3CM7HQv5DzgB6BYo+hI= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id AEFDDAFB8; Thu, 24 Sep 2020 14:22:24 +0000 (UTC) Date: Thu, 24 Sep 2020 16:22:23 +0200 From: Ali Abdallah To: Peter Grehan Cc: freebsd-virtualization@freebsd.org Subject: Re: HD audio problem on FreeBSD 12.1 bhyve VM Message-ID: <20200924142223.txf474z3p42twuby@frix230> References: <20200922154021.4kes7nyv2tadgofx@frix230> <20200923151552.d7xe2fngbvqb5alr@frix230> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4Bxy1G3h9Hz4Vdh X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=suse.com header.s=susede1 header.b=oT0d2JmZ; 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 [-5.64 / 15.00]; MID_RHS_NOT_FQDN(0.50)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.com:s=susede1]; NEURAL_HAM_MEDIUM(-1.04)[-1.036]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:195.135.220.15]; MIME_GOOD(-0.10)[text/plain]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DWL_DNSWL_MED(-2.00)[suse.com:dkim]; NEURAL_HAM_LONG(-0.96)[-0.964]; RWL_MAILSPIKE_GOOD(0.00)[195.135.220.15:from]; RCVD_IN_DNSWL_MED(-0.20)[195.135.220.15:from]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[suse.com,none]; DKIM_TRACE(0.00)[suse.com:+]; NEURAL_HAM_SHORT(-0.44)[-0.440]; 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: Thu, 24 Sep 2020 14:22:27 -0000 On 24.09.2020 19:48, Peter Grehan wrote: > Hi Ali, Hi Peter, thanks for your answers. > > > I tested the following combinations: > > > > 1) 12.1 guest on 12.1 host (with the HD audio from 13-current). > > 2) Same 12.1 guest on 13-current host. > > 2) worked ok for me, at least with very limited testing and a simplistic > config It doesn't work for me... See below. > On the guest, > > root@:~ # uname -a > FreeBSD 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC amd64 > > root@:~ # cat /dev/sndstat > Installed devices: > pcm0: (play) default > No devices installed from userspace. > > root@:~ # sysctl dev.hdac.0.pindump=1 > dev.hdac.0.pindump: 0hdaa0: 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: NumGPIO=0 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=0 > > cat test.wav > /dev/dsp worked the same in the guest as on the host > > The guest was configured with "-s 20,hda,play=/dev/dsp" I'm booting with the following script. VM=freebsd12.1 ifconfig tap1 up bhyve -AHP -s 0:0,hostbridge -s 1:0,lpc \ -s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,./disk.img \ -c 1 -m 4096M \ -s 19,xhci,tablet \ -s 11,fbuf,tcp=0.0.0.0:5920,w=1280,h=1024,wait \ -s 20,hda,play=/dev/dsp0,rec=/dev/dsp0 \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ $VM bhyvectl --destroy --vm=$VM > > Audio on the Thinkpad host is: > > grehan@carbon-usb:/images $ cat /dev/sndstat > Installed devices: > pcm0: (play/rec) default > pcm1: (rec) > pcm2: (play) > I have the issue on my daily driver, a Thinkpad T430. But also tested on my x220, same issue, only noise. However, sound works perfectly fine on OpenSUSE guest. > later, > > Peter. > Regards, Ali