public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Dave Airlie <airlied@gmail.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>,
	Thomas Hellstr?m <thomas@tungstengraphics.com>,
	Jesse Barnes <jbarnes@virtuousgeek.org>,
	Eric Anholt <eric@anholt.net>
Subject: Re: [RFC] [PATCH] DRM TTM Memory Manager patch
Date: Fri, 27 Apr 2007 09:39:51 -0700	[thread overview]
Message-ID: <20070427163951.GA12216@kroah.com> (raw)
In-Reply-To: <21d7e9970704252355m4765b65fyb547b9ba2763b103@mail.gmail.com>

On Thu, Apr 26, 2007 at 04:55:14PM +1000, Dave Airlie wrote:
>  Hi,
> 
>  The patch is too big to fit on the list and I've no idea how we could
>  break it down further, it just happens to be a lot of new code..
> 
>  http://people.freedesktop.org/~airlied/ttm/0001-drm-Implement-TTM-Memory-manager-core-functionality.txt
> 
>  The patch header and diffstat are below,

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

  reply	other threads:[~2007-04-27 16:42 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-26  6:55 [RFC] [PATCH] DRM TTM Memory Manager patch Dave Airlie
2007-04-27 16:39 ` Greg KH [this message]
2007-04-30 23:10   ` Dave Airlie
2007-04-30 23:50     ` Dave Jones
2007-05-01  0:10     ` Thomas Hellström
2007-05-01 22:36     ` Ingo Oeser
2007-05-02  3:59       ` Greg KH
2007-05-02 20:21 ` Eric Anholt
2007-05-02 23:01   ` Thomas Hellström
2007-05-04  4:07     ` Keith Packard
2007-05-04  8:07       ` Thomas Hellström
2007-05-04  8:49         ` Jerome Glisse
2007-05-04  9:40           ` Jerome Glisse
2007-05-04 15:28             ` Keith Packard
2007-05-04 11:03           ` Thomas Hellström
2007-05-04 11:57             ` Jerome Glisse
2007-05-04 12:32               ` Thomas Hellström
2007-05-04 12:52                 ` Jerome Glisse
2007-05-04 15:32                 ` Keith Packard
2007-05-04 15:15         ` Keith Packard
2007-05-04 15:57           ` Keith Whitwell
2007-05-04 16:26             ` Keith Packard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070427163951.GA12216@kroah.com \
    --to=greg@kroah.com \
    --cc=airlied@gmail.com \
    --cc=eric@anholt.net \
    --cc=jbarnes@virtuousgeek.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=thomas@tungstengraphics.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox