From owner-freebsd-acpi@freebsd.org Sat Sep 3 20:35:03 2016 Return-Path: Delivered-To: freebsd-acpi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 174B7BCE5DA; Sat, 3 Sep 2016 20:35:03 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 82C1BA08; Sat, 3 Sep 2016 20:35:02 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id u83KYtRO006820 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sat, 3 Sep 2016 23:34:55 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua u83KYtRO006820 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id u83KYtb8006819; Sat, 3 Sep 2016 23:34:55 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 3 Sep 2016 23:34:55 +0300 From: Konstantin Belousov To: Vladislav Prodan Cc: freebsd-hackers@freebsd.org, freebsd-acpi@freebsd.org Subject: Re: Freeze during boot process on Intel S1200RP Board Message-ID: <20160903203455.GB83214@kib.kiev.ua> References: <1472927832.254600230.0917rnnm@frv35.fwdcdn.com> <20160903190950.GA83214@kib.kiev.ua> <1472932913.386457492.0z8b0wn5@frv35.fwdcdn.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1472932913.386457492.0z8b0wn5@frv35.fwdcdn.com> User-Agent: Mutt/1.6.1 (2016-04-27) X-Spam-Status: No, score=-0.3 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,URIBL_BLACK autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Sep 2016 20:35:03 -0000 On Sat, Sep 03, 2016 at 11:08:41PM +0300, Vladislav Prodan wrote: > > > > --- Original message --- > From: "Konstantin Belousov" > Date: 3 September 2016, 22:10:13 > > > > > On Sat, Sep 03, 2016 at 09:46:30PM +0300, Vladislav Prodan wrote: > > > > > > I encountered a similar problem on Intel S1200RP motherboard. > > > > > > Attached is the output dmesg: > > > http://pastebin.com/raw/ut11rb2T > > Is this from a succesful boot ? I.e., userland did started normally. > > Yes. > > > > > Please use 11.0 and provide me with the verbose dmesg of both succesful > > and hanging boot. > > There is no opportunity and time to install FreeBSD 11.0. > C client approved installation FreeBSD 10.3-STABLE. It will be much less opportunity and much more time required to track it down with debugging done on 10 and not HEAD or 11. Also, there were some significant changes in 11/HEAD WRT LAPIC timer, which might directly affect this machine. Note that you really do not need to overwrite the 10.3 userspace, I only need 11 or HEAD kernel. > > There is a screenshot at the time of freezing: > http://s017.radikal.ru/i412/1609/cf/f24d5d5a61c0.jpg So now I am confused. The system hangs at boot, according to the screenshot. Also, you stated that changing eventtimer choice with sysctl (from LAPIC ?) to HPET helps. Sysctl cannot be issued unless system booted to at least single-user mode. What is the exact scenario for the hang ? Regardless of the answer to the question above, apply the following debugging patch to the kernel and show the screenshot of the hang. Index: sys/amd64/amd64/mp_machdep.c =================================================================== --- sys/amd64/amd64/mp_machdep.c (revision 305361) +++ sys/amd64/amd64/mp_machdep.c (working copy) @@ -1007,6 +1007,7 @@ start_ap(int apic_id) int vector, ms; int cpus; +printf("start_ap apic_id %d\n", apic_id); /* calculate the vector */ vector = (boot_address >> 12) & 0xff;