From owner-freebsd-ia64@FreeBSD.ORG Wed Mar 9 14:24:06 2005 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CC2616A4CE for ; Wed, 9 Mar 2005 14:24:06 +0000 (GMT) Received: from mail3.ecc.u-tokyo.ac.jp (mail3.ecc.u-tokyo.ac.jp [133.11.171.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0285443D2D for ; Wed, 9 Mar 2005 14:24:05 +0000 (GMT) (envelope-from tamaru@myn.rcast.u-tokyo.ac.jp) Received: from spam002.ecc.u-tokyo.ac.jp (spam002.ecc.u-tokyo.ac.jp [133.11.50.195]) by mail3.ecc.u-tokyo.ac.jp (Postfix) with ESMTP id 67249700C2 for ; Wed, 9 Mar 2005 23:24:03 +0900 (JST) Received: from gin.myn.rcast.u-tokyo.ac.jp ( [157.82.72.158]) by spam002.ecc.u-tokyo.ac.jp (SpamBlock.pst 3.4.25) with ESMTP id for ; Wed, 9 Mar 2005 23:24:01 +0900 Date: Wed, 09 Mar 2005 23:24:01 +0900 Message-ID: From: Hiroharu Tamaru To: ia64@FreeBSD.org User-Agent: User-Agent: Wanderlust/2.10.0 (Venus) Emacs/21.3 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII X-IP: 157.82.72.158 X-FROM-DOMAIN: myn.rcast.u-tokyo.ac.jp X-FROM-EMAIL: tamaru@myn.rcast.u-tokyo.ac.jp Subject: > 2G memory on ia64? X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2005 14:24:06 -0000 Hello, I am trying to setup an Intel SR870BH2 based machine (dual Itanium 2, E8870 Chipset, 16GB memory). At the moment, I am waiting for a HDD to arrive, so it's not really _installed_ yet, but never the less I tried booting from the FreeBSD/ia64 5.3-RELEASE CD-ROM #2 (livefs), and realized that only 2GB of the memory is detected (The BIOS message says it has detected 16384MB). I tried 'set hw.physmem="16G"', or "10G" for example, but in vain. Is there anything else I should setup to let it recognize full 16GB? Thank you. -- Hiroharu Tamaru First several lines of the boot message as logged on the serial console follows: OK show LINES=24 bootfile=kernel console=efi currdev=fs0a: hw.physmem=10G hw.uart.console=io:0x2f8,br:115200 interpret=OK kernel=kernel kernel_options= kernelname=/boot/kernel/kernel loaddev=fs0a: mac_ifoff=NO module_path=/boot/kernel;/boot/modules prompt=${interpret} OK boot -v Entering /boot/kernel/kernel at 0xe000000004058000... SALPro at0xe000007e4820,GP t 0e00000800cf6 SL: P wke-p vcto: 0f0 latormclok fequncy1996333 H Pocesorrato 1/2,Busrato 11, TC ati 152 Skipping memory chunk start 0x100000000 Skipping memory chunk start 0x480000000 Skipping memory chunk start 0x4ff000000 Skipping memory chunk start 0x4ff801000 Skipping memory chunk start 0x4ff8aa000 Skipping memory chunk start 0x4ffa00000 Skipping memory chunk start 0x4ffe00000 Skipping memory chunk start 0x4ffe80000 ptc.e base=0x0, count1=1, count2=1, stride1=0x0, stride2=0x0 Processor supports 24 Region ID bits Trying VHPT size 0x800000 Putting VHPT at 0x800000 Splitting [0x100000-0x4000000] GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2004 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.3-RELEASE #0: Fri Nov 5 09:32:33 UTC 2004 root@pluto1.freebsd.org:/usr/obj/usr/src/sys/GENERIC UNWIND: table added: base=e000000004000000, start=e0000000048ab278, end=e0000000048d4db0 Preloaded elf kernel "/boot/kernel/kernel" at 0xe000000005260000. Preloaded mfs_root "/boot/mfsroot" at 0xe0000000052600e0. CPU: unknown (1495.97-Mhz Itanium 2) Origin = "GenuineIntel" Revision = 1 Features = 0x1 real memory = 2106957824 (2009 MB) Physical memory chunk(s): 0x00064000 - 0x00081fff, 122880 bytes (15 pages) 0x00100000 - 0x007fffff, 7340032 bytes (896 pages) 0x01000000 - 0x03ffffff, 50331648 bytes (6144 pages) 0x05262000 - 0x0ffbffff, 181788672 bytes (22191 pages) 0x10000000 - 0x7bab3fff, 1806385152 bytes (220506 pages) 0x7f980000 - 0x7f9fffff, 524288 bytes (64 pages) 0x7fe98000 - 0x7ff35fff, 647168 bytes (79 pages) avail memory = 2033524736 (1939 MB) FPSWA Revision = 0x10012, Entry = 0xe0000004ffe62050 Using ACPI2.0 table at 0x7ff98000 Table 'FACP' at 0xe00000007ff98138 Table 'APIC' at 0xe00000007ff98230 Local APIC address=0xfee00000 Local SAPIC entry ProcessorId=0x0, Id=0x0, Eid=0x0 Local SAPIC entry ProcessorId=0x1, Id=0x1, Eid=0x0 I/O SAPIC entry Id=0x0, InterruptBase=0x0, Address=0xfec00000 I/O SAPIC entry Id=0x1, InterruptBase=0x18, Address=0xfec10000 I/O SAPIC entry Id=0x2, InterruptBase=0x30, Address=0xfec20000 I/O SAPIC entry Id=0x3, InterruptBase=0x48, Address=0xfec30000 I/O SAPIC entry Id=0x4, InterruptBase=0x60, Address=0xfec40000 Interrupt source override entry Bus=0, Source=9, Irq=0x9 Platform interrupt entry Polarity=3, TriggerMode=3, Id=0x0, Eid=0x0, Vector=0x1e, Irq=22 Table 'SPCR' at 0xe00000007ff98328 MCA: allocated 16384 bytes for state info. mem: null: random: acpi0: on motherboard acpi0: [MPSAFE] AcpiOsDerivePciId: bus 255 dev 28 func 1 AcpiOsDerivePciId: bus 255 dev 28 func 2 AcpiOsDerivePciId: bus 255 dev 28 func 4 acpi0: Power Button (fixed) AcpiOsDerivePciId: bus 255 dev 28 func 5 ACPI timer looks GOOD min = 2, max = 3, width = 1 ACPI timer looks GOOD min = 2, max = 3, width = 1 ACPI timer looks GOOD min = 2, max = 3, width = 1 ACPI timer looks GOOD min = 2, max = 3, width = 1 ACPI timer looks GOOD min = 2, max = 3, width = 1 ACPI timer looks GOOD min = 2, max = 3, width = 1 ACPI timer looks GOOD min = 2, max = 3, width = 1 ACPI timer looks GOOD min = 2, max = 3, width = 1 ACPI timer looks GOOD min = 2, max = 3, width = 1 ACPI timer looks GOOD min = 2, max = 3, width = 1 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0xc08-0xc0b on acpi0 cpu0: on acpi0 pcib0: on acpi0 ... From owner-freebsd-ia64@FreeBSD.ORG Wed Mar 9 15:32:17 2005 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6E8E16A4D0 for ; Wed, 9 Mar 2005 15:32:17 +0000 (GMT) Received: from mail28.sea5.speakeasy.net (mail28.sea5.speakeasy.net [69.17.117.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54B9643D55 for ; Wed, 9 Mar 2005 15:32:17 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 9559 invoked from network); 9 Mar 2005 15:32:17 -0000 Received: from server.baldwin.cx ([216.27.160.63]) (envelope-sender )AES256-SHA encrypted SMTP for ; 9 Mar 2005 15:32:15 -0000 Received: from [10.50.40.202] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id j29FVxAi043441; Wed, 9 Mar 2005 10:31:59 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: alpha@FreeBSD.org, amd64@FreeBSD.org, ia64@FreeBSD.org Date: Wed, 9 Mar 2005 10:31:45 -0500 User-Agent: KMail/1.6.2 References: <200503021643.05580.jhb@FreeBSD.org> In-Reply-To: <200503021643.05580.jhb@FreeBSD.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200503091031.46073.jhb@FreeBSD.org> X-Spam-Status: No, score=-102.8 required=4.2 tests=ALL_TRUSTED, USER_IN_WHITELIST autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx Subject: Re: [PATCH] More stackgap removal X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2005 15:32:18 -0000 On Wednesday 02 March 2005 04:43 pm, John Baldwin wrote: > I've fixed up a few more syscalls to have kern_foo versions so that ABI > wrappers for them can stop using the stackgap. In this patch, I've added > kern_settimeofday() for ibcs2 and freebsd32, kern_adjtime() for freebsd32, > and kern_sched_rr_get_interval() for Linux/i386 on amd64 (note that this > means that COMPAT_LINUX32 now requires POSIX_PRIORITY_SCHEDULING). > I've also added kern_readv() and kern_writev() for OSF/1, Linux/i386 on > amd64, and freebsd32. For these functions I added a per-ABI version of > copyinuio() to build a uio structure from the iovec array in userland. > Testing and feedback of both native and compat binaries greatly > appreciated. > > http://www.FreeBSD.org/~jhb/patches/abi.patch Is anyone willing to test this? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-ia64@FreeBSD.ORG Wed Mar 9 17:17:35 2005 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B408A16A4CE; Wed, 9 Mar 2005 17:17:35 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id C812B43D48; Wed, 9 Mar 2005 17:17:34 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0)j29HHUHw097844 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Wed, 9 Mar 2005 18:17:32 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j29HGpVK031705 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 9 Mar 2005 18:16:52 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id j29HGpXh057463; Wed, 9 Mar 2005 18:16:51 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j29HGpiB057462; Wed, 9 Mar 2005 18:16:51 +0100 (CET) (envelope-from ticso) Date: Wed, 9 Mar 2005 18:16:50 +0100 From: Bernd Walter To: John Baldwin Message-ID: <20050309171650.GI22167@cicely12.cicely.de> References: <200503021643.05580.jhb@FreeBSD.org> <200503091031.46073.jhb@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200503091031.46073.jhb@FreeBSD.org> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=no version=2.64 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on cicely12.cicely.de cc: amd64@freebsd.org cc: alpha@freebsd.org cc: ia64@freebsd.org Subject: Re: [PATCH] More stackgap removal X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2005 17:17:35 -0000 On Wed, Mar 09, 2005 at 10:31:45AM -0500, John Baldwin wrote: > On Wednesday 02 March 2005 04:43 pm, John Baldwin wrote: > > I've fixed up a few more syscalls to have kern_foo versions so that ABI > > wrappers for them can stop using the stackgap. In this patch, I've added > > kern_settimeofday() for ibcs2 and freebsd32, kern_adjtime() for freebsd32, > > and kern_sched_rr_get_interval() for Linux/i386 on amd64 (note that this > > means that COMPAT_LINUX32 now requires POSIX_PRIORITY_SCHEDULING). > > I've also added kern_readv() and kern_writev() for OSF/1, Linux/i386 on > > amd64, and freebsd32. For these functions I added a per-ABI version of > > copyinuio() to build a uio structure from the iovec array in userland. > > Testing and feedback of both native and compat binaries greatly > > appreciated. > > > > http://www.FreeBSD.org/~jhb/patches/abi.patch > > Is anyone willing to test this? If you can point me to some compat binaries I can do this week. Otherwise I'm limited to native binaries. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de From owner-freebsd-ia64@FreeBSD.ORG Wed Mar 9 22:15:20 2005 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B70C616A4CE; Wed, 9 Mar 2005 22:15:20 +0000 (GMT) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1456F43D2F; Wed, 9 Mar 2005 22:15:20 +0000 (GMT) (envelope-from jkim@niksun.com) Received: from [10.70.0.244] (daemon.mj.niksun.com [10.70.0.244]) by anuket.mj.niksun.com (8.13.1/8.12.11) with ESMTP id j29MFJe0099363; Wed, 9 Mar 2005 17:15:19 -0500 (EST) (envelope-from jkim@niksun.com) From: Jung-uk Kim Organization: Niksun, Inc. To: freebsd-amd64@freebsd.org Date: Wed, 9 Mar 2005 17:15:16 -0500 User-Agent: KMail/1.6.2 References: <200503021643.05580.jhb@FreeBSD.org> <200503091031.46073.jhb@FreeBSD.org> In-Reply-To: <200503091031.46073.jhb@FreeBSD.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Multipart/Mixed; boundary="Boundary-00=_0V3LC0/VSKdMmMn" Message-Id: <200503091715.16990.jkim@niksun.com> X-Virus-Scanned: ClamAV 0.83/758/Wed Mar 9 07:03:56 2005 on anuket.mj.niksun.com X-Virus-Status: Clean cc: amd64@freebsd.org cc: alpha@freebsd.org cc: ia64@freebsd.org Subject: Re: [PATCH] More stackgap removal X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2005 22:15:21 -0000 --Boundary-00=_0V3LC0/VSKdMmMn Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Wednesday 09 March 2005 10:31 am, John Baldwin wrote: > On Wednesday 02 March 2005 04:43 pm, John Baldwin wrote: > > I've fixed up a few more syscalls to have kern_foo versions so > > that ABI wrappers for them can stop using the stackgap. In this > > patch, I've added kern_settimeofday() for ibcs2 and freebsd32, > > kern_adjtime() for freebsd32, and kern_sched_rr_get_interval() > > for Linux/i386 on amd64 (note that this means that COMPAT_LINUX32 > > now requires POSIX_PRIORITY_SCHEDULING). I've also added > > kern_readv() and kern_writev() for OSF/1, Linux/i386 on amd64, > > and freebsd32. For these functions I added a per-ABI version of > > copyinuio() to build a uio structure from the iovec array in > > userland. Testing and feedback of both native and compat binaries > > greatly appreciated. > > > > http://www.FreeBSD.org/~jhb/patches/abi.patch > > Is anyone willing to test this? The attachment corrects two obvious typos in freebsd32_misc.c. With this, freebsd32 works fine on amd64. Thanks, Jung-uk Kim --Boundary-00=_0V3LC0/VSKdMmMn Content-Type: text/x-diff; charset="iso-8859-1"; name="freebsd32_misc.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="freebsd32_misc.diff" --- src/sys/compat/freebsd32/freebsd32_misc.c Wed Mar 9 17:11:35 2005 +++ src/sys/compat/freebsd32/freebsd32_misc.c Wed Mar 9 16:57:00 2005 @@ -747,7 +747,7 @@ error = freebsd32_copyinuio(uap->iovp, uap->iovcnt, &auio); if (error) return (error); - error = kern_readv(td, uap->fd, auio); + error = kern_writev(td, uap->fd, auio); free(auio, M_IOV); return (error); } @@ -777,7 +777,7 @@ tzp = &tz; } else tzp = NULL; - return (kern_settimeofday(td, tvp, tzp); + return (kern_settimeofday(td, tvp, tzp)); } int --Boundary-00=_0V3LC0/VSKdMmMn-- From owner-freebsd-ia64@FreeBSD.ORG Thu Mar 10 15:35:10 2005 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F11DB16A4CE for ; Thu, 10 Mar 2005 15:35:10 +0000 (GMT) Received: from mail3.ecc.u-tokyo.ac.jp (mail3.ecc.u-tokyo.ac.jp [133.11.171.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAA4C43D5C for ; Thu, 10 Mar 2005 15:35:09 +0000 (GMT) (envelope-from tamaru@myn.rcast.u-tokyo.ac.jp) Received: from spam005.ecc.u-tokyo.ac.jp (spam005.ecc.u-tokyo.ac.jp [133.11.50.198]) by mail3.ecc.u-tokyo.ac.jp (Postfix) with ESMTP id 5466470276 for ; Fri, 11 Mar 2005 00:35:08 +0900 (JST) Received: from gin.myn.rcast.u-tokyo.ac.jp ( [157.82.72.158]) by spam005.ecc.u-tokyo.ac.jp (SpamBlock.pst 3.4.25) with ESMTP id for ; Fri, 11 Mar 2005 00:35:07 +0900 Date: Fri, 11 Mar 2005 00:35:07 +0900 Message-ID: From: Hiroharu Tamaru To: ia64@freebsd.org In-Reply-To: <422FA871.909@intel.com> References: <422FA871.909@intel.com> User-Agent: User-Agent: Wanderlust/2.10.0 (Venus) Emacs/21.3 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII X-IP: 157.82.72.158 X-FROM-DOMAIN: myn.rcast.u-tokyo.ac.jp X-FROM-EMAIL: tamaru@myn.rcast.u-tokyo.ac.jp cc: Arun Sharma Subject: Re: > 2G memory on ia64? X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2005 15:35:11 -0000 At Wed, 09 Mar 2005 17:52:49 -0800, Arun Sharma wrote: > On 3/9/2005 6:24 AM, Hiroharu Tamaru wrote: > > Is there anything else I should setup to let it recognize > > full 16GB? > > ia64/machdep.c: > > /* > * Wimp out for now since we do not DTRT here with > * pci bus mastering (no bounce buffering, for example). > */ Ah, I see. I'd be looking forward then. # Well, this machine is originally running Linux, # and I was testing my favorite OS on its spare time. Thanks for the quick response. -- Hiroharu Tamaru