All of lore.kernel.org
 help / color / mirror / Atom feed
From: zhoucm1 <david1.zhou@amd.com>
To: "Christian König" <deathsimple@vodafone.de>,
	dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 2/2] drm/ttm: move placement structures into ttm_placement.h
Date: Fri, 9 Sep 2016 14:42:10 +0800	[thread overview]
Message-ID: <57D259C2.6090104@amd.com> (raw)
In-Reply-To: <1473342102-324-2-git-send-email-deathsimple@vodafone.de>



On 2016年09月08日 21:41, Christian König wrote:
> From: Christian König <christian.koenig@amd.com>
>
> Makes more sense to keep that together.
>
> Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
> ---
>   include/drm/ttm/ttm_bo_api.h    | 32 +-------------------------------
>   include/drm/ttm/ttm_placement.h | 35 +++++++++++++++++++++++++++++++++++
>   2 files changed, 36 insertions(+), 31 deletions(-)
>
> diff --git a/include/drm/ttm/ttm_bo_api.h b/include/drm/ttm/ttm_bo_api.h
> index 97aaf5c..d73c7c2 100644
> --- a/include/drm/ttm/ttm_bo_api.h
> +++ b/include/drm/ttm/ttm_bo_api.h
> @@ -45,37 +45,7 @@ struct ttm_bo_device;
>   
>   struct drm_mm_node;
>   
> -/**
> - * struct ttm_place
> - *
> - * @fpfn:	first valid page frame number to put the object
> - * @lpfn:	last valid page frame number to put the object
> - * @flags:	memory domain and caching flags for the object
> - *
> - * Structure indicating a possible place to put an object.
> - */
> -struct ttm_place {
> -	unsigned	fpfn;
> -	unsigned	lpfn;
> -	uint32_t	flags;
> -};
> -
> -/**
> - * struct ttm_placement
> - *
> - * @num_placement:	number of preferred placements
> - * @placement:		preferred placements
> - * @num_busy_placement:	number of preferred placements when need to evict buffer
> - * @busy_placement:	preferred placements when need to evict buffer
> - *
> - * Structure indicating the placement you request for an object.
> - */
> -struct ttm_placement {
> -	unsigned		num_placement;
> -	const struct ttm_place	*placement;
> -	unsigned		num_busy_placement;
> -	const struct ttm_place	*busy_placement;
> -};
> +struct ttm_placement;
>   
>   /**
>    * struct ttm_bus_placement
> diff --git a/include/drm/ttm/ttm_placement.h b/include/drm/ttm/ttm_placement.h
> index 20219d9..ff5195c 100644
> --- a/include/drm/ttm/ttm_placement.h
> +++ b/include/drm/ttm/ttm_placement.h
> @@ -30,6 +30,9 @@
>   
>   #ifndef _TTM_PLACEMENT_H_
>   #define _TTM_PLACEMENT_H_
> +
> +#include <linux/types.h>
> +
>   /*
>    * Memory regions for data placement.
>    */
> @@ -73,4 +76,36 @@
>   
>   #define TTM_PL_MASK_MEMTYPE     (TTM_PL_MASK_MEM | TTM_PL_MASK_CACHING)
>   
> +/**
> + * struct ttm_place
> + *
> + * @fpfn:	first valid page frame number to put the object
> + * @lpfn:	last valid page frame number to put the object
> + * @flags:	memory domain and caching flags for the object
> + *
> + * Structure indicating a possible place to put an object.
> + */
> +struct ttm_place {
> +	unsigned	fpfn;
> +	unsigned	lpfn;
> +	uint32_t	flags;
> +};
> +
> +/**
> + * struct ttm_placement
> + *
> + * @num_placement:	number of preferred placements
> + * @placement:		preferred placements
> + * @num_busy_placement:	number of preferred placements when need to evict buffer
> + * @busy_placement:	preferred placements when need to evict buffer
> + *
> + * Structure indicating the placement you request for an object.
> + */
> +struct ttm_placement {
> +	unsigned		num_placement;
> +	const struct ttm_place	*placement;
> +	unsigned		num_busy_placement;
> +	const struct ttm_place	*busy_placement;
> +};
> +
>   #endif

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2016-09-09 10:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-08 13:41 [PATCH 1/2] drm/ttm: remove unused placement flags Christian König
2016-09-08 13:41 ` [PATCH 2/2] drm/ttm: move placement structures into ttm_placement.h Christian König
2016-09-09  6:42   ` zhoucm1 [this message]
     [not found] ` <1473342102-324-1-git-send-email-deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2016-09-09  6:41   ` [PATCH 1/2] drm/ttm: remove unused placement flags zhoucm1
     [not found]     ` <57D2598C.1070903-5C7GfCeVMHo@public.gmane.org>
2016-09-09  7:01       ` Flora Cui
2016-09-09  9:06         ` Christian König
     [not found]           ` <79675437-85ae-2fbf-93e1-b49321e6a41e-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2016-09-09 10:21             ` Zhang, Hawking
2016-09-09 10:35             ` Zhang, Hawking
     [not found]               ` <BN6PR12MB120407ACA888A0E57CA16D7AFCFA0-/b2+HYfkarSdTuMsQheahAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2016-09-09 11:24                 ` Christian König
2016-09-09 13:41                   ` Deucher, Alexander
     [not found]                     ` <MWHPR12MB1694DB49A6A9336A654384C3F7FA0-Gy0DoCVfaSW4WA4dJ5YXGAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2016-09-09 14:17                       ` Christian König
2016-09-09 13:54                   ` Emil Velikov
     [not found]                     ` <CACvgo53AAEsxAoQvAe=ffMnQiZiE=MPWne2Abg=rAt4bRkK8NQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-09-09 14:30                       ` Christian König
2016-09-09 15:11                         ` Emil Velikov

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=57D259C2.6090104@amd.com \
    --to=david1.zhou@amd.com \
    --cc=deathsimple@vodafone.de \
    --cc=dri-devel@lists.freedesktop.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.