From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,4a62e96fb7e0187c,start X-Google-Attributes: gid111c93,public From: bmeyer@bruce.cs.monash.edu.au Subject: strace and DGA broken on linux/AXP? 2 Bug reports Date: 1998/04/27 Message-ID: <6i1o1c$9g4$1@wombat.cs.monash.edu.au>#1/1 X-Deja-AN: 348008814 X-NNTP-Posting-User: root Reply-To: bmeyer@bruce.cs.monash.edu.au Organization: This is innd taking over... Newsgroups: comp.os.linux.alpha Hi, back from slaying the beast of "damnit, why doesn't anything show up on screen", I have a couple of bug reports to make.... a) strace: I haven't been able to find an strace build that correctly shows the parameters of the mmap() call on linux/AXP. Upon investigating, it turns out that the syscallent.h file for linux/AXP has mmap() as a one parameter call. Of course, in reality it has 6, and the routine handling it accesses 6 parameters as well. Changed that, now it works. b) XFree86, DGA extension: It seems that the DGA library does not take into account the remapping of PCI bus addresses. Thus, when starting up DGA on an ALPHA, it simply tries to mmap() the address as seen on the PCI bus (in my case, 0x1800000), rather than the address the kernel (and thus /dev/mem) sees the card at (in my case, 0xfffffc8601800000). The X server knows how to do this (I got the address by stracing the server ;-), and doing things "by hand" makes DGA work. Just thought I'd let you guys know, in case you have been trying to do the same thing ;-) Bernie -- ============================================================================ "It's a magical world, Hobbes ol' buddy... ...let's go exploring" Calvin's final words, on December 31st, 1995