Manuel Bouyer
2014-01-26 21:59:18 UTC
[ I'm not subscribed to tech-x11, so please keep either me or port-mips in Cc ]
Hello,
attached is a change against the netbsd-6 xf86-video-sis, which allows me
to run X11 accelerated on a lemote fuloong.
This device has a loongson2 CPU and uses a sis 315Pro as graphic controller.
But here the controller is not in VGA-compatible mode but in framebuffer
mode. We have sisfb(4) in our kernel to use it as text console.
Recently I added support to sisfb(4) for wsfb (this was easy), and
also got xf86-video-sis working (which gives us highter resolutions,
support for the second video output, etc ...). For this, I added
support to sisfb to mmap the video memory, but also the I/O and memory-mapped
registers. The attached patch changes xf86-video-sis to use the services
provided by sisfb for registers access (I couldn't get it working
using the libpciaccess, because our pci(4) doesn't support mmap'ing the
I/O space, and chaning this would be quite intrusive).
Would anyone see a problem with this approach ? I don't think xf86-video-sis
has ever worked on mips hardware on NetBSD so this shouldn't break anything ...
Hello,
attached is a change against the netbsd-6 xf86-video-sis, which allows me
to run X11 accelerated on a lemote fuloong.
This device has a loongson2 CPU and uses a sis 315Pro as graphic controller.
But here the controller is not in VGA-compatible mode but in framebuffer
mode. We have sisfb(4) in our kernel to use it as text console.
Recently I added support to sisfb(4) for wsfb (this was easy), and
also got xf86-video-sis working (which gives us highter resolutions,
support for the second video output, etc ...). For this, I added
support to sisfb to mmap the video memory, but also the I/O and memory-mapped
registers. The attached patch changes xf86-video-sis to use the services
provided by sisfb for registers access (I couldn't get it working
using the libpciaccess, because our pci(4) doesn't support mmap'ing the
I/O space, and chaning this would be quite intrusive).
Would anyone see a problem with this approach ? I don't think xf86-video-sis
has ever worked on mips hardware on NetBSD so this shouldn't break anything ...
--
Manuel Bouyer <***@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--
Manuel Bouyer <***@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--