* linux-next: build failure after merge of the amdgpu tree
@ 2021-07-28 12:34 Mark Brown
0 siblings, 0 replies; 18+ messages in thread
From: Mark Brown @ 2021-07-28 12:34 UTC (permalink / raw)
To: Alex Deucher, Christian König, Pan Xinhui, Leung Martin,
Solomon Chiu, Mark Morra, Daniel Wheeler
Cc: dri-devel, Linux Next Mailing List, Linux Kernel Mailing List,
amd-gfx
Hi all,
After merging the amdgpu tree, today's linux-next build (x86
allmodconfig) failed like this:
ERROR: modpost: "dc_dsc_stream_bandwidth_in_kbps" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
Probably caused by commit
b6b76b0315ed7b ("drm/amd/display: Fixed EdidUtility build errors")
I've reverted to Monday's tree.
^ permalink raw reply [flat|nested] 18+ messages in thread* linux-next: build failure after merge of the amdgpu tree
@ 2024-08-19 1:56 Stephen Rothwell
0 siblings, 0 replies; 18+ messages in thread
From: Stephen Rothwell @ 2024-08-19 1:56 UTC (permalink / raw)
To: Alex Deucher, Dave Airlie
Cc: Christian König, DRI, Linux Kernel Mailing List,
Linux Next Mailing List
[-- Attachment #1: Type: text/plain, Size: 2148 bytes --]
Hi all,
After merging the amdgpu tree, today's linux-next build (x86_64
allmodconfig) failed like this:
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c: In function 'amdgpu_job_timedout':
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c:90:33: error: too many arguments to function 'drm_sched_start'
90 | drm_sched_start(&ring->sched, true);
| ^~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h:28,
from drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h:29,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:43,
from drivers/gpu/drm/amd/amdgpu/amdgpu_job.c:30:
include/drm/gpu_scheduler.h:582:6: note: declared here
582 | void drm_sched_start(struct drm_gpu_scheduler *sched);
| ^~~~~~~~~~~~~~~
Caused by commit
15789fa0f0e2 ("drm/amdgpu: add per ring reset support (v5)")
interacting with commit
83b501c1799a ("drm/scheduler: remove full_recover from drm_sched_start")
from the drm tree.
I have applied the following merge fix patch.
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Mon, 19 Aug 2024 11:46:24 +1000
Subject: [PATCH] fixup for "drm/amdgpu: add per ring reset support (v5)"
interacting with "drm/scheduler: remove full_recover from drm_sched_start"
from the drm tree.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
index c6a1783fc9ef..597489dea114 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
@@ -87,7 +87,7 @@ static enum drm_gpu_sched_stat amdgpu_job_timedout(struct drm_sched_job *s_job)
atomic_inc(&ring->adev->gpu_reset_counter);
amdgpu_fence_driver_force_completion(ring);
if (amdgpu_ring_sched_ready(ring))
- drm_sched_start(&ring->sched, true);
+ drm_sched_start(&ring->sched);
goto exit;
}
}
--
2.43.0
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply related [flat|nested] 18+ messages in thread[parent not found: <20231010124357.5251e100@canb.auug.org.au>]
* Re: linux-next: build failure after merge of the amdgpu tree
[not found] <20231010124357.5251e100@canb.auug.org.au>
@ 2023-10-19 1:06 ` Stephen Rothwell
2023-10-24 0:59 ` Stephen Rothwell
0 siblings, 1 reply; 18+ messages in thread
From: Stephen Rothwell @ 2023-10-19 1:06 UTC (permalink / raw)
To: Alex Deucher, Dave Airlie
Cc: Qingqing Zhuo, Rodrigo Siqueira, Roman Li, DRI,
Linux Kernel Mailing List, Linux Next Mailing List, Alex Deucher
[-- Attachment #1: Type: text/plain, Size: 1058 bytes --]
Hi all,
On Tue, 10 Oct 2023 12:43:57 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> After merging the amdgpu tree, today's linux-next build (x86_64
> allmodconfig) failed like this:
>
> drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.c: In function 'dml_core_mode_support':
> drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.c:8229:1: error: the frame size of 2736 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]
> 8229 | } // dml_core_mode_support
> | ^
> cc1: all warnings being treated as errors
>
> Caused by commit
>
> 7966f319c66d ("drm/amd/display: Introduce DML2")
>
> (or maybe something later that changed storage size).
>
> I have used the amdgpu tree from next-20231009 for today.
This build failure now (presumably) exists in the drm tree. I am still
applying the 2 patches from Rodrigo to my tree as a work around.
I would have expected that this was fixed in the amdgpu tree before
Dave was asked to merge it ...
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: linux-next: build failure after merge of the amdgpu tree
2023-10-19 1:06 ` Stephen Rothwell
@ 2023-10-24 0:59 ` Stephen Rothwell
2023-10-24 12:57 ` Alex Deucher
0 siblings, 1 reply; 18+ messages in thread
From: Stephen Rothwell @ 2023-10-24 0:59 UTC (permalink / raw)
To: Alex Deucher, Dave Airlie
Cc: Qingqing Zhuo, Rodrigo Siqueira, Roman Li, DRI,
Linux Kernel Mailing List, Linux Next Mailing List, Alex Deucher
[-- Attachment #1: Type: text/plain, Size: 1254 bytes --]
Hi all,
On Thu, 19 Oct 2023 12:06:18 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> On Tue, 10 Oct 2023 12:43:57 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> >
> > After merging the amdgpu tree, today's linux-next build (x86_64
> > allmodconfig) failed like this:
> >
> > drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.c: In function 'dml_core_mode_support':
> > drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.c:8229:1: error: the frame size of 2736 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]
> > 8229 | } // dml_core_mode_support
> > | ^
> > cc1: all warnings being treated as errors
> >
> > Caused by commit
> >
> > 7966f319c66d ("drm/amd/display: Introduce DML2")
> >
> > (or maybe something later that changed storage size).
> >
> > I have used the amdgpu tree from next-20231009 for today.
>
> This build failure now (presumably) exists in the drm tree. I am still
> applying the 2 patches from Rodrigo to my tree as a work around.
>
> I would have expected that this was fixed in the amdgpu tree before
> Dave was asked to merge it ...
Any progress here? I am still applying the 2 patches.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: linux-next: build failure after merge of the amdgpu tree
2023-10-24 0:59 ` Stephen Rothwell
@ 2023-10-24 12:57 ` Alex Deucher
2023-10-24 19:52 ` Alex Deucher
2023-10-24 21:47 ` Stephen Rothwell
0 siblings, 2 replies; 18+ messages in thread
From: Alex Deucher @ 2023-10-24 12:57 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Qingqing Zhuo, Rodrigo Siqueira, Roman Li, DRI,
Linux Kernel Mailing List, Linux Next Mailing List, Alex Deucher,
Dave Airlie
On Mon, Oct 23, 2023 at 8:59 PM Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Hi all,
>
> On Thu, 19 Oct 2023 12:06:18 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> >
> > On Tue, 10 Oct 2023 12:43:57 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> > >
> > > After merging the amdgpu tree, today's linux-next build (x86_64
> > > allmodconfig) failed like this:
> > >
> > > drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.c: In function 'dml_core_mode_support':
> > > drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.c:8229:1: error: the frame size of 2736 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]
> > > 8229 | } // dml_core_mode_support
> > > | ^
> > > cc1: all warnings being treated as errors
> > >
> > > Caused by commit
> > >
> > > 7966f319c66d ("drm/amd/display: Introduce DML2")
> > >
> > > (or maybe something later that changed storage size).
> > >
> > > I have used the amdgpu tree from next-20231009 for today.
> >
> > This build failure now (presumably) exists in the drm tree. I am still
> > applying the 2 patches from Rodrigo to my tree as a work around.
> >
> > I would have expected that this was fixed in the amdgpu tree before
> > Dave was asked to merge it ...
>
> Any progress here? I am still applying the 2 patches.
The two patches are in my -next tree and in the PR I sent last week.
Alex
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: linux-next: build failure after merge of the amdgpu tree
2023-10-24 12:57 ` Alex Deucher
@ 2023-10-24 19:52 ` Alex Deucher
2023-10-24 21:47 ` Stephen Rothwell
1 sibling, 0 replies; 18+ messages in thread
From: Alex Deucher @ 2023-10-24 19:52 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Qingqing Zhuo, Rodrigo Siqueira, Roman Li, DRI,
Linux Kernel Mailing List, Linux Next Mailing List, Alex Deucher,
Dave Airlie
On Tue, Oct 24, 2023 at 8:57 AM Alex Deucher <alexdeucher@gmail.com> wrote:
>
> On Mon, Oct 23, 2023 at 8:59 PM Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> >
> > Hi all,
> >
> > On Thu, 19 Oct 2023 12:06:18 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> > >
> > > On Tue, 10 Oct 2023 12:43:57 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> > > >
> > > > After merging the amdgpu tree, today's linux-next build (x86_64
> > > > allmodconfig) failed like this:
> > > >
> > > > drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.c: In function 'dml_core_mode_support':
> > > > drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.c:8229:1: error: the frame size of 2736 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]
> > > > 8229 | } // dml_core_mode_support
> > > > | ^
> > > > cc1: all warnings being treated as errors
> > > >
> > > > Caused by commit
> > > >
> > > > 7966f319c66d ("drm/amd/display: Introduce DML2")
> > > >
> > > > (or maybe something later that changed storage size).
> > > >
> > > > I have used the amdgpu tree from next-20231009 for today.
> > >
> > > This build failure now (presumably) exists in the drm tree. I am still
> > > applying the 2 patches from Rodrigo to my tree as a work around.
> > >
> > > I would have expected that this was fixed in the amdgpu tree before
> > > Dave was asked to merge it ...
> >
> > Any progress here? I am still applying the 2 patches.
>
> The two patches are in my -next tree and in the PR I sent last week.
Looks like the gitlab migration over the weekend lost some history.
I've fixed it up.
Alex
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: linux-next: build failure after merge of the amdgpu tree
2023-10-24 12:57 ` Alex Deucher
2023-10-24 19:52 ` Alex Deucher
@ 2023-10-24 21:47 ` Stephen Rothwell
1 sibling, 0 replies; 18+ messages in thread
From: Stephen Rothwell @ 2023-10-24 21:47 UTC (permalink / raw)
To: Alex Deucher
Cc: Qingqing Zhuo, Rodrigo Siqueira, Roman Li, DRI,
Linux Kernel Mailing List, Linux Next Mailing List, Alex Deucher,
Dave Airlie
[-- Attachment #1: Type: text/plain, Size: 212 bytes --]
Hi Alex,
On Tue, 24 Oct 2023 08:57:16 -0400 Alex Deucher <alexdeucher@gmail.com> wrote:
>
> The two patches are in my -next tree and in the PR I sent last week.
Thanks.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
* linux-next: build failure after merge of the amdgpu tree
@ 2023-05-19 0:06 Stephen Rothwell
2023-05-19 3:10 ` James Zhu
2023-05-19 13:38 ` Alex Deucher
0 siblings, 2 replies; 18+ messages in thread
From: Stephen Rothwell @ 2023-05-19 0:06 UTC (permalink / raw)
To: Alex Deucher
Cc: Linux Kernel Mailing List, DRI, Linux Next Mailing List,
Alex Deucher, Dave Airlie, James Zhu
[-- Attachment #1: Type: text/plain, Size: 565 bytes --]
Hi all,
After merging the amdgpu tree, today's linux-next build (x86_64
allmodconfig) failed like this:
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c: In function 'amdgpu_ctx_init':
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c:348:26: error: 'fpriv' undeclared (first use in this function)
348 | ctx->ctx_mgr = &(fpriv->ctx_mgr);
| ^~~~~
Caused by commit
2458393a4e98 ("drm/amdgpu: keep amdgpu_ctx_mgr in ctx structure")
I have used the amdgpu tree from next-20230518 for today.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: linux-next: build failure after merge of the amdgpu tree
2023-05-19 0:06 Stephen Rothwell
@ 2023-05-19 3:10 ` James Zhu
2023-05-19 13:38 ` Alex Deucher
1 sibling, 0 replies; 18+ messages in thread
From: James Zhu @ 2023-05-19 3:10 UTC (permalink / raw)
To: Stephen Rothwell, Alex Deucher
Cc: Linux Kernel Mailing List, DRI, Linux Next Mailing List,
Alex Deucher, Dave Airlie, James Zhu
Hi Stephen,
I saw
https://gitlab.freedesktop.org/agd5f/linux/-/blob/amd-staging-drm-next/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c#349
should not have this error.
Thanks!
James Zhu
On 2023-05-18 20:06, Stephen Rothwell wrote:
> Hi all,
>
> After merging the amdgpu tree, today's linux-next build (x86_64
> allmodconfig) failed like this:
>
> drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c: In function 'amdgpu_ctx_init':
> drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c:348:26: error: 'fpriv' undeclared (first use in this function)
> 348 | ctx->ctx_mgr = &(fpriv->ctx_mgr);
> | ^~~~~
>
> Caused by commit
>
> 2458393a4e98 ("drm/amdgpu: keep amdgpu_ctx_mgr in ctx structure")
>
> I have used the amdgpu tree from next-20230518 for today.
>
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: linux-next: build failure after merge of the amdgpu tree
2023-05-19 0:06 Stephen Rothwell
2023-05-19 3:10 ` James Zhu
@ 2023-05-19 13:38 ` Alex Deucher
1 sibling, 0 replies; 18+ messages in thread
From: Alex Deucher @ 2023-05-19 13:38 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Linux Kernel Mailing List, DRI, Linux Next Mailing List,
Alex Deucher, Dave Airlie, James Zhu
On Thu, May 18, 2023 at 8:06 PM Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Hi all,
>
> After merging the amdgpu tree, today's linux-next build (x86_64
> allmodconfig) failed like this:
>
> drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c: In function 'amdgpu_ctx_init':
> drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c:348:26: error: 'fpriv' undeclared (first use in this function)
> 348 | ctx->ctx_mgr = &(fpriv->ctx_mgr);
> | ^~~~~
>
> Caused by commit
>
> 2458393a4e98 ("drm/amdgpu: keep amdgpu_ctx_mgr in ctx structure")
>
> I have used the amdgpu tree from next-20230518 for today.
Lost part of that patch in a rebase. Fixed now.
Alex
>
> --
> Cheers,
> Stephen Rothwell
^ permalink raw reply [flat|nested] 18+ messages in thread
[parent not found: <20220307111342.105ce204@canb.auug.org.au>]
* linux-next: build failure after merge of the amdgpu tree
@ 2021-12-03 1:11 Stephen Rothwell
0 siblings, 0 replies; 18+ messages in thread
From: Stephen Rothwell @ 2021-12-03 1:11 UTC (permalink / raw)
To: Alex Deucher, Dave Airlie, DRI
Cc: Linux Next Mailing List, Flora Cui, Linux Kernel Mailing List
[-- Attachment #1: Type: text/plain, Size: 2206 bytes --]
Hi all,
After merging the amdgpu tree, today's linux-next build (x86_64
allmodconfig) failed like this:
drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c: In function 'amdgpu_vkms_sw_fini':
drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c:521:34: error: 'struct amdgpu_vkms_output' has no member named 'vblank_hrtimer'
521 | if (adev->amdgpu_vkms_output[i].vblank_hrtimer.function)
| ^
drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c:522:47: error: 'struct amdgpu_vkms_output' has no member named 'vblank_hrtimer'
522 | hrtimer_cancel(&adev->amdgpu_vkms_output[i].vblank_hrtimer);
| ^
Caused by commit
deefd07eedb7 ("drm/amdgpu: fix vkms crtc settings")
interacting with commit
3e467e478ed3 ("drm/amdgpu: cancel the correct hrtimer on exit")
from the drm-fixes tree. The problem is that this latter patch also
appears in the amdgpu tree as a different commit and git resolves it
incorrectly in the presence of the former commit :-(
I have applied the following merge fix patch.
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Fri, 3 Dec 2021 12:06:57 +1100
Subject: [PATCH] fix up for "drm/amdgpu: cancel the correct hrtimer on exit"
interacting with "drm/amdgpu: fix vkms crtc settings"
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c
index e07fc64b655e..6c62c45e3e3e 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c
@@ -518,8 +518,8 @@ static int amdgpu_vkms_sw_fini(void *handle)
int i = 0;
for (i = 0; i < adev->mode_info.num_crtc; i++)
- if (adev->amdgpu_vkms_output[i].vblank_hrtimer.function)
- hrtimer_cancel(&adev->amdgpu_vkms_output[i].vblank_hrtimer);
+ if (adev->mode_info.crtcs[i])
+ hrtimer_cancel(&adev->mode_info.crtcs[i]->vblank_timer);
kfree(adev->mode_info.bios_hardcoded_edid);
kfree(adev->amdgpu_vkms_output);
--
2.33.0
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply related [flat|nested] 18+ messages in thread* linux-next: build failure after merge of the amdgpu tree
@ 2021-09-17 0:57 Stephen Rothwell
0 siblings, 0 replies; 18+ messages in thread
From: Stephen Rothwell @ 2021-09-17 0:57 UTC (permalink / raw)
To: Alex Deucher, Daniel Vetter
Cc: Andrey Grodzovsky, Linux Kernel Mailing List,
Linux Next Mailing List, DRI, Intel Graphics
[-- Attachment #1: Type: text/plain, Size: 727 bytes --]
Hi all,
After merging the amdgpu tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:
In file included from include/drm/ttm/ttm_bo_driver.h:40,
from include/drm/drm_gem_ttm_helper.h:11,
from drivers/gpu/drm/drm_gem_ttm_helper.c:5:
include/drm/ttm/ttm_device.h:274:19: error: duplicate member 'pinned'
274 | struct list_head pinned;
| ^~~~~~
Caused by commit
59084e464297 ("drm/ttm: Create pinned list")
interacting with commit
32eadf52d449 ("drm/ttm: Create pinned list")
from the drm-misc tree.
The automatic merge proved incorrect, so I have removed one of the
insertions.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread* linux-next: build failure after merge of the amdgpu tree
@ 2021-02-05 2:12 Stephen Rothwell
0 siblings, 0 replies; 18+ messages in thread
From: Stephen Rothwell @ 2021-02-05 2:12 UTC (permalink / raw)
To: Alex Deucher, Dave Airlie, DRI
Cc: Linux Next Mailing List, Bhawanpreet Lakha,
Linux Kernel Mailing List, Arnd Bergmann
[-- Attachment #1.1: Type: text/plain, Size: 391 bytes --]
Hi all,
After merging the amdgpu tree, today's linux-next build (x86_64
allmodconfig) failed like this:
Caused by commit
13a75af50484 ("drm/amd/display: Fix unused variable warning")
interacting with commit
4c3a3292730c ("drm/amd/display: fix unused variable warning")
from the drm tree.
I reverted the drm tree commit for now.
--
Cheers,
Stephen Rothwell
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 18+ messages in thread[parent not found: <20200612102552.2d573ebb@canb.auug.org.au>]
* Re: linux-next: build failure after merge of the amdgpu tree
[not found] <20200612102552.2d573ebb@canb.auug.org.au>
@ 2020-06-26 1:47 ` Stephen Rothwell
0 siblings, 0 replies; 18+ messages in thread
From: Stephen Rothwell @ 2020-06-26 1:47 UTC (permalink / raw)
To: Alex Deucher
Cc: Mukul Joshi, Dave Airlie, Linux Kernel Mailing List, DRI,
Linux Next Mailing List, Andrew Morton, Christoph Hellwig
[-- Attachment #1.1: Type: text/plain, Size: 2046 bytes --]
Hi all,
On Fri, 12 Jun 2020 10:25:52 +1000 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> After merging the amdgpu tree, today's linux-next build (x86_64
> allmodconfig) failed like this:
>
> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c: In function 'kfd_sdma_activity_worker':
> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c:118:2: error: implicit declaration of function 'use_mm' [-Werror=implicit-function-declaration]
> 118 | use_mm(mm);
> | ^~~~~~
> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c:145:2: error: implicit declaration of function 'unuse_mm' [-Werror=implicit-function-declaration]
> 145 | unuse_mm(mm);
> | ^~~~~~~~
>
> Caused by commit
>
> 32cb59f31362 ("drm/amdkfd: Track SDMA utilization per process")
>
> interacting with commit
>
> f5678e7f2ac3 ("kernel: better document the use_mm/unuse_mm API contract")
>
> from Linus' tree.
>
> I have applied the following merge fix for today (that was previously
> part of the akpm tree).
The merge fix patch now looks like:
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Thu, 28 May 2020 20:15:34 +1000
Subject: [PATCH] drm/amdkfd: fix up for {un}use_mm() rename
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
drivers/gpu/drm/amd/amdkfd/kfd_process.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process.c b/drivers/gpu/drm/amd/amdkfd/kfd_process.c
index 013c2b018edc..40695d52e9a8 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_process.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_process.c
@@ -184,7 +184,7 @@ static void kfd_sdma_activity_worker(struct work_struct *work)
if (!mm)
goto cleanup;
- use_mm(mm);
+ kthread_use_mm(mm);
list_for_each_entry(sdma_q, &sdma_q_list.list, list) {
val = 0;
@@ -198,7 +198,7 @@ static void kfd_sdma_activity_worker(struct work_struct *work)
}
}
- unuse_mm(mm);
+ kthread_unuse_mm(mm);
mmput(mm);
/*
--
Cheers,
Stephen Rothwell
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 18+ messages in thread
[parent not found: <20190626212212.25b41df4@canb.auug.org.au>]
* Re: linux-next: build failure after merge of the amdgpu tree
[not found] <20190626212212.25b41df4@canb.auug.org.au>
@ 2019-06-27 3:35 ` Stephen Rothwell
2019-06-27 14:18 ` Alex Deucher
0 siblings, 1 reply; 18+ messages in thread
From: Stephen Rothwell @ 2019-06-27 3:35 UTC (permalink / raw)
To: Dave Airlie
Cc: Alex Deucher, Linux Next Mailing List, Linux Kernel Mailing List,
Hawking Zhang, Huang Rui, DRI
[-- Attachment #1: Type: text/plain, Size: 2710 bytes --]
Hi Dave,
On Wed, 26 Jun 2019 21:22:12 +1000 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Hi Alex,
>
> After merging the amdgpu tree, today's linux-next build (powerpc
> allyesconfig) failed like this:
>
> In file included from drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:25:
> drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c: In function 'gfx_v10_0_cp_gfx_resume':
> drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:2628:27: error: 'CP_RB1_CNTL__BUF_SWAP_MASK' undeclared (first use in this function); did you mean 'CP_RB_CNTL__BUF_SWAP_MASK'?
> tmp = REG_SET_FIELD(tmp, CP_RB1_CNTL, BUF_SWAP, 1);
> ^~~~~~~~~~~
> drivers/gpu/drm/amd/amdgpu/amdgpu.h:1067:36: note: in definition of macro 'REG_FIELD_MASK'
> #define REG_FIELD_MASK(reg, field) reg##__##field##_MASK
> ^~~
> drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:2628:8: note: in expansion of macro 'REG_SET_FIELD'
> tmp = REG_SET_FIELD(tmp, CP_RB1_CNTL, BUF_SWAP, 1);
> ^~~~~~~~~~~~~
> drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:2628:27: note: each undeclared identifier is reported only once for each function it appears in
> tmp = REG_SET_FIELD(tmp, CP_RB1_CNTL, BUF_SWAP, 1);
> ^~~~~~~~~~~
> drivers/gpu/drm/amd/amdgpu/amdgpu.h:1067:36: note: in definition of macro 'REG_FIELD_MASK'
> #define REG_FIELD_MASK(reg, field) reg##__##field##_MASK
> ^~~
> drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:2628:8: note: in expansion of macro 'REG_SET_FIELD'
> tmp = REG_SET_FIELD(tmp, CP_RB1_CNTL, BUF_SWAP, 1);
> ^~~~~~~~~~~~~
> drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:2628:27: error: 'CP_RB1_CNTL__BUF_SWAP__SHIFT' undeclared (first use in this function); did you mean 'CP_RB0_CNTL__BUF_SWAP__SHIFT'?
> tmp = REG_SET_FIELD(tmp, CP_RB1_CNTL, BUF_SWAP, 1);
> ^~~~~~~~~~~
> drivers/gpu/drm/amd/amdgpu/amdgpu.h:1066:37: note: in definition of macro 'REG_FIELD_SHIFT'
> #define REG_FIELD_SHIFT(reg, field) reg##__##field##__SHIFT
> ^~~
> drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:2628:8: note: in expansion of macro 'REG_SET_FIELD'
> tmp = REG_SET_FIELD(tmp, CP_RB1_CNTL, BUF_SWAP, 1);
> ^~~~~~~~~~~~~
>
> Caused by commit
>
> a644d85a5cd4 ("drm/amdgpu: add gfx v10 implementation (v10)")
>
> I have disabled that driver for today. Please let me know when it is
> fixed so that I can enable it again.
I assume that this has now been inherited by the drm tree (since there
has been no fix). So the AMD_GPU driver will still be disabled in
linux-next today as of the drm tree merge.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: linux-next: build failure after merge of the amdgpu tree
2019-06-27 3:35 ` Stephen Rothwell
@ 2019-06-27 14:18 ` Alex Deucher
2019-06-27 22:01 ` Stephen Rothwell
0 siblings, 1 reply; 18+ messages in thread
From: Alex Deucher @ 2019-06-27 14:18 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Dave Airlie, Linux Next Mailing List, Linux Kernel Mailing List,
Hawking Zhang, Huang Rui, DRI
On Wed, Jun 26, 2019 at 11:35 PM Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Hi Dave,
>
> On Wed, 26 Jun 2019 21:22:12 +1000 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> >
> > Hi Alex,
> >
> > After merging the amdgpu tree, today's linux-next build (powerpc
> > allyesconfig) failed like this:
> >
> > In file included from drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:25:
> > drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c: In function 'gfx_v10_0_cp_gfx_resume':
> > drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:2628:27: error: 'CP_RB1_CNTL__BUF_SWAP_MASK' undeclared (first use in this function); did you mean 'CP_RB_CNTL__BUF_SWAP_MASK'?
> > tmp = REG_SET_FIELD(tmp, CP_RB1_CNTL, BUF_SWAP, 1);
> > ^~~~~~~~~~~
> > drivers/gpu/drm/amd/amdgpu/amdgpu.h:1067:36: note: in definition of macro 'REG_FIELD_MASK'
> > #define REG_FIELD_MASK(reg, field) reg##__##field##_MASK
> > ^~~
> > drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:2628:8: note: in expansion of macro 'REG_SET_FIELD'
> > tmp = REG_SET_FIELD(tmp, CP_RB1_CNTL, BUF_SWAP, 1);
> > ^~~~~~~~~~~~~
> > drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:2628:27: note: each undeclared identifier is reported only once for each function it appears in
> > tmp = REG_SET_FIELD(tmp, CP_RB1_CNTL, BUF_SWAP, 1);
> > ^~~~~~~~~~~
> > drivers/gpu/drm/amd/amdgpu/amdgpu.h:1067:36: note: in definition of macro 'REG_FIELD_MASK'
> > #define REG_FIELD_MASK(reg, field) reg##__##field##_MASK
> > ^~~
> > drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:2628:8: note: in expansion of macro 'REG_SET_FIELD'
> > tmp = REG_SET_FIELD(tmp, CP_RB1_CNTL, BUF_SWAP, 1);
> > ^~~~~~~~~~~~~
> > drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:2628:27: error: 'CP_RB1_CNTL__BUF_SWAP__SHIFT' undeclared (first use in this function); did you mean 'CP_RB0_CNTL__BUF_SWAP__SHIFT'?
> > tmp = REG_SET_FIELD(tmp, CP_RB1_CNTL, BUF_SWAP, 1);
> > ^~~~~~~~~~~
> > drivers/gpu/drm/amd/amdgpu/amdgpu.h:1066:37: note: in definition of macro 'REG_FIELD_SHIFT'
> > #define REG_FIELD_SHIFT(reg, field) reg##__##field##__SHIFT
> > ^~~
> > drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:2628:8: note: in expansion of macro 'REG_SET_FIELD'
> > tmp = REG_SET_FIELD(tmp, CP_RB1_CNTL, BUF_SWAP, 1);
> > ^~~~~~~~~~~~~
> >
> > Caused by commit
> >
> > a644d85a5cd4 ("drm/amdgpu: add gfx v10 implementation (v10)")
> >
> > I have disabled that driver for today. Please let me know when it is
> > fixed so that I can enable it again.
>
> I assume that this has now been inherited by the drm tree (since there
> has been no fix). So the AMD_GPU driver will still be disabled in
> linux-next today as of the drm tree merge.
Fixed in this patch:
https://patchwork.freedesktop.org/patch/314527/?series=62866&rev=1
Alex
>
> --
> Cheers,
> Stephen Rothwell
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: linux-next: build failure after merge of the amdgpu tree
2019-06-27 14:18 ` Alex Deucher
@ 2019-06-27 22:01 ` Stephen Rothwell
0 siblings, 0 replies; 18+ messages in thread
From: Stephen Rothwell @ 2019-06-27 22:01 UTC (permalink / raw)
To: Alex Deucher
Cc: Dave Airlie, Linux Next Mailing List, Linux Kernel Mailing List,
Hawking Zhang, Huang Rui, DRI
[-- Attachment #1: Type: text/plain, Size: 324 bytes --]
Hi Alex,
On Thu, 27 Jun 2019 10:18:38 -0400 Alex Deucher <alexdeucher@gmail.com> wrote:
>
> Fixed in this patch:
> https://patchwork.freedesktop.org/patch/314527/?series=62866&rev=1
Thanks. I will manually apply that to the drm tree merge until it is
no longer necessary there.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2024-08-19 1:57 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-28 12:34 linux-next: build failure after merge of the amdgpu tree Mark Brown
-- strict thread matches above, loose matches on Subject: below --
2024-08-19 1:56 Stephen Rothwell
[not found] <20231010124357.5251e100@canb.auug.org.au>
2023-10-19 1:06 ` Stephen Rothwell
2023-10-24 0:59 ` Stephen Rothwell
2023-10-24 12:57 ` Alex Deucher
2023-10-24 19:52 ` Alex Deucher
2023-10-24 21:47 ` Stephen Rothwell
2023-05-19 0:06 Stephen Rothwell
2023-05-19 3:10 ` James Zhu
2023-05-19 13:38 ` Alex Deucher
[not found] <20220307111342.105ce204@canb.auug.org.au>
[not found] ` <YiYC2fQgf7d/QPSM@sirena.org.uk>
2022-03-08 11:15 ` Noralf Trønnes
2021-12-03 1:11 Stephen Rothwell
2021-09-17 0:57 Stephen Rothwell
2021-02-05 2:12 Stephen Rothwell
[not found] <20200612102552.2d573ebb@canb.auug.org.au>
2020-06-26 1:47 ` Stephen Rothwell
[not found] <20190626212212.25b41df4@canb.auug.org.au>
2019-06-27 3:35 ` Stephen Rothwell
2019-06-27 14:18 ` Alex Deucher
2019-06-27 22:01 ` Stephen Rothwell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox