2009-08-13 17:05:19 Problem with Suspend Mem / Hibernate on BF548-EZKIT
Derek Gallagher (UNITED STATES)
Message: 78864
Hello,
I'm using the BF548-EZKIT and I'm trying to put the Blackfin into a Suspend Mem / Hibernate state using the rtcwake tool.
I'm following the instructions at the link below:
docs.blackfin.uclinux.org/doku.php?id=power_management_support
I am able put the Blackfin into a Standby state for 10 seconds using the following command:
rtcwake -s 10 -m standby
However, when I attempt to put the Blackfin into Suspend Mem / Hibernate, the Blackfin seems to begin Susupend Mem and then gets hung up. The command I'm using is the following:
rtcwake -s 10 -m mem
I have read the following thread, but didn't see any clues.
blackfin.uclinux.org/gf/project/uclinux-dist/forum/?action=ForumBrowse&forum_id=39&thread_id=28519&_forum_action=ForumMessageBrowse
Also, I attemped to pull the DDR Clock Enable pin low as the BF54x Datasheet seemed to indicate that it was required (it is not pulled low on the EZ-KIT). See comment below copied from the datasheet.
DCLKE "This pin must be pulled low through a 10kOhm resistor if self-refresh mode is desired during hibernate state or deep-sleep mode."
Has anyone gotten Suspend Mem / Hibernate working on the BF548-EZKIT?
My configuration is the following:
U-Boot SVN Tag=toolchain_09r1_rc9
Kernel SVN Tag=2009R1-RC2
uClinux Distro SVN Tag=2009R1-RC2
The following is the output to the terminal window
U-Boot 2008.10 (ADI-2009R1-rc3) (Aug 12 2009 - 14:06:29)
CPU: ADSP bf548-0.0 (Detected Rev: 0.2) (parallel flash boot)
Board: ADI BF548 EZ-Kit board
Support: blackfin.uclinux.org/
Clock: VCO: 525 MHz, Core: 525 MHz, System: 131.250 MHz
RAM: 64 MB
Flash: 16 MB
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: Hit any key to stop autoboot: 0
smc911x: initializing
smc911x: detected LAN9218 controller
smc911x: phy initialized
smc911x: MAC 00:e0:22:fe:be:1a
TFTP from server 192.168.11.121; our IP address is 192.168.11.35
Filename 'uImage'.
Load address: 0x1000000
Loading: T #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#######
done
Bytes transferred = 4862923 (4a33cb hex)
## Booting kernel from Legacy Image at 01000000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1
Created: 2009-08-12 19:09:53 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 4862859 Bytes = 4.6 MB
Load Address: 00001000
Entry Point: 0023fb54
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 0023fb54
Linux version 2.6.28.10-ADI-2009R1 (root@psc2024.newport.progeny.net) (gcc vers9
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x00177b00
rodata = 0x00177b00-0x001f9c4c
bss = 0x001fa000-0x0020f3ac
data = 0x0020f3ac-0x0022a000
stack = 0x00228000-0x0022a000
init = 0x0022a000-0x008db000
available = 0x008db000-0x03dff000
DMA Zone = 0x03e00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 1
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF548 Rev 0.2
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-back)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 15747
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=seriaf
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x25
console [tty0] enabled
Linux version 2.6.28.10-ADI-2009R1 (root@psc2024.newport.progeny.net) (gcc vers9
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x00177b00
rodata = 0x00177b00-0x001f9c4c
bss = 0x001fa000-0x0020f3ac
data = 0x0020f3ac-0x0022a000
stack = 0x00228000-0x0022a000
init = 0x0022a000-0x008db000
available = 0x008db000-0x03dff000
DMA Zone = 0x03e00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 1
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF548 Rev 0.2
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-back)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 15747
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=seriaf
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x25
console [tty0] enabled
console handover:boot [early_BFuart0] boot [tty0] boot [early_shadow0] -> real]
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 53844k/65536k RAM, (6852k init code, 1498k kernel code, 714k )
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)
Blackfin L2 SRAM: 128 KB (128 KB free)
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin DMA Controller
ezkit_init(): registering device resources
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
musb_hdrc: version 6.0, musb-dma, host, debug=0
musb_hdrc: USB Host mode controller at ffc03c00 using DMA, IRQ 82
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
dma_alloc_init: dma_page @ 0x03d8e000 - 512 pages at 0x03e00000
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 105
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 = 48) is a BFIN-UART
brd: module loaded
smsc911x: Driver version 2007-07-13.
eth0: SMSC911x MAC Address: 00:e0:22:fe:be:1a
Driver 'sd' needs updating - please use bus_type methods
register bfin atapi driver
scsi0 : pata-bf54x
ata1: PATA max UDMA/66 irq 68
ata1.00: ATA-7: FUJITSU MHW2040AT, 0000000B, max UDMA/100
ata1.00: 78140160 sectors, multi 16: LBA
ata1.00: configured for UDMA/66
blk_queue_max_hw_segments: set to minimum 1
scsi 0:0:0:0: Direct-Access ATA FUJITSU MHW2040A 0000 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors: (40.0 GB/37.2 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPA
sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors: (40.0 GB/37.2 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPA
sda: sda1
sd 0:0:0:0: [sda] Attached SCSI disk
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_4
bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_5
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
input: bf54x-keys as /devices/platform/bf54x-keys/input/input0
bf54x-keys: Blackfin BF54x Keypad registered IRQ 76
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
i2c /dev entries driver
i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_bas0
i2c-bfin-twi i2c-bfin-twi.1: Blackfin BF5xx on-chip I2C TWI Contoller, regs_bas0
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
mmc0: card claims to support voltages below the defined range. These will be ig.
mmc0: error -110 whilst initialising MMC card
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-01-22 03:11:03 UTC (1825863)
eth0: SMSC911x/921x identified at 0x24000000, IRQ: 175
eth0: link down
IP-Config: Gateway not on directly connected network.
Freeing unused kernel memory: 6852k freed
eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1
_____________________________________
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.4 (2009-08-12 13:08:33 EDT) built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/> rtcwake -s 10 -m standby
wakeup from "standby" at Thu Jan 22 03:11:31 1970
PM: Syncing filesystems ... doneU-Boot 2008.10 (ADI-2009R1-rc3) (Aug 12 2009 - 14:06:29)
CPU: ADSP bf548-0.0 (Detected Rev: 0.2) (parallel flash boot)
Board: ADI BF548 EZ-Kit board
Support: blackfin.uclinux.org/
Clock: VCO: 525 MHz, Core: 525 MHz, System: 131.250 MHz
RAM: 64 MB
Flash: 16 MB
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: Hit any key to stop autoboot: 0
smc911x: initializing
smc911x: detected LAN9218 controller
smc911x: phy initialized
smc911x: MAC 00:e0:22:fe:be:1a
TFTP from server 192.168.11.121; our IP address is 192.168.11.35
Filename 'uImage'.
Load address: 0x1000000
Loading: T #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#######
done
Bytes transferred = 4862923 (4a33cb hex)
## Booting kernel from Legacy Image at 01000000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1
Created: 2009-08-12 19:09:53 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 4862859 Bytes = 4.6 MB
Load Address: 00001000
Entry Point: 0023fb54
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 0023fb54
Linux version 2.6.28.10-ADI-2009R1 (root@psc2024.newport.progeny.net) (gcc vers9
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x00177b00
rodata = 0x00177b00-0x001f9c4c
bss = 0x001fa000-0x0020f3ac
data = 0x0020f3ac-0x0022a000
stack = 0x00228000-0x0022a000
init = 0x0022a000-0x008db000
available = 0x008db000-0x03dff000
DMA Zone = 0x03e00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 1
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF548 Rev 0.2
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-back)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 15747
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=seriaf
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x25
console [tty0] enabled
Linux version 2.6.28.10-ADI-2009R1 (root@psc2024.newport.progeny.net) (gcc vers9
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x00177b00
rodata = 0x00177b00-0x001f9c4c
bss = 0x001fa000-0x0020f3ac
data = 0x0020f3ac-0x0022a000
stack = 0x00228000-0x0022a000
init = 0x0022a000-0x008db000
available = 0x008db000-0x03dff000
DMA Zone = 0x03e00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 1
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF548 Rev 0.2
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-back)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 15747
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=seriaf
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x25
console [tty0] enabled
console handover:boot [early_BFuart0] boot [tty0] boot [early_shadow0] -> real]
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 53844k/65536k RAM, (6852k init code, 1498k kernel code, 714k )
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)
Blackfin L2 SRAM: 128 KB (128 KB free)
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin DMA Controller
ezkit_init(): registering device resources
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
musb_hdrc: version 6.0, musb-dma, host, debug=0
musb_hdrc: USB Host mode controller at ffc03c00 using DMA, IRQ 82
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
dma_alloc_init: dma_page @ 0x03d8e000 - 512 pages at 0x03e00000
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 105
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 = 48) is a BFIN-UART
brd: module loaded
smsc911x: Driver version 2007-07-13.
eth0: SMSC911x MAC Address: 00:e0:22:fe:be:1a
Driver 'sd' needs updating - please use bus_type methods
register bfin atapi driver
scsi0 : pata-bf54x
ata1: PATA max UDMA/66 irq 68
ata1.00: ATA-7: FUJITSU MHW2040AT, 0000000B, max UDMA/100
ata1.00: 78140160 sectors, multi 16: LBA
ata1.00: configured for UDMA/66
blk_queue_max_hw_segments: set to minimum 1
scsi 0:0:0:0: Direct-Access ATA FUJITSU MHW2040A 0000 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors: (40.0 GB/37.2 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPA
sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors: (40.0 GB/37.2 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPA
sda: sda1
sd 0:0:0:0: [sda] Attached SCSI disk
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_4
bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_5
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
input: bf54x-keys as /devices/platform/bf54x-keys/input/input0
bf54x-keys: Blackfin BF54x Keypad registered IRQ 76
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
i2c /dev entries driver
i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_bas0
i2c-bfin-twi i2c-bfin-twi.1: Blackfin BF5xx on-chip I2C TWI Contoller, regs_bas0
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
mmc0: card claims to support voltages below the defined range. These will be ig.
mmc0: error -110 whilst initialising MMC card
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-01-22 03:11:03 UTC (1825863)
eth0: SMSC911x/921x identified at 0x24000000, IRQ: 175
eth0: link down
IP-Config: Gateway not on directly connected network.
Freeing unused kernel memory: 6852k freed
eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1
_____________________________________
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.4 (2009-08-12 13:08:33 EDT) built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/> rtcwake -s 10 -m standby
wakeup from "standby" at Thu Jan 22 03:11:31 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)
sd 0:0:0:0: [sda] Synchronizing SCSI cache
sd 0:0:0:0: [sda] Stopping disk
mmc0: card claims to support voltages below the defined range. These will be ig.
sd 0:0:0:0: [sda] Starting disk
mmc0: error -110 whilst initialising MMC card
ata1.00: configured for UDMA/66
sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors: (40.0 GB/37.2 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPA
sda: detected capacity change from 0 to 40007761920
Restarting tasks ... done.
root:/> rtcwake -s 10 -m mem
wakeup from "mem" at Thu Jan 22 03:12:07 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)
sd 0:0:0:0: [sda] Synchronizing SCSI cache
sd 0:0:0:0: [sda] Stopping disk
sd 0:0:0:0: [sda] Starting disk
ata1.00: configured for UDMA/66
sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors: (40.0 GB/37.2 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPA
sda: detected capacity change from 0 to 40007761920
Restarting tasks ... done.
root:/> INFO: task kmmcd:105 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
kmmcd D ffa008ec 0 105 2
Stack info:
SP: [0x03d3bde0] <0x03d3bde0> /* kernel dynamic memory */
FP: (0x03d3bf7c)
Memory from 0x03d3bde0 to 03d3c000
03d3bde0:[00000000] 03d8c3c0 03deb040 00d12960 00200b30 00000002 03d3a000
03d3be00:<00176a88><0002c390> 00213cc4 00000006 03d3a000 03d3a000 03d3be90 >
03d3be20: 03d3a000 03d3a000 03d3bec4 7fffffff 00000000 00000002 002109e4
03d3be40: 00100100 00200200 <ffa00b5c> 0020ff44 00d06960 03d3a000 00205430
03d3be60:<00176c9c> 03d3a000 7fffffff 00000000 00000000 00d50000 00382956
03d3be80: 03d8c3c0 0000b33c 03d3bec8 03d3bec8 03d3a000 <00112e2e> 03d3bef0
03d3bea0: 00113118 00000000 03d3bec4 03d3bfac 00000000 00000000 00000000
03d3bec0: 00000000 00000000 03d3be88 03d3be88 <00112f16> 03d3bf20 00d06800
03d3bee0: 03d3a000 07d2b750 0007d2b6 0000ffff 03d3bf20 00000000 00000000
03d3bf00: 00112f34 <001149f4> 00d06800 0020ff44 03d3bf5c 00d06960 03d3a000
03d3bf20: 00000000 00000000 00000000 00000000 00000000 00000000 000000c0
03d3bf40: 00000000 00000000 03d3bef0 <00113212> 00d06800 03db4e40 03d3bf5c
03d3bf60: 03d8c3c0 00d12060 ffffffff <0001c86c> 00d06980 002109e4 03d3a000 )
03d3bf80:<0001d226> 03d3a000 00000000 <0001d200> 03d3a000 03d3a000 03db4e40
03d3bfa0: 0020f3c0 00000000 00000000 00000000 03d8c3c0 0001f9ec 03d3bfb8
03d3bfc0:<0001f5ec> 0001d184 00000000 00000000 03db4e40 00000000 00000000
03d3bfe0: 00000000 00000000 <0000145e> 00000000 00000000 00000000 ffffffff
Return addresses in stack:
address : <0x00176a88> { _schedule + 0x174 }
address : <0x0002c390> { _handle_simple_irq + 0x74 }
address : <0x00176ef0> { _schedule_timeout + 0x6c }
address : <0xffa00b5c> { __common_int_entry + 0x64 }
address : <0x00176c9c> { _wait_for_common + 0x84 }
address : <0x00112e2e> { _mmc_wait_for_req + 0xaa }
address : <0x00112f16> { _mmc_wait_for_cmd + 0x36 }
address : <0x001149f4> { _mmc_go_idle + 0x40 }
address : <0x00113212> { _mmc_rescan + 0xfa }
address : <0x0001c86c> { _run_workqueue + 0x7c }
frame 1 : <0x0001d226> { _worker_thread + 0xa2 }
address : <0x0001d200> { _worker_thread + 0x7c }
address : <0x0001f5ec> { _kthread + 0x50 }
address : <0x0000145e> { _kernel_thread_helper + 0x6 }
.
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)
sd 0:0:0:0: [sda] Synchronizing SCSI cache
sd 0:0:0:0: [sda] Stopping disk
mmc0: card claims to support voltages below the defined range. These will be ig.
sd 0:0:0:0: [sda] Starting disk
mmc0: error -110 whilst initialising MMC card
ata1.00: configured for UDMA/66
sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors: (40.0 GB/37.2 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPA
sda: detected capacity change from 0 to 40007761920
Restarting tasks ... done.
root:/> rtcwake -s 10 -m mem
wakeup from "mem" at Thu Jan 22 03:12:07 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)
sd 0:0:0:0: [sda] Synchronizing SCSI cache
sd 0:0:0:0: [sda] Stopping disk
sd 0:0:0:0: [sda] Starting disk
ata1.00: configured for UDMA/66
sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors: (40.0 GB/37.2 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPA
sda: detected capacity change from 0 to 40007761920
Restarting tasks ... done.
root:/> INFO: task kmmcd:105 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
kmmcd D ffa008ec 0 105 2
Stack info:
SP: [0x03d3bde0] <0x03d3bde0> /* kernel dynamic memory */
FP: (0x03d3bf7c)
Memory from 0x03d3bde0 to 03d3c000
03d3bde0:[00000000] 03d8c3c0 03deb040 00d12960 00200b30 00000002 03d3a000
03d3be00:<00176a88><0002c390> 00213cc4 00000006 03d3a000 03d3a000 03d3be90 >
03d3be20: 03d3a000 03d3a000 03d3bec4 7fffffff 00000000 00000002 002109e4
03d3be40: 00100100 00200200 <ffa00b5c> 0020ff44 00d06960 03d3a000 00205430
03d3be60:<00176c9c> 03d3a000 7fffffff 00000000 00000000 00d50000 00382956
03d3be80: 03d8c3c0 0000b33c 03d3bec8 03d3bec8 03d3a000 <00112e2e> 03d3bef0
03d3bea0: 00113118 00000000 03d3bec4 03d3bfac 00000000 00000000 00000000
03d3bec0: 00000000 00000000 03d3be88 03d3be88 <00112f16> 03d3bf20 00d06800
03d3bee0: 03d3a000 07d2b750 0007d2b6 0000ffff 03d3bf20 00000000 00000000
03d3bf00: 00112f34 <001149f4> 00d06800 0020ff44 03d3bf5c 00d06960 03d3a000
03d3bf20: 00000000 00000000 00000000 00000000 00000000 00000000 000000c0
03d3bf40: 00000000 00000000 03d3bef0 <00113212> 00d06800 03db4e40 03d3bf5c
03d3bf60: 03d8c3c0 00d12060 ffffffff <0001c86c> 00d06980 002109e4 03d3a000 )
03d3bf80:<0001d226> 03d3a000 00000000 <0001d200> 03d3a000 03d3a000 03db4e40
03d3bfa0: 0020f3c0 00000000 00000000 00000000 03d8c3c0 0001f9ec 03d3bfb8
03d3bfc0:<0001f5ec> 0001d184 00000000 00000000 03db4e40 00000000 00000000
03d3bfe0: 00000000 00000000 <0000145e> 00000000 00000000 00000000 ffffffff
Return addresses in stack:
address : <0x00176a88> { _schedule + 0x174 }
address : <0x0002c390> { _handle_simple_irq + 0x74 }
address : <0x00176ef0> { _schedule_timeout + 0x6c }
address : <0xffa00b5c> { __common_int_entry + 0x64 }
address : <0x00176c9c> { _wait_for_common + 0x84 }
address : <0x00112e2e> { _mmc_wait_for_req + 0xaa }
address : <0x00112f16> { _mmc_wait_for_cmd + 0x36 }
address : <0x001149f4> { _mmc_go_idle + 0x40 }
address : <0x00113212> { _mmc_rescan + 0xfa }
address : <0x0001c86c> { _run_workqueue + 0x7c }
frame 1 : <0x0001d226> { _worker_thread + 0xa2 }
address : <0x0001d200> { _worker_thread + 0x7c }
address : <0x0001f5ec> { _kthread + 0x50 }
address : <0x0000145e> { _kernel_thread_helper + 0x6 }
QuoteReplyEditDelete
2009-08-13 17:15:15 Problem with Suspend Mem / Hibernate on BF548-EZKIT
Michael Hennerich (GERMANY)
Message: 78865 Hi Derek,
PM is supposed to work on BF54x - And I think we tested things.
I wonder - did you do anything special to the SD/MMC interface - maybe
card inserted?
Can you explain your exact setup?
-Michael
QuoteReplyEditDelete
2009-08-14 15:06:30 Re: Problem with Suspend Mem / Hibernate on BF548-EZKIT
Derek Gallagher (UNITED STATES)
Message: 78910
Hi Michael,
The output i posted was from a default configuration that had been modified quite a bit. To make things easier, I attempted to put the processor into Suspend Mem using default configurations, but it still doesn't work.
I configured the BF548-EZKIT to its out of the box default jumper and switch settings. I did a distclean on the uclinux-distro and made the following mods:
Enabled Power Management Support in kernel
Enabled Power Management Debug Support in kernel
Enabled Verbose Power Management debugging in kernel
Enabled rtcwake tool in user apps
Disabled mtd_utils in user apps (this was required to get around a mtd_utils related kernel compilation error)
Other configurations are:
BF548-EZKIT REV 1.4
U-Boot SVN Tag=toolchain_09r1_rc9
Kernel SVN Tag=2009R1-RC2
uClinux Distro SVN Tag=2009R1-RC2
I've attached the terminal window output, which is slightly different from my original post. The system only goes into Suspend Mem for what seems to be only for a few seconds. It now does not seem to freeze up after it returns to an Active State (mmc errors from original post are now gone). I've also attached the dmesg output.
Below is a snippet of the total output which shows that the system is waking up before 100 seconds.
root:/> date
Fri Jan 23 01:37:58 UTC 1970
root:/> rtcwake -s 100 -m mem
wakeup from "mem" at Fri Jan 23 01:39:45 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)
sd 0:0:0:0: [sda] Synchronizing SCSI cache
sd 0:0:0:0: [sda] Stopping disk
sd 0:0:0:0: [sda] Starting disk
ata1.00: configured for UDMA/66
sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors: (40.0 GB/37.2 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda: detected capacity change from 0 to 40007761920
soc-audio soc-audio: scheduling resume work
soc-audio soc-audio: starting resume work
soc-audio soc-audio: resume work completed
Restarting tasks ... done.
root:/> date
Fri Jan 23 01:38:24 UTC 1970
Any ideas? Thanks in advance?
-Derek
dmesg.txt
terminal_output.txt
QuoteReplyEditDelete
2009-08-14 15:16:39 Re: Problem with Suspend Mem / Hibernate on BF548-EZKIT
Derek Gallagher (UNITED STATES)
Message: 78911
Michael,
Sorry I forgot to answer your question about whether an SD/MMC card was inserted in my setup. I tried both setups, one with the included 256MB SD card inserted, and one without any card inserted - both setups failed to go into Suspend Mem state.
Thanks
-Derek
QuoteReplyEditDelete
2009-08-14 16:53:21 Re: Problem with Suspend Mem / Hibernate on BF548-EZKIT
Michael Hennerich (GERMANY)
Message: 78913
Try to disable the drivers/input/keyboard/bf54x-keys driver
docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:bf54x-keys
I've seen something similar on svn trunk - but thought it wouldn't be on
the branch as well.
-Michael
QuoteReplyEditDelete
2009-08-18 10:39:38 Re: Problem with Suspend Mem / Hibernate on BF548-EZKIT
Derek Gallagher (UNITED STATES)
Message: 78997
Hi Michael,
Disabling the bf54x-keys driver did fix the problem. That allowed me Suspend to Memory without a problem. Thanks for the help with that.
However, now I'm running into another problem. When I enable MMC/SD/SDIO card support, I'm unable to Suspend to Memory and fully resume. When I execute the 'rtcwake -s 20 -m mem' command, the system does Suspend to Memory and it does resume, but I cannot access the SD card. When I execute the command a 2nd time, the system does not successfully Suspend to Memory. I verified that it does not actually suspend by looking at VDDINT - it's still around 1.3 volts.
I've attached the terminal window output (i outputted dmesg as well), along with a screenshot of my MMC/SD/SDIO Kernel configuration. Looking through the output, it seems like the SD card does not get reinitialized correctly upon resume.
Also, the attached terminal window output shows a case where the SD card was mounted. I've attempted to Suspend to Memory without having a mounted SD card as well, and the same error occurred.
Any ideas?
Thanks in advance,
Derek
terminal_output.txt
QuoteReplyEditDelete
2009-08-18 10:40:46 Re: Problem with Suspend Mem / Hibernate on BF548-EZKIT
Derek Gallagher (UNITED STATES)
Message: 78998
Sorry, I meant to attach the screenshot of my MMC/SD/SDIO kernel configuration.
Screenshot-Linux Kernel v2.6.28.10 Configuration.png
QuoteReplyEditDelete
2009-08-18 12:05:23 Re: Problem with Suspend Mem / Hibernate on BF548-EZKIT
Michael Hennerich (GERMANY)
Message: 79003 > When I enable MMC/SD/SDIO card support, I'm unable to Suspend to
Memory and fully resume.
I looked at the bfin_sdh suspend resume functions and I can't find
anything that would save and restore the peripheral upon PM transition.
Looks like a bug - I opened this BUG
QuoteReplyEditDelete
2009-08-18 12:11:16 Re: Problem with Suspend Mem / Hibernate on BF548-EZKIT
Michael Hennerich (GERMANY)
Message: 79004 I opened this BUG:
https://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=Tra
ckerItemEdit&tracker_id=141&tracker_item_id=5449
-Michael
QuoteReplyEditDelete
2009-08-18 12:37:25 Re: Problem with Suspend Mem / Hibernate on BF548-EZKIT
Derek Gallagher (UNITED STATES)
Message: 79006
Thanks Michael.
QuoteReplyEditDelete
2009-08-19 03:24:31 Re: Problem with Suspend Mem / Hibernate on BF548-EZKIT
Cliff Cai (CHINA)
Message: 79015
this bug has been fixed now.
Cliff