Phoronix Forums  

Go Back   Phoronix Forums > Linux Graphics / X.Org Drivers > Intel Linux

Intel Linux Technical support and discussion of the open-source xf86-video-intel driver and other Intel Linux software projects.

Reply
 
Thread Tools Display Modes
  #1  
Old 10-17-2008, 08:40 PM
phoronix phoronix is offline
Phoronix News Bot
 
Join Date: Jan 2007
Posts: 3,103
Default Linus On GEM Patches: UNTESTED CRAP

Phoronix: Linus On GEM Patches: UNTESTED CRAP

Yesterday we shared that the patches for Intel's GEM (the Graphics Execution Manager) were submitted for inclusion into Linux 2.6.28. Those patches that added in GEM along with a few other Direct Rendering Manager improvements have landed into the mainline Linux git tree, but not without commentary from Linus Torvalds. Linus became outraged over new DRM warnings and what Linus describes as horribly bad code...

http://www.phoronix.com/vr.php?view=Njc5Mg
Reply With Quote
  #2  
Old 10-17-2008, 09:23 PM
chithanh chithanh is offline
Phoronix Member
 
Join Date: Jul 2008
Posts: 88
Default

Code:
drivers/gpu/drm/drm_proc.c:525: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’
The assumption that sizeof(int) == sizeof(size_t) makes one wonder whether the code was intended to run on 64 bit platforms at all.
Reply With Quote
  #3  
Old 10-17-2008, 09:57 PM
KDesk KDesk is offline
Senior Member
 
Join Date: Aug 2008
Posts: 130
Default

Is this not wrong?
The Torvalds answer was for Dave Airlie, not for yesterday's David Airlie patch

http://news.gmane.org/gmane.comp.video.dri.devel
Reply With Quote
  #4  
Old 10-17-2008, 11:20 PM
SheeEttin SheeEttin is offline
Junior Member
 
Join Date: Mar 2007
Posts: 33
Default

Is it just me, or is there a certain image of Linus being painted here?
Reply With Quote
  #5  
Old 10-17-2008, 11:51 PM
smitty3268 smitty3268 is offline
Senior Member
 
Join Date: Oct 2008
Posts: 128
Default A little misleading

Quote:
Originally Posted by SheeEttin View Post
Is it just me, or is there a certain image of Linus being painted here?
The message ended with:

Quote:
Originally Posted by Linus Torvalds
I really wish people were more careful, and took more pride in trying to
write readable code, with small modular functions instead. And move those
variables down to the block they are needed in.

Anyway, I pulled the thing, but _please_ test this cleanup and send it
back to me if it passes your testing. Ok?
Which isn't exactly what I think most people would expect after reading the story here.
Reply With Quote
  #6  
Old 10-18-2008, 12:45 AM
ethana2 ethana2 is offline
Senior Member
 
Join Date: Jun 2007
Location: The intarwebs
Posts: 259
Default

If Ballmer and Gates had as much sense as Linus maybe Windows wouldn't suck as bad.

...but at this point I'm afraid, it's too ****ing late.
Reply With Quote
  #7  
Old 10-18-2008, 12:56 AM
DanL DanL is offline
Senior Member
 
Join Date: Oct 2007
Posts: 247
Default

I don't always agree with Linus' views, but can you blame him for blowing his lid when he has to repeatedly remind certain people of certain policies?
Reply With Quote
  #8  
Old 10-18-2008, 02:05 AM
hubick hubick is offline
Phoronix Member
 
Join Date: Sep 2007
Location: Edmonton, Alberta, Canada
Posts: 54
Default

Let me say thanks to Linus! As one of the many users running x86_64 Linux who has to live with crappy developers not writing 64bit clean code, thank you Linus for yelling at the Intel guys for not having a single person on their team using x86_64!
Reply With Quote
  #9  
Old 10-18-2008, 02:21 AM
Tillin9 Tillin9 is offline
Phoronix Member
 
Join Date: Aug 2006
Posts: 76
Default

I also think the news blurb is a little misleading, since Linus' response is generally level headed, even more so considering his usual demeanor. I agree with Linus, that code is crap. There is absolutely no excuse for that kind of sloppyness, especially since these don't seem like merging bugs (i.e. the GEM devs were working with slightly different code), but general API, kernel, and C programming bugs. I work on a much less important open source project than the Linux kernel and if any developer tried to commit code to trunk that gave plain old gcc warnings, they would likely have their privileges revoked.

Last edited by Tillin9; 10-18-2008 at 02:24 AM.
Reply With Quote
  #10  
Old 10-18-2008, 02:42 AM
deanjo deanjo is offline
Senior Member
 
Join Date: May 2007
Posts: 2,929
Default

Unfortunately, some developers are satisfied with code that is "good enough" and don't take pride in their work.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:52 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2009 by Phoronix Media.