From owner-freebsd-multimedia@FreeBSD.ORG Sat Dec 8 21:00:05 2007 Return-Path: Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF7AE16A419 for ; Sat, 8 Dec 2007 21:00:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 867F413C458 for ; Sat, 8 Dec 2007 21:00:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id lB8L05Sg095260 for ; Sat, 8 Dec 2007 21:00:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id lB8L05Ex095253; Sat, 8 Dec 2007 21:00:05 GMT (envelope-from gnats) Date: Sat, 8 Dec 2007 21:00:05 GMT Message-Id: <200712082100.lB8L05Ex095253@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org From: "Andy Kosela" Cc: Subject: Re: kern/111767: [pcm] ATI SB450 High Definition Audio Controller sound card doesn't work X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andy Kosela List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Dec 2007 21:00:05 -0000 The following reply was made to PR kern/111767; it has been noted by GNATS. From: "Andy Kosela" To: cokane@freebsd.org Cc: "Nate Lawson" , bug-followup@freebsd.org Subject: Re: kern/111767: [pcm] ATI SB450 High Definition Audio Controller sound card doesn't work Date: Sat, 8 Dec 2007 21:28:46 +0100 On Dec 7, 2007 12:28 AM, Coleman Kane wrote: > I think that I've isolated the problem: > > atapci0: port > 0x9000-0x9007,0x9008-0x900b,0x9010-0x9017,0x5018-0x501b,0x5020-0x502f > mem 0xd0609000-0xd06093ff irq 16 at device 18.0 on pci0 > ... > pcm0: mem > 0xd0608000-0xd060bfff irq 16 at device 20.2 on pci0 > > The ATI Audio controller seems to be attempting to lock down a range of > memory. The memory allocated for the SATA controller in the same > southbridge has already taken a chunk of that space for itself. This > might also explain some weirdness when the AHCI system is attempting to > interact with the MMIO space... > > Andy, can you check your dmesg and verify this is also true on your > machine? I looked at what you sent to me and it looks like this is the > case (though your mem ranges are in 0xd04xxxxx). > > What to do about this? plotinus:~> dmesg | grep 'pcm0\|atapci' atapci0: <\^B> port 0x9000-0x9007,0x9008-0x900b,0x9010-0x9017,0x5018-0x501b,0x5020-0x502f mem 0xd0409000-0xd04093ff irq 16 at device 18.0 on pci0 atapci0: [ITHREAD] ata2: on atapci0 ata3: on atapci0 atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x5040-0x504f irq 16 at device 20.1 on pci0 ata0: on atapci1 pcm0: mem 0xd0408000-0xd040bfff irq 16 at device 20.2 on pci0 pcm0: hdac_mem_alloc: Unable to allocate memory resource device_attach: pcm0 attach returned 6 atapci0: <\^B> port 0x9000-0x9007,0x9008-0x900b,0x9010-0x9017,0x5018-0x501b,0x5020-0x502f mem 0xd0409000-0xd04093ff irq 16 at device 18.0 on pci0 atapci0: [ITHREAD] ata2: on atapci0 ata3: on atapci0 atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x5040-0x504f irq 16 at device 20.1 on pci0 ata0: on atapci1 pcm0: mem 0xd0408000-0xd040bfff irq 16 at device 20.2 on pci0 pcm0: hdac_mem_alloc: Unable to allocate memory resource device_attach: pcm0 attach returned 6 I tried to play with /boot/device.hints but with no success. Is it possible to force memory allocation for pcm0? We could change the memory range and possibly get rid of the problem. Andy Kosela