* build failure of next-20220817 for amdgpu
@ 2022-08-17 22:02 ` Sudip Mukherjee (Codethink)
0 siblings, 0 replies; 23+ messages in thread
From: Sudip Mukherjee (Codethink) @ 2022-08-17 22:02 UTC (permalink / raw)
To: Alex Deucher, Christian König, Pan, Xinhui, David Airlie,
Daniel Vetter
Cc: amd-gfx, dri-devel, linux-kernel, linux-next
Hi All,
Not sure if it has been reported, build of next-20220817 fails with the
error:
ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
Trying to do a git bisect to find out the offending commit.
I will be happy to test any patch or provide any extra log if needed.
--
Regards
Sudip
^ permalink raw reply [flat|nested] 23+ messages in thread
* build failure of next-20220817 for amdgpu
@ 2022-08-17 22:02 ` Sudip Mukherjee (Codethink)
0 siblings, 0 replies; 23+ messages in thread
From: Sudip Mukherjee (Codethink) @ 2022-08-17 22:02 UTC (permalink / raw)
To: Alex Deucher, Christian König, Pan, Xinhui, David Airlie,
Daniel Vetter
Cc: linux-next, dri-devel, amd-gfx, linux-kernel
Hi All,
Not sure if it has been reported, build of next-20220817 fails with the
error:
ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
Trying to do a git bisect to find out the offending commit.
I will be happy to test any patch or provide any extra log if needed.
--
Regards
Sudip
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: build failure of next-20220817 for amdgpu
2022-08-17 22:02 ` Sudip Mukherjee (Codethink)
(?)
@ 2022-08-18 2:01 ` Alex Deucher
-1 siblings, 0 replies; 23+ messages in thread
From: Alex Deucher @ 2022-08-18 2:01 UTC (permalink / raw)
To: Sudip Mukherjee (Codethink)
Cc: Alex Deucher, Christian König, Pan, Xinhui, David Airlie,
Daniel Vetter, linux-next, dri-devel, amd-gfx, linux-kernel
On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink)
<sudipm.mukherjee@gmail.com> wrote:
>
> Hi All,
>
> Not sure if it has been reported, build of next-20220817 fails with the
> error:
>
> ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
>
> Trying to do a git bisect to find out the offending commit.
>
Thanks. I don't see that symbol in the driver at all. Not sure where
it is coming from.
Alex
> I will be happy to test any patch or provide any extra log if needed.
>
>
> --
> Regards
> Sudip
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: build failure of next-20220817 for amdgpu
@ 2022-08-18 2:01 ` Alex Deucher
0 siblings, 0 replies; 23+ messages in thread
From: Alex Deucher @ 2022-08-18 2:01 UTC (permalink / raw)
To: Sudip Mukherjee (Codethink)
Cc: David Airlie, Pan, Xinhui, linux-kernel, dri-devel, linux-next,
amd-gfx, Daniel Vetter, Alex Deucher, Christian König
On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink)
<sudipm.mukherjee@gmail.com> wrote:
>
> Hi All,
>
> Not sure if it has been reported, build of next-20220817 fails with the
> error:
>
> ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
>
> Trying to do a git bisect to find out the offending commit.
>
Thanks. I don't see that symbol in the driver at all. Not sure where
it is coming from.
Alex
> I will be happy to test any patch or provide any extra log if needed.
>
>
> --
> Regards
> Sudip
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: build failure of next-20220817 for amdgpu
@ 2022-08-18 2:01 ` Alex Deucher
0 siblings, 0 replies; 23+ messages in thread
From: Alex Deucher @ 2022-08-18 2:01 UTC (permalink / raw)
To: Sudip Mukherjee (Codethink)
Cc: David Airlie, Pan, Xinhui, linux-kernel, dri-devel, linux-next,
amd-gfx, Alex Deucher, Christian König
On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink)
<sudipm.mukherjee@gmail.com> wrote:
>
> Hi All,
>
> Not sure if it has been reported, build of next-20220817 fails with the
> error:
>
> ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
>
> Trying to do a git bisect to find out the offending commit.
>
Thanks. I don't see that symbol in the driver at all. Not sure where
it is coming from.
Alex
> I will be happy to test any patch or provide any extra log if needed.
>
>
> --
> Regards
> Sudip
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: build failure of next-20220817 for amdgpu
2022-08-18 2:01 ` Alex Deucher
(?)
@ 2022-08-18 2:09 ` Randy Dunlap
-1 siblings, 0 replies; 23+ messages in thread
From: Randy Dunlap @ 2022-08-18 2:09 UTC (permalink / raw)
To: Alex Deucher, Sudip Mukherjee (Codethink)
Cc: Alex Deucher, Christian König, Pan, Xinhui, David Airlie,
Daniel Vetter, linux-next, dri-devel, amd-gfx, linux-kernel
On 8/17/22 19:01, Alex Deucher wrote:
> On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink)
> <sudipm.mukherjee@gmail.com> wrote:
>>
>> Hi All,
>>
>> Not sure if it has been reported, build of next-20220817 fails with the
>> error:
>>
>> ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
>>
>> Trying to do a git bisect to find out the offending commit.
>>
>
> Thanks. I don't see that symbol in the driver at all. Not sure where
> it is coming from.
>
It's powerpc only.
Sudip, is it non-CONFIG_SMP by any chance?
>
>
>> I will be happy to test any patch or provide any extra log if needed.
>>
>>
>> --
>> Regards
>> Sudip
--
~Randy
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: build failure of next-20220817 for amdgpu
@ 2022-08-18 2:09 ` Randy Dunlap
0 siblings, 0 replies; 23+ messages in thread
From: Randy Dunlap @ 2022-08-18 2:09 UTC (permalink / raw)
To: Alex Deucher, Sudip Mukherjee (Codethink)
Cc: David Airlie, Pan, Xinhui, linux-kernel, dri-devel, linux-next,
amd-gfx, Alex Deucher, Christian König
On 8/17/22 19:01, Alex Deucher wrote:
> On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink)
> <sudipm.mukherjee@gmail.com> wrote:
>>
>> Hi All,
>>
>> Not sure if it has been reported, build of next-20220817 fails with the
>> error:
>>
>> ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
>>
>> Trying to do a git bisect to find out the offending commit.
>>
>
> Thanks. I don't see that symbol in the driver at all. Not sure where
> it is coming from.
>
It's powerpc only.
Sudip, is it non-CONFIG_SMP by any chance?
>
>
>> I will be happy to test any patch or provide any extra log if needed.
>>
>>
>> --
>> Regards
>> Sudip
--
~Randy
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: build failure of next-20220817 for amdgpu
@ 2022-08-18 2:09 ` Randy Dunlap
0 siblings, 0 replies; 23+ messages in thread
From: Randy Dunlap @ 2022-08-18 2:09 UTC (permalink / raw)
To: Alex Deucher, Sudip Mukherjee (Codethink)
Cc: David Airlie, Pan, Xinhui, linux-kernel, dri-devel, linux-next,
amd-gfx, Daniel Vetter, Alex Deucher, Christian König
On 8/17/22 19:01, Alex Deucher wrote:
> On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink)
> <sudipm.mukherjee@gmail.com> wrote:
>>
>> Hi All,
>>
>> Not sure if it has been reported, build of next-20220817 fails with the
>> error:
>>
>> ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
>>
>> Trying to do a git bisect to find out the offending commit.
>>
>
> Thanks. I don't see that symbol in the driver at all. Not sure where
> it is coming from.
>
It's powerpc only.
Sudip, is it non-CONFIG_SMP by any chance?
>
>
>> I will be happy to test any patch or provide any extra log if needed.
>>
>>
>> --
>> Regards
>> Sudip
--
~Randy
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: build failure of next-20220817 for amdgpu
2022-08-18 2:09 ` Randy Dunlap
(?)
@ 2022-08-18 10:43 ` Sudip Mukherjee
-1 siblings, 0 replies; 23+ messages in thread
From: Sudip Mukherjee @ 2022-08-18 10:43 UTC (permalink / raw)
To: Randy Dunlap
Cc: Alex Deucher, Alex Deucher, Christian König, Pan, Xinhui,
David Airlie, Daniel Vetter, linux-next, dri-devel,
amd-gfx mailing list, linux-kernel
On Thu, Aug 18, 2022 at 3:09 AM Randy Dunlap <rdunlap@infradead.org> wrote:
>
>
>
> On 8/17/22 19:01, Alex Deucher wrote:
> > On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink)
> > <sudipm.mukherjee@gmail.com> wrote:
> >>
> >> Hi All,
> >>
> >> Not sure if it has been reported, build of next-20220817 fails with the
> >> error:
> >>
> >> ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
> >>
> >> Trying to do a git bisect to find out the offending commit.
> >>
> >
> > Thanks. I don't see that symbol in the driver at all. Not sure where
> > it is coming from.
> >
>
> It's powerpc only.
>
> Sudip, is it non-CONFIG_SMP by any chance?
Ohhh.. really sorry for the incomplete report. I should not try to
mail while travelling.
The error is seen with powerpc allmodconfig and it has CONFIG_SMP=y.
--
Regards
Sudip
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: build failure of next-20220817 for amdgpu
@ 2022-08-18 10:43 ` Sudip Mukherjee
0 siblings, 0 replies; 23+ messages in thread
From: Sudip Mukherjee @ 2022-08-18 10:43 UTC (permalink / raw)
To: Randy Dunlap
Cc: David Airlie, Pan, Xinhui, linux-kernel, dri-devel, Alex Deucher,
linux-next, amd-gfx mailing list, Christian König
On Thu, Aug 18, 2022 at 3:09 AM Randy Dunlap <rdunlap@infradead.org> wrote:
>
>
>
> On 8/17/22 19:01, Alex Deucher wrote:
> > On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink)
> > <sudipm.mukherjee@gmail.com> wrote:
> >>
> >> Hi All,
> >>
> >> Not sure if it has been reported, build of next-20220817 fails with the
> >> error:
> >>
> >> ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
> >>
> >> Trying to do a git bisect to find out the offending commit.
> >>
> >
> > Thanks. I don't see that symbol in the driver at all. Not sure where
> > it is coming from.
> >
>
> It's powerpc only.
>
> Sudip, is it non-CONFIG_SMP by any chance?
Ohhh.. really sorry for the incomplete report. I should not try to
mail while travelling.
The error is seen with powerpc allmodconfig and it has CONFIG_SMP=y.
--
Regards
Sudip
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: build failure of next-20220817 for amdgpu
@ 2022-08-18 10:43 ` Sudip Mukherjee
0 siblings, 0 replies; 23+ messages in thread
From: Sudip Mukherjee @ 2022-08-18 10:43 UTC (permalink / raw)
To: Randy Dunlap
Cc: David Airlie, Pan, Xinhui, linux-kernel, dri-devel, Alex Deucher,
linux-next, amd-gfx mailing list, Daniel Vetter, Alex Deucher,
Christian König
On Thu, Aug 18, 2022 at 3:09 AM Randy Dunlap <rdunlap@infradead.org> wrote:
>
>
>
> On 8/17/22 19:01, Alex Deucher wrote:
> > On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink)
> > <sudipm.mukherjee@gmail.com> wrote:
> >>
> >> Hi All,
> >>
> >> Not sure if it has been reported, build of next-20220817 fails with the
> >> error:
> >>
> >> ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
> >>
> >> Trying to do a git bisect to find out the offending commit.
> >>
> >
> > Thanks. I don't see that symbol in the driver at all. Not sure where
> > it is coming from.
> >
>
> It's powerpc only.
>
> Sudip, is it non-CONFIG_SMP by any chance?
Ohhh.. really sorry for the incomplete report. I should not try to
mail while travelling.
The error is seen with powerpc allmodconfig and it has CONFIG_SMP=y.
--
Regards
Sudip
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: build failure of next-20220817 for amdgpu
2022-08-18 10:43 ` Sudip Mukherjee
(?)
@ 2022-08-18 15:10 ` Randy Dunlap
-1 siblings, 0 replies; 23+ messages in thread
From: Randy Dunlap @ 2022-08-18 15:10 UTC (permalink / raw)
To: Sudip Mukherjee
Cc: Alex Deucher, Alex Deucher, Christian König, Pan, Xinhui,
David Airlie, Daniel Vetter, linux-next, dri-devel,
amd-gfx mailing list, linux-kernel
On 8/18/22 03:43, Sudip Mukherjee wrote:
> On Thu, Aug 18, 2022 at 3:09 AM Randy Dunlap <rdunlap@infradead.org> wrote:
>>
>>
>>
>> On 8/17/22 19:01, Alex Deucher wrote:
>>> On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink)
>>> <sudipm.mukherjee@gmail.com> wrote:
>>>>
>>>> Hi All,
>>>>
>>>> Not sure if it has been reported, build of next-20220817 fails with the
>>>> error:
>>>>
>>>> ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
>>>>
>>>> Trying to do a git bisect to find out the offending commit.
>>>>
>>>
>>> Thanks. I don't see that symbol in the driver at all. Not sure where
>>> it is coming from.
>>>
>>
>> It's powerpc only.
>>
>> Sudip, is it non-CONFIG_SMP by any chance?
>
> Ohhh.. really sorry for the incomplete report. I should not try to
> mail while travelling.
>
> The error is seen with powerpc allmodconfig and it has CONFIG_SMP=y.
OK, I see that also, but it doesn't make any sense (to me).
I did 'objdump' on the code file (amdgpu.o) and it's listed as
undefined but there are no code references to it.
--
~Randy
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: build failure of next-20220817 for amdgpu
@ 2022-08-18 15:10 ` Randy Dunlap
0 siblings, 0 replies; 23+ messages in thread
From: Randy Dunlap @ 2022-08-18 15:10 UTC (permalink / raw)
To: Sudip Mukherjee
Cc: David Airlie, Pan, Xinhui, linux-kernel, dri-devel, Alex Deucher,
linux-next, amd-gfx mailing list, Christian König
On 8/18/22 03:43, Sudip Mukherjee wrote:
> On Thu, Aug 18, 2022 at 3:09 AM Randy Dunlap <rdunlap@infradead.org> wrote:
>>
>>
>>
>> On 8/17/22 19:01, Alex Deucher wrote:
>>> On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink)
>>> <sudipm.mukherjee@gmail.com> wrote:
>>>>
>>>> Hi All,
>>>>
>>>> Not sure if it has been reported, build of next-20220817 fails with the
>>>> error:
>>>>
>>>> ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
>>>>
>>>> Trying to do a git bisect to find out the offending commit.
>>>>
>>>
>>> Thanks. I don't see that symbol in the driver at all. Not sure where
>>> it is coming from.
>>>
>>
>> It's powerpc only.
>>
>> Sudip, is it non-CONFIG_SMP by any chance?
>
> Ohhh.. really sorry for the incomplete report. I should not try to
> mail while travelling.
>
> The error is seen with powerpc allmodconfig and it has CONFIG_SMP=y.
OK, I see that also, but it doesn't make any sense (to me).
I did 'objdump' on the code file (amdgpu.o) and it's listed as
undefined but there are no code references to it.
--
~Randy
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: build failure of next-20220817 for amdgpu
@ 2022-08-18 15:10 ` Randy Dunlap
0 siblings, 0 replies; 23+ messages in thread
From: Randy Dunlap @ 2022-08-18 15:10 UTC (permalink / raw)
To: Sudip Mukherjee
Cc: David Airlie, Pan, Xinhui, linux-kernel, dri-devel, Alex Deucher,
linux-next, amd-gfx mailing list, Daniel Vetter, Alex Deucher,
Christian König
On 8/18/22 03:43, Sudip Mukherjee wrote:
> On Thu, Aug 18, 2022 at 3:09 AM Randy Dunlap <rdunlap@infradead.org> wrote:
>>
>>
>>
>> On 8/17/22 19:01, Alex Deucher wrote:
>>> On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink)
>>> <sudipm.mukherjee@gmail.com> wrote:
>>>>
>>>> Hi All,
>>>>
>>>> Not sure if it has been reported, build of next-20220817 fails with the
>>>> error:
>>>>
>>>> ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
>>>>
>>>> Trying to do a git bisect to find out the offending commit.
>>>>
>>>
>>> Thanks. I don't see that symbol in the driver at all. Not sure where
>>> it is coming from.
>>>
>>
>> It's powerpc only.
>>
>> Sudip, is it non-CONFIG_SMP by any chance?
>
> Ohhh.. really sorry for the incomplete report. I should not try to
> mail while travelling.
>
> The error is seen with powerpc allmodconfig and it has CONFIG_SMP=y.
OK, I see that also, but it doesn't make any sense (to me).
I did 'objdump' on the code file (amdgpu.o) and it's listed as
undefined but there are no code references to it.
--
~Randy
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: build failure of next-20220817 for amdgpu due to 7bc913085765 ("drm/amdkfd: Try to schedule bottom half on same core")
2022-08-18 15:10 ` Randy Dunlap
(?)
@ 2022-08-18 19:15 ` Sudip Mukherjee
-1 siblings, 0 replies; 23+ messages in thread
From: Sudip Mukherjee @ 2022-08-18 19:15 UTC (permalink / raw)
To: Randy Dunlap, Felix Kuehling, Alex Deucher
Cc: Alex Deucher, Christian König, Pan, Xinhui, David Airlie,
Daniel Vetter, linux-next, dri-devel, amd-gfx mailing list,
linux-kernel
On Thu, Aug 18, 2022 at 4:10 PM Randy Dunlap <rdunlap@infradead.org> wrote:
>
>
>
> On 8/18/22 03:43, Sudip Mukherjee wrote:
> > On Thu, Aug 18, 2022 at 3:09 AM Randy Dunlap <rdunlap@infradead.org> wrote:
> >>
> >>
> >>
> >> On 8/17/22 19:01, Alex Deucher wrote:
> >>> On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink)
> >>> <sudipm.mukherjee@gmail.com> wrote:
> >>>>
> >>>> Hi All,
> >>>>
> >>>> Not sure if it has been reported, build of next-20220817 fails with the
> >>>> error:
> >>>>
> >>>> ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
> >>>>
> >>>> Trying to do a git bisect to find out the offending commit.
> >>>>
> >>>
> >>> Thanks. I don't see that symbol in the driver at all. Not sure where
> >>> it is coming from.
> >>>
> >>
> >> It's powerpc only.
> >>
> >> Sudip, is it non-CONFIG_SMP by any chance?
> >
> > Ohhh.. really sorry for the incomplete report. I should not try to
> > mail while travelling.
> >
> > The error is seen with powerpc allmodconfig and it has CONFIG_SMP=y.
>
> OK, I see that also, but it doesn't make any sense (to me).
>
> I did 'objdump' on the code file (amdgpu.o) and it's listed as
> undefined but there are no code references to it.
cpu_smt_mask() is called by drivers/gpu/drm/amd/amdkfd/kfd_device.c.
and cpu_smt_mask() is an inline function in
arch/powerpc/include/asm/smp.h which is doing "return
per_cpu(cpu_smallcore_map, cpu);"
So, the offending commit is 7bc913085765 ("drm/amdkfd: Try to schedule
bottom half on same core").
--
Regards
Sudip
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: build failure of next-20220817 for amdgpu due to 7bc913085765 ("drm/amdkfd: Try to schedule bottom half on same core")
@ 2022-08-18 19:15 ` Sudip Mukherjee
0 siblings, 0 replies; 23+ messages in thread
From: Sudip Mukherjee @ 2022-08-18 19:15 UTC (permalink / raw)
To: Randy Dunlap, Felix Kuehling, Alex Deucher
Cc: David Airlie, Pan, Xinhui, linux-kernel, dri-devel, linux-next,
amd-gfx mailing list, Christian König
On Thu, Aug 18, 2022 at 4:10 PM Randy Dunlap <rdunlap@infradead.org> wrote:
>
>
>
> On 8/18/22 03:43, Sudip Mukherjee wrote:
> > On Thu, Aug 18, 2022 at 3:09 AM Randy Dunlap <rdunlap@infradead.org> wrote:
> >>
> >>
> >>
> >> On 8/17/22 19:01, Alex Deucher wrote:
> >>> On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink)
> >>> <sudipm.mukherjee@gmail.com> wrote:
> >>>>
> >>>> Hi All,
> >>>>
> >>>> Not sure if it has been reported, build of next-20220817 fails with the
> >>>> error:
> >>>>
> >>>> ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
> >>>>
> >>>> Trying to do a git bisect to find out the offending commit.
> >>>>
> >>>
> >>> Thanks. I don't see that symbol in the driver at all. Not sure where
> >>> it is coming from.
> >>>
> >>
> >> It's powerpc only.
> >>
> >> Sudip, is it non-CONFIG_SMP by any chance?
> >
> > Ohhh.. really sorry for the incomplete report. I should not try to
> > mail while travelling.
> >
> > The error is seen with powerpc allmodconfig and it has CONFIG_SMP=y.
>
> OK, I see that also, but it doesn't make any sense (to me).
>
> I did 'objdump' on the code file (amdgpu.o) and it's listed as
> undefined but there are no code references to it.
cpu_smt_mask() is called by drivers/gpu/drm/amd/amdkfd/kfd_device.c.
and cpu_smt_mask() is an inline function in
arch/powerpc/include/asm/smp.h which is doing "return
per_cpu(cpu_smallcore_map, cpu);"
So, the offending commit is 7bc913085765 ("drm/amdkfd: Try to schedule
bottom half on same core").
--
Regards
Sudip
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: build failure of next-20220817 for amdgpu due to 7bc913085765 ("drm/amdkfd: Try to schedule bottom half on same core")
@ 2022-08-18 19:15 ` Sudip Mukherjee
0 siblings, 0 replies; 23+ messages in thread
From: Sudip Mukherjee @ 2022-08-18 19:15 UTC (permalink / raw)
To: Randy Dunlap, Felix Kuehling, Alex Deucher
Cc: David Airlie, Pan, Xinhui, linux-kernel, dri-devel, linux-next,
amd-gfx mailing list, Daniel Vetter, Alex Deucher,
Christian König
On Thu, Aug 18, 2022 at 4:10 PM Randy Dunlap <rdunlap@infradead.org> wrote:
>
>
>
> On 8/18/22 03:43, Sudip Mukherjee wrote:
> > On Thu, Aug 18, 2022 at 3:09 AM Randy Dunlap <rdunlap@infradead.org> wrote:
> >>
> >>
> >>
> >> On 8/17/22 19:01, Alex Deucher wrote:
> >>> On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink)
> >>> <sudipm.mukherjee@gmail.com> wrote:
> >>>>
> >>>> Hi All,
> >>>>
> >>>> Not sure if it has been reported, build of next-20220817 fails with the
> >>>> error:
> >>>>
> >>>> ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
> >>>>
> >>>> Trying to do a git bisect to find out the offending commit.
> >>>>
> >>>
> >>> Thanks. I don't see that symbol in the driver at all. Not sure where
> >>> it is coming from.
> >>>
> >>
> >> It's powerpc only.
> >>
> >> Sudip, is it non-CONFIG_SMP by any chance?
> >
> > Ohhh.. really sorry for the incomplete report. I should not try to
> > mail while travelling.
> >
> > The error is seen with powerpc allmodconfig and it has CONFIG_SMP=y.
>
> OK, I see that also, but it doesn't make any sense (to me).
>
> I did 'objdump' on the code file (amdgpu.o) and it's listed as
> undefined but there are no code references to it.
cpu_smt_mask() is called by drivers/gpu/drm/amd/amdkfd/kfd_device.c.
and cpu_smt_mask() is an inline function in
arch/powerpc/include/asm/smp.h which is doing "return
per_cpu(cpu_smallcore_map, cpu);"
So, the offending commit is 7bc913085765 ("drm/amdkfd: Try to schedule
bottom half on same core").
--
Regards
Sudip
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: build failure of next-20220817 for amdgpu due to 7bc913085765 ("drm/amdkfd: Try to schedule bottom half on same core")
2022-08-18 19:15 ` Sudip Mukherjee
(?)
@ 2022-08-18 19:34 ` Randy Dunlap
-1 siblings, 0 replies; 23+ messages in thread
From: Randy Dunlap @ 2022-08-18 19:34 UTC (permalink / raw)
To: Sudip Mukherjee, Felix Kuehling, Alex Deucher
Cc: Alex Deucher, Christian König, Pan, Xinhui, David Airlie,
Daniel Vetter, linux-next, dri-devel, amd-gfx mailing list,
linux-kernel
Hi--
On 8/18/22 12:15, Sudip Mukherjee wrote:
> On Thu, Aug 18, 2022 at 4:10 PM Randy Dunlap <rdunlap@infradead.org> wrote:
>>
>>
>>
>> On 8/18/22 03:43, Sudip Mukherjee wrote:
>>> On Thu, Aug 18, 2022 at 3:09 AM Randy Dunlap <rdunlap@infradead.org> wrote:
>>>>
>>>>
>>>>
>>>> On 8/17/22 19:01, Alex Deucher wrote:
>>>>> On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink)
>>>>> <sudipm.mukherjee@gmail.com> wrote:
>>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> Not sure if it has been reported, build of next-20220817 fails with the
>>>>>> error:
>>>>>>
>>>>>> ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
>>>>>>
>>>>>> Trying to do a git bisect to find out the offending commit.
>>>>>>
>>>>>
>>>>> Thanks. I don't see that symbol in the driver at all. Not sure where
>>>>> it is coming from.
>>>>>
>>>>
>>>> It's powerpc only.
>>>>
>>>> Sudip, is it non-CONFIG_SMP by any chance?
>>>
>>> Ohhh.. really sorry for the incomplete report. I should not try to
>>> mail while travelling.
>>>
>>> The error is seen with powerpc allmodconfig and it has CONFIG_SMP=y.
>>
>> OK, I see that also, but it doesn't make any sense (to me).
>>
>> I did 'objdump' on the code file (amdgpu.o) and it's listed as
>> undefined but there are no code references to it.
>
> cpu_smt_mask() is called by drivers/gpu/drm/amd/amdkfd/kfd_device.c.
> and cpu_smt_mask() is an inline function in
> arch/powerpc/include/asm/smp.h which is doing "return
> per_cpu(cpu_smallcore_map, cpu);"
>
> So, the offending commit is 7bc913085765 ("drm/amdkfd: Try to schedule
> bottom half on same core").
Thanks for digging that up.
It just needs to have that symbol exported I think.
This builds cleanly now.
I can submit it or one of the AMD gfx developers can do so.
---
arch/powerpc/kernel/smp.c | 1 +
1 file changed, 1 insertion(+)
--- a/arch/powerpc/kernel/smp.c
+++ b/arch/powerpc/kernel/smp.c
@@ -86,6 +86,7 @@ DEFINE_PER_CPU(cpumask_var_t, cpu_core_m
static DEFINE_PER_CPU(cpumask_var_t, cpu_coregroup_map);
EXPORT_PER_CPU_SYMBOL(cpu_sibling_map);
+EXPORT_PER_CPU_SYMBOL(cpu_smallcore_map);
EXPORT_PER_CPU_SYMBOL(cpu_l2_cache_map);
EXPORT_PER_CPU_SYMBOL(cpu_core_map);
EXPORT_SYMBOL_GPL(has_big_cores);
--
~Randy
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: build failure of next-20220817 for amdgpu due to 7bc913085765 ("drm/amdkfd: Try to schedule bottom half on same core")
@ 2022-08-18 19:34 ` Randy Dunlap
0 siblings, 0 replies; 23+ messages in thread
From: Randy Dunlap @ 2022-08-18 19:34 UTC (permalink / raw)
To: Sudip Mukherjee, Felix Kuehling, Alex Deucher
Cc: David Airlie, Pan, Xinhui, linux-kernel, dri-devel, linux-next,
amd-gfx mailing list, Christian König
Hi--
On 8/18/22 12:15, Sudip Mukherjee wrote:
> On Thu, Aug 18, 2022 at 4:10 PM Randy Dunlap <rdunlap@infradead.org> wrote:
>>
>>
>>
>> On 8/18/22 03:43, Sudip Mukherjee wrote:
>>> On Thu, Aug 18, 2022 at 3:09 AM Randy Dunlap <rdunlap@infradead.org> wrote:
>>>>
>>>>
>>>>
>>>> On 8/17/22 19:01, Alex Deucher wrote:
>>>>> On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink)
>>>>> <sudipm.mukherjee@gmail.com> wrote:
>>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> Not sure if it has been reported, build of next-20220817 fails with the
>>>>>> error:
>>>>>>
>>>>>> ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
>>>>>>
>>>>>> Trying to do a git bisect to find out the offending commit.
>>>>>>
>>>>>
>>>>> Thanks. I don't see that symbol in the driver at all. Not sure where
>>>>> it is coming from.
>>>>>
>>>>
>>>> It's powerpc only.
>>>>
>>>> Sudip, is it non-CONFIG_SMP by any chance?
>>>
>>> Ohhh.. really sorry for the incomplete report. I should not try to
>>> mail while travelling.
>>>
>>> The error is seen with powerpc allmodconfig and it has CONFIG_SMP=y.
>>
>> OK, I see that also, but it doesn't make any sense (to me).
>>
>> I did 'objdump' on the code file (amdgpu.o) and it's listed as
>> undefined but there are no code references to it.
>
> cpu_smt_mask() is called by drivers/gpu/drm/amd/amdkfd/kfd_device.c.
> and cpu_smt_mask() is an inline function in
> arch/powerpc/include/asm/smp.h which is doing "return
> per_cpu(cpu_smallcore_map, cpu);"
>
> So, the offending commit is 7bc913085765 ("drm/amdkfd: Try to schedule
> bottom half on same core").
Thanks for digging that up.
It just needs to have that symbol exported I think.
This builds cleanly now.
I can submit it or one of the AMD gfx developers can do so.
---
arch/powerpc/kernel/smp.c | 1 +
1 file changed, 1 insertion(+)
--- a/arch/powerpc/kernel/smp.c
+++ b/arch/powerpc/kernel/smp.c
@@ -86,6 +86,7 @@ DEFINE_PER_CPU(cpumask_var_t, cpu_core_m
static DEFINE_PER_CPU(cpumask_var_t, cpu_coregroup_map);
EXPORT_PER_CPU_SYMBOL(cpu_sibling_map);
+EXPORT_PER_CPU_SYMBOL(cpu_smallcore_map);
EXPORT_PER_CPU_SYMBOL(cpu_l2_cache_map);
EXPORT_PER_CPU_SYMBOL(cpu_core_map);
EXPORT_SYMBOL_GPL(has_big_cores);
--
~Randy
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: build failure of next-20220817 for amdgpu due to 7bc913085765 ("drm/amdkfd: Try to schedule bottom half on same core")
@ 2022-08-18 19:34 ` Randy Dunlap
0 siblings, 0 replies; 23+ messages in thread
From: Randy Dunlap @ 2022-08-18 19:34 UTC (permalink / raw)
To: Sudip Mukherjee, Felix Kuehling, Alex Deucher
Cc: David Airlie, Pan, Xinhui, linux-kernel, dri-devel, linux-next,
amd-gfx mailing list, Daniel Vetter, Alex Deucher,
Christian König
Hi--
On 8/18/22 12:15, Sudip Mukherjee wrote:
> On Thu, Aug 18, 2022 at 4:10 PM Randy Dunlap <rdunlap@infradead.org> wrote:
>>
>>
>>
>> On 8/18/22 03:43, Sudip Mukherjee wrote:
>>> On Thu, Aug 18, 2022 at 3:09 AM Randy Dunlap <rdunlap@infradead.org> wrote:
>>>>
>>>>
>>>>
>>>> On 8/17/22 19:01, Alex Deucher wrote:
>>>>> On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink)
>>>>> <sudipm.mukherjee@gmail.com> wrote:
>>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> Not sure if it has been reported, build of next-20220817 fails with the
>>>>>> error:
>>>>>>
>>>>>> ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
>>>>>>
>>>>>> Trying to do a git bisect to find out the offending commit.
>>>>>>
>>>>>
>>>>> Thanks. I don't see that symbol in the driver at all. Not sure where
>>>>> it is coming from.
>>>>>
>>>>
>>>> It's powerpc only.
>>>>
>>>> Sudip, is it non-CONFIG_SMP by any chance?
>>>
>>> Ohhh.. really sorry for the incomplete report. I should not try to
>>> mail while travelling.
>>>
>>> The error is seen with powerpc allmodconfig and it has CONFIG_SMP=y.
>>
>> OK, I see that also, but it doesn't make any sense (to me).
>>
>> I did 'objdump' on the code file (amdgpu.o) and it's listed as
>> undefined but there are no code references to it.
>
> cpu_smt_mask() is called by drivers/gpu/drm/amd/amdkfd/kfd_device.c.
> and cpu_smt_mask() is an inline function in
> arch/powerpc/include/asm/smp.h which is doing "return
> per_cpu(cpu_smallcore_map, cpu);"
>
> So, the offending commit is 7bc913085765 ("drm/amdkfd: Try to schedule
> bottom half on same core").
Thanks for digging that up.
It just needs to have that symbol exported I think.
This builds cleanly now.
I can submit it or one of the AMD gfx developers can do so.
---
arch/powerpc/kernel/smp.c | 1 +
1 file changed, 1 insertion(+)
--- a/arch/powerpc/kernel/smp.c
+++ b/arch/powerpc/kernel/smp.c
@@ -86,6 +86,7 @@ DEFINE_PER_CPU(cpumask_var_t, cpu_core_m
static DEFINE_PER_CPU(cpumask_var_t, cpu_coregroup_map);
EXPORT_PER_CPU_SYMBOL(cpu_sibling_map);
+EXPORT_PER_CPU_SYMBOL(cpu_smallcore_map);
EXPORT_PER_CPU_SYMBOL(cpu_l2_cache_map);
EXPORT_PER_CPU_SYMBOL(cpu_core_map);
EXPORT_SYMBOL_GPL(has_big_cores);
--
~Randy
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: build failure of next-20220817 for amdgpu due to 7bc913085765 ("drm/amdkfd: Try to schedule bottom half on same core")
2022-08-18 19:34 ` Randy Dunlap
(?)
@ 2022-08-19 18:04 ` Felix Kuehling
-1 siblings, 0 replies; 23+ messages in thread
From: Felix Kuehling @ 2022-08-19 18:04 UTC (permalink / raw)
To: Randy Dunlap, Sudip Mukherjee, Alex Deucher
Cc: David Airlie, Pan, Xinhui, linux-kernel, dri-devel, linux-next,
amd-gfx mailing list, Christian König
On 2022-08-18 15:34, Randy Dunlap wrote:
> Hi--
>
> On 8/18/22 12:15, Sudip Mukherjee wrote:
>> On Thu, Aug 18, 2022 at 4:10 PM Randy Dunlap <rdunlap@infradead.org> wrote:
>>>
>>> On 8/18/22 03:43, Sudip Mukherjee wrote:
>>>> On Thu, Aug 18, 2022 at 3:09 AM Randy Dunlap <rdunlap@infradead.org> wrote:
>>>>>
>>>>> On 8/17/22 19:01, Alex Deucher wrote:
>>>>>> On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink)
>>>>>> <sudipm.mukherjee@gmail.com> wrote:
>>>>>>> Hi All,
>>>>>>>
>>>>>>> Not sure if it has been reported, build of next-20220817 fails with the
>>>>>>> error:
>>>>>>>
>>>>>>> ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
>>>>>>>
>>>>>>> Trying to do a git bisect to find out the offending commit.
>>>>>>>
>>>>>> Thanks. I don't see that symbol in the driver at all. Not sure where
>>>>>> it is coming from.
>>>>>>
>>>>> It's powerpc only.
>>>>>
>>>>> Sudip, is it non-CONFIG_SMP by any chance?
>>>> Ohhh.. really sorry for the incomplete report. I should not try to
>>>> mail while travelling.
>>>>
>>>> The error is seen with powerpc allmodconfig and it has CONFIG_SMP=y.
>>> OK, I see that also, but it doesn't make any sense (to me).
>>>
>>> I did 'objdump' on the code file (amdgpu.o) and it's listed as
>>> undefined but there are no code references to it.
>> cpu_smt_mask() is called by drivers/gpu/drm/amd/amdkfd/kfd_device.c.
>> and cpu_smt_mask() is an inline function in
>> arch/powerpc/include/asm/smp.h which is doing "return
>> per_cpu(cpu_smallcore_map, cpu);"
>>
>> So, the offending commit is 7bc913085765 ("drm/amdkfd: Try to schedule
>> bottom half on same core").
> Thanks for digging that up.
>
> It just needs to have that symbol exported I think.
> This builds cleanly now.
> I can submit it or one of the AMD gfx developers can do so.
I'm not sure where I would need to submit this. And I'm not familiar
with Powerpc code at all. I'm OK if you submit this wherever it needs to go.
Thanks,
Felix
>
>
> ---
> arch/powerpc/kernel/smp.c | 1 +
> 1 file changed, 1 insertion(+)
>
> --- a/arch/powerpc/kernel/smp.c
> +++ b/arch/powerpc/kernel/smp.c
> @@ -86,6 +86,7 @@ DEFINE_PER_CPU(cpumask_var_t, cpu_core_m
> static DEFINE_PER_CPU(cpumask_var_t, cpu_coregroup_map);
>
> EXPORT_PER_CPU_SYMBOL(cpu_sibling_map);
> +EXPORT_PER_CPU_SYMBOL(cpu_smallcore_map);
> EXPORT_PER_CPU_SYMBOL(cpu_l2_cache_map);
> EXPORT_PER_CPU_SYMBOL(cpu_core_map);
> EXPORT_SYMBOL_GPL(has_big_cores);
>
>
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: build failure of next-20220817 for amdgpu due to 7bc913085765 ("drm/amdkfd: Try to schedule bottom half on same core")
@ 2022-08-19 18:04 ` Felix Kuehling
0 siblings, 0 replies; 23+ messages in thread
From: Felix Kuehling @ 2022-08-19 18:04 UTC (permalink / raw)
To: Randy Dunlap, Sudip Mukherjee, Alex Deucher
Cc: David Airlie, Pan, Xinhui, linux-kernel, dri-devel, linux-next,
amd-gfx mailing list, Daniel Vetter, Alex Deucher,
Christian König
On 2022-08-18 15:34, Randy Dunlap wrote:
> Hi--
>
> On 8/18/22 12:15, Sudip Mukherjee wrote:
>> On Thu, Aug 18, 2022 at 4:10 PM Randy Dunlap <rdunlap@infradead.org> wrote:
>>>
>>> On 8/18/22 03:43, Sudip Mukherjee wrote:
>>>> On Thu, Aug 18, 2022 at 3:09 AM Randy Dunlap <rdunlap@infradead.org> wrote:
>>>>>
>>>>> On 8/17/22 19:01, Alex Deucher wrote:
>>>>>> On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink)
>>>>>> <sudipm.mukherjee@gmail.com> wrote:
>>>>>>> Hi All,
>>>>>>>
>>>>>>> Not sure if it has been reported, build of next-20220817 fails with the
>>>>>>> error:
>>>>>>>
>>>>>>> ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
>>>>>>>
>>>>>>> Trying to do a git bisect to find out the offending commit.
>>>>>>>
>>>>>> Thanks. I don't see that symbol in the driver at all. Not sure where
>>>>>> it is coming from.
>>>>>>
>>>>> It's powerpc only.
>>>>>
>>>>> Sudip, is it non-CONFIG_SMP by any chance?
>>>> Ohhh.. really sorry for the incomplete report. I should not try to
>>>> mail while travelling.
>>>>
>>>> The error is seen with powerpc allmodconfig and it has CONFIG_SMP=y.
>>> OK, I see that also, but it doesn't make any sense (to me).
>>>
>>> I did 'objdump' on the code file (amdgpu.o) and it's listed as
>>> undefined but there are no code references to it.
>> cpu_smt_mask() is called by drivers/gpu/drm/amd/amdkfd/kfd_device.c.
>> and cpu_smt_mask() is an inline function in
>> arch/powerpc/include/asm/smp.h which is doing "return
>> per_cpu(cpu_smallcore_map, cpu);"
>>
>> So, the offending commit is 7bc913085765 ("drm/amdkfd: Try to schedule
>> bottom half on same core").
> Thanks for digging that up.
>
> It just needs to have that symbol exported I think.
> This builds cleanly now.
> I can submit it or one of the AMD gfx developers can do so.
I'm not sure where I would need to submit this. And I'm not familiar
with Powerpc code at all. I'm OK if you submit this wherever it needs to go.
Thanks,
Felix
>
>
> ---
> arch/powerpc/kernel/smp.c | 1 +
> 1 file changed, 1 insertion(+)
>
> --- a/arch/powerpc/kernel/smp.c
> +++ b/arch/powerpc/kernel/smp.c
> @@ -86,6 +86,7 @@ DEFINE_PER_CPU(cpumask_var_t, cpu_core_m
> static DEFINE_PER_CPU(cpumask_var_t, cpu_coregroup_map);
>
> EXPORT_PER_CPU_SYMBOL(cpu_sibling_map);
> +EXPORT_PER_CPU_SYMBOL(cpu_smallcore_map);
> EXPORT_PER_CPU_SYMBOL(cpu_l2_cache_map);
> EXPORT_PER_CPU_SYMBOL(cpu_core_map);
> EXPORT_SYMBOL_GPL(has_big_cores);
>
>
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: build failure of next-20220817 for amdgpu due to 7bc913085765 ("drm/amdkfd: Try to schedule bottom half on same core")
@ 2022-08-19 18:04 ` Felix Kuehling
0 siblings, 0 replies; 23+ messages in thread
From: Felix Kuehling @ 2022-08-19 18:04 UTC (permalink / raw)
To: Randy Dunlap, Sudip Mukherjee, Alex Deucher
Cc: Alex Deucher, Christian König, Pan, Xinhui, David Airlie,
Daniel Vetter, linux-next, dri-devel, amd-gfx mailing list,
linux-kernel
On 2022-08-18 15:34, Randy Dunlap wrote:
> Hi--
>
> On 8/18/22 12:15, Sudip Mukherjee wrote:
>> On Thu, Aug 18, 2022 at 4:10 PM Randy Dunlap <rdunlap@infradead.org> wrote:
>>>
>>> On 8/18/22 03:43, Sudip Mukherjee wrote:
>>>> On Thu, Aug 18, 2022 at 3:09 AM Randy Dunlap <rdunlap@infradead.org> wrote:
>>>>>
>>>>> On 8/17/22 19:01, Alex Deucher wrote:
>>>>>> On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink)
>>>>>> <sudipm.mukherjee@gmail.com> wrote:
>>>>>>> Hi All,
>>>>>>>
>>>>>>> Not sure if it has been reported, build of next-20220817 fails with the
>>>>>>> error:
>>>>>>>
>>>>>>> ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
>>>>>>>
>>>>>>> Trying to do a git bisect to find out the offending commit.
>>>>>>>
>>>>>> Thanks. I don't see that symbol in the driver at all. Not sure where
>>>>>> it is coming from.
>>>>>>
>>>>> It's powerpc only.
>>>>>
>>>>> Sudip, is it non-CONFIG_SMP by any chance?
>>>> Ohhh.. really sorry for the incomplete report. I should not try to
>>>> mail while travelling.
>>>>
>>>> The error is seen with powerpc allmodconfig and it has CONFIG_SMP=y.
>>> OK, I see that also, but it doesn't make any sense (to me).
>>>
>>> I did 'objdump' on the code file (amdgpu.o) and it's listed as
>>> undefined but there are no code references to it.
>> cpu_smt_mask() is called by drivers/gpu/drm/amd/amdkfd/kfd_device.c.
>> and cpu_smt_mask() is an inline function in
>> arch/powerpc/include/asm/smp.h which is doing "return
>> per_cpu(cpu_smallcore_map, cpu);"
>>
>> So, the offending commit is 7bc913085765 ("drm/amdkfd: Try to schedule
>> bottom half on same core").
> Thanks for digging that up.
>
> It just needs to have that symbol exported I think.
> This builds cleanly now.
> I can submit it or one of the AMD gfx developers can do so.
I'm not sure where I would need to submit this. And I'm not familiar
with Powerpc code at all. I'm OK if you submit this wherever it needs to go.
Thanks,
Felix
>
>
> ---
> arch/powerpc/kernel/smp.c | 1 +
> 1 file changed, 1 insertion(+)
>
> --- a/arch/powerpc/kernel/smp.c
> +++ b/arch/powerpc/kernel/smp.c
> @@ -86,6 +86,7 @@ DEFINE_PER_CPU(cpumask_var_t, cpu_core_m
> static DEFINE_PER_CPU(cpumask_var_t, cpu_coregroup_map);
>
> EXPORT_PER_CPU_SYMBOL(cpu_sibling_map);
> +EXPORT_PER_CPU_SYMBOL(cpu_smallcore_map);
> EXPORT_PER_CPU_SYMBOL(cpu_l2_cache_map);
> EXPORT_PER_CPU_SYMBOL(cpu_core_map);
> EXPORT_SYMBOL_GPL(has_big_cores);
>
>
^ permalink raw reply [flat|nested] 23+ messages in thread
end of thread, other threads:[~2022-08-24 18:48 UTC | newest]
Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-17 22:02 build failure of next-20220817 for amdgpu Sudip Mukherjee (Codethink)
2022-08-17 22:02 ` Sudip Mukherjee (Codethink)
2022-08-18 2:01 ` Alex Deucher
2022-08-18 2:01 ` Alex Deucher
2022-08-18 2:01 ` Alex Deucher
2022-08-18 2:09 ` Randy Dunlap
2022-08-18 2:09 ` Randy Dunlap
2022-08-18 2:09 ` Randy Dunlap
2022-08-18 10:43 ` Sudip Mukherjee
2022-08-18 10:43 ` Sudip Mukherjee
2022-08-18 10:43 ` Sudip Mukherjee
2022-08-18 15:10 ` Randy Dunlap
2022-08-18 15:10 ` Randy Dunlap
2022-08-18 15:10 ` Randy Dunlap
2022-08-18 19:15 ` build failure of next-20220817 for amdgpu due to 7bc913085765 ("drm/amdkfd: Try to schedule bottom half on same core") Sudip Mukherjee
2022-08-18 19:15 ` Sudip Mukherjee
2022-08-18 19:15 ` Sudip Mukherjee
2022-08-18 19:34 ` Randy Dunlap
2022-08-18 19:34 ` Randy Dunlap
2022-08-18 19:34 ` Randy Dunlap
2022-08-19 18:04 ` Felix Kuehling
2022-08-19 18:04 ` Felix Kuehling
2022-08-19 18:04 ` Felix Kuehling
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.