login
Header Space

 
 

Re: [RFC] [PATCH] DRM TTM Memory Manager patch

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Dave Airlie <airlied@...>
Cc: Linux Kernel <linux-kernel@...>, Thomas Hellstr?m <thomas@...>, Jesse Barnes <jbarnes@...>, Eric Anholt <eric@...>
Date: Friday, April 27, 2007 - 12:39 pm

On Thu, Apr 26, 2007 at 04:55:14PM +1000, Dave Airlie wrote:

A few easy and simple comments based on looking at this for 5 minutes:
  - drop the typedefs.  Yeah, they might be a drm thing, but we don't
    need them here.
  - the comment style for the functions is "odd" and not in kerneldoc
    form, but something else.  Either use kerneldoc or nothing, don't
    invent something new please.
  - what's with the /proc interface?  Don't add new proc code for
    non-process related things.  This should all go into sysfs
    somewhere.  And yes, I know /proc/dri/ is there today, but don't add
    new stuff please.
  - struct drm_bo_arg can't use an int or unsigned, as it crosses the
    userspace/kernelspace boundry, use the proper types for all values
    in those types of structures (__u32, etc.)
  - there doesn't seem to be any validity checking for the arguments
    passed into this new ioctl.  Possibly that's just the way the rest
    of the dri interface is, which is scary, but with the memory stuff,
    you really should check things properly...

that's enough to start with :)

thanks,

greg k-h
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] [PATCH] DRM TTM Memory Manager patch, Dave Airlie, (Thu Apr 26, 2:55 am)
Re: [RFC] [PATCH] DRM TTM Memory Manager patch, Eric Anholt, (Wed May 2, 4:21 pm)
Re: [RFC] [PATCH] DRM TTM Memory Manager patch, Thomas Hellström, (Wed May 2, 7:01 pm)
Re: [RFC] [PATCH] DRM TTM Memory Manager patch, Keith Packard, (Fri May 4, 12:07 am)
Re: [RFC] [PATCH] DRM TTM Memory Manager patch, Thomas Hellström, (Fri May 4, 4:07 am)
Re: [RFC] [PATCH] DRM TTM Memory Manager patch, Keith Packard, (Fri May 4, 11:15 am)
Re: [RFC] [PATCH] DRM TTM Memory Manager patch, Keith Whitwell, (Fri May 4, 11:57 am)
Re: [RFC] [PATCH] DRM TTM Memory Manager patch, Keith Packard, (Fri May 4, 12:26 pm)
Re: [RFC] [PATCH] DRM TTM Memory Manager patch, Jerome Glisse, (Fri May 4, 4:49 am)
Re: [RFC] [PATCH] DRM TTM Memory Manager patch, Thomas Hellström, (Fri May 4, 7:03 am)
Re: [RFC] [PATCH] DRM TTM Memory Manager patch, Jerome Glisse, (Fri May 4, 7:57 am)
Re: [RFC] [PATCH] DRM TTM Memory Manager patch, Thomas Hellström, (Fri May 4, 8:32 am)
Re: [RFC] [PATCH] DRM TTM Memory Manager patch, Keith Packard, (Fri May 4, 11:32 am)
Re: [RFC] [PATCH] DRM TTM Memory Manager patch, Jerome Glisse, (Fri May 4, 8:52 am)
Re: [RFC] [PATCH] DRM TTM Memory Manager patch, Jerome Glisse, (Fri May 4, 5:40 am)
Re: [RFC] [PATCH] DRM TTM Memory Manager patch, Keith Packard, (Fri May 4, 11:28 am)
Re: [RFC] [PATCH] DRM TTM Memory Manager patch, Greg KH, (Fri Apr 27, 12:39 pm)
Re: [RFC] [PATCH] DRM TTM Memory Manager patch, Dave Airlie, (Mon Apr 30, 7:10 pm)
Re: [RFC] [PATCH] DRM TTM Memory Manager patch, Ingo Oeser, (Tue May 1, 6:36 pm)
Re: [RFC] [PATCH] DRM TTM Memory Manager patch, Greg KH, (Tue May 1, 11:59 pm)
Re: [RFC] [PATCH] DRM TTM Memory Manager patch, Thomas Hellström, (Mon Apr 30, 8:10 pm)
Re: [RFC] [PATCH] DRM TTM Memory Manager patch, Dave Jones, (Mon Apr 30, 7:50 pm)
speck-geostationary