Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* DMA under Linux/Alpha
@ 1997-02-21 19:53 Stephen Williams
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Williams @ 1997-02-21 19:53 UTC (permalink / raw)


I'm trying to port a device driver from Linux/Intel to Linux/Alpha, and
find for the most part it's pretty easy. However, I'm having trouble getting
a PLX9060 set up to do a DMA on the PCI bus to the Alpha memory.

Specifically, I'm having trouble getting memory addresses that I can give
to the PLX so that it can do a transfer.

	I've allocated some buffer space with get_free_page, fine.

	I've been able to manipulate the PLX registers just fine, from
	both sides. (This is a Cyclone-911 board. I have existing software
	on the 911 side.) I've verified this.

	When I set up a DMA transfer, I use the address from virt_to_phys
	as the transfer address. I'm getting addresses like 3fb4000 which
	seem plausible, and 32bit thankyou.

No good. It appears that the PLX is not getting a response from the memory.
I'm stuck.

-- 
Steve Williams
steve@icarus.com
steve@picturel.com

"The woods are lovely, dark and deep.  But I have promises to keep,
And lines to code before I sleep, And lines to code before I sleep."

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: DMA under Linux/Alpha
       [not found] <199702211953.LAA10268@icarus.icarus.com>
@ 1997-02-21 22:22 ` Thomas Bogendoerfer
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Bogendoerfer @ 1997-02-21 22:22 UTC (permalink / raw)


> 	When I set up a DMA transfer, I use the address from virt_to_phys
> 	as the transfer address. I'm getting addresses like 3fb4000 which
> 	seem plausible, and 32bit thankyou.

virt_to_bus should give you the right address.

Thomas.

-- 
See, you not only have to be a good coder to create a system like Linux,
you have to be a sneaky bastard too ;-)
                   [Linus Torvalds in <4rikft$7g5@linux.cs.Helsinki.FI>]

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-02-21 22:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-02-21 19:53 DMA under Linux/Alpha Stephen Williams
     [not found] <199702211953.LAA10268@icarus.icarus.com>
1997-02-21 22:22 ` Thomas Bogendoerfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox