Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: acher@informatik.tu-muenchen.de (Georg Acher)
Subject: How to access PCI-memory in user code???
Date: 1998/08/12	[thread overview]
Message-ID: <6qrog4$dps$1@sunsystem5.informatik.tu-muenchen.de> (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          



                 reply	other threads:[~1998-08-12  4:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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