From owner-freebsd-ppc@FreeBSD.ORG Tue Apr 8 14:21:24 2014 Return-Path: Delivered-To: ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 28F94AA4 for ; Tue, 8 Apr 2014 14:21:24 +0000 (UTC) Received: from mx.nsu.ru (mx.nsu.ru [84.237.50.39]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 83A64172D for ; Tue, 8 Apr 2014 14:21:23 +0000 (UTC) Received: from regency.nsu.ru ([193.124.210.26]) by mx.nsu.ru with esmtp (Exim 4.72) (envelope-from ) id 1WXWtj-0006Kt-Mh; Tue, 08 Apr 2014 21:21:17 +0700 Received: from regency.nsu.ru (localhost [127.0.0.1]) by regency.nsu.ru (8.14.2/8.14.2) with ESMTP id s38ELB0M042236; Tue, 8 Apr 2014 21:21:21 +0700 (NOVT) (envelope-from danfe@regency.nsu.ru) Received: (from danfe@localhost) by regency.nsu.ru (8.14.2/8.14.2/Submit) id s38EL6vA042178; Tue, 8 Apr 2014 21:21:06 +0700 (NOVT) (envelope-from danfe) Date: Tue, 8 Apr 2014 21:21:06 +0700 From: Alexey Dokuchaev To: Justin Hibbits Subject: Re: System clock falls behind quickly on Mac mini G4 Message-ID: <20140408142106.GB39088@regency.nsu.ru> References: <20140328071714.GA45961@regency.nsu.ru> <20140329100134.GA7863@regency.nsu.ru> <20140404144753.GA58190@regency.nsu.ru> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="LZvS9be/3tNcYl/X" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Lua-Profiles: 59421 [Apr 08 2014] X-KLMS-AntiSpam-Version: 5.3.6 X-KLMS-AntiSpam-Envelope-From: danfe@regency.nsu.ru X-KLMS-AntiSpam-Rate: 0 X-KLMS-AntiSpam-Status: not_detected X-KLMS-AntiSpam-Method: none X-KLMS-AntiSpam-Moebius-Timestamps: 2864770, 2864813, 2864751 X-KLMS-AntiSpam-Interceptor-Info: scan successful X-KLMS-AntiVirus: Kaspersky Security 8.0 for Linux Mail Server 8.0.0.455, not checked X-KLMS-AntiVirus-Status: NotChecked: not checked, skipped Cc: ppc@freebsd.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Apr 2014 14:21:24 -0000 --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Apr 04, 2014 at 03:07:17PM -0700, Justin Hibbits wrote: > On Fri, Apr 4, 2014 at 7:47 AM, Alexey Dokuchaev wrote: > > Running ntpd(8) unfortunately does not make things better (well maybe it > > helps a bit, but clock still drifts away pretty fast). I guess my only > > option is to run ntpdate(8) periodically. :-( > > Curious, could you post your dmesg with boot verbose? I haven't run > into a problem with clock drift on any of my ppc machines, albeit I've > never tested on my mini. There might be something with your PMU. Attached. ./danfe --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="macmini_g4_dmesg.verbose" Copyright (c) 1992-2014 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 11.0-CURRENT #0 r263678M: Sat Mar 29 23:28:56 CST 2014 danfe@macmini.lawndale.high:/tmp/usr/src/sys/GENERIC powerpc gcc version 4.2.1 20070831 patched [FreeBSD] Preloaded elf kernel "/boot/kernel/kernel" at 0xd4a000. cpu0: Motorola PowerPC 7447A revision 1.1, 1250.30 MHz cpu0: Features 9c000000 cpu0: L1 I-cache enabled, L1 D-cache enabled cpu0: write-back backside cache cpu0: HID0 8450c0bc real memory = 1056198656 (1007 MB) available KVA = 515604479 (491 MB) Physical memory chunk(s): 0x000a0000 - 0x000fffff, 393216 bytes (96 pages) 0x00f59000 - 0x00ffffff, 684032 bytes (167 pages) 0x01800000 - 0x017fffff, 0 bytes (0 pages) 0x01814000 - 0x01bfffff, 4112384 bytes (1004 pages) 0x01c3d000 - 0x3e7c6fff, 1018732544 bytes (248714 pages) avail memory = 1020993536 (973 MB) ULE: setup cpu 0 snd_unit_init() u=0x00ff8000 [512] d=0x00007c00 [32] c=0x000003ff [1024] feeder_register: snd_unit=-1 snd_maxautovchans=16 latency=5 feeder_rate_min=1 feeder_rate_max=2016000 feeder_rate_round=25 firmware: 'isp_1040' version 1: 22944 bytes loaded at 0x8d9f88 ispfw: registered firmware firmware: 'isp_1040_it' version 1: 32942 bytes loaded at 0x8df928 ispfw: registered firmware firmware: 'isp_1080' version 1: 31350 bytes loaded at 0x8e79d6 ispfw: registered firmware firmware: 'isp_1080_it' version 1: 40644 bytes loaded at 0x8ef44c ispfw: registered firmware firmware: 'isp_12160' version 1: 28050 bytes loaded at 0x8f9310 ispfw: registered firmware firmware: 'isp_12160_it' version 1: 40604 bytes loaded at 0x9000a2 ispfw: registered firmware firmware: 'isp_2100' version 1: 76770 bytes loaded at 0x909f3e ispfw: registered firmware firmware: 'isp_2200' version 1: 77214 bytes loaded at 0x91cb20 ispfw: registered firmware firmware: 'isp_2300' version 1: 113630 bytes loaded at 0x92f8be ispfw: registered firmware firmware: 'isp_2322' version 1: 120466 bytes loaded at 0x94b49c ispfw: registered firmware firmware: 'isp_2400' version 1: 179908 bytes loaded at 0x96c698 ispfw: registered firmware firmware: 'isp_2400_multi' version 1: 198628 bytes loaded at 0x9a54f0 ispfw: registered firmware firmware: 'isp_2500' version 1: 142704 bytes loaded at 0x9e37bc ispfw: registered firmware firmware: 'isp_2500_multi' version 1: 169352 bytes loaded at 0xa156a4 ispfw: registered firmware nfslock: pseudo-device null: Falling back to random adaptor random: initialized openfirm: kbd0 at kbdmux0 mem: ofwbus0: on nexus0 cpulist0: on ofwbus0 cpu0: on cpulist0 dfs0: on cpu0 ofwbus0: type unknown (no driver attached) ofwbus0: type unknown (no driver attached) ofwbus0: type unknown (no driver attached) ofwbus0: type unknown (no driver attached) ofwbus0: type unknown (no driver attached) ofwbus0: type unknown (no driver attached) ofwbus0: type unknown (no driver attached) powermac_nvram0: mem 0xfff04000-0xfff07fff on ofwbus0 powermac_nvram0: bank0 generation 122, bank1 generation 123 unin0: mem 0xf8000000-0xf8ffffff on ofwbus0 unin0: Version 210 unin0: (no driver attached) iichb0: mem 0xf8001000-0xf8001fff irq 42 on unin0 unin mapdev: start f8001000, len 4095 iichb0: Revision: A1 iicbus0: on iichb0 iicbus0: at addr 0x1c0 pcib0: mem 0xf0000000-0xf1ffffff irq 45 on ofwbus0 pci0: on pcib0 pci0: domain=0, physical bus=0 found-> vendor=0x106b, dev=0x0034, revid=0x00 domain=0, bus=0, slot=11, func=0 class=06-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0016, statreg=0x02b0, cachelnsz=8 (dwords) lattimer=0x10 (480 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) found-> vendor=0x1002, dev=0x5962, revid=0x01 domain=0, bus=0, slot=16, func=0 class=03-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0006, statreg=0x02b0, cachelnsz=8 (dwords) lattimer=0xff (7650 ns), mingnt=0x08 (2000 ns), maxlat=0x00 (0 ns) intpin=a, irq=0 powerspec 2 supports D0 D1 D2 D3 current D0 map[10]: type Prefetchable Memory, range 32, base 0x98000000, size 27, enabled map[14]: type I/O Port, range 32, base 0x400, size 8, port disabled map[18]: type Memory, range 32, base 0x90000000, size 16, enabled agp0: on hostb0 agp0: allocating GATT for aperture of size 256M vgapci0: port 0x400-0x4ff mem 0x98000000-0x9fffffff,0x90000000-0x9000ffff irq 48 at device 16.0 on pci0 vgapci0: Boot video device pcib1: mem 0xf2000000-0xf3ffffff irq 45 on ofwbus0 pci1: on pcib1 pci1: domain=1, physical bus=0 found-> vendor=0x106b, dev=0x003e, revid=0x00 domain=1, bus=0, slot=23, func=0 class=ff-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0006, statreg=0x0200, cachelnsz=8 (dwords) lattimer=0x10 (480 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) map[10]: type Memory, range 32, base 0x80000000, size 19, enabled found-> vendor=0x106b, dev=0x003f, revid=0x00 domain=1, bus=0, slot=26, func=0 class=0c-03-10, hdrtype=0x00, mfdev=0 cmdreg=0x0006, statreg=0x0200, cachelnsz=8 (dwords) lattimer=0x10 (480 ns), mingnt=0x03 (750 ns), maxlat=0x56 (21500 ns) intpin=a, irq=0 map[10]: type Memory, range 32, base 0x80083000, size 12, enabled found-> vendor=0x1033, dev=0x0035, revid=0x43 domain=1, bus=0, slot=27, func=0 class=0c-03-10, hdrtype=0x00, mfdev=1 cmdreg=0x0006, statreg=0x0210, cachelnsz=8 (dwords) lattimer=0x10 (480 ns), mingnt=0x01 (250 ns), maxlat=0x2a (10500 ns) intpin=a, irq=0 powerspec 2 supports D0 D1 D2 D3 current D0 map[10]: type Memory, range 32, base 0x80082000, size 12, enabled found-> vendor=0x1033, dev=0x0035, revid=0x43 domain=1, bus=0, slot=27, func=1 class=0c-03-10, hdrtype=0x00, mfdev=0 cmdreg=0x0006, statreg=0x0210, cachelnsz=8 (dwords) lattimer=0x10 (480 ns), mingnt=0x01 (250 ns), maxlat=0x2a (10500 ns) intpin=b, irq=0 powerspec 2 supports D0 D1 D2 D3 current D0 map[10]: type Memory, range 32, base 0x80081000, size 12, enabled found-> vendor=0x1033, dev=0x00e0, revid=0x04 domain=1, bus=0, slot=27, func=2 class=0c-03-20, hdrtype=0x00, mfdev=0 cmdreg=0x0004, statreg=0x0210, cachelnsz=8 (dwords) lattimer=0x10 (480 ns), mingnt=0x10 (4000 ns), maxlat=0x22 (8500 ns) intpin=c, irq=0 powerspec 2 supports D0 D1 D2 D3 current D0 map[10]: type Memory, range 32, base 0x80080000, size 8, memory disabled found-> vendor=0x106b, dev=0x0035, revid=0x00 domain=1, bus=0, slot=11, func=0 class=06-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0016, statreg=0x22a0, cachelnsz=8 (dwords) lattimer=0x10 (480 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) found-> vendor=0x106b, dev=0x003f, revid=0x00 domain=1, bus=0, slot=24, func=0 class=0c-03-10, hdrtype=0x00, mfdev=0 cmdreg=0x0000, statreg=0x0200, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x03 (750 ns), maxlat=0x56 (21500 ns) intpin=a, irq=255 map[10]: type Memory, range 32, base 0, size 12, memory disabled found-> vendor=0x106b, dev=0x003f, revid=0x00 domain=1, bus=0, slot=25, func=0 class=0c-03-10, hdrtype=0x00, mfdev=0 cmdreg=0x0000, statreg=0x0200, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x03 (750 ns), maxlat=0x56 (21500 ns) intpin=a, irq=255 map[10]: type Memory, range 32, base 0, size 12, memory disabled macio0: mem 0x80000000-0x8007ffff at device 23.0 on pci1 ofw_pci mapdev: start 80000000, len 524288 openpic0: mem 0x40000-0x7ffff on macio0 openpic0: Version 1.2, supports 4 CPUs and 64 irqs macgpio0: mem 0x50-0x7f on macio0 macgpio0: gpio 29 (no driver attached) macgpio0: gpio 28 (no driver attached) pmuextint0: extint-gpio 1 irq 47 on macgpio0 macgpio0: gpio 17 irq 55 (no driver attached) scc0: mem 0x13000-0x13fff,0x8400-0x84ff,0x8500-0x85ff,0x8600-0x86ff,0x8700-0x87ff irq 22,5,6,23,7,8 on macio0 scc0: resetting hardware uart0: on scc0 uart0: fast interrupt uart1: on scc0 uart1: fast interrupt scc0: fast interrupt pcm0: mem 0x10000-0x10fff,0x8000-0x80ff,0x8100-0x81ff irq 30,1,2,31,3,4 on macio0 pmu0: mem 0x16000-0x17fff irq 25 on macio0 pmu0: PMU child pmu0: PMU child pmu0: PMU child pmu0: PMU child pmu0: registered as a time-of-day clock (resolution 1000us, adjustment 0.000500000s) iichb1: mem 0x18000-0x18fff irq 26 on macio0 iichb1: Revision: A1 iicbus1: on iichb1 iicbus1: at addr 0x1c0 ata0: mem 0x20000-0x20fff,0x8800-0x88ff irq 24,12 on macio0 ohci0: mem 0x80083000-0x80083fff irq 29 at device 26.0 on pci1 ofw_pci mapdev: start 80083000, len 4096 usbus0 on ohci0 ohci0: usbpf: Attached ohci1: mem 0x80082000-0x80082fff irq 63 at device 27.0 on pci1 ofw_pci mapdev: start 80082000, len 4096 usbus1 on ohci1 ohci1: usbpf: Attached ohci2: mem 0x80081000-0x80081fff irq 63 at device 27.1 on pci1 ofw_pci mapdev: start 80081000, len 4096 usbus2 on ohci2 ohci2: usbpf: Attached ehci0: mem 0x80080000-0x800800ff irq 63 at device 27.2 on pci1 ofw_pci mapdev: start 80080000, len 256 usbus3: EHCI version 1.0 usbus3 on ehci0 ehci0: usbpf: Attached ohci3: at device 24.0 on pci1 ohci3: Lazy allocation of 0x1000 bytes rid 0x10 type 3 at 0x80084000 ofw_pci mapdev: start 80084000, len 4096 usbus4 on ohci3 ohci3: usbpf: Attached ohci4: at device 25.0 on pci1 ohci4: Lazy allocation of 0x1000 bytes rid 0x10 type 3 at 0x80085000 ofw_pci mapdev: start 80085000, len 4096 usbus5 on ohci4 ohci4: usbpf: Attached pcib2: mem 0xf4000000-0xf5ffffff irq 45 on ofwbus0 pci2: on pcib2 pci2: domain=2, physical bus=0 found-> vendor=0x106b, dev=0x003b, revid=0x00 domain=2, bus=0, slot=13, func=0 class=ff-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0006, statreg=0x0200, cachelnsz=8 (dwords) lattimer=0x20 (960 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) map[10]: type Memory, range 32, base 0xf5004000, size 14, enabled found-> vendor=0x106b, dev=0x0031, revid=0x81 domain=2, bus=0, slot=14, func=0 class=0c-00-10, hdrtype=0x00, mfdev=0 cmdreg=0x0006, statreg=0x0290, cachelnsz=8 (dwords) lattimer=0x40 (1920 ns), mingnt=0x0c (3000 ns), maxlat=0x18 (6000 ns) intpin=a, irq=0 powerspec 2 supports D0 D1 D2 D3 current D0 map[10]: type Memory, range 32, base 0xf5000000, size 12, enabled found-> vendor=0x106b, dev=0x0032, revid=0x80 domain=2, bus=0, slot=15, func=0 class=02-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0006, statreg=0x84a0, cachelnsz=32 (dwords) lattimer=0x20 (960 ns), mingnt=0x40 (16000 ns), maxlat=0x40 (16000 ns) intpin=a, irq=0 map[10]: type Memory, range 32, base 0xf5200000, size 21, enabled found-> vendor=0x106b, dev=0x0036, revid=0x00 domain=2, bus=0, slot=11, func=0 class=06-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0016, statreg=0x02a0, cachelnsz=8 (dwords) lattimer=0x10 (480 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) ata1: mem 0xf5004000-0xf5007fff irq 39 at device 13.0 on pci2 ofw_pci mapdev: start f5004000, len 16384 fwohci0: mem 0xf5000000-0xf5000fff irq 40 at device 14.0 on pci2 ofw_pci mapdev: start f5000000, len 4096 fwohci0: OHCI version 1.10 (ROM=0) fwohci0: No. of Isochronous channels is 8. fwohci0: EUI64 00:0d:93:ff:fe:60:cf:c2 fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:0d:93:60:cf:c2 fwe0: bpf attached fwe0: Ethernet address: 02:0d:93:60:cf:c2 sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: fwohci_intr_core: BUS reset fwohci0: fwohci_intr_core: node_id=0x00000000, SelfID Count=2, CYCLEMASTER mode gem0: mem 0xf5200000-0xf53fffff irq 41 at device 15.0 on pci2 ofw_pci mapdev: start f5200000, len 2097152 gem0: flags=0x4 miibus0: on gem0 bmtphy0: PHY 0 on miibus0 bmtphy0: OUI 0x000818, model 0x001e, rev. 4 bmtphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow gem0: 10kB RX FIFO, 4kB TX FIFO gem0: bpf attached gem0: Ethernet address: 00:0d:93:60:cf:c2 ofwbus0: type unknown (no driver attached) sc0: on nexus0 sc0: Unknown <16 virtual consoles, flags=0x300> sc0: fb0, kbd0, terminal emulator: scteken (teken terminal) procfs registered Timecounter "timebase" frequency 41620907 Hz quality 0 Event timer "decrementer" frequency 41620907 Hz quality 1000 Timecounters tick every 1.000 msec firewire0: 1 nodes, maxhop <= 0 cable IRM irm(0) (me) firewire0: bus manager 0 vlan: initialized, using hash tables with chaining tcp_init: net.inet.tcp.tcbhashsize auto tuned to 8192 lo0: bpf attached usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 12Mbps Full Speed USB v1.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 usbus3: 480Mbps High Speed USB v2.0 usbus4: 12Mbps Full Speed USB v1.0 usbus5: 12Mbps Full Speed USB v1.0 ugen3.1: at usbus3 uhub3: on usbus3 ugen4.1: at usbus4 uhub4: on usbus4 ugen5.1: at usbus5 uhub5: on usbus5 ata0: reset tp1 mask=03 ostat0=00 ostat1=00 random: unblocking device. ata0: stat0=0x00 err=0x00 lsb=0x00 msb=0x00 ata0: stat1=0x00 err=0x00 lsb=0x00 msb=0x00 ata0: reset tp2 stat0=00 stat1=00 devices=0x0 ata1: reset tp1 mask=03 ostat0=50 ostat1=00 uhub0: 2 ports with 2 removable, self powered uhub2: 2 ports with 2 removable, self powered ata1: stat0=0x50 err=0x01 lsb=0x00 msb=0x00uhub1: 3 ports with 3 removable, self powered ata1: stat1=0x00 err=0x01 lsb=0x00 msb=0x00 ata1: reset tp2 stat0=50 stat1=00 devices=0x1 uhub5: 2 ports with 2 removable, self powered uhub4: 2 ports with 2 removable, self powered uhub3: 5 ports with 5 removable, self powered ugen2.2: at usbus2 ukbd0: on usbus2 kbd: new array size 4 kbd1 at ukbd0 kbd1: ukbd0, generic (0), config:0x0, flags:0x3d0000 pass0 at ata1 bus 0 scbus1 target 0 lun 0 pass0: ATA-7 device pass0: Serial Number WD-WXE906641182 pass0: 100.000MB/s transfers (UDMA5, PIO 8192bytes) ada0 at ata1 bus 0 scbus1 target 0 lun 0 ada0: ATA-7 device ada0: Serial Number WD-WXE906641182 ada0: 100.000MB/s transfers (UDMA5, PIO 8192bytes) ada0: 57231MB (117210240 512 byte sectors: 16H 63S/T 16383C)GEOM: new disk ada0 ada0: Previously was known as ad0 Trying to mount root from ufs:/dev/ada0s4 [rw]... start_init: trying /sbin/init --LZvS9be/3tNcYl/X--