Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Mar 1999 18:34:38 +0000 (GMT)
From:      Andy Doran <ad@psn.ie>
To:        Mike Smith <mike@smith.net.au>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Erorr: isa_dmainit(2, 1024) failed 
Message-ID:  <Pine.BSF.4.05.9903081826490.313-100000@vmunix.psn.ie>
In-Reply-To: <199903081740.JAA06967@dingo.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9903081826490.313-100000>