From nobody@FreeBSD.org  Thu Mar  9 16:09:36 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1350716A420
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  9 Mar 2006 16:09:36 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E77DA43D58
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  9 Mar 2006 16:09:34 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k29G9YAr012862
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 9 Mar 2006 16:09:34 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k29G9Yw9012861;
	Thu, 9 Mar 2006 16:09:34 GMT
	(envelope-from nobody)
Message-Id: <200603091609.k29G9Yw9012861@www.freebsd.org>
Date: Thu, 9 Mar 2006 16:09:34 GMT
From: Elisa Bastianello <liladude@aruba.it>
To: freebsd-gnats-submit@FreeBSD.org
Subject: snd_neomagic crashes on FreeBSD 5.4 and 6.0
X-Send-Pr-Version: www-2.3

>Number:         94279
>Category:       kern
>Synopsis:       [sound] [snd_neomagic] snd_neomagic crashes on FreeBSD 5.4 and 6.0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-multimedia
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 09 16:10:04 GMT 2006
>Closed-Date:    
>Last-Modified:  Mon Jul 27 09:19:56 UTC 2009
>Originator:     Elisa Bastianello
>Release:        FreeBSD 6.0
>Organization:
>Environment:
FreeBSD 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005
    root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC i386
>Description:
When I try to load snd_neomagic on my Omnibook 900 I see (in verbose mode)

pcm0: <NeoMagic 256AV> mem 0xfe700000-0xfe7fffff,0xfe00000-0xfe3fffff irq 10 at device 0.1 on pci1

than laptop frozes.

I tried adding hints for pcm0 as was suggested for my laptop before relase
5.X, turned on verbose and got:  (there may be typos in my report, since I
copied it from screen)

pci1: driver added
found-> vendor=0x10c8, dev0x0005, revid=0x20
	bus=1, slot=0, func=0
	class=03-00-00, hdrtype=0x00, mfdev=1
	cmdreg=0x0207, statreg=0x0290, cachelnsz=0 (dwords)
	lattertime=0x80 (3840 ns), mingnt=0x10 (4000 ns), 
	intpin=a, irq=9
	powerspec 1 supports D0 D1 D2 D3 current D0
pci1:0:0 reprobing on driver added
found-> vendor=0x10c8, dev0x0005, revid=0x20
	bus=1, slot=0, func=1
	cmdreg=0x0202, statreg=0x0290, cachelnsz=0 (dwords)
	lattertime=0x00 (0 ns), mingnt=0x00 (0 ns), 
	intpin=b, irq=10
	powerspec 1 supports D0 D3 current D0
pci1:0:1 reprobing on driver added
pcm1: Reserved 0x100000 bytes for rid 0x10 type 3 at 0xfe70000
pcm1: <NeoMagic 256AV> mem 0xfe700000-0xfe7fffff,0xfe00000-0xfe3fffff irq 10 at device 0.1 on pci1
pcm1: Reserved 0x400000 bytes for rid 0x10 type 3 at 0xfe00000-0xfe7fffff
pcm1: buftop is 0x0027ec00
pcm1: buftop is changed to 0x0027ec00 

I had this problem with my first intallation (5.4 RELEASE), than, afer last
crash corrupted my kernel dir, I installed 6.0 and had the same problem again.

I surfed the mailing lists, found this problem already asked once with a
differed laptop, but the only answer was "this must be a bug" and non
solution, nor bug report here, so I'm without any clue on how to fix this.

I should add that my laptop is reported as "FreeBSD compliant" since 3.1
and this was my main reason for trying to install freebsd on it.

Also I notice that each time snd_neomagic appears on a dmesg report it is
preceded by snd_pcm.ko , while I could only load sound.ko.
>How-To-Repeat:
On FreeBSD 5.4 I tested:
kldload snd_neomagic

set sound and snd_neomagic modules to yes in /boot/defaults/loader.conf

boot a kernel with sound and snd_neomagic

On FreeBSD 6.0 I tried
kldload snd_neomagic


>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->freebsd-multimedia 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Mar 12 07:07:50 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94279 
>Unformatted:
