Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* How to access PCI-memory in user code???
@ 1998-08-12  4:00 Georg Acher
  0 siblings, 0 replies; only message in thread
From: Georg Acher @ 1998-08-12  4:00 UTC (permalink / raw)



Hi,
while trying to get the Direct Grafics Access of Xfree to work (first bug
seems to be a corrupt libxf86dga, compiling helps), I came across the problem,
that neither the DGA-lib nor me can access the video memory directly.

What libxf86dga does, is to query the PCI-address of the video memory from the
X-server and then mmap it into user space. This works OK on x86, but not on
Alpha.

I've reduced it to the the simple open("/dev/mem"),mmap(..., HW-address)-frame,
but that gives strange results:
/proc/pci tells me the address of the video memory is at 0x98000000, so I mmap it.
On a read of the mapped space I get a CIA-machine check (unknown exception) with
a dump of about 128K data (takes about 10secs to scroll, a bit too much info ;-)
on writes the total system crashes after a few tries with 'Killing interrupt
handler'... So the 0x98000000 is obviously not correct ;-) But what is the right
address to mmap? I've read IO-mapping.txt, cia.h etc. but I didn't found any hint,
how to do it in user space.

Please enlighten me...
-- 
	Bye
         Georg Acher, acher@informatik.tu-muenchen.de         
         http://www.informatik.tu-muenchen.de/~acher/
          "Oh no, not again !" The bowl of petunias          



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-08-12  4:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-12  4:00 How to access PCI-memory in user code??? Georg Acher

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