From: Flora Cui <flora.cui-5C7GfCeVMHo@public.gmane.org>
To: zhoucm1 <david1.zhou-5C7GfCeVMHo@public.gmane.org>
Cc: "Christian König"
<deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>,
"amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org"
<amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>,
dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: [PATCH 1/2] drm/ttm: remove unused placement flags
Date: Fri, 9 Sep 2016 15:01:18 +0800 [thread overview]
Message-ID: <20160909070116.GA20574@flora> (raw)
In-Reply-To: <57D2598C.1070903-5C7GfCeVMHo@public.gmane.org>
yes. please don't do this, I need them.
On Fri, Sep 09, 2016 at 02:41:16PM +0800, zhoucm1 wrote:
>
>
> On 2016年09月08日 21:41, Christian König wrote:
> >From: Christian König <christian.koenig@amd.com>
> >
> >Either never used or not used in quite a while.
> No, I remember Flora's Direct GMA is using them like GDS use PRIV0-2. And
> you cannot make sure there isn't no one using them in other closed projects,
> right?
> If you removed now, that obviously will break her implementation and brings
> her many troubles.
>
>
> Regards,
> David Zhou
> >
> >Signed-off-by: Christian König <christian.koenig@amd.com>
> >---
> > drivers/gpu/drm/ttm/ttm_bo.c | 2 +-
> > include/drm/ttm/ttm_placement.h | 19 -------------------
> > 2 files changed, 1 insertion(+), 20 deletions(-)
> >
> >diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
> >index bc37f02..4d2e8f2 100644
> >--- a/drivers/gpu/drm/ttm/ttm_bo.c
> >+++ b/drivers/gpu/drm/ttm/ttm_bo.c
> >@@ -59,7 +59,7 @@ static inline int ttm_mem_type_from_place(const struct ttm_place *place,
> > {
> > int i;
> >- for (i = 0; i <= TTM_PL_PRIV5; i++)
> >+ for (i = 0; i <= TTM_PL_PRIV2; i++)
> > if (place->flags & (1 << i)) {
> > *mem_type = i;
> > return 0;
> >diff --git a/include/drm/ttm/ttm_placement.h b/include/drm/ttm/ttm_placement.h
> >index 8ed44f9..20219d9 100644
> >--- a/include/drm/ttm/ttm_placement.h
> >+++ b/include/drm/ttm/ttm_placement.h
> >@@ -40,10 +40,6 @@
> > #define TTM_PL_PRIV0 3
> > #define TTM_PL_PRIV1 4
> > #define TTM_PL_PRIV2 5
> >-#define TTM_PL_PRIV3 6
> >-#define TTM_PL_PRIV4 7
> >-#define TTM_PL_PRIV5 8
> >-#define TTM_PL_SWAPPED 15
> > #define TTM_PL_FLAG_SYSTEM (1 << TTM_PL_SYSTEM)
> > #define TTM_PL_FLAG_TT (1 << TTM_PL_TT)
> >@@ -51,10 +47,6 @@
> > #define TTM_PL_FLAG_PRIV0 (1 << TTM_PL_PRIV0)
> > #define TTM_PL_FLAG_PRIV1 (1 << TTM_PL_PRIV1)
> > #define TTM_PL_FLAG_PRIV2 (1 << TTM_PL_PRIV2)
> >-#define TTM_PL_FLAG_PRIV3 (1 << TTM_PL_PRIV3)
> >-#define TTM_PL_FLAG_PRIV4 (1 << TTM_PL_PRIV4)
> >-#define TTM_PL_FLAG_PRIV5 (1 << TTM_PL_PRIV5)
> >-#define TTM_PL_FLAG_SWAPPED (1 << TTM_PL_SWAPPED)
> > #define TTM_PL_MASK_MEM 0x0000FFFF
> > /*
> >@@ -72,7 +64,6 @@
> > #define TTM_PL_FLAG_CACHED (1 << 16)
> > #define TTM_PL_FLAG_UNCACHED (1 << 17)
> > #define TTM_PL_FLAG_WC (1 << 18)
> >-#define TTM_PL_FLAG_SHARED (1 << 20)
> > #define TTM_PL_FLAG_NO_EVICT (1 << 21)
> > #define TTM_PL_FLAG_TOPDOWN (1 << 22)
> >@@ -82,14 +73,4 @@
> > #define TTM_PL_MASK_MEMTYPE (TTM_PL_MASK_MEM | TTM_PL_MASK_CACHING)
> >-/*
> >- * Access flags to be used for CPU- and GPU- mappings.
> >- * The idea is that the TTM synchronization mechanism will
> >- * allow concurrent READ access and exclusive write access.
> >- * Currently GPU- and CPU accesses are exclusive.
> >- */
> >-
> >-#define TTM_ACCESS_READ (1 << 0)
> >-#define TTM_ACCESS_WRITE (1 << 1)
> >-
> > #endif
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
next prev parent reply other threads:[~2016-09-09 7:01 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
[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 [this message]
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=20160909070116.GA20574@flora \
--to=flora.cui-5c7gfcevmho@public.gmane.org \
--cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=david1.zhou-5C7GfCeVMHo@public.gmane.org \
--cc=deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org \
--cc=dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.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