From: "Maciej W. Rozycki" <macro@orcam.me.uk>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: linux-kernel@vger.kernel.org,
D Scott Phillips <scott@os.amperecomputing.com>,
Andrew Jones <ajones@ventanamicro.com>,
linux-arm-kernel@lists.infradead.org,
amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
linux-um@lists.infradead.org, linux-rdma@vger.kernel.org,
linux-riscv@lists.infradead.org, kvm-riscv@lists.infradead.org,
sparclinux@vger.kernel.org, linux-mips@vger.kernel.org
Subject: Re: Build regressions/improvements in v6.1-rc1
Date: Tue, 18 Oct 2022 14:28:17 +0100 (BST) [thread overview]
Message-ID: <alpine.DEB.2.21.2210181349060.50489@angie.orcam.me.uk> (raw)
In-Reply-To: <CAMuHMdVbo0wMaVVhe4f4tC9-TW2+DsOVAB77TtLdnsG=us8Q2A@mail.gmail.com>
Hi Geert,
> > > .> [1] http://kisskb.ellerman.id.au/kisskb/branch/linus/head/9abf2313adc1ca1b6180c508c25f22f9395cc780/ (all 149 configs)
>
> > > > + {standard input}: Error: branch to a symbol in another ISA mode: 1339 =>
> > > > 2616, 2621
> > >
> > > mips-gcc11/micro32r2_defconfig
> > > mips-gcc11/micro32r2el_defconfig
> >
> > Where can these configs be obtained from?
>
> By following the links in the URL above you removed while replying? ;-)
>
> http://kisskb.ellerman.id.au/kisskb/buildresult/14818296/
> http://kisskb.ellerman.id.au/kisskb/buildresult/14818298/
Thank you.
The error message is due to the use of MT ASE code in a microMIPS
compilation, specifically a handwritten machine instruction encoding via
`.word' in `dmt' from <asm/mipsmtregs.h>. A similar construct is made
from `mftc0', but it isn't at a branch target, so no error is triggered.
A `.insn' pseudo-op ought to precede such handwritten constructs to tell
the assembler that what follows is really an instruction rather than data,
which would then cause any preceding label to be correctly annotated.
Now the MT ASE has been specified for the microMIPS ISA, but the machine
instruction encodings are different, so merely adding `.insn' won't do any
good. Also we've never added support for the microMIPS MT ASE, and it's
not clear to me if it's ever been used with real silicon. Perhaps QEMU
has it, but I suspect not. Also no support has ever been added to
binutils.
So I think we want to just exclude the offending code from microMIPS
configurations, perhaps by hardcoding `cpu_has_mipsmt' to 0 if
CPU_MICROMIPS.
On the other hand support for the MT ASE with the regular MIPS ISA has
been added with binutils 2.17:
commit 61cc02671150a81ea68f25b8409b8ace18bda9ae
Author: Chao-ying Fu <fu@mips.com>
Date: Tue Sep 6 18:46:57 2005 +0000
and according to Documentation/process/changes.rst we require version 2.23
now. So it looks to me like we want to discard the handwritten hacks and
use proper assembly instruction mnemonics. I do believe we did this for
the DSP ASE already.
Maciej
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
prev parent reply other threads:[~2022-10-18 13:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20221017145157.1866351-1-geert@linux-m68k.org>
2022-10-17 15:25 ` Build regressions/improvements in v6.1-rc1 Geert Uytterhoeven
2022-10-18 10:39 ` Maciej W. Rozycki
2022-10-18 12:30 ` Geert Uytterhoeven
2022-10-18 13:28 ` Maciej W. Rozycki [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.21.2210181349060.50489@angie.orcam.me.uk \
--to=macro@orcam.me.uk \
--cc=ajones@ventanamicro.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=geert@linux-m68k.org \
--cc=kvm-riscv@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux-um@lists.infradead.org \
--cc=scott@os.amperecomputing.com \
--cc=sparclinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox