From owner-freebsd-ppc@FreeBSD.ORG Mon May 4 10:40:09 2009 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C088106564A for ; Mon, 4 May 2009 10:40:09 +0000 (UTC) (envelope-from gjb@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id 2E4078FC1B for ; Mon, 4 May 2009 10:40:09 +0000 (UTC) (envelope-from gjb@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id n44APivu031220; Mon, 4 May 2009 04:25:45 -0600 Message-ID: <49FEC2C3.3040304@semihalf.com> Date: Mon, 04 May 2009 12:26:11 +0200 From: Grzegorz Bernacki MIME-Version: 1.0 To: xcllnt@mac.com References: <9904FBD1-F01A-4E7C-9E71-6C2D544352F8@mac.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: Fwd: Single stepping through atomic ops X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 May 2009 10:40:09 -0000 The fix was merged into gdb source about two years ago (2007-04-12). I can find it in gdb version 6.8. According to gdb release schedule version 6.7 release date is 2007-10-10, so probably this fix is also in version 6.7, but I haven't checked it. regards, Grzesiek > >> From: Marcel Moolenaar >> Date: 1 maja 2009 03:09:59 GMT+02:00 >> To: Rafal Jaworowski >> Cc: "freebsd-ppc@freebsd.org" >> Subject: Re: Single stepping through atomic ops >> >> Sorry for the delay... >> There's an effort to import GDB 6.4 I think. What's the version of GDB >> that is fixed? >> >> >> --Marcel >> >> On Apr 30, 2009, at 2:01 AM, Rafal Jaworowski wrote: >> >>> >>> On 2009-04-21, at 19:57, Rafal Jaworowski wrote: >>> >>>> Hi Marcel, >>>> I'm writing to you primarily as the gdb maintainer :-) There's a >>>> problem with current gdb in base when single stepping through atomic >>>> sequences on PowerPC (and presumably other archs with the load + >>>> conditional store approach for atomic ops). The effect is a hang >>>> because we endlessly loop due to the [always] lost reservation at >>>> the time of a closing stwcx. >>>> >>>> This is a known problem with gdb and it's fixed with newer versions, >>>> but the patches are not applicable to our gdb due to some >>>> infrastructure changes. The quick fix for 6.1.1 is here: >>>> http://people.freebsd.org/~raj/patches/powerpc/gdb-ppc-single-step.diff >>>> >>>> It's mainly a transplant of two fixes from the gdb repository >>>> (1.275, 1.276, deal_with_atomic_sequence) adjusted to our older gdb >>>> code, but it's ugly #ifdef'ed __ppc__. In order to do it cleanly we >>>> would need to change the signature of the SOFTWARE_SINGLE_STEP >>>> method so it returns a value (this is how newer gdb works), but it >>>> would affect gdb for all architectures. Do you see any objections >>>> for growing a return value here? >>>> >>>> Another direction would be importing a newer gdb code base, and be >>>> able to apply the fixes directly and cleanly (if at all required), >>>> but am not sure if there are any plans to upgrade gdb in base? Let >>>> me know your comments. >>> >>> Have you got any comments to this? Should I move on and commit this >>> as ugly as is, or would reworking SOFTWARE_SINGLE_STEP be more >>> desired? Any thoughts about newer gdb versions coming to the tree? >>> >>> Rafal >>> > From owner-freebsd-ppc@FreeBSD.ORG Mon May 4 11:08:01 2009 Return-Path: Delivered-To: freebsd-ppc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31CDF106567A for ; Mon, 4 May 2009 11:08:01 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1D69F8FC12 for ; Mon, 4 May 2009 11:08:01 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n44B80pS098798 for ; Mon, 4 May 2009 11:08:00 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n44B80Sg098779 for freebsd-ppc@FreeBSD.org; Mon, 4 May 2009 11:08:00 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 4 May 2009 11:08:00 GMT Message-Id: <200905041108.n44B80Sg098779@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-ppc@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-ppc@FreeBSD.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 May 2009 11:08:02 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o power/133503 ppc Sound stutter after switching ttys o power/133383 ppc firefox thr_kill crash with heavy vm load o power/133382 ppc [install] Installer gets signal 11 o power/131548 ppc ofw_syscons no longer supports 32-bit framebuffer a power/121407 ppc [panic] Won't boot up; strange error message. o power/111296 ppc [kernel] [patch] [request] Support IMISS, DLMISS an DS o power/93203 ppc FreeBSD PPC Can't Write to Partitions. 7 problems total. From owner-freebsd-ppc@FreeBSD.ORG Tue May 5 17:36:06 2009 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A075A1065678; Tue, 5 May 2009 17:36:06 +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 76E768FC17; Tue, 5 May 2009 17:36:06 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.14.3/8.14.3) with ESMTP id n45Ha4OC064029; Tue, 5 May 2009 13:36:04 -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.14.3/8.14.3) with ESMTP id n45Ha4l8005864; Tue, 5 May 2009 13:36:04 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id D96C67302F; Tue, 5 May 2009 13:36:03 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20090505173603.D96C67302F@freebsd-current.sentex.ca> Date: Tue, 5 May 2009 13:36:03 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at smtp2.sentex.ca X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.64 on 64.7.153.18 Cc: Subject: [head tinderbox] failure on powerpc/powerpc X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 May 2009 17:36:07 -0000 TB --- 2009-05-05 15:59:20 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2009-05-05 15:59:20 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2009-05-05 15:59:20 - cleaning the object tree TB --- 2009-05-05 15:59:52 - cvsupping the source tree TB --- 2009-05-05 15:59:52 - /usr/bin/csup -z -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/powerpc/powerpc/supfile TB --- 2009-05-05 16:00:04 - building world TB --- 2009-05-05 16:00:04 - MAKEOBJDIRPREFIX=/obj TB --- 2009-05-05 16:00:04 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-05-05 16:00:04 - TARGET=powerpc TB --- 2009-05-05 16:00:04 - TARGET_ARCH=powerpc TB --- 2009-05-05 16:00:04 - TZ=UTC TB --- 2009-05-05 16:00:04 - __MAKE_CONF=/dev/null TB --- 2009-05-05 16:00:04 - cd /src TB --- 2009-05-05 16:00:04 - /usr/bin/make -B buildworld >>> World build started on Tue May 5 16:00:06 UTC 2009 >>> 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 >>> World build completed on Tue May 5 17:24:24 UTC 2009 TB --- 2009-05-05 17:24:24 - generating LINT kernel config TB --- 2009-05-05 17:24:24 - cd /src/sys/powerpc/conf TB --- 2009-05-05 17:24:24 - /usr/bin/make -B LINT TB --- 2009-05-05 17:24:24 - building LINT kernel TB --- 2009-05-05 17:24:24 - MAKEOBJDIRPREFIX=/obj TB --- 2009-05-05 17:24:24 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-05-05 17:24:24 - TARGET=powerpc TB --- 2009-05-05 17:24:24 - TARGET_ARCH=powerpc TB --- 2009-05-05 17:24:24 - TZ=UTC TB --- 2009-05-05 17:24:24 - __MAKE_CONF=/dev/null TB --- 2009-05-05 17:24:24 - cd /src TB --- 2009-05-05 17:24:24 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Tue May 5 17:24:24 UTC 2009 >>> 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 [...] 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=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/netgraph/ng_base.c cc1: warnings being treated as errors /src/sys/netgraph/ng_base.c:142: warning: initialization makes pointer from integer without a cast /src/sys/netgraph/ng_base.c:143: warning: initialization makes integer from pointer without a cast /src/sys/netgraph/ng_base.c:144: warning: initialization makes pointer from integer without a cast /src/sys/netgraph/ng_base.c:145: warning: braces around scalar initializer /src/sys/netgraph/ng_base.c:145: warning: (near initialization for 'ng_deadnode.lastline') /src/sys/netgraph/ng_base.c:145: warning: initialization makes integer from pointer without a cast *** Error code 1 Stop in /obj/powerpc/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2009-05-05 17:36:03 - WARNING: /usr/bin/make returned exit code 1 TB --- 2009-05-05 17:36:03 - ERROR: failed to build lint kernel TB --- 2009-05-05 17:36:03 - 4650.95 user 428.40 system 5803.43 real http://tinderbox.des.no/tinderbox-head-HEAD-powerpc-powerpc.full From owner-freebsd-ppc@FreeBSD.ORG Fri May 8 09:47:52 2009 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15C2A1065672 for ; Fri, 8 May 2009 09:47:52 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id D860D8FC12 for ; Fri, 8 May 2009 09:47:51 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id n489lo3o004925 for ; Fri, 8 May 2009 03:47:50 -0600 Message-Id: <35914876-0CFF-427B-8F80-B1BEEA5A7A18@semihalf.com> From: Rafal Jaworowski To: freebsd-ppc@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Fri, 8 May 2009 11:47:48 +0200 X-Mailer: Apple Mail (2.930.3) Subject: FreeBSD/powerpc on MPC5200 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 May 2009 09:47:52 -0000 Hi All, I'd like to let people know that FreeBSD/powerpc is now able to boot into single user on the Freescale MPC5200 system-on-chip (EFIKA board). The environment is very simplistic: RAM disk based root fs, as there's no peripherals drivers besides serial console and the built-in PIC. See this log: http://people.freebsd.org/~raj/logs/efika.log Rafal