From owner-freebsd-hackers Mon Mar 8 10:39:28 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from mailhub.psn.ie (mailhub.psn.ie [194.106.150.254]) by hub.freebsd.org (Postfix) with ESMTP id B6F8314F3B for ; Mon, 8 Mar 1999 10:39:24 -0800 (PST) (envelope-from ad@psn.ie) Received: from vmunix.psn.ie ([194.106.150.252]) by mailhub.psn.ie with esmtp (Exim 2.12 #3) id 10K4uj-000567-00; Mon, 8 Mar 1999 18:38:05 +0000 Received: from localhost.psn.ie ([127.0.0.1] helo=localhost) by vmunix.psn.ie with esmtp (Exim 2.10 #1) id 10K4rO-00005F-00; Mon, 8 Mar 1999 18:34:38 +0000 Date: Mon, 8 Mar 1999 18:34:38 +0000 (GMT) From: Andy Doran To: Mike Smith Cc: freebsd-hackers@freebsd.org Subject: Re: Erorr: isa_dmainit(2, 1024) failed In-Reply-To: <199903081740.JAA06967@dingo.cdrom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Actually, fixing it "right" will be very difficult. I suspect that the > ISA DMA code will need a statically-allocated buffer to overcome this. > I've run into the same kind of problem when working on a driver for NetBSD recently. The solution would be to use NetBSD's BUS_DMA(9), but this card needs a DMA buffer which has *crazy* alignment and position requirements. One of them is that the buffer needs to be within the first 8MB, hence the same problem. The solution for me was to put in a call to steal the DMA buffer just after the VM system is up and before buffers get allocated (which doesn't happen in FreeBSD), so why not just use a solution like this? (I think in FreeBSD the right place would be init386()). Andy. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message