* FAILED: patch "[PATCH] MIPS: IP22: Fix build error due to binutils 2.25 uselessnes." failed to apply to 4.10-stable tree
@ 2017-03-08 6:54 gregkh
2017-03-08 9:16 ` Ralf Baechle
0 siblings, 1 reply; 4+ messages in thread
From: gregkh @ 2017-03-08 6:54 UTC (permalink / raw)
To: ralf; +Cc: stable
The patch below does not apply to the 4.10-stable tree.
If someone wants it applied there, or to any other stable or longterm
tree, then please email the backport, including the original git commit
id to <stable@vger.kernel.org>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
>From ae2f5e5ed04a17c1aa1f0a3714c725e12c21d2a9 Mon Sep 17 00:00:00 2001
From: Ralf Baechle <ralf@linux-mips.org>
Date: Thu, 15 Dec 2016 12:39:22 +0100
Subject: [PATCH] MIPS: IP22: Fix build error due to binutils 2.25 uselessnes.
Fix the following build error with binutils 2.25.
CC arch/mips/mm/sc-ip22.o
{standard input}: Assembler messages:
{standard input}:132: Error: number (0x9000000080000000) larger than 32 bits
{standard input}:159: Error: number (0x9000000080000000) larger than 32 bits
{standard input}:200: Error: number (0x9000000080000000) larger than 32 bits
scripts/Makefile.build:293: recipe for target 'arch/mips/mm/sc-ip22.o' failed
make[1]: *** [arch/mips/mm/sc-ip22.o] Error 1
MIPS has used .set mips3 to temporarily switch the assembler to 64 bit
mode in 64 bit kernels virtually forever. Binutils 2.25 broke this
behavious partially by happily accepting 64 bit instructions in .set mips3
mode but puking on 64 bit constants when generating 32 bit ELF. Binutils
2.26 restored the old behaviour again.
Fix build with binutils 2.25 by open coding the offending
dli $1, 0x9000000080000000
as
li $1, 0x9000
dsll $1, $1, 48
which is ugly be the only thing that will build on all binutils vintages.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Cc: stable@vger.kernel.org
diff --git a/arch/mips/mm/sc-ip22.c b/arch/mips/mm/sc-ip22.c
index 610f44b4d764..f293a97cb885 100644
--- a/arch/mips/mm/sc-ip22.c
+++ b/arch/mips/mm/sc-ip22.c
@@ -39,7 +39,18 @@ static inline void indy_sc_wipe(unsigned long first, unsigned long last)
" li $1, 0x80 # Go 64 bit \n"
" mtc0 $1, $12 \n"
" \n"
- " dli $1, 0x9000000080000000 \n"
+ " # \n"
+ " # Open code a dli $1, 0x9000000080000000 \n"
+ " # \n"
+ " # Required because binutils 2.25 will happily accept \n"
+ " # 64 bit instructions in .set mips3 mode but puke on \n"
+ " # 64 bit constants when generating 32 bit ELF \n"
+ " # \n"
+ " lui $1,0x9000 \n"
+ " dsll $1,$1,0x10 \n"
+ " ori $1,$1,0x8000 \n"
+ " dsll $1,$1,0x10 \n"
+ " \n"
" or %0, $1 # first line to flush \n"
" or %1, $1 # last line to flush \n"
" .set at \n"
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: FAILED: patch "[PATCH] MIPS: IP22: Fix build error due to binutils 2.25 uselessnes." failed to apply to 4.10-stable tree
2017-03-08 6:54 FAILED: patch "[PATCH] MIPS: IP22: Fix build error due to binutils 2.25 uselessnes." failed to apply to 4.10-stable tree gregkh
@ 2017-03-08 9:16 ` Ralf Baechle
2017-03-08 9:53 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: Ralf Baechle @ 2017-03-08 9:16 UTC (permalink / raw)
To: gregkh; +Cc: stable, James Hogan
Hi Gregh,
On Wed, Mar 08, 2017 at 07:54:36AM +0100, gregkh@linuxfoundation.org wrote:
> The patch below does not apply to the 4.10-stable tree.
> If someone wants it applied there, or to any other stable or longterm
> tree, then please email the backport, including the original git commit
> id to <stable@vger.kernel.org>.
>
> thanks,
>
> greg k-h
>
> ------------------ original commit in Linus's tree ------------------
>
> >From ae2f5e5ed04a17c1aa1f0a3714c725e12c21d2a9 Mon Sep 17 00:00:00 2001
> From: Ralf Baechle <ralf@linux-mips.org>
> Date: Thu, 15 Dec 2016 12:39:22 +0100
> Subject: [PATCH] MIPS: IP22: Fix build error due to binutils 2.25 uselessnes.
The patch will apply fine to v4.10-stable but requires 55e4fac7c9ef
("MIPS: IP22: Reformat inline assembler code to modern standards.")
to be applied first. This is the case for all three branches that you
reported this issue with, v4.10-stable, v4.9-stable and v4.4-stable.
Ralf
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: FAILED: patch "[PATCH] MIPS: IP22: Fix build error due to binutils 2.25 uselessnes." failed to apply to 4.10-stable tree
2017-03-08 9:16 ` Ralf Baechle
@ 2017-03-08 9:53 ` Greg KH
2017-03-08 10:00 ` Ralf Baechle
0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2017-03-08 9:53 UTC (permalink / raw)
To: Ralf Baechle; +Cc: stable, James Hogan
On Wed, Mar 08, 2017 at 10:16:45AM +0100, Ralf Baechle wrote:
> Hi Gregh,
>
> On Wed, Mar 08, 2017 at 07:54:36AM +0100, gregkh@linuxfoundation.org wrote:
>
> > The patch below does not apply to the 4.10-stable tree.
> > If someone wants it applied there, or to any other stable or longterm
> > tree, then please email the backport, including the original git commit
> > id to <stable@vger.kernel.org>.
> >
> > thanks,
> >
> > greg k-h
> >
> > ------------------ original commit in Linus's tree ------------------
> >
> > >From ae2f5e5ed04a17c1aa1f0a3714c725e12c21d2a9 Mon Sep 17 00:00:00 2001
> > From: Ralf Baechle <ralf@linux-mips.org>
> > Date: Thu, 15 Dec 2016 12:39:22 +0100
> > Subject: [PATCH] MIPS: IP22: Fix build error due to binutils 2.25 uselessnes.
>
> The patch will apply fine to v4.10-stable but requires 55e4fac7c9ef
> ("MIPS: IP22: Reformat inline assembler code to modern standards.")
> to be applied first. This is the case for all three branches that you
> reported this issue with, v4.10-stable, v4.9-stable and v4.4-stable.
Do you mean f9f1c8db1c37253805eaa32265e1e1af3ae7d0a4? I don't see a
55e4fac7c9ef in Linus's tree.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: FAILED: patch "[PATCH] MIPS: IP22: Fix build error due to binutils 2.25 uselessnes." failed to apply to 4.10-stable tree
2017-03-08 9:53 ` Greg KH
@ 2017-03-08 10:00 ` Ralf Baechle
0 siblings, 0 replies; 4+ messages in thread
From: Ralf Baechle @ 2017-03-08 10:00 UTC (permalink / raw)
To: Greg KH; +Cc: stable, James Hogan
On Wed, Mar 08, 2017 at 10:53:52AM +0100, Greg KH wrote:
> On Wed, Mar 08, 2017 at 10:16:45AM +0100, Ralf Baechle wrote:
> > Hi Gregh,
> >
> > On Wed, Mar 08, 2017 at 07:54:36AM +0100, gregkh@linuxfoundation.org wrote:
> >
> > > The patch below does not apply to the 4.10-stable tree.
> > > If someone wants it applied there, or to any other stable or longterm
> > > tree, then please email the backport, including the original git commit
> > > id to <stable@vger.kernel.org>.
> > >
> > > thanks,
> > >
> > > greg k-h
> > >
> > > ------------------ original commit in Linus's tree ------------------
> > >
> > > >From ae2f5e5ed04a17c1aa1f0a3714c725e12c21d2a9 Mon Sep 17 00:00:00 2001
> > > From: Ralf Baechle <ralf@linux-mips.org>
> > > Date: Thu, 15 Dec 2016 12:39:22 +0100
> > > Subject: [PATCH] MIPS: IP22: Fix build error due to binutils 2.25 uselessnes.
> >
> > The patch will apply fine to v4.10-stable but requires 55e4fac7c9ef
> > ("MIPS: IP22: Reformat inline assembler code to modern standards.")
> > to be applied first. This is the case for all three branches that you
> > reported this issue with, v4.10-stable, v4.9-stable and v4.4-stable.
>
> Do you mean f9f1c8db1c37253805eaa32265e1e1af3ae7d0a4? I don't see a
> 55e4fac7c9ef in Linus's tree.
Yes. 55e4fac7c9ef was the commit id in the MIPS tree before it was pushed
to Linus.
Thanks,
Ralf
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-03-08 10:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-08 6:54 FAILED: patch "[PATCH] MIPS: IP22: Fix build error due to binutils 2.25 uselessnes." failed to apply to 4.10-stable tree gregkh
2017-03-08 9:16 ` Ralf Baechle
2017-03-08 9:53 ` Greg KH
2017-03-08 10:00 ` Ralf Baechle
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.