All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm:IB flag cleanups
@ 2017-03-08  8:13 Monk Liu
       [not found] ` <1488960799-16734-1-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Monk Liu @ 2017-03-08  8:13 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Monk Liu

we don't use FLAG_GDS actually, and we need PREEMPT flag

Change-Id: I87f704e3fa97d7a7ffa956f0c94b77c333de380d
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
---
 include/drm/amdgpu_drm.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/drm/amdgpu_drm.h b/include/drm/amdgpu_drm.h
index 89a938a..624819c 100644
--- a/include/drm/amdgpu_drm.h
+++ b/include/drm/amdgpu_drm.h
@@ -375,11 +375,11 @@ union drm_amdgpu_cs {
 /* This IB should be submitted to CE */
 #define AMDGPU_IB_FLAG_CE	(1<<0)
 
-/* GDS is used by this IB */
-#define AMDGPU_IB_FLAG_GDS	(1<<1)
+/* Preamble */
+#define AMDGPU_IB_FLAG_PREAMBLE (1<<1)
 
-/* CE Preamble */
-#define AMDGPU_IB_FLAG_PREAMBLE (1<<2)
+/* Preemptible */
+#define AMDGPU_IB_FLAG_PREEMPT (1<<2)
 
 struct drm_amdgpu_cs_chunk_ib {
 	/**
-- 
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] 4+ messages in thread

* Re: [PATCH] drm:IB flag cleanups
       [not found] ` <1488960799-16734-1-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
@ 2017-03-08  9:58   ` Christian König
       [not found]     ` <923dd0b3-ae84-c343-c436-00543f91364d-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Christian König @ 2017-03-08  9:58 UTC (permalink / raw)
  To: Monk Liu, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Please rebase that on the amd-staging-4.9 branch, the GDS flag never 
made it upstream.

Additional to that I would provide the implementation (e.g. forwarding 
it to the IB command) for the PREEMPT flag in the same patch.

Christian.

Am 08.03.2017 um 09:13 schrieb Monk Liu:
> we don't use FLAG_GDS actually, and we need PREEMPT flag
>
> Change-Id: I87f704e3fa97d7a7ffa956f0c94b77c333de380d
> Signed-off-by: Monk Liu <Monk.Liu@amd.com>
> ---
>   include/drm/amdgpu_drm.h | 8 ++++----
>   1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/include/drm/amdgpu_drm.h b/include/drm/amdgpu_drm.h
> index 89a938a..624819c 100644
> --- a/include/drm/amdgpu_drm.h
> +++ b/include/drm/amdgpu_drm.h
> @@ -375,11 +375,11 @@ union drm_amdgpu_cs {
>   /* This IB should be submitted to CE */
>   #define AMDGPU_IB_FLAG_CE	(1<<0)
>   
> -/* GDS is used by this IB */
> -#define AMDGPU_IB_FLAG_GDS	(1<<1)
> +/* Preamble */
> +#define AMDGPU_IB_FLAG_PREAMBLE (1<<1)
>   
> -/* CE Preamble */
> -#define AMDGPU_IB_FLAG_PREAMBLE (1<<2)
> +/* Preemptible */
> +#define AMDGPU_IB_FLAG_PREEMPT (1<<2)
>   
>   struct drm_amdgpu_cs_chunk_ib {
>   	/**


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

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

* RE: [PATCH] drm:IB flag cleanups
       [not found]     ` <923dd0b3-ae84-c343-c436-00543f91364d-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
@ 2017-03-08 10:22       ` Liu, Monk
       [not found]         ` <DM5PR12MB1610ABF81142B5163C909783842E0-2J9CzHegvk++jCVTvoAFKAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Liu, Monk @ 2017-03-08 10:22 UTC (permalink / raw)
  To: Christian König, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Rebase done: will send out another patch for review

>Additional to that I would provide the implementation (e.g. forwarding it to the IB command) for the PREEMPT flag in the same patch.

No, we don't have such imple, because this flag will be tagged by UMD, instead of by libdrm

BR Monk

-----Original Message-----
From: Christian König [mailto:deathsimple@vodafone.de] 
Sent: Wednesday, March 08, 2017 5:59 PM
To: Liu, Monk <Monk.Liu@amd.com>; amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm:IB flag cleanups

Please rebase that on the amd-staging-4.9 branch, the GDS flag never made it upstream.

Additional to that I would provide the implementation (e.g. forwarding it to the IB command) for the PREEMPT flag in the same patch.

Christian.

Am 08.03.2017 um 09:13 schrieb Monk Liu:
> we don't use FLAG_GDS actually, and we need PREEMPT flag
>
> Change-Id: I87f704e3fa97d7a7ffa956f0c94b77c333de380d
> Signed-off-by: Monk Liu <Monk.Liu@amd.com>
> ---
>   include/drm/amdgpu_drm.h | 8 ++++----
>   1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/include/drm/amdgpu_drm.h b/include/drm/amdgpu_drm.h index 
> 89a938a..624819c 100644
> --- a/include/drm/amdgpu_drm.h
> +++ b/include/drm/amdgpu_drm.h
> @@ -375,11 +375,11 @@ union drm_amdgpu_cs {
>   /* This IB should be submitted to CE */
>   #define AMDGPU_IB_FLAG_CE	(1<<0)
>   
> -/* GDS is used by this IB */
> -#define AMDGPU_IB_FLAG_GDS	(1<<1)
> +/* Preamble */
> +#define AMDGPU_IB_FLAG_PREAMBLE (1<<1)
>   
> -/* CE Preamble */
> -#define AMDGPU_IB_FLAG_PREAMBLE (1<<2)
> +/* Preemptible */
> +#define AMDGPU_IB_FLAG_PREEMPT (1<<2)
>   
>   struct drm_amdgpu_cs_chunk_ib {
>   	/**


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

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

* Re: [PATCH] drm:IB flag cleanups
       [not found]         ` <DM5PR12MB1610ABF81142B5163C909783842E0-2J9CzHegvk++jCVTvoAFKAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
@ 2017-03-08 11:01           ` Christian König
  0 siblings, 0 replies; 4+ messages in thread
From: Christian König @ 2017-03-08 11:01 UTC (permalink / raw)
  To: Liu, Monk, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Am 08.03.2017 um 11:22 schrieb Liu, Monk:
> Rebase done: will send out another patch for review
>
>> Additional to that I would provide the implementation (e.g. forwarding it to the IB command) for the PREEMPT flag in the same patch.
> No, we don't have such imple, because this flag will be tagged by UMD, instead of by libdrm

Ups, my fault. Thought that this would be a kernel patch.

But we usually change the kernel side first, wait till that is upstream 
and then merge the changes back into libdrm.

And on the kernel side we should have the implementation to forward that 
bit from the IOCTL to the IB command. Should be a trivial one or two liner.

Christian.

>
> BR Monk
>
> -----Original Message-----
> From: Christian König [mailto:deathsimple@vodafone.de]
> Sent: Wednesday, March 08, 2017 5:59 PM
> To: Liu, Monk <Monk.Liu@amd.com>; amd-gfx@lists.freedesktop.org
> Subject: Re: [PATCH] drm:IB flag cleanups
>
> Please rebase that on the amd-staging-4.9 branch, the GDS flag never made it upstream.
>
> Additional to that I would provide the implementation (e.g. forwarding it to the IB command) for the PREEMPT flag in the same patch.
>
> Christian.
>
> Am 08.03.2017 um 09:13 schrieb Monk Liu:
>> we don't use FLAG_GDS actually, and we need PREEMPT flag
>>
>> Change-Id: I87f704e3fa97d7a7ffa956f0c94b77c333de380d
>> Signed-off-by: Monk Liu <Monk.Liu@amd.com>
>> ---
>>    include/drm/amdgpu_drm.h | 8 ++++----
>>    1 file changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/include/drm/amdgpu_drm.h b/include/drm/amdgpu_drm.h index
>> 89a938a..624819c 100644
>> --- a/include/drm/amdgpu_drm.h
>> +++ b/include/drm/amdgpu_drm.h
>> @@ -375,11 +375,11 @@ union drm_amdgpu_cs {
>>    /* This IB should be submitted to CE */
>>    #define AMDGPU_IB_FLAG_CE	(1<<0)
>>    
>> -/* GDS is used by this IB */
>> -#define AMDGPU_IB_FLAG_GDS	(1<<1)
>> +/* Preamble */
>> +#define AMDGPU_IB_FLAG_PREAMBLE (1<<1)
>>    
>> -/* CE Preamble */
>> -#define AMDGPU_IB_FLAG_PREAMBLE (1<<2)
>> +/* Preemptible */
>> +#define AMDGPU_IB_FLAG_PREEMPT (1<<2)
>>    
>>    struct drm_amdgpu_cs_chunk_ib {
>>    	/**
>
> _______________________________________________
> 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] 4+ messages in thread

end of thread, other threads:[~2017-03-08 11:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-08  8:13 [PATCH] drm:IB flag cleanups Monk Liu
     [not found] ` <1488960799-16734-1-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-03-08  9:58   ` Christian König
     [not found]     ` <923dd0b3-ae84-c343-c436-00543f91364d-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-03-08 10:22       ` Liu, Monk
     [not found]         ` <DM5PR12MB1610ABF81142B5163C909783842E0-2J9CzHegvk++jCVTvoAFKAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-03-08 11:01           ` 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.