From owner-freebsd-amd64@FreeBSD.ORG Mon Jun 11 05:24:38 2007 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3740A16A46B for ; Mon, 11 Jun 2007 05:24:38 +0000 (UTC) (envelope-from freebsd@sopwith.solgatos.com) Received: from schitzo.solgatos.com (pool-71-117-239-32.ptldor.fios.verizon.net [71.117.239.32]) by mx1.freebsd.org (Postfix) with ESMTP id F2E5813C457 for ; Mon, 11 Jun 2007 05:24:35 +0000 (UTC) (envelope-from freebsd@sopwith.solgatos.com) Received: from schitzo.solgatos.com (localhost.home.localnet [127.0.0.1]) by schitzo.solgatos.com (8.13.8/8.13.8) with ESMTP id l5B5OZ7l009145 for ; Sun, 10 Jun 2007 22:24:35 -0700 Received: from sopwith.solgatos.com (uucp@localhost) by schitzo.solgatos.com (8.13.8/8.13.4/Submit) with UUCP id l5B5OZYf009135 for freebsd-amd64@freebsd.org; Sun, 10 Jun 2007 22:24:35 -0700 Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id FAA04971; Mon, 11 Jun 2007 05:23:15 GMT Message-Id: <200706110523.FAA04971@sopwith.solgatos.com> To: freebsd-amd64@freebsd.org Date: Sun, 10 Jun 2007 22:23:15 +0100 From: Dieter Subject: Tyan 2865 soft power switch doesn't work with FreeBSD X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@sopwith.solgatos.com List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jun 2007 05:24:38 -0000 Tyan Tomcat k8e 2865 mainboard AMD64 nforce4 ultra With FreeBSD 6.2, after halting the system, the soft power switch does not power down the system. With NetBSD 3.0.1 the soft power switch works. From owner-freebsd-amd64@FreeBSD.ORG Mon Jun 11 09:42:54 2007 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8433016A468 for ; Mon, 11 Jun 2007 09:42:54 +0000 (UTC) (envelope-from fabian@wenks.ch) Received: from batman.home4u.ch (batman1.home4u.ch [217.8.211.226]) by mx1.freebsd.org (Postfix) with ESMTP id 1B30413C45D for ; Mon, 11 Jun 2007 09:42:53 +0000 (UTC) (envelope-from fabian@wenks.ch) Received: from [IPv6:2002:3e02:55b4:2:20a:95ff:fe8f:6586] (flashback.wenks.ch [IPv6:2002:3e02:55b4:2:20a:95ff:fe8f:6586]) (authenticated bits=0) by batman.home4u.ch (8.13.1/8.13.1) with ESMTP id l5B9gomA041810 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 11 Jun 2007 11:42:51 +0200 (CEST) (envelope-from fabian@wenks.ch) Message-ID: <466D1915.4080007@wenks.ch> Date: Mon, 11 Jun 2007 11:42:45 +0200 From: Fabian Wenk User-Agent: Thunderbird 1.5.0.12 (Macintosh/20070509) MIME-Version: 1.0 To: freebsd-amd64@freebsd.org References: <200706110523.FAA04971@sopwith.solgatos.com> In-Reply-To: <200706110523.FAA04971@sopwith.solgatos.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Subject: Re: Tyan 2865 soft power switch doesn't work with FreeBSD X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jun 2007 09:42:54 -0000 Hello Dieter Dieter wrote: > With FreeBSD 6.2, after halting the system, the soft power switch > does not power down the system. I have the same symptom with a Tyan Thunder i7520 (S5360) server board. Pressing the power button for a few seconds turns the system off. But for me this is not a problem, as I seldom have to turn it off. For FreeBSD/i386 the following could be enabled in the GENERIC kernel, but it is missing in the amd64 GENERIC (maybe this does not work): # Power management support (see NOTES for more options) #device apm bye Fabian From owner-freebsd-amd64@FreeBSD.ORG Mon Jun 11 11:08:29 2007 Return-Path: X-Original-To: freebsd-amd64@FreeBSD.org Delivered-To: freebsd-amd64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 267B216A41F for ; Mon, 11 Jun 2007 11:08:29 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 14FF613C4AD for ; Mon, 11 Jun 2007 11:08:29 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l5BB8Sls026535 for ; Mon, 11 Jun 2007 11:08:28 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l5BB8Rgk026531 for freebsd-amd64@FreeBSD.org; Mon, 11 Jun 2007 11:08:27 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 11 Jun 2007 11:08:27 GMT Message-Id: <200706111108.l5BB8Rgk026531@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-amd64@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jun 2007 11:08:29 -0000 Current FreeBSD problem reports Critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o amd64/89202 amd64 [ufs] [panic] Kernel crash when accessing filesystem w o amd64/112222 amd64 [libc] 32-bit libc incorrectly converts some FP number 2 problems total. Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o amd64/73322 amd64 [msdosfs] [hang] unarchiving /etc to msdosfs locks up o amd64/74747 amd64 System panic on shutdown when process will not die o amd64/76136 amd64 system halts before reboot o amd64/78406 amd64 [panic]AMD64 w/ SCSI: issue 'rm -r /usr/ports' and sys o amd64/80691 amd64 amd64 kernel hangs on load o amd64/82425 amd64 [fxp] fxp0: device timeout, fxp interface dies on 5.4/ o amd64/83005 amd64 Memory Occupied during installation of the FreeBSD 5.4 f amd64/84832 amd64 Installation crashes just at boot AMD64/ Version 5.4 o amd64/85451 amd64 [hang] 6.0-BETA3 lockups on AMD64 (PREEMPTION only) o amd64/86080 amd64 [radeon] [hang] radeon DRI causes system hang on amd64 o amd64/86503 amd64 [atapicam] [panic] k3b crash the system like hardware o amd64/87258 amd64 [smp] [boot] cannot boot with SMP and Areca ARC-1160 r o amd64/87305 amd64 [smp] Dual Opteron / FreeBSD 5 & 6 / powerd results in o amd64/87316 amd64 [vge] "vge0 attach returned 6" on FreeBSD 6.0-RC1 amd6 o amd64/87689 amd64 [powerd] [hang] powerd hangs SMP Opteron 244 5-STABLE o amd64/87977 amd64 [busdma] [panic] amd64 busdma dflt_lock called (by ata f amd64/88568 amd64 [panic] 6.0-RELEASE install cd does not boot with usb o amd64/88790 amd64 kernel panic on first boot (after the FreeBSD installa o amd64/89501 amd64 System crashes on install using ftp on local subnet o amd64/89503 amd64 Cant Boot Installation Disk o amd64/89546 amd64 [geom] GEOM error o amd64/89550 amd64 [sym] [patch] sym0: VTOBUS failed (6.0 Release) o amd64/91405 amd64 [asr] [panic] Kernel panic caused by asr on 6.0-amd64 o amd64/91492 amd64 BTX halted o amd64/92337 amd64 [em] FreeBSD 6.0 Release Intel Pro 1000 MT em1 no buff o amd64/92889 amd64 [libc] xdr double buffer overflow o amd64/93961 amd64 [busdma] Problem in bounce buffer handling in sys/amd6 o amd64/94677 amd64 panic in amd64 install at non-root user creation o amd64/94989 amd64 BTX Halts on Sun Fire X2100 w/6.1-BETA4 (amd64) and 5. f amd64/95414 amd64 kernel crashes during install o amd64/95888 amd64 kernel: ad2: TIMEOUT - WRITE_DMA retrying on HP DL140G a amd64/96981 amd64 reproducible instant reboot by unprivileged user o amd64/97075 amd64 Panic, Trap 12 o amd64/97337 amd64 [dri] xorg reboots system if dri module is enabled o amd64/102122 amd64 6.1-RELEASE amd64 Install Media panics on boot. s amd64/104311 amd64 ports/wine should be installable on amd64 o amd64/105514 amd64 FreeBSD/amd64 - Fails to boot on HP Pavilion dv8000 La o amd64/105531 amd64 [sata] gigabyte GA-M51GM-S2G / nVidia nForce 430 - doe o amd64/105629 amd64 [re] TrendNet TEG-BUSR 10/100/1000 disables itself on o amd64/106604 amd64 saslauthd crashes with signal 6 on FreeBSD 6.2-PREREL o amd64/106918 amd64 [re] Asus P5B with internal RealTek PCIe Ethernet gets o amd64/108861 amd64 [nve] nve(4) driver on FreeBSD 6.2 AMD64 does not work f amd64/109584 amd64 zdump doesn't work o amd64/110655 amd64 [threads] 32 bit threaded applications crash on amd64 f amd64/111337 amd64 [hang] The system freezes when large file is transferr o amd64/111955 amd64 [install] Install CD boot panic due to missing BIOS sm o amd64/111992 amd64 BTX failed - HP Laptop dv2315nr s gnu/112215 amd64 [patch] gcc(1): "gcc -m32" attempts to link against 64 o amd64/112677 amd64 [aac] Adaptec 4805SAS causes 6.2 (AMD64) to panic (amd f amd64/112828 amd64 Complete data loss after upgrade 6.1 -> 6.2 (Amd64) o amd64/113021 amd64 [re] ASUS M2A-VM onboard NIC does not work o amd64/113130 amd64 [sata] no sata drive found (regression) 52 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o amd64/74608 amd64 [mpt] [hang] mpt hangs 5 minutes when booting o amd64/74811 amd64 [nfs] df, nfs mount, negative Avail -> 32/64-bit confu s amd64/85273 amd64 FreeBSD (NetBSD or OpenBSD) not install on laptop Comp o amd64/88730 amd64 kernel panics during booting from the installation CD o amd64/91195 amd64 FreeBSD 6.0(amd64) and Asus A8R-MVP a amd64/92527 amd64 [ciphy.c] ][patch] no driver for "CICADA VSC 8201 Giga a amd64/93002 amd64 amd64 (6.0) coredumps at unpredictable times a amd64/93090 amd64 [nve] NIC on GA-K8NF-9 motherboard is recognized, but o amd64/97489 amd64 [ata] nForce 410 ATA controller dma time out (ASUS K8N o amd64/100326 amd64 [fdc] /dev/fd0 not created after installation FreeBSD o amd64/100838 amd64 [powerd] FreeBSD 6.0/6.1 kernel panics when booting wi f amd64/101132 amd64 [smp] Incorrect cpu idle and usage statistics in top a o amd64/102716 amd64 ex with no argument in an xterm gets SIGSEGV o amd64/103259 amd64 [ar] Cannot use ataraid on nvidia nForce4+amd64 o amd64/106186 amd64 [panic] panic in swap_pager_swap_init (amd64/smp/6.2-p o amd64/107858 amd64 ASRock Conroe-945G-DVI motherboard: non-working sound f amd64/108345 amd64 6.2-* GENERIC will not boot Intel PD EMT64 w/ ACPI o amd64/110599 amd64 [geli] geli attach to gmirror device hangs and cannot o amd64/111096 amd64 motherboard ASRock AM2NF6G-VSTA not supported f amd64/113111 amd64 Potentially wrong instructions will be produced for EM 20 problems total. From owner-freebsd-amd64@FreeBSD.ORG Tue Jun 12 03:55:28 2007 Return-Path: X-Original-To: freebsd-amd64@hub.freebsd.org Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0F57816A468; Tue, 12 Jun 2007 03:55:28 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id DB33313C45B; Tue, 12 Jun 2007 03:55:27 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l5C3tR6Y013315; Tue, 12 Jun 2007 03:55:27 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l5C3tRb2013311; Tue, 12 Jun 2007 03:55:27 GMT (envelope-from linimon) Date: Tue, 12 Jun 2007 03:55:27 GMT From: Mark Linimon Message-Id: <200706120355.l5C3tRb2013311@freefall.freebsd.org> To: freebsd@bsdchicks.com, linimon@FreeBSD.org, linimon@FreeBSD.org, freebsd-amd64@FreeBSD.org Cc: Subject: Re: amd64/85431: AMD64 has short but temporary freezes (hangups) on Sun Blade W1100Z X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2007 03:55:28 -0000 Synopsis: AMD64 has short but temporary freezes (hangups) on Sun Blade W1100Z State-Changed-From-To: feedback->open State-Changed-By: linimon State-Changed-When: Tue Jun 12 03:54:52 UTC 2007 State-Changed-Why: Apparently still a problem. Responsible-Changed-From-To: linimon->freebsd-amd64 Responsible-Changed-By: linimon Responsible-Changed-When: Tue Jun 12 03:54:52 UTC 2007 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=85431 From owner-freebsd-amd64@FreeBSD.ORG Tue Jun 12 04:20:12 2007 Return-Path: X-Original-To: freebsd-amd64@hub.freebsd.org Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4A2F416A47A for ; Tue, 12 Jun 2007 04:20:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 7474113C4BA for ; Tue, 12 Jun 2007 04:20:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l5C4K9xo014604 for ; Tue, 12 Jun 2007 04:20:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l5C4K9J4014601; Tue, 12 Jun 2007 04:20:09 GMT (envelope-from gnats) Date: Tue, 12 Jun 2007 04:20:09 GMT Message-Id: <200706120420.l5C4K9J4014601@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org From: "Curtis W. Rendon" Cc: Subject: re: amd64/85431: AMD64 has short but temporary freezes (hangups) on Sun Blade W1100Z X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Curtis W. Rendon" List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2007 04:20:12 -0000 The following reply was made to PR amd64/85431; it has been noted by GNATS. From: "Curtis W. Rendon" To: bug-followup@FreeBSD.org, freebsd@bsdchicks.com Cc: Subject: re: amd64/85431: AMD64 has short but temporary freezes (hangups) on Sun Blade W1100Z Date: Mon, 11 Jun 2007 22:52:07 -0500 I am seeing this with AMD64/FreeBSD6.2 on a HP dv6000z dual Turion laptop. I notice that if I run with acpi disabled everything runs fine. Also means only 1 CPU is engaged. I may try with a STABLE snapshot... -- mouse, n: a device for pointing at the xterm in which you want to type. -- Fortune From owner-freebsd-amd64@FreeBSD.ORG Tue Jun 12 07:19:30 2007 Return-Path: X-Original-To: freebsd-amd64@hub.freebsd.org Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 512F816A46B; Tue, 12 Jun 2007 07:19:30 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 2980913C45A; Tue, 12 Jun 2007 07:19:30 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l5C7JUtL032083; Tue, 12 Jun 2007 07:19:30 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l5C7JTJV032079; Tue, 12 Jun 2007 07:19:29 GMT (envelope-from linimon) Date: Tue, 12 Jun 2007 07:19:29 GMT From: Mark Linimon Message-Id: <200706120719.l5C7JTJV032079@freefall.freebsd.org> To: aron@agx.sk, linimon@FreeBSD.org, freebsd-amd64@FreeBSD.org Cc: Subject: Re: amd64/88568: [panic] 6.0-RELEASE install cd does not boot with usb keyboard X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2007 07:19:30 -0000 Synopsis: [panic] 6.0-RELEASE install cd does not boot with usb keyboard State-Changed-From-To: feedback->open State-Changed-By: linimon State-Changed-When: Tue Jun 12 07:18:39 UTC 2007 State-Changed-Why: Apparently this problem still recurs in some cases. http://www.freebsd.org/cgi/query-pr.cgi?pr=88568 From owner-freebsd-amd64@FreeBSD.ORG Tue Jun 12 08:34:28 2007 Return-Path: X-Original-To: freebsd-amd64@hub.freebsd.org Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 340A516A41F; Tue, 12 Jun 2007 08:34:28 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 0BBF413C447; Tue, 12 Jun 2007 08:34:28 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l5C8YRmu040871; Tue, 12 Jun 2007 08:34:27 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l5C8YREn040867; Tue, 12 Jun 2007 08:34:27 GMT (envelope-from linimon) Date: Tue, 12 Jun 2007 08:34:27 GMT From: Mark Linimon Message-Id: <200706120834.l5C8YREn040867@freefall.freebsd.org> To: victor@nett.ca, linimon@FreeBSD.org, freebsd-amd64@FreeBSD.org Cc: Subject: Re: amd64/111337: [hang] The system freezes when large file is transferred over the network X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2007 08:34:28 -0000 Synopsis: [hang] The system freezes when large file is transferred over the network State-Changed-From-To: feedback->closed State-Changed-By: linimon State-Changed-When: Tue Jun 12 08:34:12 UTC 2007 State-Changed-Why: Feedback timeout (1 month). http://www.freebsd.org/cgi/query-pr.cgi?pr=111337 From owner-freebsd-amd64@FreeBSD.ORG Tue Jun 12 10:01:25 2007 Return-Path: X-Original-To: amd64@freebsd.org Delivered-To: freebsd-amd64@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 85EA516A46B; Tue, 12 Jun 2007 10:01:25 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 34AAA13C4B0; Tue, 12 Jun 2007 10:01:25 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1c.sentex.ca [64.7.153.10]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l5CA1O0S077323; Tue, 12 Jun 2007 06:01:24 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.13.8/8.13.8) with ESMTP id l5CA1O9C080516; Tue, 12 Jun 2007 06:01:24 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 4AD2473068; Tue, 12 Jun 2007 06:01:24 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20070612100124.4AD2473068@freebsd-current.sentex.ca> Date: Tue, 12 Jun 2007 06:01:24 -0400 (EDT) X-Virus-Scanned: ClamAV version devel-20070102, clamav-milter version devel-111206 on clamscanner5 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2007 10:01:25 -0000 TB --- 2007-06-12 08:50:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-06-12 08:50:00 - starting HEAD tinderbox run for amd64/amd64 TB --- 2007-06-12 08:50:00 - cleaning the object tree TB --- 2007-06-12 08:50:40 - checking out the source tree TB --- 2007-06-12 08:50:40 - cd /tinderbox/HEAD/amd64/amd64 TB --- 2007-06-12 08:50:40 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-06-12 09:01:22 - building world (CFLAGS=-O2 -pipe) TB --- 2007-06-12 09:01:22 - cd /src TB --- 2007-06-12 09:01:22 - /usr/bin/make -B buildworld >>> World build started on Tue Jun 12 09:01:23 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O2 -pipe -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs -DRESCUE -Wno-pointer-sign -c /src/sbin/ifconfig/iflagg.c /src/sbin/ifconfig/iflagg.c: In function 'setlaggproto': /src/sbin/ifconfig/iflagg.c:69: error: 'struct lagg_protos' has no member named 'tpr_name' /src/sbin/ifconfig/iflagg.c:70: error: 'struct lagg_protos' has no member named 'tpr_proto' /src/sbin/ifconfig/iflagg.c: In function 'lagg_status': /src/sbin/ifconfig/iflagg.c:106: error: 'struct lagg_protos' has no member named 'tpr_proto' /src/sbin/ifconfig/iflagg.c:107: error: 'struct lagg_protos' has no member named 'tpr_name' /src/sbin/ifconfig/iflagg.c:126: error: 'struct lagg_protos' has no member named 'tpr_name' *** Error code 1 Stop in /src/sbin/ifconfig. *** Error code 1 Stop in /obj/amd64/src/rescue/rescue. *** Error code 1 Stop in /src/rescue/rescue. *** Error code 1 Stop in /src/rescue. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-06-12 10:01:24 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-06-12 10:01:24 - ERROR: failed to build world TB --- 2007-06-12 10:01:24 - tinderbox aborted TB --- 1.02 user 3.66 system 4283.77 real http://tinderbox.des.no/tinderbox-head-HEAD-amd64-amd64.full From owner-freebsd-amd64@FreeBSD.ORG Tue Jun 12 19:04:58 2007 Return-Path: X-Original-To: amd64@freebsd.org Delivered-To: freebsd-amd64@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1415416A41F; Tue, 12 Jun 2007 19:04:58 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id C86BC13C4B0; Tue, 12 Jun 2007 19:04:57 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l5CJ4vVr071137; Tue, 12 Jun 2007 15:04:57 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.8/8.13.8) with ESMTP id l5CJ4vig097567; Tue, 12 Jun 2007 15:04:57 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 1218F73068; Tue, 12 Jun 2007 15:04:57 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20070612190457.1218F73068@freebsd-current.sentex.ca> Date: Tue, 12 Jun 2007 15:04:57 -0400 (EDT) X-Virus-Scanned: ClamAV version devel-20070108, clamav-milter version devel-111206 on clamscanner3 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2007 19:04:58 -0000 TB --- 2007-06-12 18:40:01 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-06-12 18:40:01 - starting HEAD tinderbox run for amd64/amd64 TB --- 2007-06-12 18:40:01 - cleaning the object tree TB --- 2007-06-12 18:40:40 - checking out the source tree TB --- 2007-06-12 18:40:40 - cd /tinderbox/HEAD/amd64/amd64 TB --- 2007-06-12 18:40:40 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-06-12 18:51:23 - building world (CFLAGS=-O2 -pipe) TB --- 2007-06-12 18:51:23 - cd /src TB --- 2007-06-12 18:51:23 - /usr/bin/make -B buildworld >>> World build started on Tue Jun 12 18:51:25 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries [...] cc -O2 -pipe -I/src/lib/libc/include -I/src/lib/libc/../../include -I/src/lib/libc/amd64 -D__DBINTERFACE_PRIVATE -I/src/lib/libc/../../contrib/gdtoa -DINET6 -I/obj/amd64/src/lib/libc -I/src/lib/libc/resolv -DPOSIX_MISTAKE -I/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/src/lib/libc/rpc -DYP -DNS_CACHING -DSYMBOL_VERSIONING -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /src/lib/libc/net/sockatmark.c cc -O2 -pipe -I/src/lib/libc/include -I/src/lib/libc/../../include -I/src/lib/libc/amd64 -D__DBINTERFACE_PRIVATE -I/src/lib/libc/../../contrib/gdtoa -DINET6 -I/obj/amd64/src/lib/libc -I/src/lib/libc/resolv -DPOSIX_MISTAKE -I/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/src/lib/libc/rpc -DYP -DNS_CACHING -DSYMBOL_VERSIONING -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /src/lib/libc/net/sourcefilter.c /src/lib/libc/net/sourcefilter.c: In function 'setsourcefilter': /src/lib/libc/net/sourcefilter.c:309: error: invalid type argument of '->' /src/lib/libc/net/sourcefilter.c:329: warning: implicit declaration of function 'setsockopt' /src/lib/libc/net/sourcefilter.c: In function 'getsourcefilter': /src/lib/libc/net/sourcefilter.c:370: error: invalid type argument of '->' /src/lib/libc/net/sourcefilter.c:397: warning: implicit declaration of function 'getsockopt' *** Error code 1 Stop in /src/lib/libc. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-06-12 19:04:56 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-06-12 19:04:56 - ERROR: failed to build world TB --- 2007-06-12 19:04:56 - tinderbox aborted TB --- 0.95 user 3.69 system 1495.76 real http://tinderbox.des.no/tinderbox-head-HEAD-amd64-amd64.full From owner-freebsd-amd64@FreeBSD.ORG Tue Jun 12 21:31:43 2007 Return-Path: X-Original-To: amd64@freebsd.org Delivered-To: freebsd-amd64@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3700516A494; Tue, 12 Jun 2007 21:31:43 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 5C63213C484; Tue, 12 Jun 2007 21:31:42 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l5CLVfrf091371; Tue, 12 Jun 2007 17:31:41 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.8/8.13.8) with ESMTP id l5CLVfWG094980; Tue, 12 Jun 2007 17:31:41 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id B917873068; Tue, 12 Jun 2007 17:31:41 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20070612213141.B917873068@freebsd-current.sentex.ca> Date: Tue, 12 Jun 2007 17:31:41 -0400 (EDT) X-Virus-Scanned: ClamAV version devel-20070108, clamav-milter version devel-111206 on news X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2007 21:31:43 -0000 TB --- 2007-06-12 20:40:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-06-12 20:40:00 - starting HEAD tinderbox run for amd64/amd64 TB --- 2007-06-12 20:40:00 - cleaning the object tree TB --- 2007-06-12 20:40:13 - checking out the source tree TB --- 2007-06-12 20:40:13 - cd /tinderbox/HEAD/amd64/amd64 TB --- 2007-06-12 20:40:13 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-06-12 20:51:11 - building world (CFLAGS=-O2 -pipe) TB --- 2007-06-12 20:51:11 - cd /src TB --- 2007-06-12 20:51:11 - /usr/bin/make -B buildworld >>> World build started on Tue Jun 12 20:51:12 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] gzip -cn /src/lib/libc/net/inet6_rthdr_space.3 > inet6_rthdr_space.3.gz gzip -cn /src/lib/libc/net/linkaddr.3 > linkaddr.3.gz gzip -cn /src/lib/libc/net/nsdispatch.3 > nsdispatch.3.gz gzip -cn /src/lib/libc/net/rcmd.3 > rcmd.3.gz gzip -cn /src/lib/libc/net/rcmdsh.3 > rcmdsh.3.gz gzip -cn /src/lib/libc/net/resolver.3 > resolver.3.gz gzip -cn /src/lib/libc/net/sockatmark.3 > sockatmark.3.gz make: don't know how to make setsourcefilter.3. Stop *** Error code 2 Stop in /src/lib. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-06-12 21:31:41 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-06-12 21:31:41 - ERROR: failed to build world TB --- 2007-06-12 21:31:41 - tinderbox aborted TB --- 0.17 user 0.45 system 3101.37 real http://tinderbox.des.no/tinderbox-head-HEAD-amd64-amd64.full From owner-freebsd-amd64@FreeBSD.ORG Wed Jun 13 00:45:41 2007 Return-Path: X-Original-To: freebsd-amd64@FreeBSD.org Delivered-To: freebsd-amd64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 876C416A469 for ; Wed, 13 Jun 2007 00:45:41 +0000 (UTC) (envelope-from linimon@lonesome.com) Received: from mail.soaustin.net (mail.soaustin.net [207.200.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id 606B613C44C for ; Wed, 13 Jun 2007 00:45:41 +0000 (UTC) (envelope-from linimon@lonesome.com) Received: by mail.soaustin.net (Postfix, from userid 502) id 187EDB46; Tue, 12 Jun 2007 19:21:29 -0500 (CDT) Date: Tue, 12 Jun 2007 19:21:28 -0500 To: Darren Pilgrim Message-ID: <20070613002128.GB21194@soaustin.net> References: <200706051316.l55DGSU0052272@lurza.secnetix.de> <466F1CCF.6020607@bitfreak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <466F1CCF.6020607@bitfreak.org> User-Agent: Mutt/1.5.9i From: linimon@lonesome.com (Mark Linimon) Cc: jroberson@chesapeake.net, freebsd-current@FreeBSD.ORG, freebsd-amd64@FreeBSD.org Subject: ports broken on amd64 [was: Re: Intel C2D COREs not used equally in FreeBSD 7.0-CURRENT i386] X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 00:45:41 -0000 [Subject changed and amd64@ added] On Tue, Jun 12, 2007 at 03:23:11PM -0700, Darren Pilgrim wrote: > Is there a list of known amd64-broken ports or have they all been > flagged in the tree with (NOT|ONLY)_FOR_ARCHS variables? They are flagged BROKEN when kris notices a bad result from the build cluster (pointyhat.freebsd.org). For a long time, people have used those *_FOR_ARCHS as a shorthand for conditionally marking them broken, in some cases only because they didn't have an amd64 to test with. These ports should be changed over; my feeling is that the true use of *_FOR_ARCHS should only be for "port cannot be made to work on this architecture". In individual ports, BROKEN is used for compile failures, and IGNORE is used for "does not actually work in this situation" (e.g. core dump), as well as other cases such as CONFLICTS. (This is the short summary; there is much more in the Porter's Handbook). Part of my work for my BSDCan paper was to teach portsmon to create dependency tree displays for ports that do not correctly package per- buildenv. I have it working statically but not on-demand; OTOH I am still behind from my trip afterwards. However, you can look at the bar-chart comparison results as of a month ago at: http://people.freebsd.org/~linimon/portsmon2007/package_comparison.html which will lead you to the individual pie charts (e.g.): http://people.freebsd.org/~linimon/portsmon2007/package_status.amd64-6.html http://people.freebsd.org/~linimon/portsmon2007/package_status.i386-6.html These _should_, but don't :-), lead you to the breakdown of failures by buildenv: http://people.freebsd.org/~linimon/tmp/package_failures.amd64-6.html http://people.freebsd.org/~linimon/tmp/package_failures.i386-6.html *note*: as a simplification, non-built packages that are leaves are not yet shown in the latter two. This is because if I put them all on there, it gives graphviz indigestion. This is a bug. This is all Work-In-Progress. Final note: both portsmon and FreshPorts currently only model the "state" of a port on i386-6, so they give you a baseline, but not a way to compare vs. e.g. amd64-6. So you have to do a little investigative work with either these charts (and portsmon pages for individual ports, which will show you their build status across buildenvs), or the pointyhat log pages. mcl From owner-freebsd-amd64@FreeBSD.ORG Wed Jun 13 01:21:45 2007 Return-Path: X-Original-To: freebsd-amd64@FreeBSD.org Delivered-To: freebsd-amd64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 74E9716A473 for ; Wed, 13 Jun 2007 01:21:45 +0000 (UTC) (envelope-from freebsd@bitfreak.org) Received: from mail.twinthornes.com (mail.twinthornes.com [65.75.198.147]) by mx1.freebsd.org (Postfix) with ESMTP id 5180713C483 for ; Wed, 13 Jun 2007 01:21:45 +0000 (UTC) (envelope-from freebsd@bitfreak.org) Received: from [10.9.70.107] (pool-71-117-207-47.ptldor.fios.verizon.net [71.117.207.47]) by mail.twinthornes.com (Postfix) with ESMTP id 4213B14D; Tue, 12 Jun 2007 17:51:26 -0700 (PDT) Message-ID: <466F3F8E.2010404@bitfreak.org> Date: Tue, 12 Jun 2007 17:51:26 -0700 From: Darren Pilgrim User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: Mark Linimon References: <200706051316.l55DGSU0052272@lurza.secnetix.de> <466F1CCF.6020607@bitfreak.org> <20070613002128.GB21194@soaustin.net> In-Reply-To: <20070613002128.GB21194@soaustin.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: jroberson@chesapeake.net, freebsd-current@FreeBSD.ORG, freebsd-amd64@FreeBSD.org Subject: Re: ports broken on amd64 [was: Re: Intel C2D COREs not used equally in FreeBSD 7.0-CURRENT i386] X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 01:21:45 -0000 Mark Linimon wrote: > On Tue, Jun 12, 2007 at 03:23:11PM -0700, Darren Pilgrim wrote: >> Is there a list of known amd64-broken ports or have they all been >> flagged in the tree with (NOT|ONLY)_FOR_ARCHS variables? > > They are flagged BROKEN when kris notices a bad result from the build > cluster (pointyhat.freebsd.org). For a long time, people have used > those *_FOR_ARCHS as a shorthand for conditionally marking them > broken, in some cases only because they didn't have an amd64 to test > with. These ports should be changed over; my feeling is that the > true use of *_FOR_ARCHS should only be for "port cannot be made to > work on this architecture". I'm a bit lost on this logic. Why would an unconditional flag be more appropriate than a conditional flag for a situation that is inherently conditional? BROKEN_WITH_MYSQL, BROKEN_WITH_PGSQL and BROKEN_WITH_PHP all have the purpose of preventing the build when the port isn't compatible with the target environment--using BROKEN as you describe seems to go against the model seen elsewhere. From owner-freebsd-amd64@FreeBSD.ORG Wed Jun 13 05:12:31 2007 Return-Path: X-Original-To: amd64@freebsd.org Delivered-To: freebsd-amd64@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D6B7816A46B; Wed, 13 Jun 2007 05:12:31 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 9604D13C468; Wed, 13 Jun 2007 05:12:31 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1c.sentex.ca [64.7.153.10]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l5D5CV8C018097; Wed, 13 Jun 2007 01:12:31 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.13.8/8.13.8) with ESMTP id l5D5CUU1009109; Wed, 13 Jun 2007 01:12:30 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 7A99173068; Wed, 13 Jun 2007 01:12:30 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20070613051230.7A99173068@freebsd-current.sentex.ca> Date: Wed, 13 Jun 2007 01:12:30 -0400 (EDT) X-Virus-Scanned: ClamAV version devel-20070102, clamav-milter version devel-111206 on clamscanner5 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 05:12:32 -0000 TB --- 2007-06-13 03:00:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-06-13 03:00:00 - starting HEAD tinderbox run for amd64/amd64 TB --- 2007-06-13 03:00:00 - cleaning the object tree TB --- 2007-06-13 03:00:19 - checking out the source tree TB --- 2007-06-13 03:00:19 - cd /tinderbox/HEAD/amd64/amd64 TB --- 2007-06-13 03:00:19 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-06-13 03:10:54 - building world (CFLAGS=-O2 -pipe) TB --- 2007-06-13 03:10:54 - cd /src TB --- 2007-06-13 03:10:54 - /usr/bin/make -B buildworld >>> World build started on Wed Jun 13 03:10:55 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> stage 5.1: building 32 bit shim libraries >>> World build completed on Wed Jun 13 04:57:10 UTC 2007 TB --- 2007-06-13 04:57:10 - generating LINT kernel config TB --- 2007-06-13 04:57:10 - cd /src/sys/amd64/conf TB --- 2007-06-13 04:57:10 - /usr/bin/make -B LINT TB --- 2007-06-13 04:57:10 - building LINT kernel (COPTFLAGS=-O2 -pipe) TB --- 2007-06-13 04:57:10 - cd /src TB --- 2007-06-13 04:57:10 - /usr/bin/make buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Wed Jun 13 04:57:10 UTC 2007 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] rm -f hack.c MAKE=/usr/bin/make sh /src/sys/conf/newvers.sh LINT cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -DGPROF -falign-functions=16 -DGPROF4 -DGUPROF -fno-builtin -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -pg -mprofiler-epilogue vers.c linking kernel ng_ubt.o(.text+0x569): In function `ubt_detach': : undefined reference to `USBDEV' ng_ubt.o(.text+0x19c7): In function `ubt_attach': : undefined reference to `USBDEV' *** Error code 1 Stop in /obj/amd64/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-06-13 05:12:29 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-06-13 05:12:29 - ERROR: failed to build lint kernel TB --- 2007-06-13 05:12:29 - tinderbox aborted TB --- 0.28 user 1.13 system 7949.08 real http://tinderbox.des.no/tinderbox-head-HEAD-amd64-amd64.full From owner-freebsd-amd64@FreeBSD.ORG Wed Jun 13 12:22:22 2007 Return-Path: X-Original-To: amd64@freebsd.org Delivered-To: freebsd-amd64@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8778116A41F; Wed, 13 Jun 2007 12:22:22 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 474FD13C487; Wed, 13 Jun 2007 12:22:22 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l5DCMLLM033289; Wed, 13 Jun 2007 08:22:21 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.8/8.13.8) with ESMTP id l5DCMLgI070189; Wed, 13 Jun 2007 08:22:21 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id C142973068; Wed, 13 Jun 2007 08:22:20 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20070613122220.C142973068@freebsd-current.sentex.ca> Date: Wed, 13 Jun 2007 08:22:20 -0400 (EDT) X-Virus-Scanned: ClamAV version devel-20070108, clamav-milter version devel-111206 on news X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 12:22:22 -0000 TB --- 2007-06-13 10:10:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-06-13 10:10:00 - starting HEAD tinderbox run for amd64/amd64 TB --- 2007-06-13 10:10:00 - cleaning the object tree TB --- 2007-06-13 10:10:35 - checking out the source tree TB --- 2007-06-13 10:10:35 - cd /tinderbox/HEAD/amd64/amd64 TB --- 2007-06-13 10:10:35 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-06-13 10:21:12 - building world (CFLAGS=-O2 -pipe) TB --- 2007-06-13 10:21:12 - cd /src TB --- 2007-06-13 10:21:12 - /usr/bin/make -B buildworld >>> World build started on Wed Jun 13 10:21:13 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> stage 5.1: building 32 bit shim libraries >>> World build completed on Wed Jun 13 12:07:03 UTC 2007 TB --- 2007-06-13 12:07:03 - generating LINT kernel config TB --- 2007-06-13 12:07:03 - cd /src/sys/amd64/conf TB --- 2007-06-13 12:07:03 - /usr/bin/make -B LINT TB --- 2007-06-13 12:07:03 - building LINT kernel (COPTFLAGS=-O2 -pipe) TB --- 2007-06-13 12:07:03 - cd /src TB --- 2007-06-13 12:07:03 - /usr/bin/make buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Wed Jun 13 12:07:03 UTC 2007 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] rm -f hack.c MAKE=/usr/bin/make sh /src/sys/conf/newvers.sh LINT cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -DGPROF -falign-functions=16 -DGPROF4 -DGUPROF -fno-builtin -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -pg -mprofiler-epilogue vers.c linking kernel ng_ubt.o(.text+0x569): In function `ubt_detach': : undefined reference to `USBDEV' ng_ubt.o(.text+0x19c7): In function `ubt_attach': : undefined reference to `USBDEV' *** Error code 1 Stop in /obj/amd64/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-06-13 12:22:20 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-06-13 12:22:20 - ERROR: failed to build lint kernel TB --- 2007-06-13 12:22:20 - tinderbox aborted TB --- 0.76 user 3.07 system 7939.94 real http://tinderbox.des.no/tinderbox-head-HEAD-amd64-amd64.full From owner-freebsd-amd64@FreeBSD.ORG Wed Jun 13 18:21:27 2007 Return-Path: X-Original-To: amd64@freebsd.org Delivered-To: freebsd-amd64@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D484C16A505; Wed, 13 Jun 2007 18:21:27 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 836D313C44C; Wed, 13 Jun 2007 18:21:27 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l5DILRfH095629; Wed, 13 Jun 2007 14:21:27 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.8/8.13.8) with ESMTP id l5DILQwG022662; Wed, 13 Jun 2007 14:21:26 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id C17DB73068; Wed, 13 Jun 2007 14:21:26 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20070613182126.C17DB73068@freebsd-current.sentex.ca> Date: Wed, 13 Jun 2007 14:21:26 -0400 (EDT) X-Virus-Scanned: ClamAV version devel-20070108, clamav-milter version devel-111206 on news X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 18:21:28 -0000 TB --- 2007-06-13 17:10:01 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-06-13 17:10:01 - starting HEAD tinderbox run for amd64/amd64 TB --- 2007-06-13 17:10:01 - cleaning the object tree TB --- 2007-06-13 17:10:36 - checking out the source tree TB --- 2007-06-13 17:10:36 - cd /tinderbox/HEAD/amd64/amd64 TB --- 2007-06-13 17:10:36 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-06-13 17:21:24 - building world (CFLAGS=-O2 -pipe) TB --- 2007-06-13 17:21:24 - cd /src TB --- 2007-06-13 17:21:24 - /usr/bin/make -B buildworld >>> World build started on Wed Jun 13 17:21:25 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O2 -pipe -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs -DRESCUE -Wno-pointer-sign -c /src/sbin/ifconfig/ifgroup.c cc -O2 -pipe -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs -DRESCUE -Wno-pointer-sign -c /src/sbin/ifconfig/ifpfsync.c cc -O2 -pipe -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs -DRESCUE -Wno-pointer-sign -c /src/sbin/ifconfig/ifbridge.c cc -O2 -pipe -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs -DRESCUE -Wno-pointer-sign -c /src/sbin/ifconfig/iflagg.c cc -O2 -pipe -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs -DRESCUE -Wno-pointer-sign -c /src/sbin/ifconfig/af_ipx.c /src/sbin/ifconfig/af_ipx.c: In function 'ipx_postproc': /src/sbin/ifconfig/af_ipx.c:101: error: storage size of 'rq' isn't known /src/sbin/ifconfig/af_ipx.c:101: warning: unused variable 'rq' *** Error code 1 Stop in /src/sbin/ifconfig. *** Error code 1 Stop in /obj/amd64/src/rescue/rescue. *** Error code 1 Stop in /src/rescue/rescue. *** Error code 1 Stop in /src/rescue. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-06-13 18:21:26 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-06-13 18:21:26 - ERROR: failed to build world TB --- 2007-06-13 18:21:26 - tinderbox aborted TB --- 0.84 user 3.02 system 4285.52 real http://tinderbox.des.no/tinderbox-head-HEAD-amd64-amd64.full From owner-freebsd-amd64@FreeBSD.ORG Thu Jun 14 05:11:10 2007 Return-Path: X-Original-To: amd64@freebsd.org Delivered-To: freebsd-amd64@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F2FBA16A4A5; Thu, 14 Jun 2007 05:11:09 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from fallbackmx02.syd.optusnet.com.au (fallbackmx02.syd.optusnet.com.au [211.29.133.72]) by mx1.freebsd.org (Postfix) with ESMTP id 75F0113C455; Thu, 14 Jun 2007 05:11:09 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail31.syd.optusnet.com.au (mail31.syd.optusnet.com.au [211.29.132.102]) by fallbackmx02.syd.optusnet.com.au (8.12.11.20060308/8.12.11) with ESMTP id l5D8TBZp013401; Wed, 13 Jun 2007 18:29:11 +1000 Received: from besplex.bde.org (c220-239-235-248.carlnfd3.nsw.optusnet.com.au [220.239.235.248]) by mail31.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id l5D8T7dr005972 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 13 Jun 2007 18:29:09 +1000 Date: Wed, 13 Jun 2007 18:29:10 +1000 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: amd64@freebsd.org, i386@freebsd.org Message-ID: <20070613175002.E19977@besplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Subject: towards fixing profiling for SMP X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2007 05:11:10 -0000 Please review this patch. It mainly adds SMP locking that has a chance of working (very slowly due to massive contention). % diff -c2 ./amd64/include/profile.h~ ./amd64/include/profile.h % *** ./amd64/include/profile.h~ Sun Apr 1 13:55:36 2007 % --- ./amd64/include/profile.h Sun Apr 1 13:55:37 2007 % *************** % *** 78,93 **** % #endif /* !__GNUCLIKE_ASM */ % #else /* !GUPROF */ % ! #define MCOUNT_DECL(s) u_long s; % ! #ifdef SMP % ! extern int mcount_lock; % ! #define MCOUNT_ENTER(s) { s = read_rflags(); disable_intr(); \ % ! while (!atomic_cmpset_acq_int(&mcount_lock, 0, 1)) \ % ! /* nothing */ ; } % ! #define MCOUNT_EXIT(s) { atomic_store_rel_int(&mcount_lock, 0); \ % ! write_rflags(s); } % ! #else % ! #define MCOUNT_ENTER(s) { s = read_rflags(); disable_intr(); } % ! #define MCOUNT_EXIT(s) (write_rflags(s)) % ! #endif % #endif /* GUPROF */ % % --- 78,84 ---- % #endif /* !__GNUCLIKE_ASM */ % #else /* !GUPROF */ % ! #define MCOUNT_DECL(s) register_t s; % ! #define MCOUNT_ENTER(s) do { s = intr_disable(); } while (0) % ! #define MCOUNT_EXIT(s) (intr_restore(s)) % #endif /* GUPROF */ % % diff -c2 ./i386/include/profile.h~ ./i386/include/profile.h % *** ./i386/include/profile.h~ Sat Oct 28 11:04:58 2006 % --- ./i386/include/profile.h Sat Nov 4 19:12:08 2006 % *************** % *** 78,93 **** % #endif /* !__GNUCLIKE_ASM */ % #else /* !GUPROF */ % ! #define MCOUNT_DECL(s) u_long s; % ! #ifdef SMP % ! extern int mcount_lock; % ! #define MCOUNT_ENTER(s) { s = read_eflags(); disable_intr(); \ % ! while (!atomic_cmpset_acq_int(&mcount_lock, 0, 1)) \ % ! /* nothing */ ; } % ! #define MCOUNT_EXIT(s) { atomic_store_rel_int(&mcount_lock, 0); \ % ! write_eflags(s); } % ! #else % ! #define MCOUNT_ENTER(s) { s = read_eflags(); disable_intr(); } % ! #define MCOUNT_EXIT(s) (write_eflags(s)) % ! #endif % #endif /* GUPROF */ % % --- 78,84 ---- % #endif /* !__GNUCLIKE_ASM */ % #else /* !GUPROF */ % ! #define MCOUNT_DECL(s) register_t s; % ! #define MCOUNT_ENTER(s) do { s = intr_disable(); } while (0) % ! #define MCOUNT_EXIT(s) (intr_restore(s)) % #endif /* GUPROF */ % % diff -c2 ./libkern/mcount.c~ ./libkern/mcount.c % *** ./libkern/mcount.c~ Wed Jun 13 06:11:54 2007 % --- ./libkern/mcount.c Wed Jun 13 06:12:14 2007 % *************** % *** 34,40 **** % #include % #ifdef _KERNEL % - #ifndef GUPROF % #include % - #endif % #include % #include % --- 34,38 ---- % *************** % *** 43,46 **** % --- 41,101 ---- % % /* % + * Locking strategy: use a simple spin mutex, but don't wait very long % + * for it. When we don't acquire it, just give up. We avoid using a % + * normal mutex since normal mutex code is profiled and might be % + * inefficent. Not waiting very long avoids deadlock. Our callers % + * should have used the usual anti-deadlock strategy of disabling % + * interrupts on the current CPU, but that is especially insufficient % + * for us since it doesn't affect debugger traps and NMIs, and at least % + * the debugger code is profiled. % + * % + * Note: the atomic functions used here, like all functions used in this % + * file, must be compiled without profiling. This normally happens for % + * the atomic functions because they are inline. % + */ % + % + static __inline int % + mcount_trylock(struct gmonparam *p, int want_both) % + { % + #ifdef SMP % + int timeout; % + % + timeout = 1000; /* XXX ~= 10 times #statements in mcount(). */ % + do { % + /* XXX having 2 "on" states complicates things. */ % + #ifdef GUPROF % + if (atomic_cmpset_acq_int(&p->state, GMON_PROF_HIRES, % + GMON_PROF_BUSY)) % + return (GMON_PROF_HIRES); % + #endif % + if (want_both && atomic_cmpset_acq_int(&p->state, GMON_PROF_ON, % + GMON_PROF_BUSY)) % + return (GMON_PROF_ON); % + } while (--timeout != 0); % + #else /* !SMP */ % + /* Ugliness for efficiency. */ % + #ifdef GUPROF % + if (p->state == GMON_PROF_HIRES) { % + /* XXX want acq. */ % + atomic_store_rel_int(&p->state, GMON_PROF_BUSY); % + return (GMON_PROF_HIRES); % + } % + #endif % + if (want_both && p->state == GMON_PROF_ON) { % + atomic_store_rel_int(&p->state, GMON_PROF_BUSY); % + return (GMON_PROF_ON); % + } % + #endif /* SMP */ % + return (GMON_PROF_BUSY); /* Might actually be OFF or ERROR. */ % + } % + % + static __inline void % + mcount_unlock(struct gmonparam *p, int ostate) % + { % + % + atomic_store_rel_int(&p->state, ostate); % + } % + % + /* % * mcount is called on entry to each function compiled with the profiling % * switch set. _mcount(), which is declared in a machine-dependent way % *************** % *** 68,71 **** % --- 123,127 ---- % struct gmonparam *p; % long toindex; % + int ostate; % #ifdef _KERNEL % MCOUNT_DECL(s) % *************** % *** 73,89 **** % % p = &_gmonparam; % ! #ifndef GUPROF /* XXX */ % /* % ! * check that we are profiling % ! * and that we aren't recursively invoked. % */ % ! if (p->state != GMON_PROF_ON) % return; % #endif % #ifdef _KERNEL % MCOUNT_ENTER(s); % - #else % - p->state = GMON_PROF_BUSY; % #endif % % #ifdef _KERNEL % --- 129,145 ---- % % p = &_gmonparam; % ! #ifndef GUPROF % /* % ! * Quick check that we are profiling. In caller for GUPROF, and % ! * should always be there. % */ % ! if (p->state == GMON_PROF_OFF) % return; % #endif % #ifdef _KERNEL % MCOUNT_ENTER(s); % #endif % + if ((ostate = mcount_trylock(p, 1)) == GMON_PROF_BUSY) % + return; % % #ifdef _KERNEL % *************** % *** 101,105 **** % % #ifdef GUPROF % ! if (p->state == GMON_PROF_HIRES) { % /* % * Count the time since cputime() was previously called % --- 157,161 ---- % % #ifdef GUPROF % ! if (ostate == GMON_PROF_HIRES) { % /* % * Count the time since cputime() was previously called % *************** % *** 140,144 **** % */ % frompc = MCOUNT_FROMPC_INTR(selfpc); % ! if ((frompc - p->lowpc) < p->textsize) % frompci = frompc - p->lowpc; % #endif % --- 196,201 ---- % */ % frompc = MCOUNT_FROMPC_INTR(selfpc); % ! /* XXX wording of above paragraph and the macro (exc not intr...). */ % ! if (frompc - p->lowpc < p->textsize) % frompci = frompc - p->lowpc; % #endif % *************** % *** 224,235 **** % } % done: % #ifdef _KERNEL % MCOUNT_EXIT(s); % - #else % - p->state = GMON_PROF_ON; % #endif % return; % overflow: % ! p->state = GMON_PROF_ERROR; % #ifdef _KERNEL % MCOUNT_EXIT(s); % --- 281,291 ---- % } % done: % + mcount_unlock(p, ostate); % #ifdef _KERNEL % MCOUNT_EXIT(s); % #endif % return; % overflow: % ! mcount_unlock(p, GMON_PROF_ERROR); % #ifdef _KERNEL % MCOUNT_EXIT(s); % *************** % *** 251,256 **** % --- 307,315 ---- % struct gmonparam *p; % uintfptr_t selfpcdiff; % + int ostate; % % p = &_gmonparam; % + if ((ostate = mcount_trylock(p, 0)) == GMON_PROF_BUSY) % + return; % selfpcdiff = selfpc - (uintfptr_t)p->lowpc; % if (selfpcdiff < p->textsize) { % *************** % *** 267,270 **** % --- 326,330 ---- % *p->mexitcount_count += p->mexitcount_overhead; % } % + mcount_unlock(p, ostate); % } % Notes: The old MD macros are not really needed and had many bugs. "MI" locking based on atomic_cmpset is no harder than for mutexes, and with it the need for the macros goes away. The main bug in the old macros is that using mcount_lock gives deadlock if mcount is reentered. This deadlock is very easy to arrange by trying to trace through mcount using a debugger. Debugger routines aren't profiling-routines, so they are compiled using -pg and thus call mcount. The new code handles this deadlock possibility as a special case -- attempts to reenter fail after spinning for a long time. Arches other than amd64 and i386 are missing mcount_lock and thus its deadlock. Disabling of interrupts doesn't cause deadlock, but it doesn't actually prevent reentering mcount either. It could be removed if the general deadlock avoidance mechanism works well enough. I haven't tried this or removing the macros entirely, but I made the interrupt disabling and thus the macros "MI" modulo the problem that the intr_disable() API isn't completely MI. For sparc64 and sun4v, it doesn't disable _all_ interrupts, so the mcount macros for these arches must use lower-level interrupt disabling. I suspect that most uses of intr_disable() should be using the lower-level interrupt disabling since they are very low-level (kdb, witness). All other arches just use intr_disable(). Notes on mcount.c are supposed to be mainly in its comments. Other notes: - kernel locking becomes more similar to userland. Basically, we just set the state to GMON_PROF_BUSY to prevent interference. Userland should be using similar atomic ops to do this in the threaded case. - I want to do a single atomic cmpset to swap betwen the busy and unbusy states, but couldn't get this to work like I wanted because there are more than 2 states. - Everything needs to be per-CPU to avoid contention, but implementing that is too much work for me. I've only implemented per-CPU timers. Bruce From owner-freebsd-amd64@FreeBSD.ORG Thu Jun 14 21:53:31 2007 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DE96F16A400 for ; Thu, 14 Jun 2007 21:53:31 +0000 (UTC) (envelope-from garhar0@lycos.com) Received: from smail1.lycosmail.lycos.com (bos-mail-smail2.bos.lycos.com [209.202.208.42]) by mx1.freebsd.org (Postfix) with ESMTP id 89C4C13C469 for ; Thu, 14 Jun 2007 21:53:31 +0000 (UTC) (envelope-from garhar0@lycos.com) Received: from bos-mail-wwl17.lycosmail.com (bos-mail-wwl17b.bos.lycos.com [10.124.64.97]) by bos-mail-smail2.lycosmail.com (8.13.6/8.9.1) with ESMTP id l5ELhAFV028993; Thu, 14 Jun 2007 17:43:10 -0400 Received: (from hanadmin@localhost) by bos-mail-wwl17.lycosmail.com (8.12.9/8.9.1) id l5ELh8sF016863 for ; Fri, 15 Jun 2007 06:43:08 +0900 Content-Transfer-Encoding: 8bit X-Originating-IP: [67.167.131.98] From: "G Hartwig" Organization: Lycos. Inc. Priority: Normal To: X-Mailer: Daum Web Mailer 1.1 Date: Thu, 14 Jun 2007 17:43:08 -0400 (EDT) Message-Id: <20070614174308.HM.0000000000002xE@garhar0.bos-mail-wwl17.lycos.com> Errors-To: X-HM-TU: SL/NZzbhmIiltZmqN5jKkS1ZgVye1pdwV6a7F9o1zIo= X-Hanmail-Attr: fc=1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: [RE]freebsd-amd64 Digest, Vol 209, Issue 4 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2007 21:53:32 -0000 unsubscribe _________________________________________________________________ Want to change your life? Find the perfect job with Lycos Jobs. Career Advice. Job Resources & Recommendations. [1]Post your resume & find a job match! References 1. http://www.careerbuilder.com/?lr=cblycos&siteid=lycoshp7 From owner-freebsd-amd64@FreeBSD.ORG Fri Jun 15 04:17:24 2007 Return-Path: X-Original-To: amd64@freebsd.org Delivered-To: freebsd-amd64@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5BC0E16A468; Fri, 15 Jun 2007 04:17:24 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 0C3E613C447; Fri, 15 Jun 2007 04:17:23 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1c.sentex.ca [64.7.153.10]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l5F4HNm7020072; Fri, 15 Jun 2007 00:17:23 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.13.8/8.13.8) with ESMTP id l5F4HNht070096; Fri, 15 Jun 2007 00:17:23 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 6BCB073068; Fri, 15 Jun 2007 00:17:21 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20070615041721.6BCB073068@freebsd-current.sentex.ca> Date: Fri, 15 Jun 2007 00:17:21 -0400 (EDT) X-Virus-Scanned: ClamAV version devel-20070102, clamav-milter version devel-111206 on clamscanner3 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2007 04:17:24 -0000 TB --- 2007-06-15 02:20:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-06-15 02:20:00 - starting HEAD tinderbox run for amd64/amd64 TB --- 2007-06-15 02:20:00 - cleaning the object tree TB --- 2007-06-15 02:20:43 - checking out the source tree TB --- 2007-06-15 02:20:43 - cd /tinderbox/HEAD/amd64/amd64 TB --- 2007-06-15 02:20:43 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-06-15 02:31:22 - building world (CFLAGS=-O2 -pipe) TB --- 2007-06-15 02:31:22 - cd /src TB --- 2007-06-15 02:31:22 - /usr/bin/make -B buildworld >>> World build started on Fri Jun 15 02:31:23 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> stage 5.1: building 32 bit shim libraries >>> World build completed on Fri Jun 15 04:17:20 UTC 2007 TB --- 2007-06-15 04:17:20 - generating LINT kernel config TB --- 2007-06-15 04:17:20 - cd /src/sys/amd64/conf TB --- 2007-06-15 04:17:20 - /usr/bin/make -B LINT TB --- 2007-06-15 04:17:20 - building LINT kernel (COPTFLAGS=-O2 -pipe) TB --- 2007-06-15 04:17:20 - cd /src TB --- 2007-06-15 04:17:20 - /usr/bin/make buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Fri Jun 15 04:17:20 UTC 2007 >>> stage 1: configuring the kernel -------------------------------------------------------------- cd /src/sys/amd64/conf; PATH=/obj/amd64/src/tmp/legacy/usr/sbin:/obj/amd64/src/tmp/legacy/usr/bin:/obj/amd64/src/tmp/legacy/usr/games:/obj/amd64/src/tmp/usr/sbin:/obj/amd64/src/tmp/usr/bin:/obj/amd64/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin config -d /obj/amd64/src/sys/LINT /src/sys/amd64/conf/LINT WARNING: duplicate option `GEOM_BSD' encountered. WARNING: duplicate option `GEOM_MBR' encountered. WARNING: duplicate option `DEV_MEM' encountered. WARNING: duplicate device `mem' encountered. WARNING: duplicate option `DEV_ISA' encountered. WARNING: duplicate device `isa' encountered. /src/sys/amd64/conf/LINT: unknown option "SCTP_SACK_RWND_LOGGING" *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-06-15 04:17:21 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-06-15 04:17:21 - ERROR: failed to build lint kernel TB --- 2007-06-15 04:17:21 - tinderbox aborted TB --- 0.98 user 3.66 system 7040.30 real http://tinderbox.des.no/tinderbox-head-HEAD-amd64-amd64.full