[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: current toolchain on Alpha is crap?



On Mon, Apr 10, 2017 at 10:42:42PM -0500, Bob Tracy wrote:
> On Mon, Apr 10, 2017 at 09:42:50PM +1200, Michael Cree wrote:
> > On Sun, Apr 09, 2017 at 07:47:55PM -0500, Bob Tracy wrote:
> > > Both my 4.10 and recent 4.11-rc5 builds fail to boot/run properly. 
> > 
> > Just built 4.10.9 for DP264 and that boots fine on the XP1000.
> > 
> > I have the following four extra commits on my kernel:
> > 
> > commit 635891340c8a48f2746f501530454df8881f1ec9
> > Author: Michael Cree <mcree@orcon.net.nz>
> > Date:   Mon Apr 10 20:58:02 2017 +1200
> > 
> >     Revert "mm/compaction.c: fix zoneindex in kcompactd()"
> 
> Never saw this one, which means I probably wasn't paying attention.
> Found the original patch from 2016 and did a "patch -R": it applied
> against 4.11.0-rc6 with a small bit of fuzz, but seems correct by
> inspection.

Good, you definitely want it.  Have you been seeing the occasional
segfault in user space in software such as dpkg, tar, install, cp,
etc?  If so, it is fixed by the above revert.

> > commit 4ace6a63e6c7a545e5921ec340a7c93a0ac0b02f
> > Author: Richard Henderson <rth@twiddle.net>
> > Date:   Wed Jul 30 11:42:31 2014 -1000
> > 
> >     alpha: Remove "strange" OSF/1 fork semantics

You don't need this one.  It is only helps on an SMP system.

> > commit e811f8794673153858eac86448d827002e50ac0a
> > Author: Michael Cree <mcree@orcon.net.nz>
> > Date:   Wed Feb 8 13:49:02 2017 +1300
> > 
> >     alpha: fix link errors in user_copy().
> 
> Missed both the above.

This one attached.  It might help with your relocation problems.

Cheers
Michael.
>From e811f8794673153858eac86448d827002e50ac0a Mon Sep 17 00:00:00 2001
From: Michael Cree <mcree@orcon.net.nz>
Date: Wed, 8 Feb 2017 13:49:02 +1300
Subject: [PATCH 1/4] alpha: fix link errors in user_copy().

---
 arch/alpha/include/asm/uaccess.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/alpha/include/asm/uaccess.h b/arch/alpha/include/asm/uaccess.h
index 94f587535dee..d9f2bbc642c2 100644
--- a/arch/alpha/include/asm/uaccess.h
+++ b/arch/alpha/include/asm/uaccess.h
@@ -344,7 +344,7 @@ __asm__ __volatile__("1: stb %r2,%1\n"				\
 /* This little bit of silliness is to get the GP loaded for a function
    that ordinarily wouldn't.  Otherwise we could have it done by the macro
    directly, which can be optimized the linker.  */
-#ifdef MODULE
+#if 1
 #define __module_address(sym)		"r"(sym),
 #define __module_call(ra, arg, sym)	"jsr $" #ra ",(%" #arg ")," #sym
 #else
-- 
2.11.0


Reply to: