From owner-freebsd-hackers Wed Oct 25 2:10:17 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp05.primenet.com (smtp05.primenet.com [206.165.6.135]) by hub.freebsd.org (Postfix) with ESMTP id 0631237B4C5 for ; Wed, 25 Oct 2000 02:10:16 -0700 (PDT) Received: (from daemon@localhost) by smtp05.primenet.com (8.9.3/8.9.3) id CAA22410; Wed, 25 Oct 2000 02:10:43 -0700 (MST) Received: from usr02.primenet.com(206.165.6.202) via SMTP by smtp05.primenet.com, id smtpdAAAmNaGVR; Wed Oct 25 02:10:35 2000 Received: (from tlambert@localhost) by usr02.primenet.com (8.8.5/8.8.5) id CAA18466; Wed, 25 Oct 2000 02:10:05 -0700 (MST) From: Terry Lambert Message-Id: <200010250910.CAA18466@usr02.primenet.com> Subject: Re: PCI Device Remapping To: daveg@MIT.EDU (David D Golombek) Date: Wed, 25 Oct 2000 09:10:05 +0000 (GMT) Cc: freebsd-hackers@FreeBSD.ORG In-Reply-To: from "David D Golombek" at Oct 24, 2000 03:40:46 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I'm now > trying to get the card to do DMA to other PCI cards, and have found a > bug in our chip. Basically, the high bit of the address on PCI > transfers gets dropped. This means that the chip can't address PCI > memory physical addresses over 0x7FFFFFFF. Big problem, since the > BIOS on our computers maps PCI device memory from 0xFFFF0000 downward. A gross hack that Eagle used on NE1000 cards was to require that an even number of bytes be transferred. You can do this hack yourself by swapping the pinouts on the chip, if it's simply impossible to go back to fab on it. You will need to rearrange the input to the mapping register at the same time. Pretty much ECN time, though. Alternately, if you have a flashable BIOS, you can hack the BIOS to start mapping at 0x7fffffff instead. This should be pretty trivial, if you have something like a copy of Sourcer lying around, since it can take your BIOS as input and output a program (fully commented!) that, when assembled, will result in the same BIOS being generated. Flip the start bit and... Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message