From owner-freebsd-current@FreeBSD.ORG Mon Mar 26 10:23:24 2007 Return-Path: X-Original-To: current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3851C16A402; Mon, 26 Mar 2007 10:23:24 +0000 (UTC) (envelope-from keramida@FreeBSD.org) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id ABDC113C45E; Mon, 26 Mar 2007 10:23:23 +0000 (UTC) (envelope-from keramida@FreeBSD.org) Received: from kobe.laptop (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-3) with ESMTP id l2QAMRxu001509 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 26 Mar 2007 13:22:41 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.13.8/8.13.8) with ESMTP id l2QALwkk001601; Mon, 26 Mar 2007 13:22:21 +0300 (EEST) (envelope-from keramida@FreeBSD.org) Received: (from keramida@localhost) by kobe.laptop (8.13.8/8.13.8/Submit) id l2PNQi4g001113; Mon, 26 Mar 2007 02:26:44 +0300 (EEST) (envelope-from keramida@FreeBSD.org) Date: Mon, 26 Mar 2007 02:26:44 +0300 From: Giorgos Keramidas To: Ariff Abdullah Message-ID: <20070325232643.GA1059@kobe.laptop> References: <20070325203412.GA1396@kobe.laptop> <20070326051742.36edb849.ariff@FreeBSD.org> <20070325214408.GA1113@kobe.laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070325214408.GA1113@kobe.laptop> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.524, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.38, BAYES_00 -2.60, DATE_IN_PAST_06_12 0.50) X-Hellug-MailScanner-From: keramida@freebsd.org X-Spam-Status: No Cc: current@FreeBSD.org Subject: Re: snd_hda fails to probe after 15 March X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Mar 2007 10:23:24 -0000 On 2007-03-26 00:44, Giorgos Keramidas wrote: >On 2007-03-26 05:17, Ariff Abdullah wrote: >>On Sun, 25 Mar 2007 23:34:13 +0300 >>Giorgos Keramidas wrote: >>> Some time after March 15, snd_hda started failing to attach to >>> pcm0 on my laptop. I haven't managed to nail the change down to >>> a single commit yet, but I've attached the files: >>> [...] >>> There seems to be at least one more message in dmesg.boot-25 which >>> seems relevant to snd_hda failing to attach: >>> >>> pcm0: [MPSAFE] >>> pcm0: [ITHREAD] >>> +pcm0: hdac_get_capabilities: Invalid rirb size (0) >>> +device_attach: pcm0 attach returned 6 >>> pcib1: irq 17 at device 28.0 on pci0 >>> >>> If you need anything more to troubleshoot this, let me know :) >> >> Try reverting hdac.c, down to cvs revision 1.27 > > No luck with that version and a -DNO_CLEAN build. I'll try a full > kernel and modules recompile next. A full kernel rebuild doesn't work either. In fact, even if I boot a HEAD kernel, with hdac.c down to 1.27 and I load the snd_hda module from the old kernel, I still get: pcm0: \ mem 0xf0000000-0xf0003fff irq 22 at device 27.0 on pci0 pcm0: [MPSAFE] pcm0: [ITHREAD] pcm0: hdac_get_capabilities: Invalid rirb size (0) device_attach: pcm0 attach returned 6 pci1: driver added pci2: driver added Apparently, rirbsize in hdac.c:1122 is not initialized or it is initialized to zero: 1122 rirbsize = HDAC_READ_1(&sc->mem, HDAC_RIRBSIZE); [...] 1133 device_printf(sc->dev, "%s: Invalid rirb size (%x)\n", 1134 __func__, rirbsize); 1135 return (ENXIO); I was initially loading snd_hda from 'loader.conf', with: snd_hda_load="YES" but I don't know if this makes any difference. Unloading the module and loading it manually doesn't seem to fix the call to HDAC_READ_1() which sets rirbsize.