linux-next: build failure after merge of the drm-misc tree
Subsystems (3)
Hi all,
After merging the drm-misc tree, today's linux-next build (x86_64 allmodconfig) failed like this:
drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c: In function 'amdgpu_preempt_mgr_new':drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c:75:5: error: 'struct ttm_resource' has no member named 'mm_node'
75 | mem->mm_node = NULL;
| ^~
drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c: At top level:
drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c:129:11: error: initialization of 'int (*)(struct ttm_resource_manager *, struct ttm_buffer_object *, const struct ttm_place *, struct ttm_resource **)' from incompatible pointer type 'int (*)(struct ttm_resource_manager *, struct ttm_buffer_object *, const struct ttm_place *, struct ttm_resource *)' [-Werror=incompatible-pointer-types]
129 | .alloc = amdgpu_preempt_mgr_new,
| ^~~~~~~~~~~~~~~~~~~~~~drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c:129:11: note: (near initialization for 'amdgpu_preempt_mgr_func.alloc')
Caused by commit
cb1c81467af3 ("drm/ttm: flip the switch for driver allocated resources v2")
from the drm-misc tree interacting with commit
b453e42a6e8b ("drm/amdgpu: Add new placement for preemptible SG BOs")
from the drm tree.
I don't know how to fix this, so I added the following hack (a better fix would be nice):
From: Stephen Rothwell <[email protected]>
Date: Tue, 8 Jun 2021 12:41:16 +1000
Subject: [PATCH] hack fix up for needed amdgpu_preempt_mgr_new() fix up
--- drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c +3 -1
@@ -66,14 +66,16 @@ static DEVICE_ATTR_RO(mem_info_preempt_used);static int amdgpu_preempt_mgr_new (struct ttm_resource_manager *man,struct ttm_buffer_object *tbo,const struct ttm_place *place, -struct ttm_resource *mem) +struct ttm_resource **res) { +#if 0 struct amdgpu_preempt_mgr *mgr =to_preempt_mgr (man);atomic64_add (mem->num_pages, &mgr->used); mem->mm_node =NULL ; mem->start =AMDGPU_BO_INVALID_OFFSET ; +#endif return 0 ; }
Signature · 5 lines
2.30.2 -- Cheers, Stephen Rothwell
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BUILD: failure for linux-next: build failure after merge of the drm-misc tree
== Series Details ==
== Series Details ==
Series: linux-next: build failure after merge of the drm-misc tree
URL : https://patchwork.freedesktop.org/series/91132/
State : failure
== Summary ==
Applying: linux-next: build failure after merge of the drm-misc tree Using index info to reconstruct a base tree...
M drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c
Falling back to patching base and 3-way merge...
Auto-merging drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c
CONFLICT (content): Merge conflict in drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch Patch failed at 0001 linux-next: build failure after merge of the drm-misc tree When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Hi Christian,
I based amdgpu_preempt_mgr on amdgpu_gtt_mgr and now I'm looking at what changed there. Looks like I'll need to create a dummy node in amdgpu_preempt_mgr_new to satisfy TTM, and free it in amdgpu_preempt_mgr_del.
Thanks,
Felix
Am 2021-06-07 um 10:50 p.m. schrieb Stephen Rothwell:
Quoted 59 lines
Hi all,
After merging the drm-misc tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c: In function 'amdgpu_preempt_mgr_new':drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c:75:5: error: 'structttm_resource' has no member named 'mm_node'75 | mem->mm_node = NULL; | ^~ drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c: At top level: drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c:129:11: error: initialization of 'int (*)(struct ttm_resource_manager *, struct ttm_buffer_object *, const struct ttm_place *, struct ttm_resource **)' from incompatible pointer type 'int (*)(struct ttm_resource_manager *, struct ttm_buffer_object *, const struct ttm_place *, struct ttm_resource *)' [-Werror=incompatible-pointer-types] 129 | .alloc = amdgpu_preempt_mgr_new, | ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c:129:11: note: (near initialization for 'amdgpu_preempt_mgr_func.alloc')Caused by commit
cb1c81467af3("drm/ttm: flip the switch for driver allocated resources v2")from the drm-misc tree interacting with commit
b453e42a6e8b("drm/amdgpu: Add new placement for preemptible SG BOs")from the drm tree.
I don't know how to fix this, so I added the following hack (a better fix would be nice):
From: Stephen Rothwell <[email protected]>
Date: Tue, 8 Jun 2021 12:41:16 +1000
Subject: [PATCH] hack fix up for neededamdgpu_preempt_mgr_new()fix upSigned-off-by Stephen Rothwell <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c +3
-1@@ -66,14 +66,16 @@ static DEVICE_ATTR_RO(mem_info_preempt_used);static int amdgpu_preempt_mgr_new (struct ttm_resource_manager *man,struct ttm_buffer_object *tbo,const struct ttm_place *place, -struct ttm_resource *mem) +struct ttm_resource **res) { +#if 0 struct amdgpu_preempt_mgr *mgr =to_preempt_mgr (man);atomic64_add (mem->num_pages, &mgr->used); mem->mm_node =NULL ; mem->start =AMDGPU_BO_INVALID_OFFSET ; +#endif return 0 ; }
Christian König
maintainerHi Felix,
that should already be fixed in drm-tip as part of the merge of the TTM changes.
Regards,
Christian.
Am 08.06.21 um 07:37 schrieb Felix Kuehling:
Quoted 71 lines
Hi Christian,
I based
amdgpu_preempt_mgronamdgpu_gtt_mgrand now I'm looking at what changed there. Looks like I'll need to create a dummy node inamdgpu_preempt_mgr_newto satisfy TTM, and free it inamdgpu_preempt_mgr_del.Thanks,
FelixAm 2021-06-07 um 10:50 p.m. schrieb Stephen Rothwell:
Quoted 59 lines
Hi all,
After merging the drm-misc tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c: In function 'amdgpu_preempt_mgr_new':drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c:75:5: error: 'structttm_resource' has no member named 'mm_node'75 | mem->mm_node = NULL; | ^~ drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c: At top level: drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c:129:11: error: initialization of 'int (*)(struct ttm_resource_manager *, struct ttm_buffer_object *, const struct ttm_place *, struct ttm_resource **)' from incompatible pointer type 'int (*)(struct ttm_resource_manager *, struct ttm_buffer_object *, const struct ttm_place *, struct ttm_resource *)' [-Werror=incompatible-pointer-types] 129 | .alloc = amdgpu_preempt_mgr_new, | ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c:129:11: note: (near initialization for 'amdgpu_preempt_mgr_func.alloc')Caused by commit
cb1c81467af3("drm/ttm: flip the switch for driver allocated resources v2")from the drm-misc tree interacting with commit
b453e42a6e8b("drm/amdgpu: Add new placement for preemptible SG BOs")from the drm tree.
I don't know how to fix this, so I added the following hack (a better fix would be nice):
From: Stephen Rothwell <[email protected]>
Date: Tue, 8 Jun 2021 12:41:16 +1000
Subject: [PATCH] hack fix up for neededamdgpu_preempt_mgr_new()fix upSigned-off-by Stephen Rothwell <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c +3
-1@@ -66,14 +66,16 @@ static DEVICE_ATTR_RO(mem_info_preempt_used);static int amdgpu_preempt_mgr_new (struct ttm_resource_manager *man,struct ttm_buffer_object *tbo,const struct ttm_place *place, -struct ttm_resource *mem) +struct ttm_resource **res) { +#if 0 struct amdgpu_preempt_mgr *mgr =to_preempt_mgr (man);atomic64_add (mem->num_pages, &mgr->used); mem->mm_node =NULL ; mem->start =AMDGPU_BO_INVALID_OFFSET ; +#endif return 0 ; }
Am 2021-06-08 um 2:55 a.m. schrieb Christian König:
Quoted 4 lines
Hi Felix,
that should already be fixed in drm-tip as part of the merge of the TTM changes.
No, the preempt_mgr doesn't exist in drm-misc-next. It does exist in drm-next, but that doesn't seem to have the TTM changes yet.
Is there another DRM branch or repository that you're referring to with drm-tip?
Regards,
Felix
Quoted 87 lines
Regards,
Christian.Am 08.06.21 um 07:37 schrieb Felix Kuehling:
Quoted 81 lines
Hi Christian,
I based
amdgpu_preempt_mgronamdgpu_gtt_mgrand now I'm looking at what changed there. Looks like I'll need to create a dummy node inamdgpu_preempt_mgr_newto satisfy TTM, and free it inamdgpu_preempt_mgr_del.Thanks,
FelixAm 2021-06-07 um 10:50 p.m. schrieb Stephen Rothwell:
Quoted 69 lines
Hi all,
After merging the drm-misc tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c: In function 'amdgpu_preempt_mgr_new':drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c:75:5: error: 'structttm_resource' has no member named 'mm_node'
75 |mem->mm_node= NULL;
| ^~drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c: At top level:drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c:129:11: error:
initialization of 'int (*)(structttm_resource_manager*, structttm_buffer_object*, const structttm_place*, structttm_resource**)' from incompatible pointer type 'int (*)(structttm_resource_manager*, structttm_buffer_object*, const structttm_place*, structttm_resource*)' [-Werror=incompatible-pointer-types]
129 | .alloc =amdgpu_preempt_mgr_new,
| ^~~~~~~~~~~~~~~~~~~~~~drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c:129:11: note: (near initialization for 'amdgpu_preempt_mgr_func.alloc')Caused by commit
cb1c81467af3("drm/ttm: flip the switch for driver allocated resources v2")from the drm-misc tree interacting with commit
b453e42a6e8b("drm/amdgpu: Add new placement for preemptible SG BOs")from the drm tree.
I don't know how to fix this, so I added the following hack (a better fix would be nice):
From: Stephen Rothwell <[email protected]>
Date: Tue, 8 Jun 2021 12:41:16 +1000
Subject: [PATCH] hack fix up for neededamdgpu_preempt_mgr_new()fix upSigned-off-by Stephen Rothwell <[email protected]>---
drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c| 4 +++-1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c +3
-1@@ -66,14 +66,16 @@ static DEVICE_ATTR_RO(mem_info_preempt_used); static int amdgpu_preempt_mgr_new(struct ttm_resource_manager *man, struct ttm_buffer_object *tbo, const struct ttm_place *place, - struct ttm_resource *mem) + struct ttm_resource **res) { +#if 0 struct amdgpu_preempt_mgr *mgr = to_preempt_mgr(man); atomic64_add(mem->num_pages, &mgr->used); mem->mm_node = NULL; mem->start = AMDGPU_BO_INVALID_OFFSET; +#endif return 0; }
Christian König
maintainerAm 08.06.21 um 09:06 schrieb Felix Kuehling:
Quoted 10 lines
Am 2021-06-08 um 2:55 a.m. schrieb Christian König:
Quoted 4 lines
Hi Felix,
that should already be fixed in drm-tip as part of the merge of the TTM changes.
No, the
preempt_mgrdoesn't exist in drm-misc-next. It does exist in drm-next, but that doesn't seem to have the TTM changes yet.Is there another DRM branch or repository that you're referring to with drm-tip?
drm-tip is an integration branch for conflict resolution.
E.g. when we have changes in drm-misc-next which break when we merge with drm-next I'm informed and need to provide a conflict resolution patch.
This is automatically applied when drm-next and drm-misc-next are merged together again.
It just looks like that drm-next and drm-misc-next are merged manually into linux-next and then the conflict resolution doesn't apply and everything breaks into pieces.
Adding Daniel as well. How should that be handled? Should we merge drm-misc-next into drm-next now?
Thanks,
Christian.
Quoted 89 lines
Regards,
FelQuoted 85 lines
Regards,
Christian.Am 08.06.21 um 07:37 schrieb Felix Kuehling:
Quoted 81 lines
Hi Christian,
I based
amdgpu_preempt_mgronamdgpu_gtt_mgrand now I'm looking at what changed there. Looks like I'll need to create a dummy node inamdgpu_preempt_mgr_newto satisfy TTM, and free it inamdgpu_preempt_mgr_del.Thanks,
FelixAm 2021-06-07 um 10:50 p.m. schrieb Stephen Rothwell:
Quoted 69 lines
Hi all,
After merging the drm-misc tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c: In function 'amdgpu_preempt_mgr_new':drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c:75:5: error: 'structttm_resource' has no member named 'mm_node'
75 |mem->mm_node= NULL;
| ^~drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c: At top level:drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c:129:11: error:
initialization of 'int (*)(structttm_resource_manager*, structttm_buffer_object*, const structttm_place*, structttm_resource**)' from incompatible pointer type 'int (*)(structttm_resource_manager*, structttm_buffer_object*, const structttm_place*, structttm_resource*)' [-Werror=incompatible-pointer-types]
129 | .alloc =amdgpu_preempt_mgr_new,
| ^~~~~~~~~~~~~~~~~~~~~~drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c:129:11: note: (near initialization for 'amdgpu_preempt_mgr_func.alloc')Caused by commit
cb1c81467af3("drm/ttm: flip the switch for driver allocated
resources v2")from the drm-misc tree interacting with commit
b453e42a6e8b("drm/amdgpu: Add new placement for preemptible SG
BOs")from the drm tree.
I don't know how to fix this, so I added the following hack (a better fix would be nice):
From: Stephen Rothwell <[email protected]>
Date: Tue, 8 Jun 2021 12:41:16 +1000
Subject: [PATCH] hack fix up for neededamdgpu_preempt_mgr_new()fix upSigned-off-by Stephen Rothwell <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c +3
-1@@ -66,14 +66,16 @@ static DEVICE_ATTR_RO(mem_info_preempt_used); static int amdgpu_preempt_mgr_new(struct ttm_resource_manager *man, struct ttm_buffer_object *tbo, const struct ttm_place *place, - struct ttm_resource *mem) + struct ttm_resource **res) { +#if 0 struct amdgpu_preempt_mgr *mgr = to_preempt_mgr(man); atomic64_add(mem->num_pages, &mgr->used); mem->mm_node = NULL; mem->start = AMDGPU_BO_INVALID_OFFSET; +#endif return 0; }
Quoted 20 lines · Christian König
Am 08.06.21 um 09:06 schrieb Felix Kuehling:
Quoted 10 lines
Am 2021-06-08 um 2:55 a.m. schrieb Christian König:
Quoted 4 lines
Hi Felix,
that should already be fixed in drm-tip as part of the merge of the TTM changes.
No, the
preempt_mgrdoesn't exist in drm-misc-next. It does exist in drm-next, but that doesn't seem to have the TTM changes yet.Is there another DRM branch or repository that you're referring to with drm-tip?
drm-tip is an integration branch for conflict resolution.
E.g. when we have changes in drm-misc-next which break when we merge with drm-next I'm informed and need to provide a conflict resolution patch.
This is automatically applied when drm-next and drm-misc-next are merged together again.
Quoted 6 lines
It just looks like that drm-next and drm-misc-next are merged manually into linux-next and then the conflict resolution doesn't apply and everything breaks into pieces.
Adding Daniel as well. How should that be handled? Should we merge drm-misc-next into drm-next now?
Yeah I'm expecting there will be a pull request this week. I've given Dave Airlie a headsup that the conflict is "interesting" and that maybe he needs to push out a test branch for you and Thomas Hellstrom to review/test first.
-Daniel
Quoted 93 lines
Thanks,
Christian.Quoted 88 lines
Regards,
FelQuoted 84 lines
Regards,
Christian.Am 08.06.21 um 07:37 schrieb Felix Kuehling:
Quoted 80 lines
Hi Christian,
I based
amdgpu_preempt_mgronamdgpu_gtt_mgrand now I'm looking at what changed there. Looks like I'll need to create a dummy node inamdgpu_preempt_mgr_newto satisfy TTM, and free it inamdgpu_preempt_mgr_del.Thanks,
FelixAm 2021-06-07 um 10:50 p.m. schrieb Stephen Rothwell:
Quoted 68 lines
Hi all,
After merging the drm-misc tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c: In function 'amdgpu_preempt_mgr_new':drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c:75:5: error: 'structttm_resource' has no member named 'mm_node'
75 |mem->mm_node= NULL;
| ^~drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c: At top level:drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c:129:11: error:
initialization of 'int (*)(structttm_resource_manager*, structttm_buffer_object*, const structttm_place*, structttm_resource**)' from incompatible pointer type 'int (*)(structttm_resource_manager*, structttm_buffer_object*, const structttm_place*, structttm_resource*)' [-Werror=incompatible-pointer-types]
129 | .alloc =amdgpu_preempt_mgr_new,
| ^~~~~~~~~~~~~~~~~~~~~~drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c:129:11: note: (near initialization for 'amdgpu_preempt_mgr_func.alloc')Caused by commit
cb1c81467af3("drm/ttm: flip the switch for driver allocated
resources v2")from the drm-misc tree interacting with commit
b453e42a6e8b("drm/amdgpu: Add new placement for preemptible SG
BOs")from the drm tree.
I don't know how to fix this, so I added the following hack (a better fix would be nice):
From: Stephen Rothwell <[email protected]>
Date: Tue, 8 Jun 2021 12:41:16 +1000
Subject: [PATCH] hack fix up for neededamdgpu_preempt_mgr_new()fix upSigned-off-by Stephen Rothwell <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c +3
-1@@ -66,14 +66,16 @@ static DEVICE_ATTR_RO(mem_info_preempt_used); static int amdgpu_preempt_mgr_new(struct ttm_resource_manager *man, struct ttm_buffer_object *tbo, const struct ttm_place *place, - struct ttm_resource *mem) + struct ttm_resource **res) { +#if 0 struct amdgpu_preempt_mgr *mgr = to_preempt_mgr(man); atomic64_add(mem->num_pages, &mgr->used); mem->mm_node = NULL; mem->start = AMDGPU_BO_INVALID_OFFSET; +#endif return 0; }
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch