Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752954AbcJJOP3 (ORCPT ); Mon, 10 Oct 2016 10:15:29 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:56267 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752047AbcJJOPU (ORCPT ); Mon, 10 Oct 2016 10:15:20 -0400 Subject: Re: ppc64 qemu test failure since commit f9aa67142 ("powerpc/64s: Consolidate Alignment 0x600 interrupt") To: Nicholas Piggin References: <20161009152121.GA13188@roeck-us.net> <20161010164953.5f37e6e4@roar.ozlabs.ibm.com> Cc: Michael Ellerman , linux-kernel@vger.kernel.org, Benjamin Herrenschmidt , linuxppc-dev@lists.ozlabs.org From: Guenter Roeck Message-ID: Date: Mon, 10 Oct 2016 07:15:11 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20161010164953.5f37e6e4@roar.ozlabs.ibm.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated_sender: linux@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: linux@roeck-us.net X-Authenticated-Sender: bh-25.webhostbox.net: linux@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2067 Lines: 53 On 10/09/2016 10:49 PM, Nicholas Piggin wrote: > On Sun, 9 Oct 2016 08:21:21 -0700 > Guenter Roeck wrote: > >> Nicholas, >> >> some of my qemu tests for ppc64 started failing on mainline (and -next). >> You can find a test log at >> http://kerneltests.org/builders/qemu-ppc64-master/builds/580/steps/qemubuildcommand/logs/stdio >> >> The scripts to run the test are available at >> https://github.com/groeck/linux-build-test/tree/master/rootfs/ppc64 >> >> Bisect points to commit f9aa67142ef26 ("powerpc/64s: Consolidate Alignment 0x600 >> interrupt"). Bisect log is attached. >> >> Since I don't have the means to run the code on a real system, I have no idea >> if the problem is caused by qemu or by the code. It is interesting, though, that >> only the 'mac99' tests are affected. >> >> Please let me know if there is anything I can do to help tracking down the >> problem. > > Thanks for this. That patch just moves a small amount of code, so it's likely > that it's caused something to get placed out of range of its caller, or the > linker started generating a stub for some reason. I can't immediately see the > problem, but it could be specific to your exact toolchain. > > Something that might help, would you be able to put the compiled vmlinux binaries > from before/after the bad patch somewhere I can grab them? > http://server.roeck-us.net/qemu/ppc64/mac99/ 'bad' is at f9aa67142ef26, 'good' is one commit earlier, 'tot' is from top of tree (b66484cd7470, more specifically). Key difference in System.map, from the bad case: c000000000005c00 T __end_interrupts c000000000007000 t end_virt_trampolines c000000000008000 t 00000010.long_branch.power4_fixup_nap+0 c000000000008100 t fs_label c000000000008100 t start_text 00000010.long_branch.power4_fixup_nap+0 does not exist in the good case, and fs_label/start_text are at c000000000008000. Toolchain is from poky 1.5.1, which uses gcc 4.8.1 and binutils 2.23.2. I also tried with the toolchain from poky 1.6, using gcc 4.8.2 and binutils 2.24, with the same result. Guenter