On Tue, 2015-07-07 at 10:12 -0400, Alex Deucher wrote: > On Tue, Jul 7, 2015 at 9:46 AM, Steven Newbury <steve@xxxxxxxxxxxxxxx > > wrote: > > > > I've tried an xserver-1.16, and ddx, libdrm without LTO and with > > gcc4.9. Exactly the same thing. I wondered whether the unused > > i810 > > could be interfering but triggering a device "remove" before > > starting > > X made no difference. > > > > I'm a bit of a loss. I suppose I could try writing a simple test > > for > > drmSetInterfaceVersion(). At least that should determine whether > > the > > xserver/ddx is in the clear. > > > > Any other ideas? > > > > Can you start a non-X runlevel and start X manually as root (assuming > you are using a login manager now)? I've written a simple test based on the code from radeon_kms.c I just need to try it on the actual hw now... :-)
#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <stdio.h> #include <xf86drm.h> int main() { drmSetVersion sv; int dir_fd, drm_fd, err; char *drm_directory = "/dev/dri/"; char *node = "card0"; dir_fd = open(drm_directory, O_RDONLY); if (dir_fd < 0) { printf("Directory open failed!\n"); return -1; } drm_fd = openat(dir_fd, node, O_RDWR); if (dir_fd < 0) { printf("File open failed!\n"); return -1; } sv.drm_di_major = 1; sv.drm_di_minor = 1; sv.drm_dd_major = -1; sv.drm_dd_minor = -1; err = drmSetInterfaceVersion(drm_fd, &sv); if (err != 0) { printf("FAILED (%d)\n", err); return -1; } printf("SUCCESS\n"); return 0; }
Attachment:
signature.asc
Description: This is a digitally signed message part
_______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel