[Kernel-packages] [Bug 1766624] Re: AArch64 kernel panic on APM Mustang

2018-05-03 Thread Christophe Lyon
Hello, The same problem happened 2 days ago (same machine). Here is what I found in kern.log: [645048.763978] Unhandled fault: alignment fault (0x9621) at 0x1cd7237a [645048.771350] Internal error: : 9621 [#1] SMP [645048.775943] Modules linked in: veth xt_nat xt_tcpudp

[Kernel-packages] [Bug 1533009] Re: arm64: "unsupported RELA relocation"

2016-01-26 Thread Christophe Lyon
I have posted a GCC patch: https://gcc.gnu.org/ml/gcc-patches/2016-01/msg01986.html to change the default of -mpc-relative-literal-loads when -mfix-cortex-a53-843419 is used. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in

[Kernel-packages] [Bug 1533009] Re: arm64: "unsupported RELA relocation"

2016-01-22 Thread Christophe Lyon
I prefer you submit the Makefile patch upstream, since I'm not very familiar with kernel lists. I am going to look at a patch for GCC-6, such that this optimization is disabled by default when compiling with -mfix-cortex-a53-843419. You could then use -mfix-cortex-a53-843419 to compile the

[Kernel-packages] [Bug 1533009] Re: arm64: "unsupported RELA relocation"

2016-01-21 Thread Christophe Lyon
We backported fixes for GCC PR63304 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63304) in our 2015.12 snapshot. By default, GCC now uses adrp / ldr or adrp / add instructions to address the literal pools under the use of a command line option, and this mode is on by default. OTOH,

[Kernel-packages] [Bug 1533009] Re: arm64: "unsupported RELA relocation"

2016-01-21 Thread Christophe Lyon
Updating arch/arm64/Makefile to have: ifeq ($(CONFIG_ARM64_ERRATUM_843419), y) KBUILD_CFLAGS_MODULE+= -mcmodel=large KBUILD_CFLAGS_MODULE+= $(call cc-option, -mpc-relative-literal-loads) endif does the trick. Is this a good solution for you? -- You received this bug notification

[Kernel-packages] [Bug 1533009] Re: arm64: "unsupported RELA relocation"

2016-01-20 Thread Christophe Lyon
I've cross compiled the kernel+modules, mostly following the steps in comment #18. Then, I've scanned the generated module for the AARCH64_ADR_PREL_PG_HI21 relocation. When compiled with Linaro-2015.12, this relocation is present. When compiled with Linaro-2015.10, it is not. When using

[Kernel-packages] [Bug 1533009] Re: arm64: "unsupported RELA relocation"

2016-01-20 Thread Christophe Lyon
That's what I expected: this has nothing to do with relocations. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1533009 Title: arm64: "unsupported RELA relocation" Status in Linaro

[Kernel-packages] [Bug 1533009] Re: arm64: "unsupported RELA relocation"

2016-01-19 Thread Christophe Lyon
It's not clear to me how I can reproduce the problem as a GCC developper. Should I build kernel-4.3.0 (vanilla), using the defconfig attached on comment #13, build the modules and look for the relocation mentioned by Ard Biesheuvel? -- You received this bug notification because you are a member