Closed dmatveev closed 12 years ago
I'll try to reproduce the problem with updated -current source, but in the mean time you can try:
autobuild.sh 201110070720Z
using the netbsd-drmgem/autobuild.sh script. I tried it (on NetBSD/amd64) and it went through libdrm without problem.
The X server works fine, until it doesn't (the dreaded gpu hung! message). It can take a while before the X server crashes, unless you play with VT switching (see #5). My test systems are an 915GM on NetBSD/i386 (tested sporadically) and an Arrandale under NetBSD/amd64 (tested regularly). See #4 for dmesg outputs.
On my NetBSD/amd64 laptop that I upgraded to -current 201110070720Z (using binary sets), I couldn't reproduce the problem (with up-to-date -current sources) by following the README's instructions.
Okay, thanks, I will try again.
By the way, how do you patch the NetBSD source tree? By overwriting files from netbsd-drmgem?
I have used a git-diff produced patch, probably it is the problem.
Yes the simplest solution is to overwrite files. The patch generated by git diff ... -- src
only accounts for changes in src. So, after patching, it's still necessary to overwrite /usr/xsrc.
One more note: if you want display-port support, then you should use the display-port branch.
Ok, I have overwritten the files for this time, and everything compiled well. I even started pure X on my Intel G41!!! Thank you, man!
Glad to hear that it built and launched fine. :-)
Please let me know how it goes.
In particular, if you have the opportunity, it would be nice if you could try after booting with the frame-buffer console. It works on my older laptop, but not on my latest one (see #4).
X11 does work fine, but... I have shut X server down, then started it again from the console and my FVWM have been displayed with artifacts. I have closed X server again, started it and then the system has gone to reboot.
I believe that what you experienced is related to the issue #5 that I've been investigating recently. All I can say for now is: When the dmesg shows
inteldrm0: gpu hung!
it's unsafe to restart the X server.
Ahh okay.
Generally speaking, I even would like to participate in this port, but I am a completely kernel newbie and have no experience with programming for pure X, DRM, GEM and other stuff. But I still can send reports, logs and coredumps and do try some basic debugging. Is there any info about intel driver, DRM, GEM and its implementation on BSDs so I could read it and participate more efficiently?
Thanks
Hello,
I am trying to build netbsd-drmgem on my amd64 machine. NetBSD is updated to today's current.
During building
I have got some issues:
I have resolved some issues related to include files (undefined identifiers), but it still failed to compile, as I think, due to many type conversion warnings.
Really, converting from int to long should be harmful on non-x86 systems. What should I do, how can I fix this stuff? Had you tried to build it on x86_64?
How does the graphics work on x86?
Regards, Dmitry