All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] amdgpu: move ttm domain definitions to amdgpu.h
@ 2016-08-18  2:58 Flora Cui
       [not found] ` <1471489102-31630-1-git-send-email-Flora.Cui-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Flora Cui @ 2016-08-18  2:58 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Flora Cui

Signed-off-by: Flora Cui <Flora.Cui@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu.h     | 8 ++++++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h | 8 --------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index a55eb6f..92064be 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -401,6 +401,14 @@ unsigned amdgpu_fence_count_emitted(struct amdgpu_ring *ring);
  * TTM.
  */
 
+#define AMDGPU_PL_GDS		TTM_PL_PRIV0
+#define AMDGPU_PL_GWS		TTM_PL_PRIV1
+#define AMDGPU_PL_OA		TTM_PL_PRIV2
+
+#define AMDGPU_PL_FLAG_GDS		TTM_PL_FLAG_PRIV0
+#define AMDGPU_PL_FLAG_GWS		TTM_PL_FLAG_PRIV1
+#define AMDGPU_PL_FLAG_OA		TTM_PL_FLAG_PRIV2
+
 #define AMDGPU_TTM_LRU_SIZE	20
 
 struct amdgpu_mman_lru {
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h
index 503d540..e73728d 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h
@@ -31,14 +31,6 @@
 #define AMDGPU_GWS_SHIFT	PAGE_SHIFT
 #define AMDGPU_OA_SHIFT		PAGE_SHIFT
 
-#define AMDGPU_PL_GDS		TTM_PL_PRIV0
-#define AMDGPU_PL_GWS		TTM_PL_PRIV1
-#define AMDGPU_PL_OA		TTM_PL_PRIV2
-
-#define AMDGPU_PL_FLAG_GDS		TTM_PL_FLAG_PRIV0
-#define AMDGPU_PL_FLAG_GWS		TTM_PL_FLAG_PRIV1
-#define AMDGPU_PL_FLAG_OA		TTM_PL_FLAG_PRIV2
-
 struct amdgpu_ring;
 struct amdgpu_bo;
 
-- 
2.7.4

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/3] drm/amdgpu: allow pagelist to be NULL for amdgpu_gart_bind
       [not found] ` <1471489102-31630-1-git-send-email-Flora.Cui-5C7GfCeVMHo@public.gmane.org>
@ 2016-08-18  2:58   ` Flora Cui
       [not found]     ` <1471489102-31630-2-git-send-email-Flora.Cui-5C7GfCeVMHo@public.gmane.org>
  2016-08-18  2:58   ` [PATCH 3/3] drm/amdgpu: minor refine amdgpu ttm codes Flora Cui
  2016-08-18  8:05   ` [PATCH 1/3] amdgpu: move ttm domain definitions to amdgpu.h Christian König
  2 siblings, 1 reply; 8+ messages in thread
From: Flora Cui @ 2016-08-18  2:58 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Flora Cui

Signed-off-by: Flora Cui <Flora.Cui@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
index 0feea34..03b9fd6 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
@@ -287,7 +287,7 @@ int amdgpu_gart_bind(struct amdgpu_device *adev, uint64_t offset,
 
 	for (i = 0; i < pages; i++, p++) {
 #ifdef CONFIG_AMDGPU_GART_DEBUGFS
-		adev->gart.pages[p] = pagelist[i];
+		adev->gart.pages[p] = pagelist ? pagelist[i] : NULL;
 #endif
 		if (adev->gart.ptr) {
 			page_base = dma_addr[i];
-- 
2.7.4

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 3/3] drm/amdgpu: minor refine amdgpu ttm codes
       [not found] ` <1471489102-31630-1-git-send-email-Flora.Cui-5C7GfCeVMHo@public.gmane.org>
  2016-08-18  2:58   ` [PATCH 2/3] drm/amdgpu: allow pagelist to be NULL for amdgpu_gart_bind Flora Cui
@ 2016-08-18  2:58   ` Flora Cui
       [not found]     ` <1471489102-31630-3-git-send-email-Flora.Cui-5C7GfCeVMHo@public.gmane.org>
  2016-08-18  8:05   ` [PATCH 1/3] amdgpu: move ttm domain definitions to amdgpu.h Christian König
  2 siblings, 1 reply; 8+ messages in thread
From: Flora Cui @ 2016-08-18  2:58 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Flora Cui

1. add check for domain in amdgpu_bo_pin_restricted()
2. get domain gpu_offset for common use

Signed-off-by: Flora Cui <Flora.Cui@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 13 +++++++------
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c    |  8 ++------
 2 files changed, 9 insertions(+), 12 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
index 4d084ee..2c08e1b 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
@@ -520,16 +520,17 @@ int amdgpu_bo_pin_restricted(struct amdgpu_bo *bo, u32 domain,
 		return -EINVAL;
 
 	if (bo->pin_count) {
+		uint32_t mem_type = bo->tbo.mem.mem_type;
+
+		if (domain != amdgpu_mem_type_to_domain(mem_type))
+			return -EINVAL;
+
 		bo->pin_count++;
 		if (gpu_addr)
 			*gpu_addr = amdgpu_bo_gpu_offset(bo);
 
 		if (max_offset != 0) {
-			u64 domain_start;
-			if (domain == AMDGPU_GEM_DOMAIN_VRAM)
-				domain_start = bo->adev->mc.vram_start;
-			else
-				domain_start = bo->adev->mc.gtt_start;
+			u64 domain_start = bo->tbo.bdev->man[mem_type].gpu_offset;
 			WARN_ON_ONCE(max_offset <
 				     (amdgpu_bo_gpu_offset(bo) - domain_start));
 		}
@@ -573,7 +574,7 @@ int amdgpu_bo_pin_restricted(struct amdgpu_bo *bo, u32 domain,
 		bo->adev->vram_pin_size += amdgpu_bo_size(bo);
 		if (bo->flags & AMDGPU_GEM_CREATE_NO_CPU_ACCESS)
 			bo->adev->invisible_pin_size += amdgpu_bo_size(bo);
-	} else {
+	} else if (domain == AMDGPU_GEM_DOMAIN_GTT) {
 		bo->adev->gart_pin_size += amdgpu_bo_size(bo);
 	}
 
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
index 105bd22..8a12b24 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
@@ -257,10 +257,8 @@ static int amdgpu_move_blit(struct ttm_buffer_object *bo,
 
 	switch (old_mem->mem_type) {
 	case TTM_PL_VRAM:
-		old_start += adev->mc.vram_start;
-		break;
 	case TTM_PL_TT:
-		old_start += adev->mc.gtt_start;
+		old_start += bo->bdev->man[old_mem->mem_type].gpu_offset;
 		break;
 	default:
 		DRM_ERROR("Unknown placement %d\n", old_mem->mem_type);
@@ -268,10 +266,8 @@ static int amdgpu_move_blit(struct ttm_buffer_object *bo,
 	}
 	switch (new_mem->mem_type) {
 	case TTM_PL_VRAM:
-		new_start += adev->mc.vram_start;
-		break;
 	case TTM_PL_TT:
-		new_start += adev->mc.gtt_start;
+		new_start += bo->bdev->man[new_mem->mem_type].gpu_offset;
 		break;
 	default:
 		DRM_ERROR("Unknown placement %d\n", old_mem->mem_type);
-- 
2.7.4

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 3/3] drm/amdgpu: minor refine amdgpu ttm codes
       [not found]     ` <1471489102-31630-3-git-send-email-Flora.Cui-5C7GfCeVMHo@public.gmane.org>
@ 2016-08-18  3:59       ` Michel Dänzer
  0 siblings, 0 replies; 8+ messages in thread
From: Michel Dänzer @ 2016-08-18  3:59 UTC (permalink / raw)
  To: Flora Cui; +Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

On 18/08/16 11:58 AM, Flora Cui wrote:
> 1. add check for domain in amdgpu_bo_pin_restricted()
> 2. get domain gpu_offset for common use

Please split this up into multiple patches, one for each logical change.


Patch 1 is

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/3] drm/amdgpu: allow pagelist to be NULL for amdgpu_gart_bind
       [not found]     ` <1471489102-31630-2-git-send-email-Flora.Cui-5C7GfCeVMHo@public.gmane.org>
@ 2016-08-18  8:02       ` Christian König
  0 siblings, 0 replies; 8+ messages in thread
From: Christian König @ 2016-08-18  8:02 UTC (permalink / raw)
  To: Flora Cui, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

This function is never called without a pagelist at the moment.

So there is no justification for this change.

Christian.

Am 18.08.2016 um 04:58 schrieb Flora Cui:
> Signed-off-by: Flora Cui <Flora.Cui@amd.com>
> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
> index 0feea34..03b9fd6 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
> @@ -287,7 +287,7 @@ int amdgpu_gart_bind(struct amdgpu_device *adev, uint64_t offset,
>   
>   	for (i = 0; i < pages; i++, p++) {
>   #ifdef CONFIG_AMDGPU_GART_DEBUGFS
> -		adev->gart.pages[p] = pagelist[i];
> +		adev->gart.pages[p] = pagelist ? pagelist[i] : NULL;
>   #endif
>   		if (adev->gart.ptr) {
>   			page_base = dma_addr[i];


_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/3] amdgpu: move ttm domain definitions to amdgpu.h
       [not found] ` <1471489102-31630-1-git-send-email-Flora.Cui-5C7GfCeVMHo@public.gmane.org>
  2016-08-18  2:58   ` [PATCH 2/3] drm/amdgpu: allow pagelist to be NULL for amdgpu_gart_bind Flora Cui
  2016-08-18  2:58   ` [PATCH 3/3] drm/amdgpu: minor refine amdgpu ttm codes Flora Cui
@ 2016-08-18  8:05   ` Christian König
       [not found]     ` <f1c6e13e-f5a6-4579-35f5-c250b285d816-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
  2 siblings, 1 reply; 8+ messages in thread
From: Christian König @ 2016-08-18  8:05 UTC (permalink / raw)
  To: Flora Cui, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

NAK, we explicitly moved them to amdgpu_gds.h.

In general when some code needs those defines it should include the 
appropriate header.

But it would make sense to move them into a (to be created) 
amdgpu_ttm.h, cause those defines are more TTM related than GDS related.

Regards,
Christiuan.

Am 18.08.2016 um 04:58 schrieb Flora Cui:
> Signed-off-by: Flora Cui <Flora.Cui@amd.com>
> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu.h     | 8 ++++++++
>   drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h | 8 --------
>   2 files changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> index a55eb6f..92064be 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> @@ -401,6 +401,14 @@ unsigned amdgpu_fence_count_emitted(struct amdgpu_ring *ring);
>    * TTM.
>    */
>   
> +#define AMDGPU_PL_GDS		TTM_PL_PRIV0
> +#define AMDGPU_PL_GWS		TTM_PL_PRIV1
> +#define AMDGPU_PL_OA		TTM_PL_PRIV2
> +
> +#define AMDGPU_PL_FLAG_GDS		TTM_PL_FLAG_PRIV0
> +#define AMDGPU_PL_FLAG_GWS		TTM_PL_FLAG_PRIV1
> +#define AMDGPU_PL_FLAG_OA		TTM_PL_FLAG_PRIV2
> +
>   #define AMDGPU_TTM_LRU_SIZE	20
>   
>   struct amdgpu_mman_lru {
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h
> index 503d540..e73728d 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h
> @@ -31,14 +31,6 @@
>   #define AMDGPU_GWS_SHIFT	PAGE_SHIFT
>   #define AMDGPU_OA_SHIFT		PAGE_SHIFT
>   
> -#define AMDGPU_PL_GDS		TTM_PL_PRIV0
> -#define AMDGPU_PL_GWS		TTM_PL_PRIV1
> -#define AMDGPU_PL_OA		TTM_PL_PRIV2
> -
> -#define AMDGPU_PL_FLAG_GDS		TTM_PL_FLAG_PRIV0
> -#define AMDGPU_PL_FLAG_GWS		TTM_PL_FLAG_PRIV1
> -#define AMDGPU_PL_FLAG_OA		TTM_PL_FLAG_PRIV2
> -
>   struct amdgpu_ring;
>   struct amdgpu_bo;
>   


_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/3] amdgpu: move ttm domain definitions to amdgpu.h
       [not found]     ` <f1c6e13e-f5a6-4579-35f5-c250b285d816-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
@ 2016-08-18  8:12       ` Flora Cui
  2016-08-18  9:16         ` Christian König
  0 siblings, 1 reply; 8+ messages in thread
From: Flora Cui @ 2016-08-18  8:12 UTC (permalink / raw)
  To: Christian König; +Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

On Thu, Aug 18, 2016 at 10:05:09AM +0200, Christian König wrote:
> NAK, we explicitly moved them to amdgpu_gds.h.
> 
> In general when some code needs those defines it should include the
> appropriate header.
> 
> But it would make sense to move them into a (to be created) amdgpu_ttm.h,
> cause those defines are more TTM related than GDS related.
OK. I'll update patch to move them into amdgpu_ttm.h. AMDGPU_PL_...
definitions in amdgpu_gds.h is really unfriendly to newly added ones.
> 
> Regards,
> Christiuan.
> 
> Am 18.08.2016 um 04:58 schrieb Flora Cui:
> >Signed-off-by: Flora Cui <Flora.Cui@amd.com>
> >---
> >  drivers/gpu/drm/amd/amdgpu/amdgpu.h     | 8 ++++++++
> >  drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h | 8 --------
> >  2 files changed, 8 insertions(+), 8 deletions(-)
> >
> >diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> >index a55eb6f..92064be 100644
> >--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> >+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> >@@ -401,6 +401,14 @@ unsigned amdgpu_fence_count_emitted(struct amdgpu_ring *ring);
> >   * TTM.
> >   */
> >+#define AMDGPU_PL_GDS		TTM_PL_PRIV0
> >+#define AMDGPU_PL_GWS		TTM_PL_PRIV1
> >+#define AMDGPU_PL_OA		TTM_PL_PRIV2
> >+
> >+#define AMDGPU_PL_FLAG_GDS		TTM_PL_FLAG_PRIV0
> >+#define AMDGPU_PL_FLAG_GWS		TTM_PL_FLAG_PRIV1
> >+#define AMDGPU_PL_FLAG_OA		TTM_PL_FLAG_PRIV2
> >+
> >  #define AMDGPU_TTM_LRU_SIZE	20
> >  struct amdgpu_mman_lru {
> >diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h
> >index 503d540..e73728d 100644
> >--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h
> >+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h
> >@@ -31,14 +31,6 @@
> >  #define AMDGPU_GWS_SHIFT	PAGE_SHIFT
> >  #define AMDGPU_OA_SHIFT		PAGE_SHIFT
> >-#define AMDGPU_PL_GDS		TTM_PL_PRIV0
> >-#define AMDGPU_PL_GWS		TTM_PL_PRIV1
> >-#define AMDGPU_PL_OA		TTM_PL_PRIV2
> >-
> >-#define AMDGPU_PL_FLAG_GDS		TTM_PL_FLAG_PRIV0
> >-#define AMDGPU_PL_FLAG_GWS		TTM_PL_FLAG_PRIV1
> >-#define AMDGPU_PL_FLAG_OA		TTM_PL_FLAG_PRIV2
> >-
> >  struct amdgpu_ring;
> >  struct amdgpu_bo;
> 
> 
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/3] amdgpu: move ttm domain definitions to amdgpu.h
  2016-08-18  8:12       ` Flora Cui
@ 2016-08-18  9:16         ` Christian König
  0 siblings, 0 replies; 8+ messages in thread
From: Christian König @ 2016-08-18  9:16 UTC (permalink / raw)
  To: Flora Cui; +Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Am 18.08.2016 um 10:12 schrieb Flora Cui:
> On Thu, Aug 18, 2016 at 10:05:09AM +0200, Christian König wrote:
>> NAK, we explicitly moved them to amdgpu_gds.h.
>>
>> In general when some code needs those defines it should include the
>> appropriate header.
>>
>> But it would make sense to move them into a (to be created) amdgpu_ttm.h,
>> cause those defines are more TTM related than GDS related.
> OK. I'll update patch to move them into amdgpu_ttm.h. AMDGPU_PL_...
> definitions in amdgpu_gds.h is really unfriendly to newly added ones.

Yeah, agree. Feel free to move the other TTM defines from amdgpu.h into 
the new file as well, but be aware that you might need to forward define 
a few additional structures then.

Christian.

>> Regards,
>> Christiuan.
>>
>> Am 18.08.2016 um 04:58 schrieb Flora Cui:
>>> Signed-off-by: Flora Cui <Flora.Cui@amd.com>
>>> ---
>>>   drivers/gpu/drm/amd/amdgpu/amdgpu.h     | 8 ++++++++
>>>   drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h | 8 --------
>>>   2 files changed, 8 insertions(+), 8 deletions(-)
>>>
>>> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
>>> index a55eb6f..92064be 100644
>>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
>>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
>>> @@ -401,6 +401,14 @@ unsigned amdgpu_fence_count_emitted(struct amdgpu_ring *ring);
>>>    * TTM.
>>>    */
>>> +#define AMDGPU_PL_GDS		TTM_PL_PRIV0
>>> +#define AMDGPU_PL_GWS		TTM_PL_PRIV1
>>> +#define AMDGPU_PL_OA		TTM_PL_PRIV2
>>> +
>>> +#define AMDGPU_PL_FLAG_GDS		TTM_PL_FLAG_PRIV0
>>> +#define AMDGPU_PL_FLAG_GWS		TTM_PL_FLAG_PRIV1
>>> +#define AMDGPU_PL_FLAG_OA		TTM_PL_FLAG_PRIV2
>>> +
>>>   #define AMDGPU_TTM_LRU_SIZE	20
>>>   struct amdgpu_mman_lru {
>>> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h
>>> index 503d540..e73728d 100644
>>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h
>>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h
>>> @@ -31,14 +31,6 @@
>>>   #define AMDGPU_GWS_SHIFT	PAGE_SHIFT
>>>   #define AMDGPU_OA_SHIFT		PAGE_SHIFT
>>> -#define AMDGPU_PL_GDS		TTM_PL_PRIV0
>>> -#define AMDGPU_PL_GWS		TTM_PL_PRIV1
>>> -#define AMDGPU_PL_OA		TTM_PL_PRIV2
>>> -
>>> -#define AMDGPU_PL_FLAG_GDS		TTM_PL_FLAG_PRIV0
>>> -#define AMDGPU_PL_FLAG_GWS		TTM_PL_FLAG_PRIV1
>>> -#define AMDGPU_PL_FLAG_OA		TTM_PL_FLAG_PRIV2
>>> -
>>>   struct amdgpu_ring;
>>>   struct amdgpu_bo;
>>
> _______________________________________________
> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-08-18  9:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-18  2:58 [PATCH 1/3] amdgpu: move ttm domain definitions to amdgpu.h Flora Cui
     [not found] ` <1471489102-31630-1-git-send-email-Flora.Cui-5C7GfCeVMHo@public.gmane.org>
2016-08-18  2:58   ` [PATCH 2/3] drm/amdgpu: allow pagelist to be NULL for amdgpu_gart_bind Flora Cui
     [not found]     ` <1471489102-31630-2-git-send-email-Flora.Cui-5C7GfCeVMHo@public.gmane.org>
2016-08-18  8:02       ` Christian König
2016-08-18  2:58   ` [PATCH 3/3] drm/amdgpu: minor refine amdgpu ttm codes Flora Cui
     [not found]     ` <1471489102-31630-3-git-send-email-Flora.Cui-5C7GfCeVMHo@public.gmane.org>
2016-08-18  3:59       ` Michel Dänzer
2016-08-18  8:05   ` [PATCH 1/3] amdgpu: move ttm domain definitions to amdgpu.h Christian König
     [not found]     ` <f1c6e13e-f5a6-4579-35f5-c250b285d816-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2016-08-18  8:12       ` Flora Cui
2016-08-18  9:16         ` Christian König

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.