From owner-freebsd-acpi@freebsd.org Sat Sep 3 21:37:21 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 F1DB6BCDB42 for ; Sat, 3 Sep 2016 21:37:21 +0000 (UTC) (envelope-from universite@ukr.net) Received: from frv198.fwdcdn.com (frv198.fwdcdn.com [212.42.77.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B5F5068 for ; Sat, 3 Sep 2016 21:37:21 +0000 (UTC) (envelope-from universite@ukr.net) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ukr.net; s=ffe; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Cc:To:Subject:From:Date; bh=xbD1FlhoM69W3Q34SiKqwQ1rM8VSczfYz6ic4LQ5oOU=; b=c4HAbJ5lyYI1+J13Ew4KJDN5SFxeyQ6xVX5a31WIdfinn0QD/pL+0q2ryaGR6B3RM4SlH/NLoHGc3fm1kx6OgIjbGTNLWJlR12Lg59eteLUuZmhrwityd/RlhpC54ebieoCU6HDTPiDPaS1QNZ1r66LiFFcU7HfFgDXW3bdmGa0=; Received: from [10.10.10.35] (helo=frv35.fwdcdn.com) by frv198.fwdcdn.com with smtp ID 1bgIcm-000DSf-03 for freebsd-acpi@freebsd.org; Sun, 04 Sep 2016 00:37:16 +0300 Date: Sun, 04 Sep 2016 00:37:15 +0300 From: Vladislav Prodan Subject: Re[2]: Freeze during boot process on Intel S1200RP Board To: Konstantin Belousov Cc: freebsd-hackers@freebsd.org, freebsd-acpi@freebsd.org X-Mailer: mail.ukr.net 5.0 Message-Id: <1472937860.641023053.23hxzq6k@frv35.fwdcdn.com> In-Reply-To: <20160903203455.GB83214@kib.kiev.ua> References: <1472927832.254600230.0917rnnm@frv35.fwdcdn.com> <20160903190950.GA83214@kib.kiev.ua> <1472932913.386457492.0z8b0wn5@frv35.fwdcdn.com> <20160903203455.GB83214@kib.kiev.ua> X-Reply-Action: reply Received: from universite@ukr.net by frv35.fwdcdn.com; Sun, 04 Sep 2016 00:37:15 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: binary Content-Disposition: inline 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 21:37:22 -0000 --- Original message --- From: "Konstantin Belousov" Date: 3 September 2016, 23:35:17 > 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. Yes you are right. The system is loaded with LAPIC. ... Event timer "LAPIC" quality 600 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs FreeBSD/SMP: 1 package(s) x 4 core(s) x 2 SMT threads cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 cpu4 (AP): APIC ID: 4 cpu5 (AP): APIC ID: 5 cpu6 (AP): APIC ID: 6 cpu7 (AP): APIC ID: 7 ... But then, through the sysctl overridden in HPET. >On Sun, Aug 30, 2015 at 09:17:06AM +0300, Vladimir Laskov wrote: >> Hello, All. >> >> I have a problem on Intel S1200RP Board. >> >> boot process is freeze on boot stage >> >> how to repeat? >> >> 1. launch system reboot >> 2. wait to start kernel initialization stage >> 3. system freeze on kernel initialization stage >> >> screenshot here >> http://oi62.tinypic.com/33d8jz5.jpg >> >> please help me >> >> P.S. - if i reset system and boot linux, freebsd start without freeze Perhaps, ACPI motherboard has short-term memory :) > > Regardless of the answer to the question above, apply the following > debugging patch to the kernel and show the screenshot of the hang. > I'm not sure I can reproduce freeze. > 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) ΓΏ -- Vladislav V. Prodan System & Network Administrator support.od.ua