mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thierry Reding <thierry.reding@avionic-design.de>
To: Alan Cox <alan@linux.jf.intel.com>
Cc: greg@kroah.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 4/5] gma500: Add a gtt allocator
Date: Wed, 13 Apr 2011 12:37:55 +0200	[thread overview]
Message-ID: <20110413103755.GA14017@avionic-0098.adnet.avionic-design.de> (raw)
In-Reply-To: <20110413093624.28527.33558.stgit@localhost.localdomain>

[-- Attachment #1: Type: text/plain, Size: 1421 bytes --]

* Alan Cox wrote:
> At the moment we don't do any page backing for the GTT so only the stolen
> area pages will actually work. That is fine for our initial framebuffer and
> a bit of testing but will need resolution (including alternate mmap methods
> and the like for s/g areas) eventually.
> 
> Rather than use some of the overcomplex stuff in the DRM we use the existing
> Linux resource allocators to hand out framebuffers and the like. This also has
> the nice result that /proc/iomem shows the allocations.
> 
> Signed-off-by: Alan Cox <alan@linux.intel.com>
> ---
> 
>  drivers/staging/gma500/psb_drv.h |   16 +++-
>  drivers/staging/gma500/psb_fb.c  |   32 +++++---
>  drivers/staging/gma500/psb_fb.h  |   13 +--
>  drivers/staging/gma500/psb_gtt.c |  155 ++++++++++++++++++++++++++++++++++++++
>  drivers/staging/gma500/psb_gtt.h |   30 ++++++-
>  5 files changed, 217 insertions(+), 29 deletions(-)
> 
> diff --git a/drivers/staging/gma500/psb_drv.h b/drivers/staging/gma500/psb_drv.h
> index c3609e0..7a0506a 100644
> --- a/drivers/staging/gma500/psb_drv.h
> +++ b/drivers/staging/gma500/psb_drv.h
> @@ -21,6 +21,7 @@
>  #define _PSB_DRV_H_
>  
>  #include <linux/version.h>
> +#include <linux/kref.h>
>  
>  #include <drm/drmP.h>
>  #include "drm_global.h"
> @@ -228,6 +229,7 @@ struct psb_intel_opregion {
>  	int enabled;
>  };
>  
> +

Gratuitous newline?

Thierry

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2011-04-13 10:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-13  9:35 [PATCH 1/5] gma500: ioctl first pass Alan Cox
2011-04-13  9:35 ` [PATCH 2/5] gma500: prepare to do some actual memory management Alan Cox
2011-04-13  9:36 ` [PATCH 3/5] gma500: backlight warning Alan Cox
2011-04-13 13:17   ` Matthew Garrett
2011-04-13 13:20     ` Alan Cox
2011-04-13 13:23       ` Matthew Garrett
2011-04-13  9:37 ` [PATCH 4/5] gma500: Add a gtt allocator Alan Cox
2011-04-13 10:37   ` Thierry Reding [this message]
2011-04-13  9:37 ` [PATCH 5/5] gma500: Tidy up the allocations Alan Cox

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=20110413103755.GA14017@avionic-0098.adnet.avionic-design.de \
    --to=thierry.reding@avionic-design.de \
    --cc=alan@linux.jf.intel.com \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

Powered by JetHome