From owner-freebsd-multimedia@FreeBSD.ORG Fri Dec 20 20:40:02 2013 Return-Path: Delivered-To: freebsd-multimedia@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 072C2D49 for ; Fri, 20 Dec 2013 20:40:02 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E627D184D for ; Fri, 20 Dec 2013 20:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rBKKe1Ue043225 for ; Fri, 20 Dec 2013 20:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rBKKe1WJ043224; Fri, 20 Dec 2013 20:40:01 GMT (envelope-from gnats) Date: Fri, 20 Dec 2013 20:40:01 GMT Message-Id: <201312202040.rBKKe1WJ043224@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org Cc: From: adam ulmer Subject: Re: kern/184512: [snd_maestro] snd_maestro does not function on i386 [regression] X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: adam ulmer List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Dec 2013 20:40:02 -0000 The following reply was made to PR kern/184512; it has been noted by GNATS. From: adam ulmer To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/184512: [snd_maestro] snd_maestro does not function on i386 [regression] Date: Fri, 20 Dec 2013 13:30:25 -0700 --f46d043d676fe849d504edfd2557 Content-Type: text/plain; charset=UTF-8 I tested 9.2 with: Dell XPS M1330 with Intel ICH8M had sound support from the default kernel, snd_hda(4) Dell Inspiron 8000 with ESS Maestro3 chipset snd_maestro3(4)requires kldload snd_maestro3 Dell Latitude X300 with Intel ICH4 had sound support from the default kernel, snd_ich(4) Dell Latitude X200 with Intel ICH3 had sound support from the default kernel, snd_ich(4) I don't have any hardware that uses snd_maestro(4) . The "pcm0: cannot allocate status buffer" error message happens on line 1835, before the driver can attach to the device. The maestro driver fails to get memory for the status/record buffer (the call to dma_malloc() does not succeed). If I were being thorough, I would trace through the two conditions in dma_malloc() that return nulland try to figure out why (requires hardware). The only change in the maestro driver for 9.2 runs after that part of the code that fails so I'm guessing that the loss of sound you experience with 9.2 comes from a change somewhere higher up in the hierarchy (maybe PCI changes?). While I'm trying to make educated guesses, I've never looked at this code before and I don't have the hardware. I haven't worked on FreeBSD kernel drivers since 2006 so I'd have to get familiar with the current PCI subsystem. If the original reporter wants to continue with this guessing game, boot into a live CD like the 9.2 live cdand try the following commands in an attempt to locate which changes since 9.1 contributed to the loss of sound. sysctl hw.pci.realloc_bars=1 sysctl hw.snd.verbose=4 kldload snd_maestro cat /dev/sndstat I wouldn't make guesses if I had the hardware. I would trace through and find out exactly what happens. I'm on holiday and wanted to contribute to FreeBSD during my time off. I saw the maestro bug and knew I had hardware with maestro something. It turns out it was maestro3 and so I'm not able to help after all. --f46d043d676fe849d504edfd2557 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I tested 9.2 with:

Dell XPS M1330 with Intel I= CH8M had sound support from the default kernel, snd_hda(4)
Dell Inspiron 8000 with ESS Maestro3 chipset snd_maestro3(4) requires kldl= oad snd_maestro3
Dell Latitude X300 with Intel ICH4 had sound support from the default kerne= l, snd_ich(4)
Dell Latitude X200 = with Intel ICH3 had sound support from the default kernel, snd_ich(4)

I don't have any hardware that uses snd_maestro(4).


The "pcm0: cannot allocate st= atus buffer" error message ha= ppens on line 1835, before the driver can attach to the device. The maestro driver fails to get memory for t= he status/record buffer (the call to dma_m= alloc() does not succeed). If I were being thorough, I would trace th= rough the two conditions in dma_ma= lloc() that return null and try to figure out why (requires hardware). = The only change in the maestro driver for 9.2 runs after that part of the code that fails so I'm=20 guessing that the loss of sound you experience with 9.2 comes from a=20 change somewhere higher up in the hierarchy (maybe PCI changes?).

= While I'm trying to make educated guesses, I've never looked at this cod= e=20 before and I don't have the hardware. I haven't worked on FreeBSD k= ernel drivers since 2006 so I'd have to get familiar with the current PCI=20 subsystem. If the original reporter wants to continue with this guessing ga= me, boot into a live CD like the 9.2 live cd and try the following commands in an attempt to= locate which changes since 9.1 contributed to the loss of sound.

sysctl hw.pci.realloc_bars=3D1
sysctl hw.snd.verbose=3D4 kldload snd_maestro
cat /dev/sndstat

I wouldn't make guesses if I had the hardware. I would trace through and= =20 find out exactly what happens. I'm on holiday and wanted to contribute= =20 to FreeBSD during my time off. I saw the m= aestro bug and knew I had hardware with maestro something. It turns ou= t it was maestro3 and so I'm not = able to help after all.
--f46d043d676fe849d504edfd2557--