[#4704] kernel fails to suspend to mem on bf527-ezkit
Submitted By: Vivi Li
Open Date
2008-12-08 22:42:24 Close Date
2008-12-26 05:53:59
Priority:
Medium High Assignee:
Michael Hennerich
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
Drivers Board:
EZKIT Lite
Processor:
BF527 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Not reproducible
Uboot version or rev.:
Toolchain version or rev.:
toolchain 4.1-2008_Dec_03
App binary format:
N/A
Summary: kernel fails to suspend to mem on bf527-ezkit
Details:
On all platforms supporting power management, kernel fails to suspend to mem and it will reset automatically.
Standby mode is OK.
Bellow is the log from BF548-EZKIT:
--
Linux version 2.6.28-rc2-ADI-2009R1-pre-svn5836 (test@107-local) (gcc version 4.1.2 (ADI svn)) #5 Tue Dec 9 10:23:34 CST 2008
console [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x0013dcf0
rodata = 0x0013dcf0-0x0019e3c8
bss = 0x0019e3d0-0x001aef20
data = 0x001aef20-0x001c2000
stack = 0x001c0000-0x001c2000
init = 0x001c2000-0x0049f000
available = 0x0049f000-0x03eff000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Reset caused by Software reset
Blackfin support (C) 2004-2008 Analog Devices, Inc.
Compiled for ADSP-BF527 Rev 0.0
ERROR: Not running on ADSP-BF527: unknown CPUID 0x27e0 Rev 0.0
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
NOMPU: setting up cplb tables for global access
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-through)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16001
Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600 ip=10.100.4.50:10.f
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
console handover: boot [early_BFuart0] -> real [ttyBF0]
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 59196k/65536k RAM, (2932k init code, 1267k kernel code, 529k data, 1024k dma, 584k reserved)
Calibrating delay loop... 1046.52 BogoMIPS (lpj=2093056)
Security Framework initialized
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (15 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (42 KB free)
PDA for CPU0 reserved at 0019f3c0
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin GPIO Controller
Blackfin DMA Controller
stamp_init(): registering device resources
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
musb_hdrc: version 6.0, pio, host, debug=0
musb_hdrc: USB Host mode controller at ffc03800 using PIO, IRQ 59
musb_hdrc musb_hdrc.0: MUSB HDRC host driver
musb_hdrc musb_hdrc.0: new USB bus registered, assigned bus number 1
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
msgmni has been set to 115
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
bfin-otp: initialized
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART
brd: module loaded
bfin_mac_mdio: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=25)@sclk=131MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc01400
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).
ALSA device list:
No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-01-01 00:27:07 UTC (1627)
hid_zpff: Unknown symbol _input_ff_create_memless
IP-Config: Complete:
device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,
host=bf527-ezkit, domain=, nis-domain=(none),
bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=
Freeing unused kernel memory: 2932k freed
dma_alloc_init: dma_page @ 0x0049b000 - 256 pages at 0x03f00000
_____________________________________
a8888b. / Welcome to the uClinux distribution \
d888888b. / _ _ \
8P"YP"Y88 / | | |_| __ __ (TM) |
8|o||o|88 _____/ | | _ ____ _ _ \ \/ / |
8' .88 \ | | | | _ \| | | | \ / |
8`._.' Y8. \ | |__ | | | | | |_| | / \ |
d/ `8b. \ \____||_|_| |_|\____|/_/\_\ |
dP . Y8b. \ For embedded processors including |
d8:' " `::88b \ the Analog Devices Blackfin /
d8" 'Y88b \___________________________________/
:8P ' :888
8a. : _a88P For further information, check out:
._/"Yaa_: .| 88P| - blackfin.uclinux.org/
\ YP" `| 8P `. - docs.blackfin.uclinux.org/
/ \.___.d| .' - www.uclinux.org/
`--..__)8888P`._.' jgs/a:f - www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.13.1 (2008-12-09 10:21:54 CST) built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/> PHY: 0:01 - Link is Up - 100/Full
root:/>
root:/>
root:/> rtcwake -s 10 -m standby
wakeup from "standby" at Thu Jan 1 00:30:11 1970
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.01 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
Suspending console(s) (use no_console_suspend to debug)
PHY: 0:01 - Link is Down
Restarting tasks ... done.
root:/> PHY: 0:01 - Link is Up - 100/Full
root:/>
root:/> rtcwake -s 10 -m mem
wakeup from "mem" at Thu Jan 1 00:30:30 1970
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.00 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
Suspending console(s) (use no_console_suspend to debug)
U-Boot 1.1.6-svn1273 (ADI-2008R1.5) (Jul 21 2008 - 00:29:36)
CPU: ADSP bf527-0.0 (Detected Rev: 0.0)
Board: ADI BF527 EZ-Kit board
Support: blackfin.uclinux.org/
Clock: VCO: 525 MHz, Core: 525 MHz, System: 131 MHz
RAM: 64 MB
Flash: 4 MB
In: serial
Out: serial
Err: serial
Net: Blackfin EMAC
MAC: 00:E0:22:FE:B8:14
Hit any key to stop autoboot: 0
bfin>
--
Follow-ups
--- Mike Frysinger 2008-12-08 23:13:15
i think michael already outlined that our bf527-ezkit hardware sucks ...
--- Michael Hennerich 2008-12-09 05:54:32
Works for me - please update your u-boot!!!
And try again.
U-Boot 1.1.6-svn1273 (ADI-2008R1.5) (Jul 21 2008 - 00:29:36)
Return from Hibernate was still under construction svn1273
If it still fails - then its a HW issue.
-Michael
root:/> rtcwake -s 10 -m mem
wakeup from "mem" at Wed Jan 7 15:02:59 1970
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.00 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
Suspending console(s) (use no_console_suspend to debug)
PHY: 0:03 - Link is Down
Restarting tasks ... done.
PHY: 0:03 - Link is Up - 100/Full
root:/>
root:/> rtcwake -s 10 -m mem
wakeup from "mem" at Wed Jan 7 15:03:18 1970
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.00 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
Suspending console(s) (use no_console_suspend to debug)
PHY: 0:03 - Link is Down
Restarting tasks ... done.
PHY: 0:03 - Link is Up - 100/Full
root:/> version
kernel: Linux release 2.6.28-rc2-ADI-2009R1-pre-svn5841, build #9086 Tue Dec
9 11:42:58 CET 2008
toolchain: bfin-uclinux-gcc release gcc version 4.1.2 (ADI svn)
user-dist: release svn-7433, build #3089 Tue Dec 9 11:42:27 CET 2008
root:/> cat /proc/cpuinfo
processor : 0
vendor_id : Analog Devices
cpu family : Compiled for:0x27e4, running on:0x27e0
model name : ADSP-BF527 525(MHz CCLK) 131(MHz SCLK) (mpu off)
stepping : 0
cpu MHz : 525.000/131.250000
bogomips : 1046.52
Calibration : 523264000 loops
cache size : 16 KB(L1 icache) 32 KB(L1 dcache-wt) 0 KB(L2 cache)
dbank-A/B : cache/cache
icache setup : 4 Sub-banks/4 Ways, 32 Lines/Way
dcache setup : 2 Super-banks/4 Sub-banks/2 Ways, 64 Lines/Way
board name : ADI BF527-EZKIT
board memory : 65536 kB (0x00000000 -> 0x04000000)
kernel memory : 64504 kB (0x00001000 -> 0x03eff000)
root:/>
--- Vivi Li 2008-12-26 05:53:59
Update u-boot works. Close it.
Thanks!
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
config.power application/octet-stream 38062 Vivi Li