From owner-freebsd-current@FreeBSD.ORG Fri Oct 22 09:09:55 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9B49106564A for ; Fri, 22 Oct 2010 09:09:54 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from Mail.elbekies.net (mail.elbekies.net [217.6.211.146]) by mx1.freebsd.org (Postfix) with ESMTP id 6D4458FC0C for ; Fri, 22 Oct 2010 09:09:54 +0000 (UTC) Received: from bel.soho.vwsoft.com (p57A0CB2E.dip.t-dialin.net [87.160.203.46]) by Mail.elbekies.net (Postfix) with ESMTPA id 685BF2E067; Fri, 22 Oct 2010 11:09:51 +0200 (CEST) Received: from [192.168.16.4] (dardanos.sz.vwsoft.com [192.168.16.4]) by bel.soho.vwsoft.com (Postfix) with ESMTP id 9313233C7F; Fri, 22 Oct 2010 11:09:26 +0200 (CEST) Message-ID: <4CC154C5.3020500@vwsoft.com> Date: Fri, 22 Oct 2010 11:09:25 +0200 From: volker@vwsoft.com User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.12) Gecko/20101007 Thunderbird/3.0.8 MIME-Version: 1.0 To: Andriy Gapon References: <4CBCCAB8.4090500@vwsoft.com> <4CBD24FA.8040302@icyb.net.ua> <4CC1510C.2020000@freebsd.org> In-Reply-To: <4CC1510C.2020000@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-VWSoft-MailScanner: Found to be clean X-MailScanner-ID: 685BF2E067.ABFF6 X-Elbekies-MailScanner: Found to be clean X-MailScanner-From: volker@vwsoft.com MailScanner-NULL-Check: 1288343393.13835@GLLY1KLCYLvLeiH0+Vsg9Q Cc: FreeBSD current Subject: Re: c 213323 breaks Sony Vaio P11Z w/o acpi X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Oct 2010 09:09:55 -0000 On 10/22/10 10:53, Andriy Gapon wrote: > > [ping] Sorry, Andriy! I haven't found the time to hack yesterday. The Intel website doesn't provide the 20091221 tarball anymore (but a more recent one) and I need to lay my hands on the script and the code tarball to get it working. As a result, I hope I can provide a more recent script that should work out of the box. Please stay tuned (I guess I'll find the time to get it working over the upcoming weekend). TIA, Volker PS: I can provide immediate results if someone has a copy of the Intel 20091221 code tarball > > on 19/10/2010 07:56 Andriy Gapon said the following: >> on 19/10/2010 01:31 volker@vwsoft.com said the following: >>> Hi Andriy& list! >>> >>> Since rev 213323 my Sony Vaio P11Z was unable to boot up. It broke with a divide >>> by zero in topo_probe_0x4 at line 289 as cpu_logical is 0. >>> >>> The cpu is an Intel Atom Z520 (single core). System doesn't boot at all w/ acpi >>> enabled. >>> >>> The following patch made me to boot up again. >>> >>> Index: i386/i386/mp_machdep.c >>> =================================================================== >>> --- i386/i386/mp_machdep.c (revision 213936) >>> +++ i386/i386/mp_machdep.c (working copy) >>> @@ -286,7 +286,7 @@ >>> cpu_logical++; >>> } >>> >>> - cpu_cores /= cpu_logical; >>> + cpu_cores /= cpu_logical==0?1:cpu_logical; >>> hyperthreading_cpus = cpu_logical; >>> } >>> >>> ``mptable -grope -verbose`` gives: >>> =============================================================================== >>> >>> MPTable >>> >>> looking for EBDA pointer @ 0x040e, found, searching EBDA @ 0x0009fc00 >>> searching CMOS 'top of mem' @ 0x0009f800 (638K) >>> searching default 'top of mem' @ 0x0009fc00 (639K) >>> searching BIOS @ 0x000f0000 >>> searching extended BIOS @ 0x000e0000 >>> groping memory @ 0x00080000 >>> groping memory @ 0x00090000 >>> >>> MP FPS NOT found, >>> suggest trying -grope option!!! >>> >>> so it's not of much help. >>> >>> relevant part of dmesg looks like: >>> >>> FreeBSD 9.0-CURRENT #3 r213904:213936M: Sat Oct 16 22:50:53 UTC 2010 >>> root@juno.sz.vwsoft.com:/usr/obj/usr/src/sys/JUNO i386 >>> CPU: Intel(R) Atom(TM) CPU Z520 @ 1.33GHz (1333.31-MHz 686-class CPU) >>> Origin = "GenuineIntel" Id = 0x106c2 Family = 6 Model = 1c Stepping = 2 >>> >>> Features=0xbfe9fbff >>> >>> >>> Features2=0x40c3bd >>> AMD Features=0x100000 >>> AMD Features2=0x1 >>> TSC: P-state invariant >>> real memory = 2147483648 (2048 MB) >>> avail memory = 2081042432 (1984 MB) >>> >>> I'm wondering if there's a better way to fix that problem or if someone wants to >>> commit my fix. >> >> Definitely not - it violates style(9). >> Kidding, of course :-) >> >> Could you please download and run the following script and send back output? >> http://people.freebsd.org/~jkim/cpu_topology-12212009.sh >> Thank you very much! > >