drm:IB flag cleanups
PATCH 1/1 drm:IB flag cleanups
we don't use FLAG_GDS actually, and we need PREEMPT flag
--- include/drm/amdgpu_drm.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
include/drm/amdgpu_drm.h +4 -4
@@ -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 {/**
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1488960799-16734-1-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org
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:
Quoted 18 lines
we don't use
FLAG_GDSactually, and we need PREEMPT flagChange-Id I87f704e3fa97d7a7ffa956f0c94b77c333de380dSigned-off-by Monk Liu <[email protected]>--- include/drm/amdgpu_drm.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)include/drm/amdgpu_drm.h +0
-2@@ -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)
include/drm/amdgpu_drm.h union drm_amdgpu_cs { · line 385
Quoted 10 lines
include/drm/amdgpu_drm.h +4
-2+/* 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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 923dd0b3-ae84-c343-c436-00543f91364d-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org
Rebase done: will send out another patch for review
Quoted 1 line
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:[email protected]]
Sent: Wednesday, March 08, 2017 5:59 PM
To: Liu, Monk <[email protected]>; [email protected]
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:
Quoted 18 lines
we don't use
FLAG_GDSactually, and we need PREEMPT flagChange-Id I87f704e3fa97d7a7ffa956f0c94b77c333de380dSigned-off-by Monk Liu <[email protected]>--- include/drm/amdgpu_drm.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)include/drm/amdgpu_drm.h index renamed from include/drm/amdgpu_drm.h +0
-089a938a..624819c 100644
include/drm/amdgpu_drm.h +0
-2@@ -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)
include/drm/amdgpu_drm.h union drm_amdgpu_cs { · line 385
Quoted 10 lines
include/drm/amdgpu_drm.h +4
-2+/* 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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): DM5PR12MB1610ABF81142B5163C909783842E0-2J9CzHegvk++jCVTvoAFKAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Am 08.03.2017 um 11:22 schrieb Liu, Monk:
Quoted 4 lines
Rebase done: will send out another patch for review
Quoted 1 line
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.
Quoted 42 lines
BR Monk
-----Original Message-----
From: Christian König [mailto:[email protected]]
Sent: Wednesday, March 08, 2017 5:59 PM
To: Liu, Monk <[email protected]>; [email protected]
Subject: Re: [PATCH] drm:IB flag cleanupsPlease 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:
Quoted 26 lines
we don't use
FLAG_GDSactually, and we need PREEMPT flagChange-Id I87f704e3fa97d7a7ffa956f0c94b77c333de380dSigned-off-by Monk Liu <[email protected]>--- include/drm/amdgpu_drm.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)include/drm/amdgpu_drm.h index renamed from include/drm/amdgpu_drm.h +0
-089a938a..624819c 100644
include/drm/amdgpu_drm.h +4
-4@@ -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)
Quoted 7 lines
include/drm/amdgpu_drm.h union drm_amdgpu_cs { · line 385
Quoted 2 lines
include/drm/amdgpu_drm.h +0
-0struct drm_amdgpu_cs_chunk_ib {/** _______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx