linux-next: build failure after merge of the amdgpu tree
Hi all,
After merging the amdgpu tree, today's linux-next build (x86_64 allmodconfig) failed like this:
ERROR: modpost: "get_mm_exe_file" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
Caused by commit
f4f80155e6e8 ("amd/display: only require overlay plane to cover whole CRTC on ChromeOS")
I have used the amdgpu tree from next-20211007 for today.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 5 lines · Stephen Rothwell
Hi all,
After merging the amdgpu tree, today's linux-next build (
x86_64allmodconfig) failed like this:
Quoted 7 lines
ERROR: modpost: "
get_mm_exe_file" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!Caused by commit
f4f80155e6e8("amd/display: only require overlay plane to cover whole CRTC on ChromeOS")I have used the amdgpu tree from next-20211007 for today.
Not sure why this would happen. This commit builds fine on my machine, and I don't think it's possible to disable this function with Kconfig?
Hi Simon,
Quoted 10 lines · On Fri, 08 Oct 2021 06:27:05 +0000 Simon Ser <[email protected]> wrote:
Quoted 7 lines · Stephen Rothwell
Hi all,
After merging the amdgpu tree, today's linux-next build (
x86_64allmodconfig) failed like this:ERROR: modpost: "
get_mm_exe_file" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
Quoted 8 lines
Quoted 5 lines
Caused by commit
f4f80155e6e8("amd/display: only require overlay plane to cover whole CRTC on ChromeOS")I have used the amdgpu tree from next-20211007 for today.
Not sure why this would happen. This commit builds fine on my machine, and I don't think it's possible to disable this function with
Kconfig?
That symbol (get_mm_exe_file) is not exported to modules.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 1 line · Stephen Rothwell
That symbol (
get_mm_exe_file) is not exported to modules.
I see this:
EXPORT_SYMBOL(get_mm_exe_file);
in kernel/fork.c
Quoted 10 lines · Simon Ser
Quoted 1 line · Stephen Rothwell
That symbol (
get_mm_exe_file) is not exported to modules.I see this:
EXPORT_SYMBOL(get_mm_exe_file);in
kernel/fork.c
Was recently removed:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/kernel/fork.c?id=05da8113c9ba63a8913e6c73dc06ed01cae55f68
I guess we need to rethink that patch.
Alex
Quoted 11 lines · Alex Deucher
Quoted 9 lines · On Fri, Oct 8, 2021 at 5:22 AM Simon Ser [email protected] wrote:
Quoted 1 line · On Friday, October 8th, 2021 at 10:29, Stephen Rothwell [email protected]…
That symbol (
get_mm_exe_file) is not exported to modules.I see this:
EXPORT_SYMBOL(get_mm_exe_file);
Quoted 7 lines
Quoted 1 line
in
kernel/fork.cWas recently removed:
I guess we need to rethink that patch.
CC Christoph
Would it be reasonable to re-export get_mm_exe_file? amdgpu uses it here:
https://gitlab.freedesktop.org/agd5f/linux/-/commit/0d4da915c7098eca2aa6f559f42e33b5e9c7c5e8
Quoted 3 lines · Simon Ser
Would it be reasonable to re-export
get_mm_exe_file? amdgpu uses it here:https://gitlab.freedesktop.org/agd5f/linux/-/commit/0d4da915c7098eca2aa6f559f42e33b5e9c7c5e8
Seriously? No, it obviously not. Unexporting it is important to catch utter crap like in that commit which should have never made it into a maintainer tree.
Quoted 9 lines · Christoph Hellwig
Quoted 3 lines · Simon Ser
Would it be reasonable to re-export
get_mm_exe_file? amdgpu uses it here:https://gitlab.freedesktop.org/agd5f/linux/-/commit/0d4da915c7098eca2aa6f559f42e33b5e9c7c5e8
Seriously? No, it obviously not. Unexporting it is important to catch utter crap like in that commit which should have never made it into a maintainer tree.
I don't understand. Can you elaborate why you think this commit is "utter crap"?
I'd also appreciate if you could be a bit less aggressive. There's nothing "obvious" about this from my point of view.
Quoted 2 lines · Simon Ser
I don't understand. Can you elaborate why you think this commit is "utter crap"?
A kernel driver has absolutely no business making decissions based on current->comm, which can be changed by any userspace process. This is kernel programming 101.
Independent of that a check for a specific program as the callers makes no sense whatsoever as a given program and change over time. This is not even something kernel specific but something that ever software engineer should do.
Quoted 2 lines
I'd also appreciate if you could be a bit less aggressive. There's nothing "obvious" about this from my point of view.
I'm not agressive. I'm just really disappointed by the amoubt of crap that gets shovelled into the kernel and even more disappointed by the abslutely lack of knowledge of some of the contributors.
Quoted 4 lines · Christoph Hellwig
Quoted 2 lines · Simon Ser
I don't understand. Can you elaborate why you think this commit is "utter crap"?
Quoted 8 lines
A kernel driver has absolutely no business making decissions based on
current->comm, which can be changed by any userspace process. This is kernel programming 101.Independent of that a check for a specific program as the callers makes no sense whatsoever as a given program and change over time. This is not even something kernel specific but something that ever software engineer should do.
Have you heard about the kernel no-regression rule? Here, we can't enable a new feature because that would regress user-space which mis-uses the kernel uAPI.
This isn't unheard of. Core drm already detects Xorg with current->comm, and force-disables atomic KMS.
Quoted 6 lines
Quoted 2 lines
I'd also appreciate if you could be a bit less aggressive. There's nothing "obvious" about this from my point of view.
I'm not agressive. I'm just really disappointed by the amoubt of crap that gets shovelled into the kernel and even more disappointed by the abslutely lack of knowledge of some of the contributors.
If your reply wasn't aggressive, I don't know what it is.
Quoted 2 lines · Simon Ser
Have you heard about the kernel no-regression rule? Here, we can't enable a new feature because that would regress user-space which mis-uses the kernel uAPI.
Then you can't enable the feature without an explicit opt-in from userspace. This ain't rocket science.
Quoted 1 line
If your reply wasn't aggressive, I don't know what it is.
If there is one thing I find agressive it is your extreme passive aggressive behavior.
Quoted 6 lines · Christoph Hellwig
Quoted 2 lines · Simon Ser
Have you heard about the kernel no-regression rule? Here, we can't enable a new feature because that would regress user-space which mis-uses the kernel uAPI.
Then you can't enable the feature without an explicit opt-in from userspace. This ain't rocket science.
No, we can't have a "I_AM_NOT_BROKEN" ioctl for each and every uAPI mis-use. User-space detection has been determined to be the best course of action.
Quoted 4 lines
Quoted 1 line
If your reply wasn't aggressive, I don't know what it is.
If there is one thing I find agressive it is your extreme passive aggressive behavior.
Come on. I'm just asking you to be civil, that's all. But that seems too much.
* * *
I guess I'll just inline these functions in the driver then, if a revert will be NACK'ed by you?
Quoted 2 lines · Simon Ser
No, we can't have a "
I_AM_NOT_BROKEN" ioctl for each and every uAPI mis-use. User-space detection has been determined to be the best course of action.
If your API addition breaks userspace, yes you need an add-in.
Quoted 2 lines
I guess I'll just inline these functions in the driver then, if a revert will be NACK'ed by you?
It will be NACKed, and I will also complain to Linus about any PR containing buggy code like this.
With your completely broken change you cement in a mapping of an executable name to map to what you consider a "bug" without any way to fix it up.
Which is even worse for a something fast moving like chrome/chromeos which will eventually gets its act together and fix things while you'll keep a weird feature mismatch just for it around forever.
No wonder our graphics stack is stuch a convoluted buggy mess if you keep piling broken workarounds over workarounds instead of sorting things out properly.
Quoted 5 lines · Christoph Hellwig
Quoted 2 lines · Simon Ser
No, we can't have a "
I_AM_NOT_BROKEN" ioctl for each and every uAPI mis-use. User-space detection has been determined to be the best course of action.If your API addition breaks userspace, yes you need an add-in.
It's not an API addition. It's a ChromeOS fix that breaks my user-space.
Quoted 2 lines
With your completely broken change you cement in a mapping of an executable name to map to what you consider a "bug" without any way to fix it up.
If that's the only concern, it'd be very easy to add a CAP_ATOMIC >= 2 check like we have for Xorg. This would make it so ChromeOS can eventually opt-out of the quirk.
Hi Simon,
Quoted 10 lines · On Fri, 08 Oct 2021 09:22:16 +0000 Simon Ser <[email protected]> wrote:
Quoted 1 line · Stephen Rothwell
That symbol (
get_mm_exe_file) is not exported to modules.I see this:
EXPORT_SYMBOL(get_mm_exe_file);in
kernel/fork.c
That was remove by commit
05da8113c9ba ("kernel/fork.c: unexport get_{mm,task}_exe_file")
which is in v5.15-rc1.
Signature · 2 lines
Cheers, Stephen Rothwell
Hi Stephen,
Quoted 6 lines · On Fri, 8 Oct 2021 11:31:16 +1100 Stephen Rothwell <[email protected]> wrote:
Hi all,
After merging the amdgpu tree, today's linux-next build (
x86_64allmodconfig) failed like this:
Quoted 7 lines
ERROR: modpost: "
get_mm_exe_file" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!Caused by commit
f4f80155e6e8("amd/display: only require overlay plane to cover whole CRTC on ChromeOS")I have used the amdgpu tree from next-20211007 for today.
This failure has returned today ...
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 12 lines · Stephen Rothwell
Hi Stephen,
Quoted 8 lines · On Fri, 8 Oct 2021 11:31:16 +1100 Stephen Rothwell <[email protected]> wrote:
Hi all,
After merging the amdgpu tree, today's linux-next build (
x86_64allmodconfig) failed like this:ERROR: modpost: "
get_mm_exe_file" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
Quoted 7 lines
Quoted 5 lines
Caused by commit
f4f80155e6e8("amd/display: only require overlay plane to cover whole CRTC on ChromeOS")I have used the amdgpu tree from next-20211007 for today.
This failure has returned today ...
Whoops, pushed the wrong branch. Fixed.
Alex
Quoted 3 lines
--
Cheers,
Stephen Rothwell