From ed at 80386.nl Sun Nov 2 09:17:57 2008 From: ed at 80386.nl (Ed Schouten) Date: Sun Nov 2 09:18:03 2008 Subject: ADB mouse fixup Message-ID: <20081102171754.GS1165@hoeg.nl> Skipped content of type multipart/mixed-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-ppc/attachments/20081102/1e8aa232/attachment.pgp From nwhitehorn at freebsd.org Sun Nov 2 09:23:47 2008 From: nwhitehorn at freebsd.org (Nathan Whitehorn) Date: Sun Nov 2 09:24:19 2008 Subject: ADB mouse fixup In-Reply-To: <20081102171754.GS1165@hoeg.nl> References: <20081102171754.GS1165@hoeg.nl> Message-ID: <490DE209.4020109@freebsd.org> Ed Schouten wrote: > Hello all, > > After getting Xorg working on my Powerbook 12", I noticed the mouse > driver did something strange w.r.t. mouse buttons. After adding printf's > to the source code, I noticed it generated button 2 clicks each time I > just touched the pad. > > It turns out there is this a piece of code in the ADB mouse driver that > converts events of buttons that exceed the amount of buttons of the > device to button events of the last available button. Disabling this > code makes the mouse driver work properly. > > Any comments on the attached patch before I commit it to SVN? Thanks! > > That is really strange. As it happens, the code currently there for high buttons is to handle an external ALPS Glidepoint touchpad I have with 3 buttons that gives button events on buttons 1,2, and 4. The rest of my hardware behaves correctly, and the ALPS device reports itself as a mouse, not a trackpad, so I think the patch is fine. Crazy Apple hardware... -Nathan From ed at 80386.nl Sun Nov 2 10:43:36 2008 From: ed at 80386.nl (Ed Schouten) Date: Sun Nov 2 10:43:43 2008 Subject: ADB mouse fixup In-Reply-To: <490DE209.4020109@freebsd.org> References: <20081102171754.GS1165@hoeg.nl> <490DE209.4020109@freebsd.org> Message-ID: <20081102184335.GT1165@hoeg.nl> * Nathan Whitehorn wrote: > That is really strange. As it happens, the code currently there for high > buttons is to handle an external ALPS Glidepoint touchpad I have with 3 > buttons that gives button events on buttons 1,2, and 4. The rest of my > hardware behaves correctly, and the ALPS device reports itself as a > mouse, not a trackpad, so I think the patch is fine. Crazy Apple > hardware... Yeah, it is pretty strange. Though I think we may find this useful in the future. Each time you use the touch pad, it reports button 5 events. I suspect that when you use two fingers (not supported by my model) it returns a different button, though I can't confirm. I see there's also another small issue with my touch pad. For some reason X11 doesn't process any click events if I don't move the pointer after I've clicked/released the button. I'll investigate. -- Ed Schouten WWW: http://80386.nl/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-ppc/attachments/20081102/b0c21b07/attachment.pgp From tinderbox at freebsd.org Sun Nov 2 11:26:00 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Sun Nov 2 11:26:12 2008 Subject: [head tinderbox] failure on powerpc/powerpc Message-ID: <20081102192556.DEE7A73039@freebsd-current.sentex.ca> TB --- 2008-11-02 18:11:26 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-11-02 18:11:26 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2008-11-02 18:11:26 - cleaning the object tree TB --- 2008-11-02 18:11:56 - cvsupping the source tree TB --- 2008-11-02 18:11:56 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/powerpc/powerpc/supfile TB --- 2008-11-02 18:12:05 - building world (CFLAGS=-O -pipe) TB --- 2008-11-02 18:12:05 - cd /src TB --- 2008-11-02 18:12:05 - /usr/bin/make -B buildworld >>> World build started on Sun Nov 2 18:12:06 UTC 2008 >>> 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 Sun Nov 2 19:25:55 UTC 2008 TB --- 2008-11-02 19:25:55 - generating LINT kernel config TB --- 2008-11-02 19:25:55 - cd /src/sys/powerpc/conf TB --- 2008-11-02 19:25:55 - /usr/bin/make -B LINT TB --- 2008-11-02 19:25:55 - building LINT kernel (COPTFLAGS=) TB --- 2008-11-02 19:25:55 - cd /src TB --- 2008-11-02 19:25:55 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Sun Nov 2 19:25:55 UTC 2008 >>> stage 1: configuring the kernel -------------------------------------------------------------- cd /src/sys/powerpc/conf; PATH=/obj/powerpc/src/tmp/legacy/usr/sbin:/obj/powerpc/src/tmp/legacy/usr/bin:/obj/powerpc/src/tmp/legacy/usr/games:/obj/powerpc/src/tmp/usr/sbin:/obj/powerpc/src/tmp/usr/bin:/obj/powerpc/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin config -d /obj/powerpc/src/sys/LINT /src/sys/powerpc/conf/LINT WARNING: duplicate option `GEOM_PART_APM' encountered. WARNING: duplicate option `GEOM_PART_MBR' encountered. WARNING: duplicate option `DEV_MEM' encountered. WARNING: duplicate device `mem' encountered. /src/sys/powerpc/conf/LINT: unknown option "RL_TWISTER_ENABLE" *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-11-02 19:25:56 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-11-02 19:25:56 - ERROR: failed to build lint kernel TB --- 2008-11-02 19:25:56 - tinderbox aborted TB --- 3170.28 user 368.91 system 4470.08 real http://tinderbox.des.no/tinderbox-head-HEAD-powerpc-powerpc.full From andreast-list at fgznet.ch Sun Nov 2 13:01:36 2008 From: andreast-list at fgznet.ch (Andreas Tobler) Date: Sun Nov 2 13:01:43 2008 Subject: DFS on PowerBook5,4 Message-ID: <490E152C.30300@fgznet.ch> Hi Nathan, I played around with adjusting the CPU speed on my PowerBook5,4. Unfortunately I hang now, means I hang when I boot and I hang with the knowledge on how to go on. Attached the diff I have in my tree. The problem I have, I do not know how and what to tell gpio to do the right thing. At OF prompt I can set set-dfs-high and my PB comes up in full speed, 1.5GHz. Having a look at set-dfs-high: set-dfs-high pvr@ 10 rshift 8003 <> if exit else 5 1 gpio! 1 ms hid1@ 1 1f 9 - lshift andc hid1! then ; ok I see that I have to do something with gpio. But I do not know what and how. The difference from set-dfs-high @ OF level and my implementation attempt is the gpio part which is missing right now. Any hints would be great! TIA, Andreas P.S, The mtspr(SPR_HID1, hid1) call is commented since I already shot an installation with it. -------------- next part -------------- Index: include/hid.h =================================================================== RCS file: /home/ncvs/src/sys/powerpc/include/hid.h,v retrieving revision 1.5 diff -u -r1.5 hid.h --- include/hid.h 2 Mar 2008 17:05:57 -0000 1.5 +++ include/hid.h 2 Nov 2008 20:28:44 -0000 @@ -146,4 +146,53 @@ * 7457: XBSEN = Extended BAT Block Size Enable */ +/* HID1 definitions from MPC7450 RISC Microprocessor Family Reference Manual, + Rev. 5 */ + +#define HID1_EMCP 0x80000000 /* Machine check signal enable */ +#define HID1_EBA 0x20000000 /* Enable 60x/MPX bus address parity + checking */ +#define HID1_EBD 0x10000000 /* Enable 60x/MPX bus data parity + checking */ +#define HID1_BCLK 0x08000000 /* CLK_OUT clock type selection */ +#define HID1_ECLK 0x02000000 /* CLK_OUT clock type selection */ +#define HID1_PAR 0x01000000 /* Disable precharge of ARTRY */ +#define HID1_DFS4 0x00800000 /* Dynamic frequency switching (DFS) + divide-by-four mode (note 2) */ +#define HID1_DFS2 0x00400000 /* DFS divide-by-two mode (note 1, 2) */ +#define HID1_PC5 0x00020000 /* PLL config bit5 (read only) (note 2) */ +#define HID1_PC0 0x00010000 /* PLL config bit0 (read only)*/ +#define HID1_PC1 0x00008000 /* PLL config bit1 (read only) */ +#define HID1_PC2 0x00004000 /* PLL config bit2 (read only) */ +#define HID1_PC3 0x00002000 /* PLL config bit3 (read only) */ +#define HID1_PC4 0x00001000 /* PLL config bit4 (read only) */ +#define HID1_SYNCBE 0x00000800 /* ABE broadcast enable for sync, eieio */ +#define HID1_ABE 0x00000400 /* ABE enable for dcbf, dcbst, dcbi, icbi, + tlbie, and tlbsync. */ +#define HID1_BITMASK \ + "\20" \ + "\040EMCP\037res\036EBA\035EBD\034BCLK\033res\032ECLK\031PAR" \ + "\030res\027DFS2\026res\025res\024res\023res\022res\021PC0" \ + "\020PC1\017PC2\016PC3\015PC4\014SYNCBEI\013ABE\012res\011res" \ + "\010res\007res\006res\005res\004res\003res\002res\001res" + +#define HID1_7447A_BITMASK \ + "\20" \ + "\040EMCP\037res\036EBA\035EBD\034BCLK\033res\032ECLK\031PAR" \ + "\030DFS4\027DFS2\026res\025res\024res\023res\022res\021PC0" \ + "\020PC1\017PC2\016PC3\015PC4\014SYNCBEI\013ABE\012res\011res" \ + "\010res\007res\006res\005res\004res\003res\002res\001res" + +#define HID1_7448_BITMASK \ + "\20" \ + "\040EMCP\037res\036EBA\035EBD\034BCLK\033res\032ECLK\031PAR" \ + "\030DFS4\027DFS2\026res\025res\024res\023res\022PC5\021PC0" \ + "\020PC1\017PC2\016PC3\015PC4\014SYNCBEI\013ABE\012res\011res" \ + "\010res\007res\006res\005res\004res\003res\002res\001res" + +/* (1): MPC7447A-specific bit, reserved on MPC7450. + (2): MPC7448-specific bit. +*/ + + #endif /* _POWERPC_HID_H_ */ Index: powerpc/cpu.c =================================================================== RCS file: /home/ncvs/src/sys/powerpc/powerpc/cpu.c,v retrieving revision 1.14 diff -u -r1.14 cpu.c --- powerpc/cpu.c 28 Sep 2008 15:12:43 -0000 1.14 +++ powerpc/cpu.c 2 Nov 2008 20:28:45 -0000 @@ -116,11 +116,11 @@ void cpu_setup(u_int cpuid) { - u_int pvr, maj, min, hid0; + u_int pvr, maj, min, hid0, hid1; uint16_t vers, rev, revfmt; const struct cputab *cp; const char *name; - char *bitmask; + char *bitmask_hid0, *bitmask_hid1; pvr = mfpvr(); vers = pvr >> 16; @@ -168,6 +168,7 @@ } hid0 = mfspr(SPR_HID0); + hid1 = mfspr(SPR_HID1); /* * Configure power-saving mode. @@ -189,8 +190,16 @@ powerpc_pow_enabled = 1; break; - case MPC7448: case MPC7447A: + hid0 |= HID0_SGE | HID0_BTIC; + hid0 |= HID0_LRSTK | HID0_FOLD | HID0_BHT; + /* Select NAP mode. */ + hid0 &= ~(HID0_DOZE | HID0_NAP | HID0_SLEEP); + hid0 |= HID0_NAP | HID0_DPM; + hid1 &= ~HID1_DFS2; /* Run in full speed, correct? */ + powerpc_pow_enabled = 1; + break; + case MPC7448: case MPC7457: case MPC7455: case MPC7450: @@ -232,21 +241,37 @@ } mtspr(SPR_HID0, hid0); + if (vers == MPC7447A) { + __asm __volatile("sync"); + /* mtspr(SPR_HID1, hid1); */ + __asm __volatile("sync; isync"); + DELAY(100000); + hid1 = mfspr(SPR_HID1); + } switch (vers) { case MPC7447A: + bitmask_hid0 = HID0_7450_BITMASK; + bitmask_hid1 = HID1_7447A_BITMASK; + break; case MPC7448: + bitmask_hid0 = HID0_7450_BITMASK; + bitmask_hid1 = HID1_7448_BITMASK; + break; case MPC7450: case MPC7455: case MPC7457: - bitmask = HID0_7450_BITMASK; + bitmask_hid0 = HID0_7450_BITMASK; + bitmask_hid1 = HID1_BITMASK; break; case FSL_E500v1: case FSL_E500v2: - bitmask = HID0_E500_BITMASK; + bitmask_hid0 = HID0_E500_BITMASK; + bitmask_hid1 = HID1_BITMASK; break; default: - bitmask = HID0_BITMASK; + bitmask_hid0 = HID0_BITMASK; + bitmask_hid1 = HID1_BITMASK; break; } @@ -270,15 +295,15 @@ l2cr_config = mfspr(SPR_L2CR); - if (bootverbose) - cpu_print_cacheinfo(cpuid, vers); + cpu_print_cacheinfo(cpuid, vers); break; default: printf("\n"); break; } - printf("cpu%d: HID0 %b\n", cpuid, hid0, bitmask); + printf("cpu%d: HID0 %b\n", cpuid, hid0, bitmask_hid0); + printf("cpu%d: HID1 %b\n", cpuid, hid1, bitmask_hid1); } void @@ -319,6 +344,7 @@ printf("L3 cache disabled"); printf("\n"); break; + case MPC7447A: case IBM750FX: printf("512KB L2 cache\n"); break; From marcotrillo at gmail.com Sun Nov 2 14:33:38 2008 From: marcotrillo at gmail.com (Marco Trillo) Date: Sun Nov 2 14:33:45 2008 Subject: DFS on PowerBook5,4 In-Reply-To: <490E152C.30300@fgznet.ch> References: <490E152C.30300@fgznet.ch> Message-ID: Hi, On Sun, Nov 2, 2008 at 10:01 PM, Andreas Tobler wrote: > The problem I have, I do not know how and what to tell gpio to do the right > thing. > > At OF prompt I can set set-dfs-high and my PB comes up in full speed, > 1.5GHz. > > Having a look at set-dfs-high: > > set-dfs-high > pvr@ 10 rshift 8003 <> if > exit > else > 5 1 gpio! 1 ms hid1@ 1 1f 9 - lshift andc hid1! > then > ; ok > > I see that I have to do something with gpio. But I do not know what and how. > The difference from set-dfs-high @ OF level and my implementation attempt is > the gpio part which is missing right now. Hmm... for the GPIO part, you might want to try the following ugly hack: #include out8(0x8000006b, 0x5); DELAY(1000); /* wait 1 ms */ ... I think it will do the same as "5 1 gpio! 1 ms" in OF, but of course, no warranty for that :) Regards Marco From andreast-list at fgznet.ch Mon Nov 3 00:22:04 2008 From: andreast-list at fgznet.ch (Andreas Tobler) Date: Mon Nov 3 00:22:24 2008 Subject: DFS on PowerBook5,4 In-Reply-To: References: <490E152C.30300@fgznet.ch> Message-ID: <490EB4A5.3010609@fgznet.ch> Hi Marco, Marco Trillo wrote: > On Sun, Nov 2, 2008 at 10:01 PM, Andreas Tobler wrote: >> The problem I have, I do not know how and what to tell gpio to do the right >> thing. >> >> At OF prompt I can set set-dfs-high and my PB comes up in full speed, >> 1.5GHz. >> >> Having a look at set-dfs-high: >> >> set-dfs-high >> pvr@ 10 rshift 8003 <> if >> exit >> else >> 5 1 gpio! 1 ms hid1@ 1 1f 9 - lshift andc hid1! >> then >> ; ok >> >> I see that I have to do something with gpio. But I do not know what and how. >> The difference from set-dfs-high @ OF level and my implementation attempt is >> the gpio part which is missing right now. > > Hmm... for the GPIO part, you might want to try the following ugly hack: > > #include > > out8(0x8000006b, 0x5); > DELAY(1000); /* wait 1 ms */ > > ... I think it will do the same as "5 1 gpio! 1 ms" in OF, but of > course, no warranty for that :) It didn't burn the PowerBook :) FreeBSD 8.0-CURRENT #8: Mon Nov 3 07:56:10 CET 2008 andreast@wolfram.andreas.nets:/usr/obj/export/devel/fbsd/src/sys/ANDREAST cpu0: Motorola PowerPC 7447A revision 1.1, 1504.63 MHz cpu0: L1 I-cache enabled, L1 D-cache enabled cpu0: 512KB L2 cache cpu0: HID0 8450c0bc cpu0: HID1 8000fc80 real memory = 1063473152 (1014 MB) avail memory = 1027330048 (979 MB) Thanks a lot! Sometimes I seem to miss the simple things.... I continue playing..... Thanks again, Andreas From bugmaster at FreeBSD.org Mon Nov 3 03:06:57 2008 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon Nov 3 03:08:39 2008 Subject: Current problem reports assigned to freebsd-ppc@FreeBSD.org Message-ID: <200811031106.mA3B6vMq010998@freefall.freebsd.org> 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 -------------------------------------------------------------------------------- a power/121407 ppc [panic] Won't boot up; strange error message. o power/112435 ppc [nexus] [patch] Update nexus children to use ofw_bus f o power/111296 ppc [kernel] [patch] [request] Support IMISS, DLMISS an DS o power/93203 ppc FreeBSD PPC Can't Write to Partitions. 4 problems total. From andreast-list at fgznet.ch Mon Nov 3 12:26:53 2008 From: andreast-list at fgznet.ch (Andreas Tobler) Date: Mon Nov 3 12:27:00 2008 Subject: feedback: Apple Tumbler and Snapper audio: looking for testers Message-ID: <490F5E89.4040608@fgznet.ch> Hi Marco, took a while, but finally I managed to test your patch on my AluBook. It seems to work. I can hear a very quite output either on built-in speaker or on headphones. I've done this on yesterdays src tree. Including my speed hacks. The messages from the kernel: pcm0: mem 0x10000-0x10fff,0x8000-0x80ff,0x8100-0x81ff irq 30,1,2,31,3,4 on macio0 interrupting at irq 1 pcm0: [ITHREAD] GPIO : addr 0x6f GPIO : addr 0x70 GPIO : addr 0x75 interrupting at irq 61 pcm0: [ITHREAD] GPIO : addr 0x67 enabled outputs: SPEAKER kiic0: mem 0x18000-0x18fff irq 26 on macio0 cat /dev/sndstat FreeBSD Audio Driver (newpcm: 32bit 2007061600/powerpc) Installed devices: pcm0: at i2s [GIANT] (1p:1v/0r:0v channels default) Unfortunately I do not seem to be able to use the mixer correctly. mixer doesn't report a default device. So I can't set the volume. May I workaround this with setting hint.pcm.0.vol="50" in /boot/device.hints? I'll try. Thanks, Andreas From tinderbox at freebsd.org Mon Nov 3 22:30:01 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Mon Nov 3 22:30:13 2008 Subject: [head tinderbox] failure on powerpc/powerpc Message-ID: <20081104062958.B861D73039@freebsd-current.sentex.ca> TB --- 2008-11-04 05:01:18 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-11-04 05:01:18 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2008-11-04 05:01:18 - cleaning the object tree TB --- 2008-11-04 05:01:53 - cvsupping the source tree TB --- 2008-11-04 05:01:53 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/powerpc/powerpc/supfile TB --- 2008-11-04 05:02:00 - building world (CFLAGS=-O -pipe) TB --- 2008-11-04 05:02:00 - cd /src TB --- 2008-11-04 05:02:00 - /usr/bin/make -B buildworld >>> World build started on Tue Nov 4 05:02:03 UTC 2008 >>> 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 Nov 4 06:14:47 UTC 2008 TB --- 2008-11-04 06:14:47 - generating LINT kernel config TB --- 2008-11-04 06:14:47 - cd /src/sys/powerpc/conf TB --- 2008-11-04 06:14:47 - /usr/bin/make -B LINT TB --- 2008-11-04 06:14:47 - building LINT kernel (COPTFLAGS=) TB --- 2008-11-04 06:14:47 - cd /src TB --- 2008-11-04 06:14:47 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Tue Nov 4 06:14:47 UTC 2008 >>> 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 [...] awk -f /src/sys/modules/usb2/wlan_rum/../../../conf/kmod_syms.awk usb2_wlan_rum.kld export_syms | xargs -J% objcopy % usb2_wlan_rum.kld ld -Bshareable -d -warn-common -o usb2_wlan_rum.ko usb2_wlan_rum.kld objcopy --strip-debug usb2_wlan_rum.ko ===> usb2/wlan_zyd (all) cc -O -pipe -Werror -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include /obj/powerpc/src/sys/LINT/opt_global.h -I. -I@ -I@/contrib/altq -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mlongcall -fno-omit-frame-pointer -I/obj/powerpc/src/sys/LINT -msoft-float -ffreestanding -fstack-protector -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c /src/sys/modules/usb2/wlan_zyd/../../../dev/usb2/wlan/if_zyd2.c /src/sys/modules/usb2/wlan_zyd/../../../dev/usb2/wlan/if_zyd2.c: In function 'zyd_intr_read_callback': /src/sys/modules/usb2/wlan_zyd/../../../dev/usb2/wlan/if_zyd2.c:396: error: case label does not reduce to an integer constant /src/sys/modules/usb2/wlan_zyd/../../../dev/usb2/wlan/if_zyd2.c:398: error: case label does not reduce to an integer constant *** Error code 1 Stop in /src/sys/modules/usb2/wlan_zyd. *** Error code 1 Stop in /src/sys/modules/usb2. *** Error code 1 Stop in /src/sys/modules. *** Error code 1 Stop in /obj/powerpc/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-11-04 06:29:58 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-11-04 06:29:58 - ERROR: failed to build lint kernel TB --- 2008-11-04 06:29:58 - tinderbox aborted TB --- 3812.61 user 440.16 system 5319.77 real http://tinderbox.des.no/tinderbox-head-HEAD-powerpc-powerpc.full From marcotrillo at gmail.com Tue Nov 4 01:59:10 2008 From: marcotrillo at gmail.com (Marco Trillo) Date: Tue Nov 4 01:59:16 2008 Subject: feedback: Apple Tumbler and Snapper audio: looking for testers In-Reply-To: <490F5E89.4040608@fgznet.ch> References: <490F5E89.4040608@fgznet.ch> Message-ID: Hi, On Mon, Nov 3, 2008 at 9:26 PM, Andreas Tobler wrote: > took a while, but finally I managed to test your patch on my AluBook. > > It seems to work. I can hear a very quite output either on built-in speaker > or on headphones. > > I've done this on yesterdays src tree. Including my speed hacks. > > The messages from the kernel: > [...] > kiic0: mem 0x18000-0x18fff irq 26 on macio0 > [...] > Unfortunately I do not seem to be able to use the mixer correctly. mixer > doesn't report a default device. So I can't set the volume. Thanks a lot for testing the driver! Hmm... it seems that it is not able to detect the codec, so the volume cannot be changed. I think the following patch should solve this problem -- it makes the driver also look for a "layout-id" property and use that, if the other match attempts have failed. The patch is for the /usr/src/sys/dev/sound/macio/i2s.c file: --- i2s.c.orig 2008-10-09 11:05:57.000000000 +0200 +++ i2s.c 2008-11-04 10:50:39.000000000 +0100 @@ -526,6 +526,11 @@ void (*init)(struct i2s_softc *); int (*set_volume)(void *, int, int); }; +enum { + I2S_CODEC_TUMBLER, + I2S_CODEC_SNAPPER, + I2S_CODEC_UNKNOWN +}; static struct i2s_codec i2s_codecs[] = { {"tumbler", NULL, 0x68, tumbler_init, tumbler_set_volume}, {"snapper", "tas", 0x6a, snapper_init, tumbler_set_volume}, @@ -569,6 +574,24 @@ return 0; } } + + /* If still no match, try with `layout-id' property. */ + if (OF_getprop(soundbus, "layout-id", &ref, sizeof(ref)) == + sizeof(ref)) { + + c = NULL; + switch (ref) { + case 41: + case 51: + c = &i2s_codecs[I2S_CODEC_SNAPPER]; + break; + } + + if (c != NULL) { + sc->codec = c; + return 0; + } + } return -1; } Thanks! Marco From tinderbox at freebsd.org Tue Nov 4 06:06:20 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Tue Nov 4 06:06:33 2008 Subject: [head tinderbox] failure on powerpc/powerpc Message-ID: <20081104140614.DD22F73039@freebsd-current.sentex.ca> TB --- 2008-11-04 12:36:21 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-11-04 12:36:21 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2008-11-04 12:36:21 - cleaning the object tree TB --- 2008-11-04 12:36:48 - cvsupping the source tree TB --- 2008-11-04 12:36:48 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/powerpc/powerpc/supfile TB --- 2008-11-04 12:36:54 - building world (CFLAGS=-O -pipe) TB --- 2008-11-04 12:36:54 - cd /src TB --- 2008-11-04 12:36:54 - /usr/bin/make -B buildworld >>> World build started on Tue Nov 4 12:36:55 UTC 2008 >>> 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 Nov 4 13:51:28 UTC 2008 TB --- 2008-11-04 13:51:28 - generating LINT kernel config TB --- 2008-11-04 13:51:28 - cd /src/sys/powerpc/conf TB --- 2008-11-04 13:51:28 - /usr/bin/make -B LINT TB --- 2008-11-04 13:51:28 - building LINT kernel (COPTFLAGS=) TB --- 2008-11-04 13:51:28 - cd /src TB --- 2008-11-04 13:51:28 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Tue Nov 4 13:51:29 UTC 2008 >>> 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 [...] awk -f /src/sys/modules/usb2/wlan_rum/../../../conf/kmod_syms.awk usb2_wlan_rum.kld export_syms | xargs -J% objcopy % usb2_wlan_rum.kld ld -Bshareable -d -warn-common -o usb2_wlan_rum.ko usb2_wlan_rum.kld objcopy --strip-debug usb2_wlan_rum.ko ===> usb2/wlan_zyd (all) cc -O -pipe -Werror -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include /obj/powerpc/src/sys/LINT/opt_global.h -I. -I@ -I@/contrib/altq -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mlongcall -fno-omit-frame-pointer -I/obj/powerpc/src/sys/LINT -msoft-float -ffreestanding -fstack-protector -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c /src/sys/modules/usb2/wlan_zyd/../../../dev/usb2/wlan/if_zyd2.c /src/sys/modules/usb2/wlan_zyd/../../../dev/usb2/wlan/if_zyd2.c: In function 'zyd_intr_read_callback': /src/sys/modules/usb2/wlan_zyd/../../../dev/usb2/wlan/if_zyd2.c:396: error: case label does not reduce to an integer constant /src/sys/modules/usb2/wlan_zyd/../../../dev/usb2/wlan/if_zyd2.c:398: error: case label does not reduce to an integer constant *** Error code 1 Stop in /src/sys/modules/usb2/wlan_zyd. *** Error code 1 Stop in /src/sys/modules/usb2. *** Error code 1 Stop in /src/sys/modules. *** Error code 1 Stop in /obj/powerpc/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-11-04 14:06:14 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-11-04 14:06:14 - ERROR: failed to build lint kernel TB --- 2008-11-04 14:06:14 - tinderbox aborted TB --- 3815.56 user 441.05 system 5392.95 real http://tinderbox.des.no/tinderbox-head-HEAD-powerpc-powerpc.full From andreast-list at fgznet.ch Tue Nov 4 11:21:28 2008 From: andreast-list at fgznet.ch (Andreas Tobler) Date: Tue Nov 4 11:21:34 2008 Subject: feedback: Apple Tumbler and Snapper audio: looking for testers In-Reply-To: References: <490F5E89.4040608@fgznet.ch> Message-ID: <4910A0B3.4070808@fgznet.ch> Hi Marco, Marco Trillo wrote: > Thanks a lot for testing the driver! Thank you for making it possible..... ! > Hmm... it seems that it is not able to detect the codec, so the volume > cannot be changed. > > I think the following patch should solve this problem -- it makes the > driver also look for a "layout-id" property and use that, if the other > match attempts have failed. Indeed, it does: pcm0: codec: at address 6Ah on kiic0 0a: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0b: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0c: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0d: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0e: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0f: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 13: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 14: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 14: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 15: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 16: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 17: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 18: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 19: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01: 60 43: 02 02: 01 00 00 00 00 00 04: 00 00 00 00 00 00 05: 72 06: 72 07: 10 00 00 00 00 00 00 00 00 08: 10 00 00 00 00 00 00 00 00 21: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 22: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 23: 00 00 00 24: 00 00 00 40: c2 And I can set the volume with the mixer utility now. GREAT! Thanks again for writing this. Regards, Andreas P.S, if you need momre details from the dmesg, let me know. Even if you need retesting stuff. From tinderbox at freebsd.org Tue Nov 4 11:59:37 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Tue Nov 4 11:59:50 2008 Subject: [head tinderbox] failure on powerpc/powerpc Message-ID: <20081104195935.588CB73039@freebsd-current.sentex.ca> TB --- 2008-11-04 18:31:04 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-11-04 18:31:04 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2008-11-04 18:31:04 - cleaning the object tree TB --- 2008-11-04 18:31:29 - cvsupping the source tree TB --- 2008-11-04 18:31:29 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/powerpc/powerpc/supfile TB --- 2008-11-04 18:31:37 - building world (CFLAGS=-O -pipe) TB --- 2008-11-04 18:31:37 - cd /src TB --- 2008-11-04 18:31:37 - /usr/bin/make -B buildworld >>> World build started on Tue Nov 4 18:31:38 UTC 2008 >>> 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 Nov 4 19:44:24 UTC 2008 TB --- 2008-11-04 19:44:24 - generating LINT kernel config TB --- 2008-11-04 19:44:24 - cd /src/sys/powerpc/conf TB --- 2008-11-04 19:44:24 - /usr/bin/make -B LINT TB --- 2008-11-04 19:44:24 - building LINT kernel (COPTFLAGS=) TB --- 2008-11-04 19:44:24 - cd /src TB --- 2008-11-04 19:44:24 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Tue Nov 4 19:44:24 UTC 2008 >>> 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 [...] awk -f /src/sys/modules/usb2/wlan_rum/../../../conf/kmod_syms.awk usb2_wlan_rum.kld export_syms | xargs -J% objcopy % usb2_wlan_rum.kld ld -Bshareable -d -warn-common -o usb2_wlan_rum.ko usb2_wlan_rum.kld objcopy --strip-debug usb2_wlan_rum.ko ===> usb2/wlan_zyd (all) cc -O -pipe -Werror -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include /obj/powerpc/src/sys/LINT/opt_global.h -I. -I@ -I@/contrib/altq -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mlongcall -fno-omit-frame-pointer -I/obj/powerpc/src/sys/LINT -msoft-float -ffreestanding -fstack-protector -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c /src/sys/modules/usb2/wlan_zyd/../../../dev/usb2/wlan/if_zyd2.c /src/sys/modules/usb2/wlan_zyd/../../../dev/usb2/wlan/if_zyd2.c: In function 'zyd_intr_read_callback': /src/sys/modules/usb2/wlan_zyd/../../../dev/usb2/wlan/if_zyd2.c:396: error: case label does not reduce to an integer constant /src/sys/modules/usb2/wlan_zyd/../../../dev/usb2/wlan/if_zyd2.c:398: error: case label does not reduce to an integer constant *** Error code 1 Stop in /src/sys/modules/usb2/wlan_zyd. *** Error code 1 Stop in /src/sys/modules/usb2. *** Error code 1 Stop in /src/sys/modules. *** Error code 1 Stop in /obj/powerpc/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-11-04 19:59:35 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-11-04 19:59:35 - ERROR: failed to build lint kernel TB --- 2008-11-04 19:59:35 - tinderbox aborted TB --- 3815.37 user 439.14 system 5310.50 real http://tinderbox.des.no/tinderbox-head-HEAD-powerpc-powerpc.full From ross at grinz.com Thu Nov 6 15:59:41 2008 From: ross at grinz.com (Ross Gohlke) Date: Thu Nov 6 15:59:48 2008 Subject: netboot loader failing In-Reply-To: <48DD91A4.2060306@freebsd.org> References: <48DD91A4.2060306@freebsd.org> Message-ID: <65495.66.69.170.128.1226014266.squirrel@grinzport.grinz.com> I am trying to install -CURRENT (2 days old) on a 12" Powerbook G4 over ethernet. The installing server is NetBSD. First try: 0 > boot enet:,loader CLIENT: {MAC} 192.168.1.10 SERVER: fffffffffff 0.0.0.0 Transfer FILE: loader - TFTP LOAD TimeOutload-size=200 adler32=e97f8114 Loading ELF Invalid memory access at %SRR0: 01c009d0 %SRR1: 00083030 ok > 2nd try: 0 > boot enet:,loader hd:58 CLIENT: {MAC} 192.168.1.10 SERVER: fffffffffff 0.0.0.0 Transfer FILE: loader - TFTP LOAD TimeOutload-size=200 adler32=e97f8114 Loading ELF Decrementer exception at %SRR0: 01c009d0 %SRR1: 00083030 ok > I have the same loader on Powerbook's first (HFS) partition. 0 > boot hd:loader hd:58 gets me to memmap. I'm trying a netboot because the Powerbook's SuperDrive is dead. Any suggestions would be greatly appreciated. Ross > Hi Marco, > > Would you be able to try booting into the loader only e.g. > > 0 > boot cd:,\boot\loader hd:58 > > (giving a non-existent partition instead of no parameter will prevent > the loader from trying to open the device it was booted off). > > Then, issue an 'memmap' command at the loader prompt, and see if OFW > is using any of the memory that is at question. > > Secondly, would you be able to to a 'C' boot, but halt into the loader > and issue the same command ? This time, there should be memory allocated > for the kernel itself. > > I vaguely remember problems with eMacs in the past when booting from > disk, but the details are lost in the haze of time. > > later, > > Peter. > _______________________________________________ > freebsd-ppc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ppc > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" > -- Ross Gohlke > http://www.GRINZ.com (P) 901.276.9750 (Memphis) / 310.356.6906 (Los Angeles) (FAX/HOTLINE) 877.806.0861 111 S. Highland St. #424, Memphis, TN 38111 | Always up. | From grehan at freebsd.org Thu Nov 6 16:06:03 2008 From: grehan at freebsd.org (Peter Grehan) Date: Thu Nov 6 17:05:23 2008 Subject: netboot loader failing Message-ID: <20081107100519.ELI27488@dommail.onthenet.com.au> Hi Ross, >0 > boot enet:,loader >CLIENT: {MAC} 192.168.1.10 >SERVER: fffffffffff 0.0.0.0 >Transfer FILE: loader - >TFTP LOAD TimeOutload-size=200 adler32=e97f8114 What do your dhcp and tftp configs look like ? later, Peter. From tinderbox at freebsd.org Thu Nov 6 19:20:20 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Thu Nov 6 19:20:28 2008 Subject: [releng_7 tinderbox] failure on powerpc/powerpc Message-ID: <20081107032017.C6DE41B5078@freebsd-stable.sentex.ca> TB --- 2008-11-07 02:03:42 - tinderbox 2.4 running on freebsd-stable.sentex.ca TB --- 2008-11-07 02:03:42 - starting RELENG_7 tinderbox run for powerpc/powerpc TB --- 2008-11-07 02:03:42 - cleaning the object tree TB --- 2008-11-07 02:03:59 - cvsupping the source tree TB --- 2008-11-07 02:03:59 - /usr/bin/csup -z -r 3 -g -L 1 -h localhost -s /tinderbox/RELENG_7/powerpc/powerpc/supfile TB --- 2008-11-07 02:04:07 - building world (CFLAGS=-O2 -pipe) TB --- 2008-11-07 02:04:07 - cd /src TB --- 2008-11-07 02:04:07 - /usr/bin/make -B buildworld >>> World build started on Fri Nov 7 02:04:08 UTC 2008 >>> 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 Fri Nov 7 03:12:24 UTC 2008 TB --- 2008-11-07 03:12:24 - generating LINT kernel config TB --- 2008-11-07 03:12:24 - cd /src/sys/powerpc/conf TB --- 2008-11-07 03:12:24 - /usr/bin/make -B LINT TB --- 2008-11-07 03:12:24 - building LINT kernel (COPTFLAGS=-O2 -pipe) TB --- 2008-11-07 03:12:24 - cd /src TB --- 2008-11-07 03:12:24 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Fri Nov 7 03:12:25 UTC 2008 >>> 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 -ffreestanding -Werror /src/sys/kern/kern_mutex.c 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 -ffreestanding -Werror /src/sys/kern/kern_ntptime.c 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 -ffreestanding -Werror /src/sys/kern/kern_physio.c 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 -ffreestanding -Werror /src/sys/kern/kern_pmc.c 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 -ffreestanding -Werror /src/sys/kern/kern_priv.c 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 -ffreestanding -Werror /src/sys/kern/kern_proc.c /src/sys/kern/kern_proc.c: In function 'sysctl_kern_proc_vmmap': /src/sys/kern/kern_proc.c:1454: error: too few arguments to function 'VOP_GETATTR' *** Error code 1 Stop in /obj/powerpc/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-11-07 03:20:17 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-11-07 03:20:17 - ERROR: failed to build lint kernel TB --- 2008-11-07 03:20:17 - tinderbox aborted TB --- 3780.38 user 376.19 system 4595.02 real http://tinderbox.des.no/tinderbox-releng_7-RELENG_7-powerpc-powerpc.full From jrh29 at alumni.cwru.edu Fri Nov 7 21:00:07 2008 From: jrh29 at alumni.cwru.edu (Justin Hibbits) Date: Fri Nov 7 21:00:13 2008 Subject: graphics on G4 In-Reply-To: <20081022050101.EKN14563@dommail.onthenet.com.au> References: <20081022050101.EKN14563@dommail.onthenet.com.au> Message-ID: <20081108045959.GA1157@narn.knownspace> On Wed, Oct 22, 2008 at 05:01:01AM +1000, Peter Grehan wrote: > That sounds like a good place to start. For the case when the > program mmap's the video, does it write to all the pages ? One > thing to try would be to write a known value to screen memory > e.g. 0xdeadcode, and on exit see if that triggers a panic > rather than a hang. > > later, > > Peter. At long last I've reproduced the hang. I did write 0xdeadc0de to the framebuffer memory, but no panic, just a hang. At least, it seems to have been just a hang, as there was no panic trace displayed, everything just stopped. - Justin From horst at sxemacs.org Sat Nov 8 03:17:34 2008 From: horst at sxemacs.org (Horst =?ISO-8859-1?Q?G=FCnther?= Burkhardt III) Date: Sat Nov 8 03:17:41 2008 Subject: If it's broke, where's fixit? Message-ID: <1226143286.23132.10.camel@horst-tla> Hi freebsd-ppc'ers. I just made a few configurative screwups. Ones which are stopping the system from booting. (lol, i stuffed up an fstab entry) Once the boot process attempts to drop into single-user mode, it outputs the following error every thirty seconds before being arrested by a Ctrl-Alt-Delete forcing the machine down : bsdbox init: can't get /dev/console for controlling terminal: Operation not permitted ... Is there a fixit image for ppc? If not, why not? If yes, where? Also if not, what can be recommended to get me a working fbsd live system for just long enough to fix the REAL one? Thanks in advance, -- Horst. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url : http://lists.freebsd.org/pipermail/freebsd-ppc/attachments/20081108/dd009cf5/attachment.pgp From horst at sxemacs.org Sat Nov 8 06:20:02 2008 From: horst at sxemacs.org (Horst =?ISO-8859-1?Q?G=FCnther?= Burkhardt III) Date: Sat Nov 8 06:20:09 2008 Subject: If it's broke, where's fixit? In-Reply-To: <491599AF.3040700@grinz.com> References: <1226143286.23132.10.camel@horst-tla> <491599AF.3040700@grinz.com> Message-ID: <1226154234.23132.21.camel@horst-tla> On Sat, 2008-11-08 at 07:52 -0600, Ross Gohlke wrote: > ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-i386/7.0/7.0-RELEASE-i386-livefs.iso> File:7.0-RELEASE-powerpc-bootonly.iso 26046 KB 02/25/08 00:00:00 File:7.0-RELEASE-powerpc-disc1.iso 378426 KB 02/25/08 00:00:00 File:7.0-RELEASE-powerpc-disc2.iso 1182 KB 02/25/08 00:00:00 File:7.0-RELEASE-powerpc-disc3.iso 1182 KB 02/25/08 00:00:00 File:7.0-RELEASE-powerpc-docs.iso 260876 KB 02/26/08 00:00:00 ^^ from the powerpc directory. Something tells me there isn't a livefs iso there. > I used this link to roll a LiveFS installer CD: > http://80386.nl/unix/freebsd/bootcd/ Also dependant on LiveFS. Instructions are x86-specific too. ... There are _no_ Linux LiveCDs I can use which support UFS2, in fact few Linux CDs even boot to completion on my mac, the only ones thus far to have done so are the debian net installer disc and the Finnix liveCD. FreeSBIE apparently was to have a -ppc version, but that's vapourware. I can't mount my / from within disklabel in sysinstall (from install disc1) because it's horribly broken. Nothing I'd expect to be able to do to recover a broken BSD box is working. Anyone have some sane ideas? ( google need not apply, i've googled this to death, and ##freeBSD on freenode were being generally useless with well-directed inquiries, methinks they were all asleep :( ) Thanks, -- Horst. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url : http://lists.freebsd.org/pipermail/freebsd-ppc/attachments/20081108/6775623e/attachment.pgp From andreast-list at fgznet.ch Sat Nov 8 13:29:51 2008 From: andreast-list at fgznet.ch (Andreas Tobler) Date: Sat Nov 8 13:29:57 2008 Subject: If it's broke, where's fixit? In-Reply-To: <1226143286.23132.10.camel@horst-tla> References: <1226143286.23132.10.camel@horst-tla> Message-ID: <491604CB.8000703@fgznet.ch> Hallo Horst, Horst G?nther Burkhardt III wrote: > I just made a few configurative screwups. Ones which are stopping the > system from booting. > > (lol, i stuffed up an fstab entry) > > Once the boot process attempts to drop into single-user mode, it outputs > the following error every thirty seconds before being arrested by a > Ctrl-Alt-Delete forcing the machine down : > > bsdbox init: can't get /dev/console for controlling terminal: Operation > not permitted > > ... Is there a fixit image for ppc? If not, why not? If yes, where? > Also if not, what can be recommended to get me a working fbsd live > system for just long enough to fix the REAL one? I do not know about a 'fixit' image. But I recently had a similar issue where I ended up in installing the whole dist from scratch again. Not that bad, I'm working with fbsd sitting on a fw (firewire) disk, not on the internal one. I screwed one disk and I was not able to get it back. So I took a new fw disk, did it again and now I can play. But I was not able to resurect the first fw disk so far, I guess it might be due to fw issues. I chained them together but I was not able to access the bad disk. But, the idea you might try is to install a minimal fbsd installation on a second disk, might be fw, and boot from there and resurect the bad entry in fstab. Regards, Andreas From bigguy_40 at yahoo.com Sat Nov 8 14:06:23 2008 From: bigguy_40 at yahoo.com (Chris "Bigguy") Date: Sat Nov 8 14:27:48 2008 Subject: PowerMac G4 graphics issue In-Reply-To: <20081108120019.440D2106570D@hub.freebsd.org> Message-ID: <762295.44650.qm@web33105.mail.mud.yahoo.com> This is for Justin and Horst both - Just today I've FINALLY gotten Debian linux to work properly on my Power Mac Digital Audio with Nvidia graphics card. Getting the graphics right took many weeks to figure out, but I can now report the fix is easy. Edit the file /etc/X11/xorg.conf and change the value of "UseFBDev" from "true" to "false". This one change takes the system from not-working-at-all to OMG this is great! I'm hoping that for freebsd the fix is similar, if not identical. Please let me know. By the way, I have reason to believe that this fix is not required if an ATI graphics card is installed. All my best - Chris Rochester, New York From jrh29 at alumni.cwru.edu Sat Nov 8 15:49:41 2008 From: jrh29 at alumni.cwru.edu (Justin Hibbits) Date: Sat Nov 8 15:49:49 2008 Subject: PowerMac G4 graphics issue In-Reply-To: <762295.44650.qm@web33105.mail.mud.yahoo.com> References: <20081108120019.440D2106570D@hub.freebsd.org> <762295.44650.qm@web33105.mail.mud.yahoo.com> Message-ID: <20081108234926.GA29207@narn.knownspace> On Sat, Nov 08, 2008 at 02:06:21PM -0800, Chris Bigguy wrote: > This is for Justin and Horst both - > > Just today I've FINALLY gotten Debian linux to work properly on my Power Mac Digital Audio with Nvidia graphics card. Getting the graphics right took many weeks to figure out, but I can now report the fix is easy. > > Edit the file /etc/X11/xorg.conf and change the value of "UseFBDev" from "true" to "false". This one change takes the system from not-working-at-all to OMG this is great! > > I'm hoping that for freebsd the fix is similar, if not identical. Please let me know. > > By the way, I have reason to believe that this fix is not required if an ATI graphics card is installed. > > All my best - Chris > Rochester, New York Chris- My problem isn't that X doesn't work, it's that any kind of access to the framebuffer memory "eventually" (after some period of activity) hangs the system. I don't know what is actually causing this, as I don't know what memory block is implicitly shared by the video memory and real memory, which makes this a very difficult problem to solve. And, yes, I do have an ATI card (9600). - Justin From bugmaster at FreeBSD.org Mon Nov 10 03:06:56 2008 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon Nov 10 03:08:47 2008 Subject: Current problem reports assigned to freebsd-ppc@FreeBSD.org Message-ID: <200811101106.mAAB6t8C049813@freefall.freebsd.org> 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 -------------------------------------------------------------------------------- a power/121407 ppc [panic] Won't boot up; strange error message. o power/112435 ppc [nexus] [patch] Update nexus children to use ofw_bus f o power/111296 ppc [kernel] [patch] [request] Support IMISS, DLMISS an DS o power/93203 ppc FreeBSD PPC Can't Write to Partitions. 4 problems total. From horst at sxemacs.org Wed Nov 12 08:28:20 2008 From: horst at sxemacs.org (Horst =?ISO-8859-1?Q?G=FCnther?= Burkhardt III) Date: Wed Nov 12 08:28:26 2008 Subject: Another idea. Message-ID: <1226507560.23132.56.camel@horst-tla> Ok, it's possible on x86 (iirc) to make FreeBSD boot directly into single-user mode, and not bother with /etc/rc.d and the like. Is it possible to feed a flag to the ofw bootloader to do something similar? It would help greatly. Thanks, -- Horst. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url : http://lists.freebsd.org/pipermail/freebsd-ppc/attachments/20081112/714dfa3f/attachment.pgp From nwhitehorn at freebsd.org Wed Nov 12 08:33:45 2008 From: nwhitehorn at freebsd.org (Nathan Whitehorn) Date: Wed Nov 12 08:34:16 2008 Subject: Another idea. In-Reply-To: <1226507560.23132.56.camel@horst-tla> References: <1226507560.23132.56.camel@horst-tla> Message-ID: <491B059B.6060506@freebsd.org> Horst G?nther Burkhardt III wrote: > Ok, it's possible on x86 (iirc) to make FreeBSD boot directly into > single-user mode, and not bother with /etc/rc.d and the like. > > Is it possible to feed a flag to the ofw bootloader to do something > similar? It would help greatly. > > Thanks, > -- Horst. boot -s at the loader prompt, just like on x86. -Nathan From bruce at cran.org.uk Wed Nov 12 09:12:22 2008 From: bruce at cran.org.uk (Bruce Cran) Date: Wed Nov 12 09:12:28 2008 Subject: Another idea. In-Reply-To: <491B059B.6060506@freebsd.org> References: <1226507560.23132.56.camel@horst-tla> <491B059B.6060506@freebsd.org> Message-ID: <20081112085309.598a6fc1@tau.draftnet> On Wed, 12 Nov 2008 10:34:35 -0600 Nathan Whitehorn wrote: > Horst G__nther Burkhardt III wrote: > > Ok, it's possible on x86 (iirc) to make FreeBSD boot directly into > > single-user mode, and not bother with /etc/rc.d and the like. > > > > Is it possible to feed a flag to the ofw bootloader to do something > > similar? It would help greatly. > > > > Thanks, > > -- Horst. > > boot -s at the loader prompt, just like on x86. The boot process on powerpc is slightly different than on x86, because you don't get the nice boot screen where you press 6 to get to the prompt. Instead you get a message saying something like "Booting /boot/kernel/kernel in 10 seconds...". Press a key at that point and you get a prompt where you can enter "boot -s" to go to single-user mode. -- Bruce Cran From ross at grinz.com Wed Nov 12 09:57:13 2008 From: ross at grinz.com (Ross Gohlke) Date: Wed Nov 12 09:57:27 2008 Subject: SMP success (sort of) on Xserve G4 In-Reply-To: <48DD91A4.2060306@freebsd.org> References: <48DD91A4.2060306@freebsd.org> Message-ID: <491B18F3.4010900@grinz.com> I am new to -CURRENT and to synchronizing source, trying to parse conflicting instructions (mostly between Handbook and /usr/src/UPDATING). I still have some things to work out (server is remote, becomes unreachable periodically and has to be power-cycled), but my Xserve DP 1GHz G4 is using both processors. I'll try a UP kernel and may just go through the whole process again to see if errors go away. % dmesg Copyright (c) 1992-2008 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 8.0-CURRENT #0: Tue Nov 11 15:01:01 CST 2008 root@rorty.grinz.com:/usr/obj/usr/src/sys/RORTY.8 WARNING: WITNESS option enabled, expect reduced performance. cpu0: Motorola PowerPC 7455 revision 2.1, 1000.00 MHz cpu0: HID0 8450c0bc real memory = 2135240704 (2036 MB) avail memory = 2067062784 (1971 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0: dev=ff87f908 (BSP) cpu1: dev=ff880bc8 kbd0 at kbdmux0 nexus0: unin0: on nexus0 unin0: Version 36 pcib0: on nexus0 pci0: on pcib0 bge0: mem 0xa0000000-0xa000ffff irq 48 at device 16.0 on pci0 miibus0: on bge0 brgphy0: PHY 1 on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto bge0: Ethernet address: 00:03:93:c0:50:fc bge0: [ITHREAD] pcib1: on nexus0 pci1: on pcib1 pcib2: at device 13.0 on pci1 pci2: on pcib2 macio0: mem 0x80000000-0x8007ffff at device 7.0 on pci2 openpic0: mem 0x40000-0x7ffff on macio0 macgpio0: mem 0x50-0x7f on macio0 pmuextint0: gpio 9 irq 47 on macgpio0 scc0: mem 0x13000-0x13fff,0x8400-0x84ff,0x8500-0x85ff,0x8600-0x86ff,0x8700-0x87ff irq 22,5,6,23,7,8 on macio0 scc0: [FILTER] scc0: [FILTER] uart0: on scc0 uart0: [FILTER] uart1: on scc0 uart1: [FILTER] pmu0: mem 0x16000-0x17fff irq 25 on macio0 pmu0: [ITHREAD] ata0 mem 0x1f000-0x1ffff,0x8a00-0x8aff irq 19,11 on macio0 ata0: [ITHREAD] ohci0: mem 0x80081000-0x80081fff irq 27 at device 8.0 on pci2 ohci0: [GIANT-LOCKED] ohci0: [ITHREAD] usb0: OHCI version 1.0 usb0: on ohci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered ohci1: mem 0x80080000-0x80080fff irq 28 at device 9.0 on pci2 ohci1: [GIANT-LOCKED] ohci1: [ITHREAD] usb1: OHCI version 1.0 usb1: on ohci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered pcib3: at device 17.0 on pci1 pci3: on pcib3 pcib1: failed to reserve resource for (null) vgapci0: mem 0x88000000-0x8fffffff,0x80100000-0x8010ffff irq 52 at device 2.0 on pci3 atapci0: port 0x1090-0x1097,0x1080-0x1083,0x1070-0x1077,0x1060-0x1063,0x1050-0x105f mem 0x90030000-0x9003ffff irq 58 at device 21.0 on pci1 atapci0: [ITHREAD] ata2: on atapci0 ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] atapci1: port 0x1040-0x1047,0x1030-0x1033,0x1020-0x1027,0x1010-0x1013,0x1000-0x100f mem 0x90010000-0x9001ffff irq 63 at device 27.0 on pci1 atapci1: [ITHREAD] ata4: on atapci1 ata4: [ITHREAD] ata5: on atapci1 ata5: [ITHREAD] pcib4: on nexus0 pci4: on pcib4 fwohci0: mem 0xf5000000-0xf5000fff irq 40 at device 14.0 on pci4el fwohci0: [FILTER] fwohci0: OHCI version 1.10 (ROM=0) fwohci0: No. of Isochronous channels is 8. fwohci0: EUI64 00:03:93:ff:fe:b5:d4:8e fwohci0: Phy 1394a available S400, 3 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:03:93:b5:d4:8e fwe0: Ethernet address: 02:03:93:b5:d4:8e sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: BUS reset fwohci0: node_id=0xc800ffc1, gen=2, CYCLEMASTER mode gem0: mem 0xf5200000-0xf53fffff irq 41 at device 15.0 on pci4 miibus1: on gem0 brgphy1: PHY 0 on miibus1 brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto gem0: 10kB RX FIFO, 4kB TX FIFO gem0: Ethernet address: 00:03:93:b5:d4:8e gem0: [ITHREAD] sc0: on nexus0 sc0: Unknown <16 virtual consoles, flags=0x300> uhub2: on uhub0 uhub2: 3 ports with 2 removable, bus powered ukbd0: on uhub2 kbd1 at ukbd0 ums0: on uhub2 ums0: 1 buttons. Timecounter "decrementer" frequency 33229775 Hz quality 0 Timecounters tick every 10.000 msec IP Filter: v4.1.28 initialized. Default = pass all, Logging = enabled firewire0: 2 nodes, maxhop <= 1, cable IRM = 1 (me) firewire0: bus manager 1 (me) acd0: CDRW at ata0-master UDMA33 ad0: 117800MB at ata2-master UDMA100 ad1: 58644MB at ata3-master UDMA100 Waking up CPU 1 (dev=ff880bc8) WARNING: WITNESS option enabled, expect reduced performance. Trying to mount root from ufs:/dev/ad0s3 WARNING: / was not properly dismounted lock order reversal: 1st 0xc44048 user map (user map) @ /usr/src/sys/vm/vm_map.c:3115 2nd 0xe0aafc ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2047 KDB: stack backtrace: 0xe08cf930: at kdb_backtrace+0x4c 0xe08cf950: at _witness_debugger+0x3c 0xe08cf970: at witness_checkorder+0x8d0 0xe08cf9d0: at __lockmgr_args+0x23c 0xe08cfa50: at ffs_lock+0x9c 0xe08cfa80: at VOP_LOCK1_APV+0xec 0xe08cfaa0: at _vn_lock+0x84 0xe08cfaf0: at vget+0xdc 0xe08cfb30: at vnode_pager_lock+0x20c 0xe08cfb90: at vm_fault+0x218 0xe08cfca0: at trap_pfault+0x128 0xe08cfce0: at trap+0x1ac 0xe08cfda0: at powerpc_interrupt+0x15c 0xe08cfdd0: user ISI trap by 0x1818f4c: srr1=0x4000d032 r1=0x7fffded0 cr=0x24000048 xer=0 ctr=0 WARNING: /mnt/disk2 was not properly dismounted lock order reversal: 1st 0xd9d27400 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:2443 2nd 0xe41e00 dirhash (dirhash) @ /usr/src/sys/ufs/ufs/ufs_dirhash.c:263 KDB: stack backtrace: 0xe50c1a20: at kdb_backtrace+0x4c 0xe50c1a40: at _witness_debugger+0x3c 0xe50c1a60: at witness_checkorder+0x8d0 0xe50c1ac0: at _sx_xlock+0x90 0xe50c1af0: at ufsdirhash_acquire+0x40 0xe50c1b10: at ufsdirhash_remove+0x2c 0xe50c1b40: at ufs_dirremove+0x100 0xe50c1b80: at ufs_remove+0x8c 0xe50c1bc0: at VOP_REMOVE_APV+0xe0 0xe50c1be0: at kern_unlinkat+0x1b4 0xe50c1ca0: at kern_unlink+0x24 0xe50c1cc0: at unlink+0x1c 0xe50c1ce0: at trap+0x460 0xe50c1da0: at powerpc_interrupt+0x15c 0xe50c1dd0: user SC trap by 0x21940288: srr1=0xd032 r1=0x7fffd570 cr=0x40000042 xer=0 ctr=0x21940280 lock order reversal: 1st 0x4181c0c ufs (ufs) @ /usr/src/sys/kern/vfs_mount.c:1064 2nd 0x41896bc devfs (devfs) @ /usr/src/sys/kern/vfs_subr.c:2047 KDB: stack backtrace: 0xe510c7f0: at kdb_backtrace+0x4c 0xe510c810: at _witness_debugger+0x3c 0xe510c830: at witness_checkorder+0x8d0 0xe510c890: at __lockmgr_args+0xaf8 0xe510c910: at vop_stdlock+0x48 0xe510c930: at VOP_LOCK1_APV+0xec 0xe510c950: at _vn_lock+0x84 0xe510c9a0: at vget+0xdc 0xe510c9e0: at devfs_allocv+0x11c 0xe510ca20: at devfs_root+0x5c 0xe510ca60: at vfs_donmount+0x1458 0xe510cca0: at nmount+0xd8 0xe510cce0: at trap+0x460 0xe510cda0: at powerpc_interrupt+0x15c 0xe510cdd0: user SC trap by 0x218d2788: srr1=0xd032 r1=0x7fffcd10 cr=0x20000044 xer=0 ctr=0x218d2780 link_elf: symbol dev2unit undefined lock order reversal: 1st 0x88efd1c ufs (ufs) @ /usr/src/sys/ufs/ffs/ffs_snapshot.c:420 2nd 0xd9d5b118 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:2443 3rd 0xf2c05c ufs (ufs) @ /usr/src/sys/ufs/ffs/ffs_snapshot.c:541 KDB: stack backtrace: 0xe511b5b0: at kdb_backtrace+0x4c 0xe511b5d0: at _witness_debugger+0x3c 0xe511b5f0: at witness_checkorder+0x8d0 0xe511b650: at __lockmgr_args+0xaf8 0xe511b6d0: at ffs_lock+0x9c 0xe511b700: at VOP_LOCK1_APV+0xec 0xe511b720: at _vn_lock+0x84 0xe511b770: at ffs_snapshot+0x12ec 0xe511b970: at ffs_mount+0x10a4 0xe511ba60: at vfs_donmount+0x108c 0xe511bca0: at nmount+0xd8 0xe511bce0: at trap+0x460 0xe511bda0: at powerpc_interrupt+0x15c 0xe511bdd0: user SC trap by 0x218d8788: srr1=0xf032 r1=0x7fffdb90 cr=0x20004044 xer=0 ctr=0x218d8780 lock order reversal: 1st 0xd9d5b118 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:2443 2nd 0x8923b9c snaplk (snaplk) @ /usr/src/sys/ufs/ffs/ffs_snapshot.c:790 KDB: stack backtrace: 0xe511b5b0: at kdb_backtrace+0x4c 0xe511b5d0: at _witness_debugger+0x3c 0xe511b5f0: at witness_checkorder+0x8d0 0xe511b650: at __lockmgr_args+0xaf8 0xe511b6d0: at ffs_lock+0x9c 0xe511b700: at VOP_LOCK1_APV+0xec 0xe511b720: at _vn_lock+0x84 0xe511b770: at ffs_snapshot+0x22f8 0xe511b970: at ffs_mount+0x10a4 0xe511ba60: at vfs_donmount+0x108c 0xe511bca0: at nmount+0xd8 0xe511bce0: at trap+0x460 0xe511bda0: at powerpc_interrupt+0x15c 0xe511bdd0: user SC trap by 0x218d8788: srr1=0xf032 r1=0x7fffdb90 cr=0x20004044 xer=0 ctr=0x218d8780 lock order reversal: 1st 0x8923b9c snaplk (snaplk) @ /usr/src/sys/kern/vfs_vnops.c:293 2nd 0x88efd1c ufs (ufs) @ /usr/src/sys/ufs/ffs/ffs_snapshot.c:1584 KDB: stack backtrace: 0xe511b880: at kdb_backtrace+0x4c 0xe511b8a0: at _witness_debugger+0x3c 0xe511b8c0: at witness_checkorder+0x8d0 0xe511b920: at __lockmgr_args+0xaf8 0xe511b9a0: at ffs_snapremove+0x148 0xe511ba10: at softdep_releasefile+0x54 0xe511ba40: at ufs_inactive+0x1c8 0xe511ba80: at VOP_INACTIVE_APV+0xe0 0xe511baa0: at vinactive+0x98 0xe511bae0: at vput+0x21c 0xe511bb30: at vn_close+0x10c 0xe511bb80: at vn_closefile+0x114 0xe511bbf0: at _fdrop+0x60 0xe511bc10: at closef+0x2f8 0xe511bc90: at kern_close+0x144 0xe511bcc0: at close+0x18 0xe511bce0: at trap+0x460 0xe511bda0: at powerpc_interrupt+0x15c 0xe511bdd0: user SC trap by 0x2197f088: srr1=0xf032 r1=0x7fffdb60 cr=0x22004028 xer=0 ctr=0x2197f080 lock order reversal: 1st 0x4181c0c ufs (ufs) @ /usr/src/sys/kern/vfs_mount.c:1207 2nd 0x41895ac syncer (syncer) @ /usr/src/sys/kern/vfs_subr.c:2147 KDB: stack backtrace: 0xe5206a70: at kdb_backtrace+0x4c 0xe5206a90: at _witness_debugger+0x3c 0xe5206ab0: at witness_checkorder+0x8d0 0xe5206b10: at __lockmgr_args+0xaf8 0xe5206b90: at vop_stdlock+0x48 0xe5206bb0: at VOP_LOCK1_APV+0xec 0xe5206bd0: at _vn_lock+0x84 0xe5206c20: at vrele+0x158 0xe5206c60: at dounmount+0x3b0 0xe5206ca0: at unmount+0x2e4 0xe5206ce0: at trap+0x460 0xe5206da0: at powerpc_interrupt+0x15c 0xe5206dd0: user SC trap by 0x218b1e38: srr1=0xd032 r1=0x7fffd540 cr=0x20004082 xer=0 ctr=0x218b1e30 % sysctl kern.smp kern.smp.forward_roundrobin_enabled: 1 kern.smp.forward_signal_enabled: 1 kern.smp.topology: 0 kern.smp.cpus: 2 kern.smp.disabled: 0 kern.smp.active: 1 kern.smp.maxcpus: 2 kern.smp.maxid: 1 % vmstat -ia interrupt total rate irq48: bge0 66399 0 irq22: scc0 0 0 irq23: scc0 0 0 irq47: pmu0 0 0 irq19: ata0 35 0 irq27: ohci0 4 0 irq28: ohci1 1 0 irq58: atapci0 1796238 26 irq63: atapci1 0 0 irq40: fwohci0 2 0 irq41: gem0 237728 3 irq64: IPI 7734095 114 Total 9834502 146 From andreast-list at fgznet.ch Wed Nov 12 11:50:24 2008 From: andreast-list at fgznet.ch (Andreas Tobler) Date: Wed Nov 12 11:50:31 2008 Subject: ppc float.h Message-ID: <491B337D.5010901@fgznet.ch> Hello, can somebody explain why we have these defines in sys/powerpc/include/float.h ? #define LDBL_MANT_DIG DBL_MANT_DIG #define LDBL_EPSILON DBL_EPSILON #define LDBL_DIG DBL_DIG #define LDBL_MIN_EXP DBL_MIN_EXP #define LDBL_MIN DBL_MIN #define LDBL_MIN_10_EXP DBL_MIN_10_EXP #define LDBL_MAX_EXP DBL_MAX_EXP #define LDBL_MAX DBL_MAX #define LDBL_MAX_10_EXP DBL_MAX_10_EXP I mean, why do we use the DBL_* for the LDBL instead of defining them like this: #define LDBL_MANT_DIG 64 #define LDBL_EPSILON 1.0842021724855044340E-19L #define LDBL_DIG 18 #define LDBL_MIN_EXP (-16381) #define LDBL_MIN 3.3621031431120935063E-4932L #define LDBL_MIN_10_EXP (-4931) #define LDBL_MAX_EXP 16384 #define LDBL_MAX 1.1897314953572317650E+4932L #define LDBL_MAX_10_EXP 4932 The float.h itself states that it is derived from: from: FreeBSD: src/sys/i386/include/float.h,v 1.8 1999/08/28 00:44:11 Having a look into src/sys/i386/include/float.h shows that the LDBL_* are defined as the above. Are there missing issues in libc or so? TIA, Regards, Andreas From horst at sxemacs.org Wed Nov 12 13:18:34 2008 From: horst at sxemacs.org (Horst =?ISO-8859-1?Q?G=FCnther?= Burkhardt III) Date: Wed Nov 12 13:18:41 2008 Subject: Another idea. In-Reply-To: <20081112085309.598a6fc1@tau.draftnet> References: <1226507560.23132.56.camel@horst-tla> <491B059B.6060506@freebsd.org> <20081112085309.598a6fc1@tau.draftnet> Message-ID: <1226524976.23132.59.camel@horst-tla> On Wed, 2008-11-12 at 08:53 -0800, Bruce Cran wrote: > On Wed, 12 Nov 2008 10:34:35 -0600 > Nathan Whitehorn wrote: > > > Horst G__nther Burkhardt III wrote: > > > Ok, it's possible on x86 (iirc) to make FreeBSD boot directly into > > > single-user mode, and not bother with /etc/rc.d and the like. > > > > > > Is it possible to feed a flag to the ofw bootloader to do something > > > similar? It would help greatly. > > > > > > Thanks, > > > -- Horst. > > > > boot -s at the loader prompt, just like on x86. > > The boot process on powerpc is slightly different than on x86, because > you don't get the nice boot screen where you press 6 to get to the > prompt. Instead you get a message saying something like > "Booting /boot/kernel/kernel in 10 seconds...". Press a key at that > point and you get a prompt where you can enter "boot -s" to go to > single-user mode. Thanks, both of you - i knew about the boot ofw thingy, but basically just forgot the manual params to bypass multiuser. The computer is fixed now and i don't need to reinstall - yay =) --Horst -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url : http://lists.freebsd.org/pipermail/freebsd-ppc/attachments/20081112/6171f305/attachment.pgp From grehan at freebsd.org Wed Nov 12 17:00:11 2008 From: grehan at freebsd.org (Peter Grehan) Date: Wed Nov 12 19:49:13 2008 Subject: ppc float.h Message-ID: <20081113105926.ELO26264@dommail.onthenet.com.au> Hi Andreas, >can somebody explain why we have these defines in >sys/powerpc/include/float.h ? Have a look at http://svn.freebsd.org/viewvc/base?view=revision&revision=132421 Basically, the ABI was switched from 128 bit long doubles to 64. Not exactly SVR4 compliant but then no-one else is. later, Peter. From xcllnt at mac.com Wed Nov 12 20:24:17 2008 From: xcllnt at mac.com (Marcel Moolenaar) Date: Wed Nov 12 20:24:23 2008 Subject: ppc float.h In-Reply-To: <491B337D.5010901@fgznet.ch> References: <491B337D.5010901@fgznet.ch> Message-ID: <46B90E82-B28B-42BB-8D33-49F5C012262A@mac.com> On Nov 12, 2008, at 11:50 AM, Andreas Tobler wrote: > Hello, > > can somebody explain why we have these defines in sys/powerpc/ > include/float.h ? > > #define LDBL_MANT_DIG DBL_MANT_DIG > #define LDBL_EPSILON DBL_EPSILON > #define LDBL_DIG DBL_DIG > #define LDBL_MIN_EXP DBL_MIN_EXP > #define LDBL_MIN DBL_MIN > #define LDBL_MIN_10_EXP DBL_MIN_10_EXP > #define LDBL_MAX_EXP DBL_MAX_EXP > #define LDBL_MAX DBL_MAX > #define LDBL_MAX_10_EXP DBL_MAX_10_EXP Because "long double" on PowerPC is the same as "double". This is dictated by the compiler: mini-g4% gcc -E -dM -xc /dev/null | grep DBL | grep DIG #define __DBL_DIG__ 15 #define __LDBL_DIG__ 15 #define __LDBL_MANT_DIG__ 53 #define __DBL_MANT_DIG__ 53 -- Marcel Moolenaar xcllnt@mac.com From ross at grinz.com Thu Nov 13 10:39:23 2008 From: ross at grinz.com (Ross Gohlke) Date: Thu Nov 13 10:39:30 2008 Subject: kernel panic on Xserve G4 -CURRENT In-Reply-To: <48DD91A4.2060306@freebsd.org> References: <48DD91A4.2060306@freebsd.org> Message-ID: <491C7459.5030609@grinz.com> panic: mutex vm page queue mutex not owned at /usr/src/powerpc/a... cpuid = 0 KDB: enter: panic [thread pic 48347 tid 100099 ] Stopped at 0x2cc194: addi r0, r0, 0x0 db> Unfortunately I don't get to see the rest of the panic line. Next directory has to be aim, don't know past that. I have resynched my source, rebuilt/reinstalled the kernel, reinstalled world, deinstalled ports with kernel modules (fusefs-kmod) and reinstalled via ports all software configured to run with rc.d/. link_elf: symbol dev2unit undefined This error went away with deinstallation of fusefs-*. Below are results for both SMP and UP kernels (older). ## SMP % dmesg Copyright (c) 1992-2008 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 8.0-CURRENT #0: Thu Nov 13 07:22:29 CST 2008 root@rorty.grinz.com:/usr/obj/usr/src/sys/RORTY.8 WARNING: WITNESS option enabled, expect reduced performance. cpu0: Motorola PowerPC 7455 revision 2.1, 1000.00 MHz cpu0: HID0 8450c0bc real memory = 2135232512 (2036 MB) avail memory = 2067054592 (1971 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0: dev=ff87f908 (BSP) cpu1: dev=ff880bc8 ... lock order reversal: 1st 0xc44048 user map (user map) @ /usr/src/sys/vm/vm_map.c:3115 2nd 0xe1cafc ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2047 KDB: stack backtrace: 0xe08cf930: at kdb_backtrace+0x4c 0xe08cf950: at _witness_debugger+0x3c 0xe08cf970: at witness_checkorder+0x8d0 0xe08cf9d0: at __lockmgr_args+0x23c 0xe08cfa50: at ffs_lock+0x9c 0xe08cfa80: at VOP_LOCK1_APV+0xec 0xe08cfaa0: at _vn_lock+0x84 0xe08cfaf0: at vget+0xdc 0xe08cfb30: at vnode_pager_lock+0x20c 0xe08cfb90: at vm_fault+0x218 0xe08cfca0: at trap_pfault+0x128 0xe08cfce0: at trap+0x1ac 0xe08cfda0: at powerpc_interrupt+0x15c 0xe08cfdd0: user ISI trap by 0x1818f4c: srr1=0x4000d032 r1=0x7fffded0 cr=0x24000048 xer=0 ctr=0 WARNING: /mnt/disk2 was not properly dismounted lock order reversal: 1st 0xd9d27558 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:2443 2nd 0xe59800 dirhash (dirhash) @ /usr/src/sys/ufs/ufs/ufs_dirhash.c:263 KDB: stack backtrace: 0xe50ada20: at kdb_backtrace+0x4c 0xe50ada40: at _witness_debugger+0x3c 0xe50ada60: at witness_checkorder+0x8d0 0xe50adac0: at _sx_xlock+0x90 0xe50adaf0: at ufsdirhash_acquire+0x40 0xe50adb10: at ufsdirhash_remove+0x2c 0xe50adb40: at ufs_dirremove+0x100 0xe50adb80: at ufs_remove+0x8c 0xe50adbc0: at VOP_REMOVE_APV+0xe0 0xe50adbe0: at kern_unlinkat+0x1b4 0xe50adca0: at kern_unlink+0x24 0xe50adcc0: at unlink+0x1c 0xe50adce0: at trap+0x460 0xe50adda0: at powerpc_interrupt+0x15c 0xe50addd0: user SC trap by 0x21940198: srr1=0xd032 r1=0x7fffd570 cr=0x40000042 xer=0 ctr=0x21940190 lock order reversal: 1st 0x41866bc ufs (ufs) @ /usr/src/sys/kern/vfs_mount.c:1064 2nd 0x418438c devfs (devfs) @ /usr/src/sys/kern/vfs_subr.c:2047 KDB: stack backtrace: 0xe50ad7f0: at kdb_backtrace+0x4c 0xe50ad810: at _witness_debugger+0x3c 0xe50ad830: at witness_checkorder+0x8d0 0xe50ad890: at __lockmgr_args+0xaf8 0xe50ad910: at vop_stdlock+0x48 0xe50ad930: at VOP_LOCK1_APV+0xec 0xe50ad950: at _vn_lock+0x84 0xe50ad9a0: at vget+0xdc 0xe50ad9e0: at devfs_allocv+0x11c 0xe50ada20: at devfs_root+0x5c 0xe50ada60: at vfs_donmount+0x1458 0xe50adca0: at nmount+0xd8 0xe50adce0: at trap+0x460 0xe50adda0: at powerpc_interrupt+0x15c 0xe50addd0: user SC trap by 0x218d2788: srr1=0xd032 r1=0x7fffcd10 cr=0x20000044 xer=0 ctr=0x218d2780 lock order reversal: 1st 0x783be2c ufs (ufs) @ /usr/src/sys/ufs/ffs/ffs_snapshot.c:420 2nd 0xd9e4aad0 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:2443 3rd 0xf719ec ufs (ufs) @ /usr/src/sys/ufs/ffs/ffs_snapshot.c:541 KDB: stack backtrace: 0xe50c65b0: at kdb_backtrace+0x4c 0xe50c65d0: at _witness_debugger+0x3c 0xe50c65f0: at witness_checkorder+0x8d0 0xe50c6650: at __lockmgr_args+0xaf8 0xe50c66d0: at ffs_lock+0x9c 0xe50c6700: at VOP_LOCK1_APV+0xec 0xe50c6720: at _vn_lock+0x84 0xe50c6770: at ffs_snapshot+0x12ec 0xe50c6970: at ffs_mount+0x10a4 0xe50c6a60: at vfs_donmount+0x108c 0xe50c6ca0: at nmount+0xd8 0xe50c6ce0: at trap+0x460 0xe50c6da0: at powerpc_interrupt+0x15c 0xe50c6dd0: user SC trap by 0x218d8788: srr1=0xf032 r1=0x7fffdb90 cr=0x20004044 xer=0 ctr=0x218d8780 lock order reversal: 1st 0xd9e4aad0 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:2443 2nd 0x799ad5c snaplk (snaplk) @ /usr/src/sys/ufs/ffs/ffs_snapshot.c:790 KDB: stack backtrace: 0xe50c65b0: at kdb_backtrace+0x4c 0xe50c65d0: at _witness_debugger+0x3c 0xe50c65f0: at witness_checkorder+0x8d0 0xe50c6650: at __lockmgr_args+0xaf8 0xe50c66d0: at ffs_lock+0x9c 0xe50c6700: at VOP_LOCK1_APV+0xec 0xe50c6720: at _vn_lock+0x84 0xe50c6770: at ffs_snapshot+0x22f8 0xe50c6970: at ffs_mount+0x10a4 0xe50c6a60: at vfs_donmount+0x108c 0xe50c6ca0: at nmount+0xd8 0xe50c6ce0: at trap+0x460 0xe50c6da0: at powerpc_interrupt+0x15c 0xe50c6dd0: user SC trap by 0x218d8788: srr1=0xf032 r1=0x7fffdb90 cr=0x20004044 xer=0 ctr=0x218d8780 ## UP % dmesg FreeBSD 8.0-CURRENT #0: Tue Nov 11 15:01:01 CST 2008 root@rorty.grinz.com:/usr/obj/usr/src/sys/RORTY.8 WARNING: WITNESS option enabled, expect reduced performance. cpu0: Motorola PowerPC 7455 revision 2.1, 1000.00 MHz cpu0: HID0 8450c0bc real memory = 2135240704 (2036 MB) avail memory = 2067062784 (1971 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0: dev=ff87f908 (BSP) cpu1: dev=ff880bc8 ... lock order reversal: 1st 0xc44048 user map (user map) @ /usr/src/sys/vm/vm_map.c:3115 2nd 0xe0aafc ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2047 KDB: stack backtrace: 0xe08cf930: at kdb_backtrace+0x4c 0xe08cf950: at _witness_debugger+0x3c 0xe08cf970: at witness_checkorder+0x8d0 0xe08cf9d0: at __lockmgr_args+0x23c 0xe08cfa50: at ffs_lock+0x9c 0xe08cfa80: at VOP_LOCK1_APV+0xec 0xe08cfaa0: at _vn_lock+0x84 0xe08cfaf0: at vget+0xdc 0xe08cfb30: at vnode_pager_lock+0x20c 0xe08cfb90: at vm_fault+0x218 0xe08cfca0: at trap_pfault+0x128 0xe08cfce0: at trap+0x1ac 0xe08cfda0: at powerpc_interrupt+0x15c 0xe08cfdd0: user ISI trap by 0x1818f4c: srr1=0x4000d032 r1=0x7fffded0 cr=0x24000048 xer=0 ctr=0 WARNING: /mnt/disk2 was not properly dismounted lock order reversal: 1st 0xd9d27400 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:2443 2nd 0xe41e00 dirhash (dirhash) @ /usr/src/sys/ufs/ufs/ufs_dirhash.c:263 KDB: stack backtrace: 0xe50c1a20: at kdb_backtrace+0x4c 0xe50c1a40: at _witness_debugger+0x3c 0xe50c1a20: at kdb_backtrace+0x4c 0xe50c1a40: at _witness_debugger+0x3c 0xe50c1a60: at witness_checkorder+0x8d0 0xe50c1ac0: at _sx_xlock+0x90 0xe50c1af0: at ufsdirhash_acquire+0x40 0xe50c1b10: at ufsdirhash_remove+0x2c 0xe50c1b40: at ufs_dirremove+0x100 0xe50c1b80: at ufs_remove+0x8c 0xe50c1bc0: at VOP_REMOVE_APV+0xe0 0xe50c1be0: at kern_unlinkat+0x1b4 0xe50c1ca0: at kern_unlink+0x24 0xe50c1cc0: at unlink+0x1c 0xe50c1ce0: at trap+0x460 0xe50c1da0: at powerpc_interrupt+0x15c 0xe50c1dd0: user SC trap by 0x21940288: srr1=0xd032 r1=0x7fffd570 cr=0x40000042 xer=0 ctr=0x21940280 lock order reversal: 1st 0x4181c0c ufs (ufs) @ /usr/src/sys/kern/vfs_mount.c:1064 2nd 0x41896bc devfs (devfs) @ /usr/src/sys/kern/vfs_subr.c:2047 KDB: stack backtrace: 0xe510c7f0: at kdb_backtrace+0x4c 0xe510c810: at _witness_debugger+0x3c 0xe510c830: at witness_checkorder+0x8d0 0xe510c890: at __lockmgr_args+0xaf8 0xe510c910: at vop_stdlock+0x48 0xe510c930: at VOP_LOCK1_APV+0xec 0xe510c950: at _vn_lock+0x84 0xe510c9a0: at vget+0xdc 0xe510c9e0: at devfs_allocv+0x11c 0xe510ca20: at devfs_root+0x5c 0xe510ca60: at vfs_donmount+0x1458 0xe510cca0: at nmount+0xd8 0xe510cce0: at trap+0x460 0xe510cda0: at powerpc_interrupt+0x15c 0xe510cdd0: user SC trap by 0x218d2788: srr1=0xd032 r1=0x7fffcd10 cr=0x20000044 xer=0 ctr=0x218d2780 link_elf: symbol dev2unit undefined lock order reversal: link_elf: symbol dev2unit undefined lock order reversal: 1st 0x88efd1c ufs (ufs) @ /usr/src/sys/ufs/ffs/ffs_snapshot.c:420 2nd 0xd9d5b118 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:2443 3rd 0xf2c05c ufs (ufs) @ /usr/src/sys/ufs/ffs/ffs_snapshot.c:541 KDB: stack backtrace: 0xe511b5b0: at kdb_backtrace+0x4c 0xe511b5d0: at _witness_debugger+0x3c 0xe511b5f0: at witness_checkorder+0x8d0 0xe511b650: at __lockmgr_args+0xaf8 0xe511b6d0: at ffs_lock+0x9c 0xe511b700: at VOP_LOCK1_APV+0xec 0xe511b720: at _vn_lock+0x84 0xe511b770: at ffs_snapshot+0x12ec 0xe511b970: at ffs_mount+0x10a4 0xe511ba60: at vfs_donmount+0x108c 0xe511bca0: at nmount+0xd8 0xe511bce0: at trap+0x460 0xe511bda0: at powerpc_interrupt+0x15c 0xe511bdd0: user SC trap by 0x218d8788: srr1=0xf032 r1=0x7fffdb90 cr=0x20004044 xer=0 ctr=0x218d8780 lock order reversal: 1st 0xd9d5b118 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:2443 2nd 0x8923b9c snaplk (snaplk) @ /usr/src/sys/ufs/ffs/ffs_snapshot.c:790 KDB: stack backtrace: 0xe511b5b0: at kdb_backtrace+0x4c 0xe511b5d0: at _witness_debugger+0x3c 0xe511b5f0: at witness_checkorder+0x8d0 0xe511b650: at __lockmgr_args+0xaf8 0xe511b6d0: at ffs_lock+0x9c 0xe511b700: at VOP_LOCK1_APV+0xec 0xe511b720: at _vn_lock+0x84 0xe511b770: at ffs_snapshot+0x22f8 0xe511b970: at ffs_mount+0x10a4 0xe511ba60: at vfs_donmount+0x108c 0xe511bca0: at nmount+0xd8 0xe511bce0: at trap+0x460 0xe511bda0: at powerpc_interrupt+0x15c 0xe511bce0: at trap+0x460 0xe511bda0: at powerpc_interrupt+0x15c 0xe511bdd0: user SC trap by 0x218d8788: srr1=0xf032 r1=0x7fffdb90 cr=0x20004044 xer=0 ctr=0x218d8780 lock order reversal: 1st 0x8923b9c snaplk (snaplk) @ /usr/src/sys/kern/vfs_vnops.c:293 2nd 0x88efd1c ufs (ufs) @ /usr/src/sys/ufs/ffs/ffs_snapshot.c:1584 KDB: stack backtrace: 0xe511b880: at kdb_backtrace+0x4c 0xe511b8a0: at _witness_debugger+0x3c 0xe511b8c0: at witness_checkorder+0x8d0 0xe511b920: at __lockmgr_args+0xaf8 0xe511b9a0: at ffs_snapremove+0x148 0xe511ba10: at softdep_releasefile+0x54 0xe511ba40: at ufs_inactive+0x1c8 0xe511ba80: at VOP_INACTIVE_APV+0xe0 0xe511baa0: at vinactive+0x98 0xe511bae0: at vput+0x21c 0xe511bb30: at vn_close+0x10c 0xe511bb80: at vn_closefile+0x114 0xe511bbf0: at _fdrop+0x60 0xe511bc10: at closef+0x2f8 0xe511bc90: at kern_close+0x144 0xe511bcc0: at close+0x18 0xe511bce0: at trap+0x460 0xe511bda0: at powerpc_interrupt+0x15c 0xe511bdd0: user SC trap by 0x2197f088: srr1=0xf032 r1=0x7fffdb60 cr=0x22004028 xer=0 ctr=0x2197f080 lock order reversal: 1st 0x4181c0c ufs (ufs) @ /usr/src/sys/kern/vfs_mount.c:1207 2nd 0x41895ac syncer (syncer) @ /usr/src/sys/kern/vfs_subr.c:2147 KDB: stack backtrace: 0xe5206a70: at kdb_backtrace+0x4c 0xe5206a90: at _witness_debugger+0x3c 0xe5206ab0: at witness_checkorder+0x8d0 0xe5206b10: at __lockmgr_args+0xaf8 0xe5206b90: at vop_stdlock+0x48 0xe5206bb0: at VOP_LOCK1_APV+0xec 0xe5206b90: at vop_stdlock+0x48 0xe5206bb0: at VOP_LOCK1_APV+0xec 0xe5206bd0: at _vn_lock+0x84 0xe5206c20: at vrele+0x158 0xe5206c60: at dounmount+0x3b0 0xe5206ca0: at unmount+0x2e4 0xe5206ce0: at trap+0x460 0xe5206da0: at powerpc_interrupt+0x15c 0xe5206dd0: user SC trap by 0x218b1e38: srr1=0xd032 r1=0x7fffd540 cr=0x20004082 xer=0 ctr=0x218b1e30 From andreast-list at fgznet.ch Thu Nov 13 11:13:15 2008 From: andreast-list at fgznet.ch (Andreas Tobler) Date: Thu Nov 13 11:13:22 2008 Subject: ppc float.h In-Reply-To: <20081113105926.ELO26264@dommail.onthenet.com.au> References: <20081113105926.ELO26264@dommail.onthenet.com.au> Message-ID: <491C7C47.8080803@fgznet.ch> Hi Peter, Peter Grehan wrote: >> can somebody explain why we have these defines in >> sys/powerpc/include/float.h ? > > Have a look at > > http://svn.freebsd.org/viewvc/base?view=revision&revision=132421 Hm, meanwhile OS-X has 128-bit long double... > Basically, the ABI was switched from 128 bit long doubles to > 64. Not exactly SVR4 compliant but then no-one else is. And there is no need to go back to 128-bit? No benefit? What would have to be done? Libc? I know the compiler issue. Would this break too much? Thanks, Andreas From andreast-list at fgznet.ch Thu Nov 13 11:14:35 2008 From: andreast-list at fgznet.ch (Andreas Tobler) Date: Thu Nov 13 11:14:41 2008 Subject: ppc float.h In-Reply-To: <46B90E82-B28B-42BB-8D33-49F5C012262A@mac.com> References: <491B337D.5010901@fgznet.ch> <46B90E82-B28B-42BB-8D33-49F5C012262A@mac.com> Message-ID: <491C7C99.2080204@fgznet.ch> Hi Marcel, Marcel Moolenaar wrote: > > Because "long double" on PowerPC is the same as "double". > This is dictated by the compiler: Ok, right now it is, but I think I can dictate the compiler what he has to do :) > mini-g4% gcc -E -dM -xc /dev/null | grep DBL | grep DIG > #define __DBL_DIG__ 15 > #define __LDBL_DIG__ 15 > #define __LDBL_MANT_DIG__ 53 > #define __DBL_MANT_DIG__ 53 Thanks, Andreas From xcllnt at mac.com Thu Nov 13 11:19:17 2008 From: xcllnt at mac.com (Marcel Moolenaar) Date: Thu Nov 13 11:19:22 2008 Subject: kernel panic on Xserve G4 -CURRENT In-Reply-To: <491C7459.5030609@grinz.com> References: <48DD91A4.2060306@freebsd.org> <491C7459.5030609@grinz.com> Message-ID: <03CBC5E0-7696-45BA-832E-1FD3002ECEE0@mac.com> On Nov 13, 2008, at 10:39 AM, Ross Gohlke wrote: > ## UP > % dmesg > FreeBSD 8.0-CURRENT #0: Tue Nov 11 15:01:01 CST 2008 > root@rorty.grinz.com:/usr/obj/usr/src/sys/RORTY.8 > WARNING: WITNESS option enabled, expect reduced performance. > cpu0: Motorola PowerPC 7455 revision 2.1, 1000.00 MHz > cpu0: HID0 8450c0bc > real memory = 2135240704 (2036 MB) > avail memory = 2067062784 (1971 MB) > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > cpu0: dev=ff87f908 (BSP) > cpu1: dev=ff880bc8 Hmmm, this is not an UP kernel. UP kernels don't count CPUs and don't announce themselves with/as FreeBSD/SMP. You need to remove the SMP option from your configuration in order to create an UP kernel. FYI, -- Marcel Moolenaar xcllnt@mac.com From ross at grinz.com Thu Nov 13 13:10:32 2008 From: ross at grinz.com (Ross Gohlke) Date: Thu Nov 13 13:10:38 2008 Subject: kernel panic on Xserve G4 -CURRENT In-Reply-To: <03CBC5E0-7696-45BA-832E-1FD3002ECEE0@mac.com> References: <48DD91A4.2060306@freebsd.org> <491C7459.5030609@grinz.com> <03CBC5E0-7696-45BA-832E-1FD3002ECEE0@mac.com> Message-ID: <491C97C4.6030008@grinz.com> Sorry about that. Here it is. %dmesg FreeBSD 8.0-CURRENT #0: Thu Nov 13 14:33:29 CST 2008 root@rorty.grinz.com:/usr/obj/usr/src/sys/RORTY WARNING: WITNESS option enabled, expect reduced performance. cpu0: Motorola PowerPC 7455 revision 2.1, 1000.00 MHz cpu0: HID0 8450c0bc real memory = 2135265280 (2036 MB) avail memory = 2067099648 (1971 MB) ... lock order reversal: 1st 0xc41048 user map (user map) @ /usr/src/sys/vm/vm_map.c:3115 2nd 0xdfd7cc ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2047 KDB: stack backtrace: 0xe08cf930: at kdb_backtrace+0x4c 0xe08cf950: at _witness_debugger+0x3c 0xe08cf970: at witness_checkorder+0x8d0 0xe08cf9d0: at __lockmgr_args+0x23c 0xe08cfa50: at ffs_lock+0x9c 0xe08cfa80: at VOP_LOCK1_APV+0xec 0xe08cfaa0: at _vn_lock+0x84 0xe08cfaf0: at vget+0xdc 0xe08cfb30: at vnode_pager_lock+0x20c 0xe08cfb90: at vm_fault+0x218 0xe08cfca0: at trap_pfault+0x128 0xe08cfce0: at trap+0x1ac 0xe08cfda0: at powerpc_interrupt+0x15c 0xe08cfdd0: user ISI trap by 0x1818f4c: srr1=0x4000d032 r1=0x7fffded0 cr=0x24000048 xer=0 ctr=0 lock order reversal: 1st 0xd9d16df8 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:2443 2nd 0xe38800 dirhash (dirhash) @ /usr/src/sys/ufs/ufs/ufs_dirhash.c:263 KDB: stack backtrace: 0xe5077a20: at kdb_backtrace+0x4c 0xe5077a40: at _witness_debugger+0x3c 0xe5077a60: at witness_checkorder+0x8d0 0xe5077ac0: at _sx_xlock+0x90 0xe5077af0: at ufsdirhash_acquire+0x40 0xe5077b10: at ufsdirhash_remove+0x2c 0xe5077b40: at ufs_dirremove+0x100 0xe5077b80: at ufs_remove+0x8c 0xe5077bc0: at VOP_REMOVE_APV+0xe0 0xe5077be0: at kern_unlinkat+0x1b4 0xe5077ca0: at kern_unlink+0x24 0xe5077cc0: at unlink+0x1c 0xe5077ce0: at trap+0x460 0xe5077da0: at powerpc_interrupt+0x15c 0xe5077dd0: user SC trap by 0x21940198: srr1=0xd032 r1=0x7fffd570 cr=0x40000042 xer=0 ctr=0x21940190 lock order reversal: 1st 0x18d716c ufs (ufs) @ /usr/src/sys/kern/vfs_mount.c:1064 2nd 0x18f438c devfs (devfs) @ /usr/src/sys/kern/vfs_subr.c:2047 KDB: stack backtrace: 0xe50727f0: at kdb_backtrace+0x4c 0xe5072810: at _witness_debugger+0x3c 0xe5072830: at witness_checkorder+0x8d0 0xe5072890: at __lockmgr_args+0xaf8 0xe5072910: at vop_stdlock+0x48 0xe5072930: at VOP_LOCK1_APV+0xec 0xe5072950: at _vn_lock+0x84 0xe50729a0: at vget+0xdc 0xe50729e0: at devfs_allocv+0x11c 0xe5072a20: at devfs_root+0x5c 0xe5072a60: at vfs_donmount+0x1458 0xe5072ca0: at nmount+0xd8 0xe5072ce0: at trap+0x460 0xe5072da0: at powerpc_interrupt+0x15c 0xe5072dd0: user SC trap by 0x218d2788: srr1=0xd032 r1=0x7fffcd10 cr=0x20000044 xer=0 ctr=0x218d2780 Marcel Moolenaar wrote: > > On Nov 13, 2008, at 10:39 AM, Ross Gohlke wrote: > >> ## UP >> % dmesg >> FreeBSD 8.0-CURRENT #0: Tue Nov 11 15:01:01 CST 2008 >> root@rorty.grinz.com:/usr/obj/usr/src/sys/RORTY.8 >> WARNING: WITNESS option enabled, expect reduced performance. >> cpu0: Motorola PowerPC 7455 revision 2.1, 1000.00 MHz >> cpu0: HID0 8450c0bc >> real memory = 2135240704 (2036 MB) >> avail memory = 2067062784 (1971 MB) >> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs >> cpu0: dev=ff87f908 (BSP) >> cpu1: dev=ff880bc8 > > Hmmm, this is not an UP kernel. UP kernels don't count CPUs > and don't announce themselves with/as FreeBSD/SMP. > > You need to remove the SMP option from your configuration > in order to create an UP kernel. > > FYI, > -- Ross Gohlke > http://www.GRINZ.com (P) 901.276.9750 (Memphis) / 310.356.6906 (Los Angeles) (FAX/HOTLINE) 877.806.0861 AIM: grinzie GIZMO/SKYPE: rossgohlke JABBER: ross@chat.grinz.com 111 S. Highland St. #424, Memphis, TN 38111 | Always up. | From weongyo.jeong at gmail.com Fri Nov 14 04:37:45 2008 From: weongyo.jeong at gmail.com (Weongyo Jeong) Date: Fri Nov 14 04:37:54 2008 Subject: my problem using iBook G4 Message-ID: <20081114121224.GG36226@freebsd.weongyo.org> Hello, I have a iBook G4 laptop but it has a problem when booting like as follows: http://weongyo.org/project/freebsd/images/20081114.jpg My booting steps are: 1. press