From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753564AbcJNE42 (ORCPT ); Fri, 14 Oct 2016 00:56:28 -0400 Received: from mga02.intel.com ([134.134.136.20]:32195 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751070AbcJNE41 (ORCPT ); Fri, 14 Oct 2016 00:56:27 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,491,1473145200"; d="scan'208";a="1053648102" Date: Fri, 14 Oct 2016 12:56:00 +0800 From: Ye Xiaolong To: Andi Kleen Cc: x86@kernel.org, lkp@01.org, linux-kernel@vger.kernel.org, hmh@hmh.eng.br Subject: Re: [LKP] [x86] 811565123a: BUG: kernel hang in early-boot stage, last printk: Probing EDD (edd=off to disable)... ok Message-ID: <20161014045600.GA9378@yexl-desktop> References: <57ef269a.XbyeTJaMf4hvWm9O%xiaolong.ye@intel.com> <20161003212828.GK5871@two.firstfloor.org> <87vawwc7io.fsf@tassilo.jf.intel.com> <20161014005305.GB13114@yexl-desktop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161014005305.GB13114@yexl-desktop> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/14, Ye Xiaolong wrote: >On 10/13, Andi Kleen wrote: >>Andi Kleen writes: >> >>Any comments on this? >> >>I still cannot reproduce the failure unfortunately. >> > >Btw, you can try below commands to reproduce the error on your local >host, they will download the necessary images and run QEMU: > > git clone git://git.kernel.org/pub/scm/linux/kernel/git/wfg/lkp-tests.git > cd lkp-tests > bin/lkp qemu -k KERNEL job-script # job-script is attached in the original report email Results show this hang may be related to gcc version, with gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3), kernel could boot without early hang, but if kernel was built with gcc version 6.2.0 20160901 (Debian 6.2.0-3), it will stuck in the early stage: early console in setup code Probing EDD (edd=off to disable)... ok gdb output as below: $ gdb -ex "target remote localhost:1234" vmlinux GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from vmlinux...done. Remote debugging using localhost:1234 0x048a34d9 in ?? () (gdb) bt #0 0x048a34d9 in ?? () #1 0x00000000 in ?? () (gdb) Thanks, Xiaolong > >Thanks, >Xiaolong >> >>> Could you do two tests for me: >>> >>> - Enable CONFIG_MICROCODE_INTEL and see if it boots then >>> >>> - Add CONFIG_DEBUG_INFO to the config. >>> Add -s to the qemu command line and boot again. Then when it hangs >>> connect gdb to see where it hangs >>> >>> gdb -ex "target remote localhost:1234" vmlinux >>> bt >>> >>> >_______________________________________________ >LKP mailing list >LKP@lists.01.org >https://lists.01.org/mailman/listinfo/lkp