From owner-freebsd-hardware@FreeBSD.ORG Fri Dec 7 16:33:28 2007 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0D7F16A417 for ; Fri, 7 Dec 2007 16:33:28 +0000 (UTC) (envelope-from cokane@freebsd.org) Received: from QMTA09.westchester.pa.mail.comcast.net (qmta09.westchester.pa.mail.comcast.net [76.96.62.96]) by mx1.freebsd.org (Postfix) with ESMTP id 75A1013C442 for ; Fri, 7 Dec 2007 16:33:28 +0000 (UTC) (envelope-from cokane@freebsd.org) Received: from OMTA12.westchester.pa.mail.comcast.net ([76.96.62.44]) by QMTA09.westchester.pa.mail.comcast.net with comcast id MsD21Y00E0xGWP80501r00; Fri, 07 Dec 2007 16:22:27 +0000 Received: from discordia ([24.60.136.97]) by OMTA12.westchester.pa.mail.comcast.net with comcast id MsNT1Y00D26FYqY0300000; Fri, 07 Dec 2007 16:22:27 +0000 X-Authority-Analysis: v=1.0 c=1 a=eYqJXRT5l8H0vePMhuAA:9 a=T_FKarUk580MEI1G0BSMdfAak4YA:4 a=50e4U0PicR4A:10 Received: by discordia (Postfix, from userid 103) id 7F61E1634F7; Fri, 7 Dec 2007 11:22:27 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.1.8-gr1 (2007-02-13) on discordia X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.8-gr1 Received: from [172.20.1.3] (erwin.int.cokane.org [172.20.1.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by discordia (Postfix) with ESMTP id 4BCB21634F6 for ; Fri, 7 Dec 2007 11:22:13 -0500 (EST) Message-ID: <4759730F.6090302@FreeBSD.org> Date: Fri, 07 Dec 2007 11:21:35 -0500 From: Coleman Kane Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.9 (X11/20071116) MIME-Version: 1.0 To: freebsd-hardware@freebsd.org X-Enigmail-Version: 0.96a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Overlapping PCI Memory Locations X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: cokane@FreeBSD.org List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Dec 2007 16:33:28 -0000 Hi, I've got a problem where two components on my system have overlapping PCI memory regions: atapci0: port 0x9000-0x9007,0x9008-0x900b,0x9010-0x9017,0x5018-0x501b,0x5020-0x502f mem 0xd0609000-0xd06093ff irq 16 at device 18.0 on pci0 atapci0: [ITHREAD] pcm0: mem 0xd0608000-0xd060bfff irq 16 at device 20.2 on pci0 pcm0: hdac_mem_alloc: Unable to allocate memory resource Because of this, I cannot use the sound hardware on this system. In addition, the memory range used by atapci0 is the SATA AHCI space. The ata-chipset.c doesn't currently identify the ATI IXP600 SATA controller (just the paired PATA controller), so I can actually use my drives through the PATA/IDE compatibility registers in the I/O space. However, if I modify ata-chipset.c to add support for the IXP600 SATA controller, I get weird results using ATA_INL(..) calls, which look like something is interfering with the data I *should* be getting from the SATA mem space. In addition, the pcm0 refuses to attach, as above. Also, this is a notebook and has one of those crummy notebook BIOSes that don't allow fiddling with this sort of stuff in BIOS. Is there any facility in the kernel to force these to be remapped (or to perform the mappings ourselves and ignore what BIOS tells us)? -- Coleman Kane