On Mon, 2004-01-12 at 05:53, Stephen Waters wrote:
> On Sat, 2004-01-10 at 11:30, Michel DÃnzer wrote: 
> > On Thu, 2004-01-08 at 00:40, Stephen Waters wrote:
> 
> > What stability problem? Note that the getparam ioctl is only used by the
> > 3D driver.
> 
> It crashed if you did much of anything. :) Sometimes gdm would crash,

That would be a gdm bug. Do you mean the X server crashes while gdm
comes up?


> Currently, I'm writing this on 2.6.1-bk1, AMD64. It seems to work
> mostly, 

Maybe because the DRI isn't enabled? :\


> > > Jan  7 00:42:37 localhost kernel: ioctl32(XFree86:391): Unknown cmd fd(6) 
> > > cmd(c0246400){00} arg(085d1320) on /dev/dri/card0
> > > Jan  7 00:42:37 localhost kernel: ioctl32(XFree86:391): Unknown cmd fd(6) 
> > > cmd(c0246400){00} arg(085d1320) on /dev/dri/card0
> > 
> > AFAICT this is the DRM_IOCTL_VERSION ioctl, odd that it would be
> > missing... I wonder if the ioctls need special treatment for 32 bit
> > apps?
> 
> Xavier Hienne thinks:
> --
> I always thought ioctl numbers would be constants among archs but DRM 
> ioctl numbers depend on the architecture. Here, ioctl c0246400 is 
> DRM_IOCTL_VERSION, but only on a 32bit arch because the size of a 
> structure is hardcoded into this number (bits 16 to 29 - see comment in 
> /usr/src/linux/include/asm/ioctl.h). The pb is that this structure 
> contains 3 pointers, thus its size goes from 0x024 on a 32 bit arch, to 
> 0x030 (my guess) on a 64 bit arch.

Yep, so I guess the DRM would indeed have to treat the 32 bit ioctls
specially.


-- 
Earthling Michel DÃnzer      |     Debian (powerpc), X and DRI developer
Software libre enthusiast    |   http://svcs.affero.net/rm.php?r=daenzer



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
--
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to