From owner-freebsd-ppc@FreeBSD.ORG Sun Sep 23 12:44:12 2012 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 AFF29106564A for ; Sun, 23 Sep 2012 12:44:12 +0000 (UTC) (envelope-from aleksey.v.fedorov@gmail.com) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 684488FC0C for ; Sun, 23 Sep 2012 12:44:12 +0000 (UTC) Received: by vcbfw7 with SMTP id fw7so6908437vcb.13 for ; Sun, 23 Sep 2012 05:44:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=eqvq9jQrF3hvw/Z1iEwxfn+DuhTv4GCeEtVP+JKHSXU=; b=OxgWEvoIFGyPKnQt3p6AI76Cu9Lb1XzZuXJ2uE4MFBYHnuMlsdsUaVeg+LalBqHiaQ z2vYLsrg8a3iNjcWAMtttiEi0D97NQCgqlhgLjkTQOUnEP5V0eF0htV/u0KIh8C86u7Y EJ+iOKmIxs00d37+wJZ1XvZF2IOdDQ+y5/7IRxB0QPRdc5jlzEXAE5Y4HN6uaiSYmTBK Aq0AnTgDdg2bHF0shsKi09t5aGZudhboDiEynIpFw0lEkmIEmTf84QONO1MH612QHE1m 2eaU6rK+Fa6uN+G0Lb9qIkLIfRttrlXjV2RxBDt0TLLVLE4PC4R2KxmuxPATxPmG+NhY wyGw== MIME-Version: 1.0 Received: by 10.52.67.144 with SMTP id n16mr4746449vdt.131.1348404251620; Sun, 23 Sep 2012 05:44:11 -0700 (PDT) Received: by 10.58.91.49 with HTTP; Sun, 23 Sep 2012 05:44:11 -0700 (PDT) In-Reply-To: <39077F2D-B518-4EE4-ACE0-E8EB804E245B@semihalf.com> References: <39077F2D-B518-4EE4-ACE0-E8EB804E245B@semihalf.com> Date: Sun, 23 Sep 2012 16:44:11 +0400 Message-ID: From: Aleksey Fedorov To: Rafal Jaworowski Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-ppc@freebsd.org Subject: Re: FreeBSD on e500mc 36bit physical addressing 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: Sun, 23 Sep 2012 12:44:12 -0000 > Hi Aleksey, > FreeBSD/powerpc does not support the 36-bit physical addr space for Book-E PowerPC as of yet. > > Rafal > I make some changes to start in 36-bit mode. Now the problem is 'interrupts' property handling during fdtbus probing. I use dts file from linux. Does FreeBSD require some special dts file layout compared to linux? Debug output from kenel boot: GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb mmu_booke_bootstrap: entered msgbufp at 0xc0751000 end = 0xc0769000 ptbl_bufs at 0xc0769000 end = 0xc076f000 kernel ptbls: 224 kernel pdir at 0xc076f000 end = 0xc092f000 data_end: 0xc092f000 updated data_end: 0xc1000000 zero_page_va = 0xc1000000 zero_page_idle_va = 0xc1001000 copy_page_src_va = 0xc1002000 copy_page_dst_va = 0xc1003000 ptbl_buf_pool_vabase = 0xc1004000 end = 0xc2004000 kernel image and allocated data: kernload = 0x0000000001000000 kernstart = 0xc0000000 kernsize = 0x01000000 processing avail regions: 0000000000100000-0000000100000000 -> 0000000000100000-0000000001000000 = f00000 0000000002000000-0000000100000000 -> 0000000002000000-0000000100000000 = fe000000 fill in phys_avail: region: 0x0000000000100000 - 0x0000000000ffc000 (0x0000000000efc000) region: 0x0000000002000000 - 0x0000000100000000 (0x00000000fe000000) Maxmem = 0x0000000000100000 phys_avail_count = 2 physsz = 0x00000000feefc000 physmem = 1044220 (0x000feefc) kernel_pmap = 0xc06820ac kptbl_min = 768, kernel_ptbls = 224 kernel pdir range: 0xc0000000 - 0xf7ffffff kstack_sz = 0x00004000 kstack0_phys at 0x0000000000ffc000 - 0x0000000001000000 kstack0 at 0xc2005000 - 0xc2009000 virtual_avail = c2009000 virtual_end = f8000000 mmu_booke_bootstrap: exit L1 D-cache enabled L1 I-cache enabled powerpc_smp_first_cpu: cpuid 0 powerpc_smp_next_cpu: cpuid 1 powerpc_smp_next_cpu: cpuid 2 powerpc_smp_next_cpu: cpuid 3 powerpc_smp_next_cpu: cpuid 4 powerpc_smp_next_cpu: cpuid 5 powerpc_smp_next_cpu: cpuid 6 powerpc_smp_next_cpu: cpuid 7 Copyright (c) 1992-2012 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 is a registered trademark of The FreeBSD Foundation. FreeBSD 10.0-CURRENT #134 r239991=44c70c6-dirty: Sun Sep 23 16:18:53 MSK 2012 avf@avfh:/usr/obj/powerpc.powerpc/root/freebsd-head/sys/N710 powerpc WARNING: WITNESS option enabled, expect reduced performance. Preloaded elf kernel "/boot/kernel/kernel" at 0xc074f000. cpu0: Freescale e500mc core revision 2.0 cpu0: Features 84000000 cpu0: HID0 c0800080 real memory = 4277125120 (4078 MB) Physical memory chunk(s): 0x0000000000100000 - 0x0000000000ffbfff, 15712256 bytes (3836 pages) 0x0000000002000000 - 0x00000000fafc4fff, 4177285120 bytes (1019845 pages) avail memory = 4189515776 (3995 MB) powerpc_smp_first_cpu: cpuid 0 powerpc_smp_next_cpu: cpuid 1 powerpc_smp_next_cpu: cpuid 2 powerpc_smp_next_cpu: cpuid 3 powerpc_smp_next_cpu: cpuid 4 powerpc_smp_next_cpu: cpuid 5 powerpc_smp_next_cpu: cpuid 6 powerpc_smp_next_cpu: cpuid 7 FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs cpu0: dev=0 (BSP) cpu1: dev=1 cpu2: dev=2 cpu3: dev=3 cpu4: dev=4 cpu5: dev=5 cpu6: dev=6 cpu7: dev=7 random device not loaded; using insecure entropy random: nfslock: pseudo-device crypto: mem: openfirm: null: nexus0 fdtbus_identify(): fdtbus_identify(driver=0xc04d717c, parent=0xc9e74400) fdtbus_probe(): fdtbus_probe(dev=0xc9d24a00); pass=2147483647 fdtbus_probe(): fdtbus_probe(dev=0xc9d24a00); pass=2147483647 fdtbus0: on nexus0 newbus_device_from_fdt_node(): skipping instantiating FDT device='chosen' newbus_device_from_fdt_node(): skipping instantiating FDT device='aliases' fdt_reg_to_rl64(): addr_cells = 2, size_cells = 2 fdt_reg_to_rl64(): tuples = -1, tuple size = 16 newbus_device_create(): added child name='cpus', node=0x1070 newbus_device_from_fdt_node(): skipping instantiating FDT device='memory' fdt_reg_to_rl64(): addr_cells = 2, size_cells = 2 fdt_reg_to_rl64(): tuples = -1, tuple size = 16 newbus_device_create(): added child name='bman-portals@ff4000000', node=0x1650 fdt_reg_to_rl64(): addr_cells = 2, size_cells = 2 fdt_reg_to_rl64(): tuples = -1, tuple size = 16 newbus_device_create(): added child name='qman-portals@ff4200000', node=0x1da4 fdt_reg_to_rl64(): addr_cells = 2, size_cells = 2 fdt_reg_to_rl64(): tuples = 1, tuple size = 16 fdt_reg_to_rl64(): reg addr start = c00089b0, end = c00099af, count = 1000 newbus_device_create(): added child name='soc@ffe000000', node=0x30b8 fdt_reg_to_rl64(): addr_cells = 2, size_cells = 2 fdt_reg_to_rl64(): tuples = 1, tuple size = 16 fdt_reg_to_rl64(): reg addr start = c012c9b0, end = c012d9af, count = 1000 fdt_intr_to_rl(): no intr-parent phandle fdt_intr_to_rl(): no intr-cells defined, defaulting to 1 fdt_intr_to_rl(): intr_num=4 unknown: could not process 'interrupts' property for 'localbus@ffe124000' fatal kernel trap: exception = 0x2 (data storage interrupt) virtual address = 0x00000004 srr0 = 0xc00a7a54 srr1 = 0x00001200 curthread = 0xc0504bd0 pid = 0, comm = kernel [ thread pid 0 tid 100000 ] Stopped at newbus_device_destroy+0x2c: lwz r3, r3, 0x4 db> localbus@ffe124000 node in dts file is: localbus@ffe124000 { compatible = "fsl,p4080-elbc", "fsl,elbc", "simple-bus"; reg = <0xf 0xfe124000 0 0x1000>; interrupts = <25 2 0 0>; interrupt-parent = <&mpic>; #address-cells = <2>; #size-cells = <1>; ranges = <0 0 0xf 0xe8000000 0x08000000 3 0 0xf 0xffdf0000 0x00008000>; flash@0,0 { compatible = "cfi-flash"; reg = <0 0 0x08000000>; bank-width = <2>; device-width = <2>; }; board-control@3,0 { compatible = "fsl,n710cpld"; reg = <3 0 0x20>; }; }; mpic node is: mpic: pic@40000 { clock-frequency = <0>; interrupt-controller; #address-cells = <0>; #interrupt-cells = <4>; reg = <0x40000 0x40000>; compatible = "chrp,open-pic"; device_type = "open-pic"; big-endian; message@1400 { compatible = "fsl,mpic-msg"; interrupts = < 0xb0 2 0 0 0xb1 2 0 0 0xb2 2 0 0 0xb3 2 0 0>; }; }; Why fdt_intr_to_rl() can't find interrupt-parent mpic? From owner-freebsd-ppc@FreeBSD.ORG Sun Sep 23 21:04:49 2012 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 CC2DD1065676; Sun, 23 Sep 2012 21:04:49 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-legacy2.sentex.ca (freebsd-legacy2.sentex.ca [IPv6:2607:f3e0:0:3::6502:9c]) by mx1.freebsd.org (Postfix) with ESMTP id 8DACA8FC0A; Sun, 23 Sep 2012 21:04:49 +0000 (UTC) Received: from freebsd-legacy2.sentex.ca (localhost [127.0.0.1]) by freebsd-legacy2.sentex.ca (8.14.5/8.14.5) with ESMTP id q8NL4n5S004234; Sun, 23 Sep 2012 21:04:49 GMT (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-legacy2.sentex.ca (8.14.5/8.14.5/Submit) id q8NL4nWl004227; Sun, 23 Sep 2012 21:04:49 GMT (envelope-from tinderbox@freebsd.org) Date: Sun, 23 Sep 2012 21:04:49 GMT Message-Id: <201209232104.q8NL4nWl004227@freebsd-legacy2.sentex.ca> X-Authentication-Warning: freebsd-legacy2.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Cc: Subject: [releng_7 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: Sun, 23 Sep 2012 21:04:49 -0000 TB --- 2012-09-23 21:00:00 - tinderbox 2.9 running on freebsd-legacy2.sentex.ca TB --- 2012-09-23 21:00:00 - FreeBSD freebsd-legacy2.sentex.ca 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2012-09-23 21:00:00 - starting RELENG_7 tinderbox run for powerpc/powerpc TB --- 2012-09-23 21:00:00 - cleaning the object tree TB --- 2012-09-23 21:00:00 - checking out /src from svn://svn.freebsd.org/base/stable/7 TB --- 2012-09-23 21:00:00 - cd /tinderbox/RELENG_7/powerpc/powerpc TB --- 2012-09-23 21:00:00 - /usr/local/bin/svn cleanup /src TB --- 2012-09-23 21:00:08 - /usr/local/bin/svn update /src TB --- 2012-09-23 21:04:49 - WARNING: /usr/local/bin/svn returned exit code 1 TB --- 2012-09-23 21:04:49 - ERROR: unable to check out the source tree TB --- 2012-09-23 21:04:49 - 2.02 user 4.58 system 288.44 real http://tinderbox.freebsd.org/tinderbox-releng_7-RELENG_7-powerpc-powerpc.full From owner-freebsd-ppc@FreeBSD.ORG Mon Sep 24 11:07:29 2012 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 E969E106564A for ; Mon, 24 Sep 2012 11:07:29 +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 D3DDA8FC28 for ; Mon, 24 Sep 2012 11:07:29 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q8OB7TaP086042 for ; Mon, 24 Sep 2012 11:07:29 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q8OB7Sr5086040 for freebsd-ppc@FreeBSD.org; Mon, 24 Sep 2012 11:07:28 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 24 Sep 2012 11:07:28 GMT Message-Id: <201209241107.q8OB7Sr5086040@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, 24 Sep 2012 11:07:30 -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/170340 ppc Enabling geom-mirror on 9.1-powerpc64 prevents the sys o power/164225 ppc Boot fails on IBM 7028-6E1 (heap memory claim failed) o power/161947 ppc multimedia/libdvdnav builds broken binaries on big end o power/161045 ppc X doesn't detect ADB mouse up event until another even o power/149009 ppc sysinstall(8) on powerpc fails to install manpages, so o power/140241 ppc [kernel] [patch] Linker set problems on PowerPC EABI o power/135576 ppc gdb cannot debug threaded programs on ppc o power/133503 ppc [sound] Sound stutter after switching ttys o power/133382 ppc [install] Installer gets signal 11 o power/131548 ppc ofw_syscons no longer supports 32-bit framebuffer 10 problems total. From owner-freebsd-ppc@FreeBSD.ORG Tue Sep 25 03:04:10 2012 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 01803106566C; Tue, 25 Sep 2012 03:04:10 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-legacy2.sentex.ca (freebsd-legacy2.sentex.ca [IPv6:2607:f3e0:0:3::6502:9c]) by mx1.freebsd.org (Postfix) with ESMTP id B3C478FC12; Tue, 25 Sep 2012 03:04:09 +0000 (UTC) Received: from freebsd-legacy2.sentex.ca (localhost [127.0.0.1]) by freebsd-legacy2.sentex.ca (8.14.5/8.14.5) with ESMTP id q8P2a3cM019220; Tue, 25 Sep 2012 02:36:03 GMT (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-legacy2.sentex.ca (8.14.5/8.14.5/Submit) id q8P2a38x019197; Tue, 25 Sep 2012 02:36:03 GMT (envelope-from tinderbox@freebsd.org) Date: Tue, 25 Sep 2012 02:36:03 GMT Message-Id: <201209250236.q8P2a38x019197@freebsd-legacy2.sentex.ca> X-Authentication-Warning: freebsd-legacy2.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Cc: Subject: [releng_7 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, 25 Sep 2012 03:04:10 -0000 TB --- 2012-09-25 02:30:00 - tinderbox 2.9 running on freebsd-legacy2.sentex.ca TB --- 2012-09-25 02:30:00 - FreeBSD freebsd-legacy2.sentex.ca 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2012-09-25 02:30:00 - starting RELENG_7 tinderbox run for powerpc/powerpc TB --- 2012-09-25 02:30:00 - cleaning the object tree TB --- 2012-09-25 02:30:00 - checking out /src from svn://svn.freebsd.org/base/stable/7 TB --- 2012-09-25 02:30:00 - cd /tinderbox/RELENG_7/powerpc/powerpc TB --- 2012-09-25 02:30:00 - /usr/local/bin/svn cleanup /src TB --- 2012-09-25 02:30:09 - /usr/local/bin/svn update /src TB --- 2012-09-25 02:36:03 - WARNING: /usr/local/bin/svn returned exit code 1 TB --- 2012-09-25 02:36:03 - ERROR: unable to check out the source tree TB --- 2012-09-25 02:36:03 - 2.02 user 4.47 system 362.70 real http://tinderbox.freebsd.org/tinderbox-releng_7-RELENG_7-powerpc-powerpc.full From owner-freebsd-ppc@FreeBSD.ORG Tue Sep 25 05:51:00 2012 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0FB11106567A; Tue, 25 Sep 2012 05:51:00 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-legacy2.sentex.ca (freebsd-legacy2.sentex.ca [IPv6:2607:f3e0:0:3::6502:9c]) by mx1.freebsd.org (Postfix) with ESMTP id C5AEC8FC17; Tue, 25 Sep 2012 05:50:59 +0000 (UTC) Received: from freebsd-legacy2.sentex.ca (localhost [127.0.0.1]) by freebsd-legacy2.sentex.ca (8.14.5/8.14.5) with ESMTP id q8P5oxkM008880; Tue, 25 Sep 2012 05:50:59 GMT (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-legacy2.sentex.ca (8.14.5/8.14.5/Submit) id q8P5oxNZ008874; Tue, 25 Sep 2012 05:50:59 GMT (envelope-from tinderbox@freebsd.org) Date: Tue, 25 Sep 2012 05:50:59 GMT Message-Id: <201209250550.q8P5oxNZ008874@freebsd-legacy2.sentex.ca> X-Authentication-Warning: freebsd-legacy2.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Cc: Subject: [releng_7 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, 25 Sep 2012 05:51:00 -0000 TB --- 2012-09-25 05:45:00 - tinderbox 2.9 running on freebsd-legacy2.sentex.ca TB --- 2012-09-25 05:45:00 - FreeBSD freebsd-legacy2.sentex.ca 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2012-09-25 05:45:00 - starting RELENG_7 tinderbox run for powerpc/powerpc TB --- 2012-09-25 05:45:00 - cleaning the object tree TB --- 2012-09-25 05:45:00 - checking out /src from svn://svn.freebsd.org/base/stable/7 TB --- 2012-09-25 05:45:00 - cd /tinderbox/RELENG_7/powerpc/powerpc TB --- 2012-09-25 05:45:00 - /usr/local/bin/svn cleanup /src TB --- 2012-09-25 05:45:09 - /usr/local/bin/svn update /src TB --- 2012-09-25 05:50:59 - WARNING: /usr/local/bin/svn returned exit code 1 TB --- 2012-09-25 05:50:59 - ERROR: unable to check out the source tree TB --- 2012-09-25 05:50:59 - 1.95 user 4.55 system 358.59 real http://tinderbox.freebsd.org/tinderbox-releng_7-RELENG_7-powerpc-powerpc.full From owner-freebsd-ppc@FreeBSD.ORG Wed Sep 26 05:50:45 2012 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 CB5341065672 for ; Wed, 26 Sep 2012 05:50:45 +0000 (UTC) (envelope-from matto@63bit.net) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 569338FC14 for ; Wed, 26 Sep 2012 05:50:45 +0000 (UTC) Received: by pbbrp8 with SMTP id rp8so1627864pbb.13 for ; Tue, 25 Sep 2012 22:50:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:x-gm-message-state; bh=2BDlynBArO9MgKTG/vGK7ei9RwY4i3kN3IugT/NAgfI=; b=OOa+OlcGGtAu1OWK9MIFZt9lcMeywSD/SHDe4DfPWL2CHch/7YOtJWcchfdKR1cqgC zJPjVCz2j2oJ+BmZN/D2Pg9CUwL4dhZ5RbBQye7z8VTlZJRIgwWOEYzkcQCcyo0pQX9l V13TFCoxzXzZRU0xcIeFiwQaParQdHukfLAh+rOxkhyVyLlAOkctWdX4i+AXD5ScdsMI /AnOwd1qacGD/CbLOepEI5eftpXRtsN0b1aZ0NU8DpPVvRm+NUvpApr2P9v2TPwY7K11 CKEVu4eSJ/3wJB6sBgq4J49GXUEz2LRL+srZOhCMCTGVPhjH1me3exyYW3e26p+dfsCj N3xw== Received: by 10.68.242.231 with SMTP id wt7mr51568203pbc.99.1348638644582; Tue, 25 Sep 2012 22:50:44 -0700 (PDT) Received: from flatline.local (70-36-223-239.dsl.dynamic.sonic.net. [70.36.223.239]) by mx.google.com with ESMTPS id nt7sm1506487pbb.33.2012.09.25.22.50.41 (version=SSLv3 cipher=OTHER); Tue, 25 Sep 2012 22:50:43 -0700 (PDT) Message-ID: <506297A8.6090903@63bit.net> Date: Tue, 25 Sep 2012 22:50:32 -0700 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 MIME-Version: 1.0 To: freebsd-current@FreeBSD.org, freebsd-ppc@FreeBSD.org X-Gm-Message-State: ALoCoQktyKYqYFKx2RmLugN+7nkus7iJ1PkDxKWp2L+yTQPKSyJ9+kF2dTZ8NRJf6kB1MvYAlAou Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: buildworld fails with clang on powerpc 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: Wed, 26 Sep 2012 05:50:45 -0000 I think this might be related: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120611/144385.html clang -mcpu=7450 -O2 -pipe -fno-strict-aliasing -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/tools/clang/include -I/usr/src/lib/clang/libllvmso only local-exec TLS mode supported UNREACHABLE executed at /usr/src/lib/clang/libllvmpowerpccodegen/../../../contrib/llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1257! Stack dump: 0. Program arguments: /usr/bin/clang -cc1 -triple powerpc-unknown-freebsd10.0 -S -disable-free -main-file-name regcomp.c -mrelocation-model static -mdisable-fp-elim -relaxed-aliasing -mconstructor-aliases -target-cpu 7 1. parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module '/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/regcomp.c'. 4. Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on function '@p_bracket' clang: error: unable to execute command: Abort trap: 6 (core dumped) clang: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 3.2 (trunk 162107) 20120817 Target: powerpc-unknown-freebsd10.0 Thread model: posix clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script. clang: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang: note: diagnostic msg: /tmp/regcomp-Wu8o3h.c clang: note: diagnostic msg: /tmp/regcomp-Wu8o3h.sh clang: note: diagnostic msg: ******************** *** [regcomp.o] Error code 254 Stop in /usr/src/lib/clang/libllvmsupport. *** [bootstrap-tools] Error code 1 Stop in /usr/src. *** [_bootstrap-tools] Error code 1 Stop in /usr/src. *** [buildworld] Error code 1 Stop in /usr/src. From owner-freebsd-ppc@FreeBSD.ORG Wed Sep 26 20:38:19 2012 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C4241106566B for ; Wed, 26 Sep 2012 20:38:19 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from smtp.semihalf.com (smtp.semihalf.com [213.17.239.109]) by mx1.freebsd.org (Postfix) with ESMTP id 6F56B8FC0A for ; Wed, 26 Sep 2012 20:38:19 +0000 (UTC) Received: from localhost (unknown [213.17.239.109]) by smtp.semihalf.com (Postfix) with ESMTP id 42D60119C2A; Wed, 26 Sep 2012 22:38:18 +0200 (CEST) X-Virus-Scanned: by amavisd-new at semihalf.com Received: from smtp.semihalf.com ([213.17.239.109]) by localhost (smtp.semihalf.com [213.17.239.109]) (amavisd-new, port 10024) with ESMTP id oyb9EFAGVvVi; Wed, 26 Sep 2012 22:38:17 +0200 (CEST) Received: from [10.0.0.112] (nat3-133.ghnet.pl [91.150.222.133]) by smtp.semihalf.com (Postfix) with ESMTPSA id 989A0119C11; Wed, 26 Sep 2012 22:38:17 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Rafal Jaworowski In-Reply-To: Date: Wed, 26 Sep 2012 22:38:16 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <764EEFAD-1730-466E-85C5-791A3A72BAD4@semihalf.com> References: <39077F2D-B518-4EE4-ACE0-E8EB804E245B@semihalf.com> To: Aleksey Fedorov X-Mailer: Apple Mail (2.1084) Cc: freebsd-ppc@freebsd.org Subject: Re: FreeBSD on e500mc 36bit physical addressing 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: Wed, 26 Sep 2012 20:38:19 -0000 On 2012-09-23, at 14:44, Aleksey Fedorov wrote: >> Hi Aleksey, >> FreeBSD/powerpc does not support the 36-bit physical addr space for = Book-E PowerPC as of yet. >>=20 >> Rafal >>=20 >=20 > I make some changes to start in 36-bit mode. Now the problem is > 'interrupts' property handling during fdtbus probing. > I use dts file from linux. Does FreeBSD require some special dts file > layout compared to linux? We are supposed to be compatible with ePAPR spec of the device tree (so = is Linux), so no special handling is needed. Regarding the error it might be caused by the recent import of changes = for ARM which affected FDT infrastructure code = (http://svn.freebsd.org/changeset/base/239268). We had a side = conversation with Marcel regarding DSI panic during localbus node = processing, which seems similar to what you're seeing. Can you try some = older code base (prior to r239268) to see if it shows the same/related = problem? Rafal From owner-freebsd-ppc@FreeBSD.ORG Thu Sep 27 08:24:14 2012 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3F1A9106564A; Thu, 27 Sep 2012 08:24:14 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id 07EDE8FC12; Thu, 27 Sep 2012 08:24:13 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.5/8.14.5) with ESMTP id q8R8OC23070061; Thu, 27 Sep 2012 04:24:12 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.5/8.14.5/Submit) id q8R8OCtv070042; Thu, 27 Sep 2012 08:24:12 GMT (envelope-from tinderbox@freebsd.org) Date: Thu, 27 Sep 2012 08:24:12 GMT Message-Id: <201209270824.q8R8OCtv070042@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk 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: Thu, 27 Sep 2012 08:24:14 -0000 TB --- 2012-09-27 05:43:08 - tinderbox 2.9 running on freebsd-current.sentex.ca TB --- 2012-09-27 05:43:08 - FreeBSD freebsd-current.sentex.ca 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #0: Mon Mar 26 13:54:12 EDT 2012 des@freebsd-current.sentex.ca:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2012-09-27 05:43:08 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2012-09-27 05:43:08 - cleaning the object tree TB --- 2012-09-27 05:43:08 - checking out /src from svn://svn.freebsd.org/base/head TB --- 2012-09-27 05:43:08 - cd /tinderbox/HEAD/powerpc/powerpc TB --- 2012-09-27 05:43:08 - /usr/local/bin/svn cleanup /src TB --- 2012-09-27 05:44:12 - /usr/local/bin/svn update /src TB --- 2012-09-27 05:44:18 - At svn revision 240983 TB --- 2012-09-27 05:44:19 - building world TB --- 2012-09-27 05:44:19 - CROSS_BUILD_TESTING=YES TB --- 2012-09-27 05:44:19 - MAKEOBJDIRPREFIX=/obj TB --- 2012-09-27 05:44:19 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2012-09-27 05:44:19 - SRCCONF=/dev/null TB --- 2012-09-27 05:44:19 - TARGET=powerpc TB --- 2012-09-27 05:44:19 - TARGET_ARCH=powerpc TB --- 2012-09-27 05:44:19 - TZ=UTC TB --- 2012-09-27 05:44:19 - __MAKE_CONF=/dev/null TB --- 2012-09-27 05:44:19 - cd /src TB --- 2012-09-27 05:44:19 - /usr/bin/make -B buildworld >>> World build started on Thu Sep 27 05:44:20 UTC 2012 >>> 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 Thu Sep 27 08:16:47 UTC 2012 TB --- 2012-09-27 08:16:47 - generating LINT kernel config TB --- 2012-09-27 08:16:47 - cd /src/sys/powerpc/conf TB --- 2012-09-27 08:16:47 - /usr/bin/make -B LINT TB --- 2012-09-27 08:16:48 - cd /src/sys/powerpc/conf TB --- 2012-09-27 08:16:48 - /usr/sbin/config -m LINT TB --- 2012-09-27 08:16:48 - building LINT kernel TB --- 2012-09-27 08:16:48 - CROSS_BUILD_TESTING=YES TB --- 2012-09-27 08:16:48 - MAKEOBJDIRPREFIX=/obj TB --- 2012-09-27 08:16:48 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2012-09-27 08:16:48 - SRCCONF=/dev/null TB --- 2012-09-27 08:16:48 - TARGET=powerpc TB --- 2012-09-27 08:16:48 - TARGET_ARCH=powerpc TB --- 2012-09-27 08:16:48 - TZ=UTC TB --- 2012-09-27 08:16:48 - __MAKE_CONF=/dev/null TB --- 2012-09-27 08:16:48 - cd /src TB --- 2012-09-27 08:16:48 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Thu Sep 27 08:16:48 UTC 2012 >>> 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 [...] /src/sys/dev/pci/pci_user.c: In function 'pci_ioctl': /src/sys/dev/pci/pci_user.c:426: error: storage size of 'conf_old32' isn't known /src/sys/dev/pci/pci_user.c:433: error: 'cio32' undeclared (first use in this function) /src/sys/dev/pci/pci_user.c:433: error: (Each undeclared identifier is reported only once /src/sys/dev/pci/pci_user.c:433: error: for each function it appears in.) /src/sys/dev/pci/pci_user.c:448: error: 'PCIOCGETCONF_OLD32' undeclared (first use in this function) /src/sys/dev/pci/pci_user.c:635: warning: passing argument 1 of 'pci_conf_match_old32' from incompatible pointer type /src/sys/dev/pci/pci_user.c:426: warning: unused variable 'conf_old32' [-Wunused-variable] *** Error code 1 Stop in /obj/powerpc.powerpc/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2012-09-27 08:24:12 - WARNING: /usr/bin/make returned exit code 1 TB --- 2012-09-27 08:24:12 - ERROR: failed to build LINT kernel TB --- 2012-09-27 08:24:12 - 7161.87 user 921.29 system 9664.76 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-powerpc-powerpc.full From owner-freebsd-ppc@FreeBSD.ORG Thu Sep 27 20:08:27 2012 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3C0F7106564A; Thu, 27 Sep 2012 20:08:27 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id E8C938FC0A; Thu, 27 Sep 2012 20:08:26 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.5/8.14.5) with ESMTP id q8RK8QpR047290; Thu, 27 Sep 2012 16:08:26 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.5/8.14.5/Submit) id q8RK8QtN047289; Thu, 27 Sep 2012 20:08:26 GMT (envelope-from tinderbox@freebsd.org) Date: Thu, 27 Sep 2012 20:08:26 GMT Message-Id: <201209272008.q8RK8QtN047289@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk 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: Thu, 27 Sep 2012 20:08:27 -0000 TB --- 2012-09-27 19:51:37 - tinderbox 2.9 running on freebsd-current.sentex.ca TB --- 2012-09-27 19:51:37 - FreeBSD freebsd-current.sentex.ca 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #0: Mon Mar 26 13:54:12 EDT 2012 des@freebsd-current.sentex.ca:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2012-09-27 19:51:37 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2012-09-27 19:51:37 - cleaning the object tree TB --- 2012-09-27 19:51:37 - checking out /src from svn://svn.freebsd.org/base/head TB --- 2012-09-27 19:51:37 - cd /tinderbox/HEAD/powerpc/powerpc TB --- 2012-09-27 19:51:37 - /usr/local/bin/svn cleanup /src TB --- 2012-09-27 19:52:09 - /usr/local/bin/svn update /src TB --- 2012-09-27 19:52:16 - At svn revision 241007 TB --- 2012-09-27 19:52:17 - building world TB --- 2012-09-27 19:52:17 - CROSS_BUILD_TESTING=YES TB --- 2012-09-27 19:52:17 - MAKEOBJDIRPREFIX=/obj TB --- 2012-09-27 19:52:17 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2012-09-27 19:52:17 - SRCCONF=/dev/null TB --- 2012-09-27 19:52:17 - TARGET=powerpc TB --- 2012-09-27 19:52:17 - TARGET_ARCH=powerpc TB --- 2012-09-27 19:52:17 - TZ=UTC TB --- 2012-09-27 19:52:17 - __MAKE_CONF=/dev/null TB --- 2012-09-27 19:52:17 - cd /src TB --- 2012-09-27 19:52:17 - /usr/bin/make -B buildworld >>> World build started on Thu Sep 27 19:52:18 UTC 2012 >>> 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/powerpc -DNLS -D__DBINTERFACE_PRIVATE -I/src/lib/libc/../../contrib/gdtoa -DINET6 -I/obj/powerpc.powerpc/src/lib/libc -I/src/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -I/src/lib/libc/../../contrib/jemalloc/include -I/src/lib/libc/../../contrib/tzcode/stdtime -I/src/lib/libc/stdtime -I/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/src/lib/libc/rpc -DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /src/lib/libc/rpc/auth_unix.c -o auth_unix.o /src/lib/libc/rpc/auth_unix.c: In function 'authunix_create': /src/lib/libc/rpc/auth_unix.c:101: error: argument 'uid' doesn't match prototype /src/lib/libc/../../include/rpc/auth.h:252: error: prototype declaration /src/lib/libc/rpc/auth_unix.c:101: error: argument 'gid' doesn't match prototype /src/lib/libc/../../include/rpc/auth.h:252: error: prototype declaration /src/lib/libc/rpc/auth_unix.c:101: error: argument 'aup_gids' doesn't match prototype /src/lib/libc/../../include/rpc/auth.h:252: error: prototype declaration *** 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 --- 2012-09-27 20:08:26 - WARNING: /usr/bin/make returned exit code 1 TB --- 2012-09-27 20:08:26 - ERROR: failed to build world TB --- 2012-09-27 20:08:26 - 711.87 user 106.25 system 1008.41 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-powerpc-powerpc.full From owner-freebsd-ppc@FreeBSD.ORG Fri Sep 28 20:59:07 2012 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 D14FA106566C for ; Fri, 28 Sep 2012 20:59:07 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from smtp.fgznet.ch (mail.fgznet.ch [81.92.96.47]) by mx1.freebsd.org (Postfix) with ESMTP id 5EBE58FC18 for ; Fri, 28 Sep 2012 20:59:06 +0000 (UTC) Received: from deuterium.andreas.nets (dhclient-91-190-14-19.flashcable.ch [91.190.14.19]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id q8SKlpHx098463; Fri, 28 Sep 2012 22:47:51 +0200 (CEST) (envelope-from andreast-list@fgznet.ch) Message-ID: <50660CF7.3060903@fgznet.ch> Date: Fri, 28 Sep 2012 22:47:51 +0200 From: Andreas Tobler User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: Howard Marshall References: <50546177.3090507@fgznet.ch> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on 81.92.96.47 Cc: freebsd-ppc@freebsd.org Subject: Re: Apple PowerPC Encrypted Root Install 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, 28 Sep 2012 20:59:07 -0000 On 15.09.12 13:56, Howard Marshall wrote: > Just tried it and it worked! Thanks Andreas! Fyi, I committed a fix to 9.1 stable which allows the 'used to' behavior. Now you do not need to add all involved modules to the loader.conf. It should resolve its dependencies at load time. All you need is a loader built from the sources of 9.1-stable. Andreas > On 15 Sep 2012, at 12:07, Andreas Tobler wrote: > >> On 15.09.12 11:41, Howard Marshall wrote: >>> Hey all, >>> >>> I have a problem installing FreeBSD with an encrypted root onto my Mac Mini G4 (PowerMac10,1) >>> >>> I've detailed it all in this forum post if anyone has any ideas >>> >>> http://forums.freebsd.org/showthread.php?p=189930 >>> >>> Any help would be greatly appreciated :) >> >> Try to load crypto and zlib also at boot time. Iow, add >> zlib_load="YES" and crypto_load="YES" to your loader.conf. >> >> I noticed recently that automatic dependency resolution doesn't seem to work with powerpc module loading. >> >> Regarding the rest I have no clue. Just an idea. From owner-freebsd-ppc@FreeBSD.ORG Sat Sep 29 14:14:44 2012 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E1DD3106566C for ; Sat, 29 Sep 2012 14:14:44 +0000 (UTC) (envelope-from aleksey.v.fedorov@gmail.com) Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9BB4E8FC0A for ; Sat, 29 Sep 2012 14:14:44 +0000 (UTC) Received: by qady23 with SMTP id y23so622701qad.13 for ; Sat, 29 Sep 2012 07:14:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Qg/Js/93/lgu8C28iD+tA0oVNM81IiNX6cPxz4eE/9s=; b=QLk22BaBXhdlEZv2eQaVqkXDmuYmUZtex6e7JnTxcW+TcUedl9CmH7+t4KEvOtyqPO sPPwImiTeTUOLLZbz51RSH0Wn4ZINWNUXjJxe6zAMZfw2YVTttayreWObEPZ61h5yrqi cjUh0xAs9h4ccJyVs6uiwvFsgyUTV+0Y0Firswoyy8aVgKM3LkfAs5qJor7n8sIZjuso TV1lhgxGhGUhVfRhIfDMccIG7WtXxqFzMGqvgNDUdgiLSpiYD65NginUuoC8IqKfjGxa Myyhi5XYHhv4RgWWGBdFeNGF9TkytepyhAbSUQqEkH7lTyV38ROzQwtvWtplQEcrEioy ApQg== MIME-Version: 1.0 Received: by 10.229.135.83 with SMTP id m19mr6441499qct.78.1348928078508; Sat, 29 Sep 2012 07:14:38 -0700 (PDT) Received: by 10.49.27.105 with HTTP; Sat, 29 Sep 2012 07:14:38 -0700 (PDT) Date: Sat, 29 Sep 2012 18:14:38 +0400 Message-ID: From: Aleksey Fedorov To: powerpc@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: panic: Bad list head in keg_ctor() 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: Sat, 29 Sep 2012 14:14:45 -0000 Hi! Sometimes while adding or removing some debugging in kernel I get the kernel which is panic at the same location in keg_ctor() LIST_INSERT_HEAD(&uma_kegs, keg, uk_link). For example I have kernel which is boot ok, I comment out some printf(...), rebuild the kernel and get the kernel which is panic. For example: FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 10.0-CURRENT #211 r239991=44c70c6-dirty: Sat Sep 29 17:33:53 MSK 2012 avf@avfh:/usr/obj/powerpc.powerpc/root/freebsd-head/sys/N710 powerpc WARNING: WITNESS option enabled, expect reduced performance. Creating uma keg headers zone and keg. Calculated uma_max_ipers (for OFFPAGE) is 64 Calculated uma_max_ipers_slab (for OFFPAGE) is 64 UMA: UMA Kegs(0xc0688fe8) size 128(128) flags 536870912 ipers 30 ppera 1 out 0 free 0 keg_ctor: LIST_INSERT_HEAD uma_kegs=0xc0688eac, keg=0xc0688edc keg_ctor: LIST_INSERT_HEAD uma_kegs ok Filling boot free list. Creating uma zone headers zone and keg. slab_zalloc: Allocating a new slab for UMA Kegs UMA: UMA Zones(0xc0688f60) size 328(352) flags 536870912 ipers 11 ppera 1 out 0 free 0 keg_ctor: LIST_INSERT_HEAD uma_kegs=0xc0688eac, keg=0xc2048000 keg_ctor: LIST_INSERT_HEAD uma_kegs ok Initializing pcpu cache locks. Creating slab and hash zones. slab_zalloc: Allocating a new slab for UMA Zones UMA: UMA Slabs(0xc2047000) size 284(284) flags 536870912 ipers 14 ppera 1 out 0 free 0 keg_ctor: LIST_INSERT_HEAD uma_kegs=0xc0688eac, keg=0xc2048080 keg_ctor: LIST_INSERT_HEAD uma_kegs ok UMA: UMA RCntSlabs(0xc2047160) size 544(544) flags 536870912 ipers 7 ppera 1 out 0 free 0 keg_ctor: LIST_INSERT_HEAD uma_kegs=0xc0688eac, keg=0xc2048100 keg_ctor: LIST_INSERT_HEAD uma_kegs ok UMA: UMA Hash(0xc20472c0) size 128(128) flags 536870912 ipers 30 ppera 1 out 0 free 0 keg_ctor: LIST_INSERT_HEAD uma_kegs=0xc0688eac, keg=0xc2048180 keg_ctor: LIST_INSERT_HEAD uma_kegs ok UMA: 16 Bucket(0xc2047420) size 76(76) flags 570425344 ipers 50 ppera 1 out 0 free 0 keg_ctor: LIST_INSERT_HEAD uma_kegs=0xc0688eac, keg=0xc2048200 keg_ctor: LIST_INSERT_HEAD uma_kegs ok UMA: 32 Bucket(0xc2047580) size 140(140) flags 570425344 ipers 28 ppera 1 out 0 free 0 keg_ctor: LIST_INSERT_HEAD uma_kegs=0xc0688eac, keg=0xc2048280 keg_ctor: LIST_INSERT_HEAD uma_kegs ok UMA: 64 Bucket(0xc20476e0) size 268(268) flags 570425344 ipers 14 ppera 1 out 0 free 0 keg_ctor: LIST_INSERT_HEAD uma_kegs=0xc0688eac, keg=0xc2048300 keg_ctor: LIST_INSERT_HEAD uma_kegs ok UMA: 128 Bucket(0xc2047840) size 524(524) flags 570425344 ipers 7 ppera 1 out 0 free 0 keg_ctor: LIST_INSERT_HEAD uma_kegs=0xc0688eac, keg=0xc2048380 keg_ctor: LIST_INSERT_HEAD uma_kegs ok UMA startup complete. UMA: VM OBJECT(0xc20479a0) size 160(160) flags -2147483488 ipers 24 ppera 1 out 0 free 0 keg_ctor: LIST_INSERT_HEAD uma_kegs=0xc0688eac, keg=0xc2048400 panic: Bad list head 0xc0688eac first->prev != head cpuid = 0 KDB: enter: panic [ thread pid 0 tid 0 ] Stopped at kdb_enter+0x60: addi r0, r0, 0x0 db> bt Tracing pid 0 tid 0 td 0xc05145f0 0xc2008a50: at panic+0x248 0xc2008ab0: at keg_ctor+0x3c0 0xc2008ad0: at zone_alloc_item+0x18c 0xc2008b00: at zone_ctor+0x1d8 0xc2008b50: at zone_alloc_item+0x18c 0xc2008b80: at uma_zcreate+0x4c 0xc2008bd0: at vm_object_init+0xf0 0xc2008c00: at vm_mem_init+0x2c 0xc2008c20: at mi_startup+0x13c 0xc2008c50: at done_mapping+0x28 db> The normal boot (this kernel is differ from the above by "#define DEBUG" in dev/fdt/simplebus.c): FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 10.0-CURRENT #210 r239991=44c70c6-dirty: Sat Sep 29 17:31:00 MSK 2012 avf@avfh:/usr/obj/powerpc.powerpc/root/freebsd-head/sys/N710 powerpc WARNING: WITNESS option enabled, expect reduced performance. Creating uma keg headers zone and keg. Calculated uma_max_ipers (for OFFPAGE) is 64 Calculated uma_max_ipers_slab (for OFFPAGE) is 64 UMA: UMA Kegs(0xc0688fe8) size 128(128) flags 536870912 ipers 30 ppera 1 out 0 free 0 keg_ctor: LIST_INSERT_HEAD uma_kegs=0xc0688eac, keg=0xc0688edc keg_ctor: LIST_INSERT_HEAD uma_kegs ok Filling boot free list. Creating uma zone headers zone and keg. slab_zalloc: Allocating a new slab for UMA Kegs UMA: UMA Zones(0xc0688f60) size 328(352) flags 536870912 ipers 11 ppera 1 out 0 free 0 keg_ctor: LIST_INSERT_HEAD uma_kegs=0xc0688eac, keg=0xc2048000 keg_ctor: LIST_INSERT_HEAD uma_kegs ok Initializing pcpu cache locks. Creating slab and hash zones. slab_zalloc: Allocating a new slab for UMA Zones UMA: UMA Slabs(0xc2047000) size 284(284) flags 536870912 ipers 14 ppera 1 out 0 free 0 keg_ctor: LIST_INSERT_HEAD uma_kegs=0xc0688eac, keg=0xc2048080 keg_ctor: LIST_INSERT_HEAD uma_kegs ok UMA: UMA RCntSlabs(0xc2047160) size 544(544) flags 536870912 ipers 7 ppera 1 out 0 free 0 keg_ctor: LIST_INSERT_HEAD uma_kegs=0xc0688eac, keg=0xc2048100 keg_ctor: LIST_INSERT_HEAD uma_kegs ok UMA: UMA Hash(0xc20472c0) size 128(128) flags 536870912 ipers 30 ppera 1 out 0 free 0 keg_ctor: LIST_INSERT_HEAD uma_kegs=0xc0688eac, keg=0xc2048180 keg_ctor: LIST_INSERT_HEAD uma_kegs ok UMA: 16 Bucket(0xc2047420) size 76(76) flags 570425344 ipers 50 ppera 1 out 0 free 0 keg_ctor: LIST_INSERT_HEAD uma_kegs=0xc0688eac, keg=0xc2048200 keg_ctor: LIST_INSERT_HEAD uma_kegs ok UMA: 32 Bucket(0xc2047580) size 140(140) flags 570425344 ipers 28 ppera 1 out 0 free 0 keg_ctor: LIST_INSERT_HEAD uma_kegs=0xc0688eac, keg=0xc2048280 keg_ctor: LIST_INSERT_HEAD uma_kegs ok UMA: 64 Bucket(0xc20476e0) size 268(268) flags 570425344 ipers 14 ppera 1 out 0 free 0 keg_ctor: LIST_INSERT_HEAD uma_kegs=0xc0688eac, keg=0xc2048300 keg_ctor: LIST_INSERT_HEAD uma_kegs ok UMA: 128 Bucket(0xc2047840) size 524(524) flags 570425344 ipers 7 ppera 1 out 0 free 0 keg_ctor: LIST_INSERT_HEAD uma_kegs=0xc0688eac, keg=0xc2048380 keg_ctor: LIST_INSERT_HEAD uma_kegs ok UMA startup complete. UMA: VM OBJECT(0xc20479a0) size 160(160) flags -2147483488 ipers 24 ppera 1 out 0 free 0 keg_ctor: LIST_INSERT_HEAD uma_kegs=0xc0688eac, keg=0xc2048400 keg_ctor: LIST_INSERT_HEAD uma_kegs ok UMA: MAP(0xc2047b00) size 152(152) flags 32 ipers 26 ppera 1 out 0 free 0 keg_ctor: LIST_INSERT_HEAD uma_kegs=0xc0688eac, keg=0xc2048480 keg_ctor: LIST_INSERT_HEAD uma_kegs ok slab_zalloc: Allocating a new slab for MAP UMA: KMAP ENTRY(0xc2047c60) size 80(80) flags -2147483456 ipers 48 ppera 1 out 0 free 0 keg_ctor: LIST_INSERT_HEAD uma_kegs=0xc0688eac, keg=0xc2048500 keg_ctor: LIST_INSERT_HEAD uma_kegs ok slab_zalloc: Allocating a new slab for KMAP ENTRY slab_zalloc: Allocating a new slab for KMAP ENTRY slab_zalloc: Allocating a new slab for KMAP ENTRY UMA: MAP ENTRY(0xc2047dc0) size 80(80) flags 0 ipers 48 ppera 1 out 0 free 0 keg_ctor: LIST_INSERT_HEAD uma_kegs=0xc0688eac, keg=0xc2048580 keg_ctor: LIST_INSERT_HEAD uma_kegs ok uma_zalloc_arg: Bucketzone returned NULL uma_zalloc_arg: Bucketzone returned NULL uma_zalloc_arg: Bucketzone returned NULL slab_zalloc: Allocating a new slab for UMA Zones UMA: PV ENTRY(0xc2042000) size 16(16) flags -2147483488 ipers 203 ppera 1 out 0 free 0 keg_ctor: LIST_INSERT_HEAD uma_kegs=0xc0688eac, keg=0xc2048600 keg_ctor: LIST_INSERT_HEAD uma_kegs ok uma_zalloc_arg: Bucketzone returned NULL slab_zalloc: Allocating a new slab for PV ENTRY slab_zalloc: Allocating a new slab for PV ENTRY slab_zalloc: Allocating a new slab for PV ENTRY slab_zalloc: Allocating a new slab for PV ENTRY slab_zalloc: Allocating a new slab for PV ENTRY slab_zalloc: Allocating a new slab for PV ENTRY slab_zalloc: Allocating a new slab for PV ENTRY slab_zalloc: Allocating a new slab for PV ENTRY slab_zalloc: Allocating a new slab for PV ENTRY slab_zalloc: Allocating a new slab for PV ENTRY slab_zalloc: Allocating a new slab for PV ENTRY UMA: fakepg(0xc2042160) size 80(80) flags -2147483488 ipers 48 ppera 1 out 0 free 0 keg_ctor: LIST_INSERT_HEAD uma_kegs=0xc0688eac, keg=0xc2048680 keg_ctor: LIST_INSERT_HEAD uma_kegs ok uma_zalloc_arg: Bucketzone returned NULL uma_zalloc_arg: Bucketzone returned NULL UMA startup2 complete. It seems like LIST structure corrupted somehow and this is possibly depend on alignment of kernel structures because the changing th code size change the behavior. Any ideas how to find the root of this issue?