* Build error around 'aghik' after commit 1256e70a082a ("s390/ftrace: enable HAVE_FUNCTION_GRAPH_RETVAL")
@ 2023-07-25 21:11 Nathan Chancellor
2023-07-26 5:42 ` Heiko Carstens
0 siblings, 1 reply; 2+ messages in thread
From: Nathan Chancellor @ 2023-07-25 21:11 UTC (permalink / raw)
To: Heiko Carstens, Sven Schnelle; +Cc: linux-s390
Hi Sven and Heiko,
Apologies if this has been reported/fixed already, I checked the s390
tree but I did not see any changes there nor did I find anything when
searching lore. After commit 1256e70a082a ("s390/ftrace: enable
HAVE_FUNCTION_GRAPH_RETVAL") in -next, I see the following errors when
building Debian's configuration [1], which selects CONFIG_MARCH_Z10=y.
GCC/binutils:
arch/s390/kernel/mcount.S: Assembler messages:
arch/s390/kernel/mcount.S:140: Error: Unrecognized opcode: `aghik'
clang:
arch/s390/kernel/mcount.S:140:2: error: instruction requires: distinct-ops
aghik %r3,%r15,160
^
It seems like there is already some handling for this situation in
mcount.S but my knowledge of s390 assembly is basically non-existent,
hence this report in lieu of a patch. I am more than happy to provide
any additional information or test any patches if necessary.
[1]: https://salsa.debian.org/kernel-team/linux/-/blob/master/debian/config/s390x/config
Cheers,
Nathan
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Build error around 'aghik' after commit 1256e70a082a ("s390/ftrace: enable HAVE_FUNCTION_GRAPH_RETVAL")
2023-07-25 21:11 Build error around 'aghik' after commit 1256e70a082a ("s390/ftrace: enable HAVE_FUNCTION_GRAPH_RETVAL") Nathan Chancellor
@ 2023-07-26 5:42 ` Heiko Carstens
0 siblings, 0 replies; 2+ messages in thread
From: Heiko Carstens @ 2023-07-26 5:42 UTC (permalink / raw)
To: Nathan Chancellor; +Cc: Sven Schnelle, linux-s390
Hi Nathan,
> Apologies if this has been reported/fixed already, I checked the s390
> tree but I did not see any changes there nor did I find anything when
> searching lore. After commit 1256e70a082a ("s390/ftrace: enable
> HAVE_FUNCTION_GRAPH_RETVAL") in -next, I see the following errors when
> building Debian's configuration [1], which selects CONFIG_MARCH_Z10=y.
>
> GCC/binutils:
>
> arch/s390/kernel/mcount.S: Assembler messages:
> arch/s390/kernel/mcount.S:140: Error: Unrecognized opcode: `aghik'
>
> clang:
>
> arch/s390/kernel/mcount.S:140:2: error: instruction requires: distinct-ops
> aghik %r3,%r15,160
> ^
>
> It seems like there is already some handling for this situation in
> mcount.S but my knowledge of s390 assembly is basically non-existent,
> hence this report in lieu of a patch. I am more than happy to provide
> any additional information or test any patches if necessary.
Thanks, for reporting. Yet another bug where an instruction which is only
available on later machines (in this case z196) is used unconditionally. I
really need to add some automated test so this kind of trivial bugs don't
escape.
Will fix.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-26 5:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-25 21:11 Build error around 'aghik' after commit 1256e70a082a ("s390/ftrace: enable HAVE_FUNCTION_GRAPH_RETVAL") Nathan Chancellor
2023-07-26 5:42 ` Heiko Carstens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox