From owner-freebsd-arm@FreeBSD.ORG Mon Oct 28 17:16:33 2013 Return-Path: Delivered-To: freebsd-arm@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 ESMTP id AF73C554 for ; Mon, 28 Oct 2013 17:16:33 +0000 (UTC) (envelope-from jiashiun@gmail.com) Received: from mail-wg0-x22c.google.com (mail-wg0-x22c.google.com [IPv6:2a00:1450:400c:c00::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4CD292EB7 for ; Mon, 28 Oct 2013 17:16:33 +0000 (UTC) Received: by mail-wg0-f44.google.com with SMTP id n12so6907540wgh.23 for ; Mon, 28 Oct 2013 10:16:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=r0RJiBuI82GGY4JyNVTw3WoXDMdji2gJuR+DVZtHCKU=; b=r0VLH1I7r+5PDcLJppyna5OWHZLrnH8VxIbQfmbwMNhMOq5qCIP8hOMZODeL3ZN0A4 /B3/w9nP4+JqzUQy88KDhFquRqK5nPOgQfs3YMM0lDgnLi2QzA5V9PmsVlRBarDBpJGa uPp6xv6FcfUfWEgM45wuZvO4dqDK5nHrpc7snfl2iIfmx1GJxcvoF4ddO4i5On0XvEB9 l79qO9JEji5yMz6Ua8hJmRASoX8CQZ8+1LGA6f69Eopadg4xAnwCRcxC2tNoRHAqJYZX GtJBdWPAV+lKiyrRgXFomsrWfU0kWzMAsRaKzT1vjrollsAUpPd6uEgDoOu7Zc8WBVvo aSGA== X-Received: by 10.180.188.144 with SMTP id ga16mr9960067wic.42.1382980590784; Mon, 28 Oct 2013 10:16:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.206.132 with HTTP; Mon, 28 Oct 2013 10:15:59 -0700 (PDT) In-Reply-To: <20131004.220931.138193761.toshi@ruby.ocn.ne.jp> References: <20131002.220051.226805883.toshi@ruby.ocn.ne.jp> <20131004.220931.138193761.toshi@ruby.ocn.ne.jp> From: Jia-Shiun Li Date: Tue, 29 Oct 2013 01:15:59 +0800 Message-ID: Subject: Re: BBB CPU clock (was: Re: FreeBSD on Cubieboard 2, UDOO and Galaxy Note 10.1 (Exynos). To: SAITOU Toshihide Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Oct 2013 17:16:33 -0000 It is interesting that image built last week can boot at slightly higher clock of 700MHz Instead of 650 previously. Maybe because it's getting cooler outside? ;) Well it still did not overcome 800MHz. I noticed that after stucking at uhub for about 20 seconds, the console printed the random device line. Since now I know putty can send break, I tried to break and got the following result. Seems something got missed and is never waken up? I wonder what can cause this and is related to CPU/MPC clock. The clock domains on the AM335x seem to be designed isolated well to be set independently without affecting others. Timecounters tick every 10.000 msec usbus0: 480Mbps High Speed USB v2.0 usbus1: 480Mbps High Speed USB v2.0 ugen1.1: at usbus1 uhub0: on usbus1 ugen0.1: at usbus0 uhub1: on usbus0 mmcsd0: 8GB at mmc0 48.0MHz/4bit/65535-block uhub0: 1 port with 1 removable, self powered uhub1: 1 port with 1 removable, self powered random: unblocking device. KDB: enter: Break to debugger [ thread pid 10 tid 100002 ] Stopped at $d: ldrb r15, [r15, r15, ror r15]! db> show all proc pid ppid pgrp uid state wmesg wchan cmd 3 0 0 0 DL jobqueue 0xc27a5080 [mmcsd0: mmc/sd card] 14 0 0 0 DL (threaded) [usb] 100041 D - 0xc287f26c [usbus1] 100040 D - 0xc287f23c [usbus1] 100039 D - 0xc287f20c [usbus1] 100038 D - 0xc287f1dc [usbus1] 100036 D - 0xc287e0bc [usbus0] 100035 D - 0xc287e08c [usbus0] 100034 D - 0xc287e05c [usbus0] 100033 D - 0xc287e02c [usbus0] 2 0 0 0 DL (threaded) [cam] 100043 D ccb_scan 0xc065d658 [scanner] 100014 D - 0xc065d600 [doneq0] 13 0 0 0 DL - 0xc0660490 [rand_harvestq] 12 0 0 0 DL (threaded) [geom] 100008 D - 0xc07d4764 [g_down] 100007 D - 0xc07d4760 [g_up] 100006 D - 0xc07d475c [g_event] 11 0 0 0 WL (threaded) [intr] 100037 I [intr19: musbotg0] 100032 I [intr18: musbotg0] 100031 I [intr17: musbotg0] 100030 I [intr70: iichb0] 100029 I [intr43: cpsw0] 100028 I [intr41: cpsw0] 100027 I [intr40: cpsw0] 100026 I [intr28: sdhci_ti1] 100025 I [intr64: sdhci_ti0] 100024 I [intr14: ti_edma30] 100023 I [intr13: ti_edma30] 100022 I [intr12: ti_edma30] 100021 I [swi0: uart] 100020 I [intr99: gpio0] 100019 I [intr98: gpio0] 100018 I [intr97: gpio0] 100017 I [intr96: gpio0] 100013 I [swi5: fast taskq] 100011 I [swi6: Giant taskq] 100010 I [swi6: task queue] 100005 I [swi3: vm] 100004 I [swi4: clock] 100003 I [swi1: netisr 0] 10 0 0 0 RL CPU 0 [idle] 1 0 0 0 ?L [kernel] 0 0 0 0 DLs (threaded) [kernel] 100042 D - 0xc27a4780 [CAM taskq] 100016 D - 0xc27a3c80 [kqueue taskq] 100015 D - 0xc27a3d00 [ffs_trim taskq] 100012 D - 0xc27a4880 [thread taskq] 100000 D mmcreq 0xc08c2b70 [swapper] db> Jia-Shiun.