trya / mach64-drm

Linux DRM module for Mach64 chips
8 stars 3 forks source link

fix build on Linux 6.0 #4

Closed benpicco closed 1 year ago

benpicco commented 1 year ago

The module builds and loads and creates /dev/dri/card0, but still untested as I couldn't yet convice Xorg to load xserver-xorg-video-mach64.

benpicco commented 1 year ago

Thank you! Although I still struggle to get this to run with X11. xf86-video-mach64 crashes on init in ATIMach64Detect() on the first call to inr(BUS_CNTL). Any call to outr() or outb() also crashes.

[ 30984.273] (==) MACH64(0): Using EXA acceleration architecture
[ 30984.280] (EE) 
[ 30984.287] (EE) Backtrace:
[ 30984.308] (EE) 0: /usr/lib/Xorg (OsLookupColor+0x142) [0x600592]
[ 30984.330] (EE) 1: linux-gate.so.1 (?+0x0) [0xb7ede570]
[ 30984.350] (EE) 2: /usr/lib/xorg/modules/drivers/mach64_drv.so (ATIMach64ProbeIO+0x15e) [0xb6c088fe]
[ 30984.363] (EE) 3: /usr/lib/xorg/modules/drivers/mach64_drv.so (ATIPreInit+0x25a) [0xb6c1940a]
[ 30984.375] (EE) 4: /usr/lib/Xorg (InitOutput+0xa66) [0x61f4f6]
[ 30984.386] (EE) 5: /usr/lib/Xorg (InitFonts+0x234) [0x528834]
[ 30984.393] (EE) 6: /usr/lib/Xorg (SProcXkbDispatch+0x1504) [0x4e871b]
[ 30984.427] (EE) 7: /usr/lib/libc.so.6 (__libc_init_first+0x85) [0xb7883105]
[ 30984.441] (EE) 8: /usr/lib/libc.so.6 (__libc_start_main+0x89) [0xb78831c9]
[ 30984.453] (EE) 9: /usr/lib/Xorg (_start+0x27) [0x4e8757]
[ 30984.459] (EE) 
[ 30984.467] (EE) Segmentation fault at address 0x0

So it seems like the memory mapping of the card is not quite right yet - how did you run this?