From owner-freebsd-current@FreeBSD.ORG Wed Apr 2 19:08:16 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C234737B401 for ; Wed, 2 Apr 2003 19:08:16 -0800 (PST) Received: from moghedien.mukappabeta.net (moghedien.mukappabeta.net [194.145.150.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 156EB43F3F for ; Wed, 2 Apr 2003 19:08:16 -0800 (PST) (envelope-from mkb@moghedien.mukappabeta.net) Received: by moghedien.mukappabeta.net (Postfix, from userid 1000) id 8C9622C9B; Thu, 3 Apr 2003 05:08:30 +0200 (CEST) Date: Thu, 3 Apr 2003 05:08:30 +0200 From: Matthias Buelow To: freebsd-current@freebsd.org Message-ID: <20030403030829.GD3941@moghedien.mukappabeta.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: linux-emu ioctl not implemented w/ quake3 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 03:08:17 -0000 Hi folks, I'm running 5.0-RELEASE-p7 on i386 and investigated how quake3 (linux) would be doing at the moment. I had some relative success on 4.7 (quake3 ran ok, in 3d acceleration, but only for about 30 seconds, at which point the whole machine froze solid) so I hoped it might just work out. This time at least it didn't freeze but I don't even get so far. When I run quake3.x86, I get the following: quake3 spits: Using XFree86-VidModeExtension Version 2.2 XFree86-VidModeExtension Activated at 640x480 libGL error: failed to open DRM: Operation not permitted ... (at which point it offers me to use Mesa software rendering as a fallback which, of course, works...) and the kernel says: Apr 3 04:59:23 reiher kernel: linux: 'ioctl' fd=13, cmd=0x6401 ('d',1) not implemented Does anybody know what ioctl that would be? I didn't get that on 4.7, is linux-emu divergent between -stable and -current? The relevant ktrace excerpt follows: ... 1713 quake3.x86 RET old.setrlimit 12/0xc 1713 quake3.x86 CALL ftruncate 1713 quake3.x86 RET ftruncate 1000/0x3e8 1713 quake3.x86 CALL setrlimit(0x2cea6c30,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri" 1713 quake3.x86 NAMI "/dev/dri" 1713 quake3.x86 RET setrlimit 0 1713 quake3.x86 CALL setrlimit(0xbfbfeb00,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri/card0" 1713 quake3.x86 NAMI "/dev/dri/card0" 1713 quake3.x86 RET setrlimit 0 1713 quake3.x86 CALL open(0xbfbfeb00,0x2,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri/card0" 1713 quake3.x86 NAMI "/dev/dri/card0" 1713 quake3.x86 RET open 13/0xd 1713 quake3.x86 CALL ioctl(0xd,0xc0086401 ,0xbfbfec00) 1713 quake3.x86 RET ioctl -1 errno -22 Unknown error: -22 1713 quake3.x86 CALL close(0xd) 1713 quake3.x86 RET close 0 1713 quake3.x86 CALL ftruncate 1713 quake3.x86 RET ftruncate 1000/0x3e8 1713 quake3.x86 CALL setrlimit(0x2cea6c30,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri" 1713 quake3.x86 NAMI "/dev/dri" 1713 quake3.x86 RET setrlimit 0 1713 quake3.x86 CALL setrlimit(0xbfbfeb00,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri/card1" 1713 quake3.x86 NAMI "/dev/dri/card1" 1713 quake3.x86 RET setrlimit JUSTRETURN 1713 quake3.x86 CALL ftruncate 1713 quake3.x86 RET ftruncate 1000/0x3e8 1713 quake3.x86 CALL setrlimit(0x2cea6c30,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri" 1713 quake3.x86 NAMI "/dev/dri" 1713 quake3.x86 RET setrlimit 0 1713 quake3.x86 CALL setrlimit(0xbfbfeb00,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri/card2" 1713 quake3.x86 NAMI "/dev/dri/card2" 1713 quake3.x86 RET setrlimit JUSTRETURN 1713 quake3.x86 CALL ftruncate 1713 quake3.x86 RET ftruncate 1000/0x3e8 1713 quake3.x86 CALL setrlimit(0x2cea6c30,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri" 1713 quake3.x86 NAMI "/dev/dri" 1713 quake3.x86 RET setrlimit 0 1713 quake3.x86 CALL setrlimit(0xbfbfeb00,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri/card3" 1713 quake3.x86 NAMI "/dev/dri/card3" 1713 quake3.x86 RET setrlimit JUSTRETURN 1713 quake3.x86 CALL ftruncate 1713 quake3.x86 RET ftruncate 1000/0x3e8 1713 quake3.x86 CALL setrlimit(0x2cea6c30,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri" 1713 quake3.x86 NAMI "/dev/dri" 1713 quake3.x86 RET setrlimit 0 1713 quake3.x86 CALL setrlimit(0xbfbfeb00,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri/card4" 1713 quake3.x86 NAMI "/dev/dri/card4" 1713 quake3.x86 RET setrlimit JUSTRETURN 1713 quake3.x86 CALL ftruncate 1713 quake3.x86 RET ftruncate 1000/0x3e8 1713 quake3.x86 CALL setrlimit(0x2cea6c30,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri" 1713 quake3.x86 NAMI "/dev/dri" 1713 quake3.x86 RET setrlimit 0 1713 quake3.x86 CALL setrlimit(0xbfbfeb00,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri/card5" 1713 quake3.x86 NAMI "/dev/dri/card5" 1713 quake3.x86 RET setrlimit JUSTRETURN 1713 quake3.x86 CALL ftruncate 1713 quake3.x86 RET ftruncate 1000/0x3e8 1713 quake3.x86 CALL setrlimit(0x2cea6c30,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri" 1713 quake3.x86 NAMI "/dev/dri" 1713 quake3.x86 RET setrlimit 0 1713 quake3.x86 CALL setrlimit(0xbfbfeb00,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri/card6" 1713 quake3.x86 NAMI "/dev/dri/card6" 1713 quake3.x86 RET setrlimit JUSTRETURN 1713 quake3.x86 CALL ftruncate 1713 quake3.x86 RET ftruncate 1000/0x3e8 1713 quake3.x86 CALL setrlimit(0x2cea6c30,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri" 1713 quake3.x86 NAMI "/dev/dri" 1713 quake3.x86 RET setrlimit 0 1713 quake3.x86 CALL setrlimit(0xbfbfeb00,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri/card7" 1713 quake3.x86 NAMI "/dev/dri/card7" 1713 quake3.x86 RET setrlimit JUSTRETURN 1713 quake3.x86 CALL ftruncate 1713 quake3.x86 RET ftruncate 1000/0x3e8 1713 quake3.x86 CALL setrlimit(0x2cea6c30,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri" 1713 quake3.x86 NAMI "/dev/dri" 1713 quake3.x86 RET setrlimit 0 1713 quake3.x86 CALL setrlimit(0xbfbfeb00,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri/card8" 1713 quake3.x86 NAMI "/dev/dri/card8" 1713 quake3.x86 RET setrlimit JUSTRETURN 1713 quake3.x86 CALL ftruncate 1713 quake3.x86 RET ftruncate 1000/0x3e8 1713 quake3.x86 CALL setrlimit(0x2cea6c30,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri" 1713 quake3.x86 NAMI "/dev/dri" 1713 quake3.x86 RET setrlimit 0 1713 quake3.x86 CALL setrlimit(0xbfbfeb00,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri/card9" 1713 quake3.x86 NAMI "/dev/dri/card9" 1713 quake3.x86 RET setrlimit JUSTRETURN 1713 quake3.x86 CALL ftruncate 1713 quake3.x86 RET ftruncate 1000/0x3e8 1713 quake3.x86 CALL setrlimit(0x2cea6c30,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri" 1713 quake3.x86 NAMI "/dev/dri" 1713 quake3.x86 RET setrlimit 0 1713 quake3.x86 CALL setrlimit(0xbfbfeb00,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri/card10" 1713 quake3.x86 NAMI "/dev/dri/card10" 1713 quake3.x86 RET setrlimit JUSTRETURN 1713 quake3.x86 CALL ftruncate 1713 quake3.x86 RET ftruncate 1000/0x3e8 1713 quake3.x86 CALL setrlimit(0x2cea6c30,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri" 1713 quake3.x86 NAMI "/dev/dri" 1713 quake3.x86 RET setrlimit 0 1713 quake3.x86 CALL setrlimit(0xbfbfeb00,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri/card11" 1713 quake3.x86 NAMI "/dev/dri/card11" 1713 quake3.x86 RET setrlimit JUSTRETURN 1713 quake3.x86 CALL ftruncate 1713 quake3.x86 RET ftruncate 1000/0x3e8 1713 quake3.x86 CALL setrlimit(0x2cea6c30,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri" 1713 quake3.x86 NAMI "/dev/dri" 1713 quake3.x86 RET setrlimit 0 1713 quake3.x86 CALL setrlimit(0xbfbfeb00,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri/card12" 1713 quake3.x86 NAMI "/dev/dri/card12" 1713 quake3.x86 RET setrlimit JUSTRETURN 1713 quake3.x86 CALL ftruncate 1713 quake3.x86 RET ftruncate 1000/0x3e8 1713 quake3.x86 CALL setrlimit(0x2cea6c30,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri" 1713 quake3.x86 NAMI "/dev/dri" 1713 quake3.x86 RET setrlimit 0 1713 quake3.x86 CALL setrlimit(0xbfbfeb00,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri/card13" 1713 quake3.x86 NAMI "/dev/dri/card13" 1713 quake3.x86 RET setrlimit JUSTRETURN 1713 quake3.x86 CALL ftruncate 1713 quake3.x86 RET ftruncate 1000/0x3e8 1713 quake3.x86 CALL setrlimit(0x2cea6c30,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri" 1713 quake3.x86 NAMI "/dev/dri" 1713 quake3.x86 RET setrlimit 0 1713 quake3.x86 CALL setrlimit(0xbfbfeb00,0xbfbfea00,0) 1713 quake3.x86 NAMI "/compat/linux/dev/dri/card14" 1713 quake3.x86 NAMI "/dev/dri/card14" 1713 quake3.x86 RET setrlimit JUSTRETURN 1713 quake3.x86 CALL write(0x2,0xbfbfc540,0x39) 1713 quake3.x86 GIO fd 2 wrote 57 bytes "libGL error: failed to open DRM: Operation not permitted " 1713 quake3.x86 RET write 57/0x39 ... --mkb