Messages in this thread | | | Date | Mon, 27 Jun 2005 09:07:28 +1000 | From | Dave Airlie <> | Subject | Re: SiS drm broken during 2.6.9-rc1-bk1 |
| |
> > > layout is the most likely patch to have broken things... I haven't > > > confirmed it is this particular patch yet, tomorrow I'll get some time to > > > do it .. > > > > > > > okay running client applications using > > > > setarch -L i386 glxgears > > > > makes them work.. I'll start looking for a bug in the the SIS client > > side library.. > > yeah. Look for 2GB assumptions - e.g. assumptions that pointers cast to > integer will be positive values, such as: > > int i; > > i = malloc(somesize); > if (i <= 0) > handle_alloc_failure(); > > here with the topdown layout you'd get a malloc 'failure'.
Just for completeness, Thomas Winischoffer tracked this down over the weekend, I had stared at it previously to no great avail,
The issue was with the user space SiS Mesa driver having an uninitialised structure on the stack for the copy command sent to the DRM, with the old layout it would end up with zero'ed reserved fields by luck most of the time, with the new one it went the other way..
the fix is now in Mesa CVS....
Dave. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |