On Tue, 2009-03-24 at 11:08 -0700, Kevin Hilman wrote: > Peter Barada <peterb@xxxxxxxxxxx> writes: > > > On Tue, 2009-03-17 at 22:21 -0700, Kevin Hilman wrote: > >> FYI... > >> > >> The PM branch has now been rebased to today's linux-omap HEAD which is > >> based on v2.6.29-rc8. The previous PM branch has been renamed to > >> pm-2.6.28. Depending on when you look, Tony's linux-omap tree may not > >> (yet) have the latest PM branch. If not, you can use my PM tree[1] > >> directly. Also, pm-2.6.28 will only be available on my tree. > >> > >> Tested on OMAP3 Beagle and RX51 and was able to hit RET and OFF in > >> suspend and in PM idle with minimal kernel. No testing yet done for > >> CPUidle or DVFS. Please test on your hardware and submit results to > >> the list. Thanks. > > > > Kevin, did you build/test with > > the /arc/arm/config/omap3_beagle_defconfig, and > > arc/arm/configs/rx51_defconfig or some other config(could you send it to > > me if it isn't in the PM tree)? > > I started with the ones in the tree, but I disable most of the drivers > and turn on some debugging features. Attached is the one I used for > beagle. > [...] Hmm, I modified your config to add smc911x support so I can have an nfsroot, added selector/code for my board(based on omap3beagle.c) and brought it up on my hardware, but I'm not sure if its working correctly. It does look to pause in the suspend sate, and comes out when I hit a key on the console, but the messages don't look quite right as core_pwrdm and per_pwrdm state they didn't go into state 1 (full log attached): omap3530# echo mem > /sys/power/state PM: Syncing filesystems ... done. PM: Preparing system for mem sleep Freezing user space processes ... (elapsed 0.00 seconds) done. Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done. PM: Entering mem sleep Powerdomain (core_pwrdm) didn't enter target state 1 Powerdomain (per_pwrdm) didn't enter target state 1 Could not enter target state in pm_suspend eth0: smc911x_reset timeout waiting for PM restore eth0: link down PM: Finishing wakeup. Restarting tasks ... done. omap3530# omap3530# eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 Is this expected? -- Peter Barada <peterb@xxxxxxxxxxx>
NoLo Version : 2.4.6-OMAP3503 0001 NoLo Build : LPD386 Tue Nov 25 15:00:19 CST 2008 NoLo Compiler: gcc version 4.2.1 Image type : Elf Boot Device : NAND ***************************************************************** LogicLoader (c) Copyright 2002-2008, Logic Product Development, Inc. All Rights Reserved. Version 2.4.6-OMAP3503 0001 ***************************************************************** losh> ifconfig sm0 /dev/config losh> load elf /tftp/192.168.3.5:u-boot loading from /tftp/192.168.3.5:u-boot: ................................................................. ELF section 0: download address: 0x80208000 load address: 0x80e80000 loaded 140108 @ 0x80e80000 Ram ...done file loaded losh> exec U-Boot 1.1.4 (Mar 13 2009 - 16:32:42) OMAP3430-GP rev 2, CPU-OPP2 L3-133MHz OMAP3430LV_SOM 0.1 Version + mDDR (Boot NAND) DRAM: 128 MB FLASH: initialize in sync mode NAND: 256 MiB Read production data: done Part Number : 1010194 Model Name : SOMOMAP3530-10-1672IFCR-A Serial Number: 3408M03305 In: serial Out: serial Err: serial Hit any key to stop autoboot: 6 0 => boot DRIVER_VERSION : 101, DATECODE : 092706 LAN9x18 (0x92110000) detected. start Auto negotiation... (take ~2sec) Auto negotiation complete, 100BaseTX, full duplex TFTP from server 192.168.3.5; our IP address is 192.168.3.11 Filename 'uImage'. Load address: 0x81000000 Loading: *################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ############################ done Bytes transferred = 1806408 (1b9048 hex) ## Booting image at 81000000 ... Image Name: Linux-2.6.29-rc8-omap1 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1806344 Bytes = 1.7 MB Load Address: 80008000 Entry Point: 80008000 Verifying Checksum ... OK OK Starting kernel ... Uncompressing Linux.................................................................................................................... done, booting the kernel. Linux version 2.6.29-rc8-omap1 (peter@blackhole) (gcc version 4.1.2) #5 PREEMPT Tue Mar 24 15:49:34 EDT 2009 CPU: ARMv7 Processor [411fc082] revision 2 (ARMv7), cr=10c5387f CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache Machine: OMAP OMAP3530LV_SOM board Memory policy: ECC disabled, Data cache writeback On node 0 totalpages: 32768 free_area_init_node: node 0, pgdat c038f5dc, node_mem_map c03b9000 Normal zone: 256 pages used for memmap Normal zone: 0 pages reserved Normal zone: 32512 pages, LIFO batch:7 OMAP3430 ES2.1 SRAM: Mapped pa 0x40200000 to va 0xd7000000 size: 0x100000 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 Kernel command line: display=3 console=ttyS0,115200 root=/dev/nfs rw nfsroot=192.168.3.5:/opt/nfs-exports/ltib-omap,wsize=1500,rsize=1500 ip=dhcp ignore_loglevel no_console_suspend debug: ignoring loglevel setting. Clocking rate (Crystal/DPLL/ARM core): 26.0/166/500 MHz GPMC revision 5.0 IRQ: Found an INTC at 0xd8200000 (revision 4.0) with 96 interrupts Total of 96 interrupts on 1 active controller OMAP34xx GPIO hardware version 2.5 PID hash table entries: 512 (order: 9, 2048 bytes) OMAP clockevent source: GPTIMER12 at 32768 Hz Console: colour dummy device 80x30 Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) Memory: 128MB = 128MB total Memory: 125980KB available (3308K code, 326K data, 136K init) Calibrating delay loop... 483.16 BogoMIPS (lpj=1888256) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok net_namespace: 544 bytes NET: Registered protocol family 16 OMAP DMA hardware revision 4.0 bio: create slab <bio-0> at 0 i2c_omap i2c_omap.1: bus 1 rev3.12 at 2600 kHz twl4030: PIH (irq 7) chaining IRQs 368..375 twl4030: power (irq 373) chaining IRQs 376..383 twl4030: gpio (irq 368) chaining IRQs 384..401 i2c_omap i2c_omap.3: bus 3 rev3.12 at 100 kHz SCSI subsystem initialized twl4030_usb twl4030_usb: Initialized TWL4030 USB module Switched to high resolution mode on CPU 0 NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 4096 (order: 3, 32768 bytes) TCP bind hash table entries: 4096 (order: 2, 16384 bytes) TCP: Hash tables configured (established 4096 bind 4096) TCP reno registered NET: Registered protocol family 1 NetWinder Floating Point Emulator V0.97 (double precision) VFS: Disk quotas dquot_6.5.2 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc. msgmni has been set to 246 alg: No test for stdrng (krng) io scheduler noop registered io scheduler anticipatory registered (default) io scheduler deadline registered io scheduler cfq registered Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a ST16654 console [ttyS0] enabled serial8250.0: ttyS1 at MMIO 0x4806c000 (irq = 73) is a ST16654 serial8250.0: ttyS2 at MMIO 0x49020000 (irq = 74) is a ST16654 brd: module loaded loop: module loaded eth0 (smc911x): not using net_device_ops yet eth0: LAN9211 (rev 0) at 0x8000000 IRQ 312 eth0: Ethernet addr: 00:08:ee:02:82:22 eth0: LAN911x Internal PHY i2c /dev entries driver Driver 'sd' needs updating - please use bus_type methods omap2-nand driver initializing twl4030_rtc twl4030_rtc: rtc core: registered twl4030_rtc as rtc0 cpuidle: using governor ladder cpuidle: using governor menu TCP cubic registered NET: Registered protocol family 17 NET: Registered protocol family 15 RPC: Registered udp transport module. RPC: Registered tcp transport module. Power Management for TI OMAP3. SmartReflex driver initialized Disabling unused clock "sr2_fck" Disabling unused clock "sr1_fck" Disabling unused clock "mcbsp_fck" Disabling unused clock "mcbsp_fck" Disabling unused clock "mcbsp_fck" Disabling unused clock "mcbsp_ick" Disabling unused clock "mcbsp_ick" Disabling unused clock "mcbsp_ick" Disabling unused clock "gpt2_ick" Disabling unused clock "gpt3_ick" Disabling unused clock "gpt4_ick" Disabling unused clock "gpt5_ick" Disabling unused clock "gpt6_ick" Disabling unused clock "gpt7_ick" Disabling unused clock "gpt8_ick" Disabling unused clock "gpt9_ick" Disabling unused clock "wdt3_ick" Disabling unused clock "wdt3_fck" Disabling unused clock "gpio2_dbck" Disabling unused clock "gpio3_dbck" Disabling unused clock "gpio4_dbck" Disabling unused clock "gpio5_dbck" Disabling unused clock "gpio6_dbck" Disabling unused clock "gpt9_fck" Disabling unused clock "gpt8_fck" Disabling unused clock "gpt7_fck" Disabling unused clock "gpt6_fck" Disabling unused clock "gpt5_fck" Disabling unused clock "gpt4_fck" Disabling unused clock "gpt3_fck" Disabling unused clock "gpt2_fck" Disabling unused clock "gpt1_ick" Disabling unused clock "wdt1_ick" Disabling unused clock "wdt2_ick" Disabling unused clock "usim_ick" Disabling unused clock "wdt2_fck" Disabling unused clock "gpio1_dbck" Disabling unused clock "gpt1_fck" Disabling unused clock "usim_fck" Disabling unused clock "dss_ick" Disabling unused clock "dss2_alwon_fck" Disabling unused clock "dss_96m_fck" Disabling unused clock "dss1_alwon_fck" Disabling unused clock "des1_ick" Disabling unused clock "sha11_ick" Disabling unused clock "rng_ick" Disabling unused clock "aes1_ick" Disabling unused clock "ssi_ick" Disabling unused clock "mailboxes_ick" Disabling unused clock "mcbsp_ick" Disabling unused clock "mcbsp_ick" Disabling unused clock "gpt10_ick" Disabling unused clock "gpt11_ick" Disabling unused clock "i2c_ick" Disabling unused clock "mcspi_ick" Disabling unused clock "mcspi_ick" Disabling unused clock "mcspi_ick" Disabling unused clock "mcspi_ick" Disabling unused clock "hdq_ick" Disabling unused clock "mspro_ick" Disabling unused clock "des2_ick" Disabling unused clock "sha12_ick" Disabling unused clock "aes2_ick" Disabling unused clock "icr_ick" Disabling unused clock "pka_ick" Disabling unused clock "hsotgusb_ick" Disabling unused clock "ssi_ssr_fck" Disabling unused clock "hdq_fck" Disabling unused clock "mcspi_fck" Disabling unused clock "mcspi_fck" Disabling unused clock "mcspi_fck" Disabling unused clock "mcspi_fck" Disabling unused clock "mcbsp_fck" Disabling unused clock "mcbsp_fck" Disabling unused clock "i2c_fck" Disabling unused clock "mspro_fck" Disabling unused clock "gpt11_fck" Disabling unused clock "gpt10_fck" Disabling unused clock "clkout2_src_ck" Disabling unused clock "dpll5_ck" clock: dpll5_ck failed transition to 'locked' Disabling unused clock "dpll4_m6x2_ck" Disabling unused clock "dpll4_m5x2_ck" Disabling unused clock "dpll3_m3x2_ck" Disabling unused clock "sys_clkout1" VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 1 twl4030_rtc twl4030_rtc: setting system clock to 2000-01-02 05:08:01 UTC (946789681) eth0: link down Sending DHCP requests .<6>eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 ., OK IP-Config: Got DHCP answer from 0.0.0.0, my address is 192.168.3.105 IP-Config: Complete: device=eth0, addr=192.168.3.105, mask=255.255.255.0, gw=192.168.3.1, host=192.168.3.105, domain=, nis-domain=(none), bootserver=0.0.0.0, rootserver=192.168.3.5, rootpath= Looking up port of RPC 100003/2 on 192.168.3.5 Looking up port of RPC 100005/1 on 192.168.3.5 VFS: Mounted root (nfs filesystem) on device 0:12. Freeing init memory: 136K init started: BusyBox v1.11.2 () starting pid 285, tty '': '/etc/rc.d/rcS' Setting the hostname to OMAP-35x Mounting /proc and /sys Starting the hotplug events dispatcher udevd Synthesizing initial hotplug events Mounting filesystems mount: mounting usbfs on /proc/bus/usb failed: No such file or directory Starting syslogd and klogd Running depmod WARNING: Couldn't open directory /lib/modules/2.6.29-rc8-omap1: No such file or directory FATAL: Could not open /lib/modules/2.6.29-rc8-omap1/modules.dep.temp for writing: No such file or directory load unifi_sdio.ko for 802.11 access unifi_sdio: disagrees about version of symbol struct_module insmod: error inserting '/lib/firmware/unifi-sdio-1/unifi_sdio.ko': -1 Invalid module format Starting inetd: Starting the dropbear ssh server: LCD panel file is not found starting pid 521, tty '': '/sbin/getty -L ttyS0 115200 vt100' Welcome to Logic's OMAP35x Embedded Linux Environment !!!!! WARNING !!!!!!! The default password for the root account is: root please change this password using the 'passwd' command and then edit this message (/etc/issue) to remove this message OMAP-35x login: root Password: omap3530# omap3530# omap3530# echo mem > /sys/power/state PM: Syncing filesystems ... done. PM: Preparing system for mem sleep Freezing user space processes ... (elapsed 0.00 seconds) done. Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done. PM: Entering mem sleep Powerdomain (core_pwrdm) didn't enter target state 1 Powerdomain (per_pwrdm) didn't enter target state 1 Could not enter target state in pm_suspend eth0: smc911x_reset timeout waiting for PM restore eth0: link down PM: Finishing wakeup. Restarting tasks ... done. omap3530# omap3530# eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 omap3530#