Menu

#236 After wake up from standby/mem mode, arecord and aplay fails to exit for ssm2603

master head
open
None
low
under_debugging
ALL
2014-09-11
2014-07-28
Vivi Li
No

After wake up from standby/mem mode, arecord and aplay fails to exit for ssm2603.

--
Linux version 3.16.0-rc4-ADI-2014R1-pre-00390-gdcf9a64-dirty (test@uclinux52-BF537-ssm2603) (gcc version 4.3.5 (ADI-master/git-a2bfd7b) ) #2 Sat Jul 26 03:31:31 CST 2014
register early platform devices
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Limiting kernel memory to 56MB due to anomaly 05000263
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x0019f558
rodata = 0x0019f57c-0x0022870c
bss = 0x00229000-0x0023eafc
data = 0x0023eb00-0x0025c000
stack = 0x0025a000-0x0025c000
init = 0x0025c000-0x006a2000
available = 0x006a2000-0x03800000
DMA Zone = 0x03e00000-0x04000000
Hardware Trace active and enabled
Boot Mode: 0
Reset caused by Software reset
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF537 Rev 0.2
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 500 MHz core clock and 125 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
External memory: cacheable in instruction cache
Data Cache Enabled for CPU0
External memory: cacheable (write-back) in data cache
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 14224
Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf537-stamp:eth0:off
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 49944K/57344K available (1657K kernel code, 117K rwdata, 548K rodata, 4376K init, 86K bss, 7400K reserved, 2048K DMA)
NR_IRQS:146
Configuring Blackfin Priority Driven Interrupts
bfin-rtc: invalid date; resetting
Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
devtmpfs: initialized
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (16 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (33 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
stamp_init(): registering device resources
bfin-spi bfin-spi.0: master is unqueued, this is deprecated
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs@ffc00500, dma channel@7
i2c-bfin-twi i2c-bfin-twi.0: Blackfin on-chip I2C TWI Contoller, regs_base@ffc01400
Advanced Linux Sound Architecture Driver Initialized.
Switched to clocksource bfin_cs_cycles
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
debug-mmrs: setting up Blackfin MMR debugfs
msgmni has been set to 97
io scheduler noop registered (default)
bfin-uart: Blackfin serial driver
bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 18, base_baud = 7812500) is a BFIN-UART
console [ttyBF0] enabled
console [ttyBF0] enabled
bootconsole [early_BFuart0] disabled
bootconsole [early_BFuart0] disabled
bootconsole [early_shadow0] disabled
brd: module loaded
libphy: bfin_mii_bus: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=bfin_mii_bus-0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)
bfin_mac bfin_mac.0 eth0: Blackfin on-chip Ethernet MAC driver, Version 1.1
rtc (null): invalid alarm value: 1900-1-1 0:0:0
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
bfin_wdt: initialized: timeout=20 sec (nowayout=0)
bfin-i2s bfin-i2s.0: dma rx:3 tx:4, err irq:45, regs:ffc00800
soc-audio soc-audio: ASoC: machine bfin-ssm2602 should use snd_soc_register_card()
dma_alloc_init: dma_page @ 0x02c03000 - 512 pages at 0x03e00000
soc-audio soc-audio: ssm2602-hifi <-> bfin-i2s.0 mapping ok
TCP: cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-01-01 18:59:39 UTC (68379)
IP-Config: Complete:
device=eth0, hwaddr=00:e0:22:fe:bf:96, ipaddr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174
host=bf537-stamp, domain=, nis-domain=(none)
bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=
ALSA device list:
#0: bfin-ssm2602
Freeing unused kernel memory: 4376K (0025c000 - 006a2000)

BusyBox v1.22.1 (2014-07-26 03:14:42 CST) hush - the humble shell

root:/>successful boot attempt ^[[6nifconfig ethbfin_mac bfin_mac.0 eth0: Link is Up - 100Mbps/Full - flow control rx/tx
0 10.100.4.50
root:/> ^[[6nEthernet may has been activated already!
random: nonblocking pool is initialized
version
kernel: Linux release 3.16.0-rc4-ADI-2014R1-pre-00390-gdcf9a64-dirty, build #2 Sat Jul 26 03:31:31 CST 2014
toolchain: /home/test/workspace/src/kernel/label/BF537-STAMP-SPINET/output/host/usr/bin/bfin-linux-uclibc-gcc release gcc version 4.3.5 (ADI-master/git-a2bfd7b)
user-dist: release git-919fac9, build #1 Sat Jul 26 03:27:25 CST 2014
root:/> ^[[6n
Linux version: 3.16.0-rc4-ADI-2014R1-pre-00390-gdcf9a64-dirty
GCC version: 4.3.5 (ADI-master/git-a2bfd7b)
user-dist version: git-919fac9

** STEP 3: Start testing

root:/> ^[[6namixer cget name='Capture Switch'
numid=8,iface=MIXER,name='Capture Switch'
; type=BOOLEAN,access=rw------,values=2
values=off,off
root:/> ^[[6namixer cset name='Capture Switch' on
numid=8,iface=MIXER,name='Capture Switch'
; type=BOOLEAN,access=rw------,values=2
values=on,on
root:/>
Case 1 ...PASS

Case 1 ...PASS
^[[6narecord -t wav -c 2 -f S16_LE -r 48000 -d 5 |aplay
Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
root:/>
Case 2 ...PASS

Case 2 ...PASS
^[[6ncat /proc/mounts
rootfs / rootfs rw 0 0
devtmpfs /dev devtmpfs rw,relatime,mode=0755 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
mdev /dev tmpfs rw,nosuid,relatime,mode=0755,size=10M 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,mode=600 0 0
var /var tmpfs rw,relatime 0 0
tmp /tmp tmpfs rw,nosuid,nodev,relatime,mode=777 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
root:/>
Case 3 ...PASS

Case 3 ...PASS
^[[6nls /sys/power
^[[0;0mpm_async^[[0m ^[[0;0mpm_freeze_timeout^[[0m ^[[0;0mstate^[[0m ^[[0;0mwakeup_count^[[0m
root:/> ^[
Case 4 ...PASS

Case 4 ...PASS
spawn /bin/bash
^[]0;test@uclinux52-BF537-ssm2603: ~/workspace/src/kernel/label/BF537-STAMP-SPINET/testsuites/power_audio^Gtest@uclinux52-BF537-ssm2603:~/workspace/src/kernel/label/BF537-STAMP-SPINET/testtsuites/power_audio$ su
Password:
^[]0;root@uclinux52-BF537-ssm2603: /home/test/workspace/src/kernel/label/BF537-STAMP-SPINET/testsuites/power_audio^Groot@uclinux52-BF537-ssm2603:/home/test/workspace/src/kernel/label/BF537-STAMP-SPPINET/testsuites/power_audio#
Case 5 ...PASS

Case 5 ...PASS
[6n
root:/> rtcwake -s 15 -m standby
wakeup from "standby" at Thu Jan 1 19:01:00 1970
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.000 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Suspending console(s) (use no_console_suspend to debug)
PM: suspend of devices complete after 493.868 msecs
PM: late suspend of devices complete after 0.263 msecs
PM: noirq suspend of devices complete after 0.334 msecs
PM: noirq resume of devices complete after 0.230 msecs
PM: early resume of devices complete after 0.239 msecs
PM: resume of devices complete after 0.900 msecs
Restarting tasks ... done.

Case 6 ...PASS

Case 6 ...PASS
root:/> ^[[6narecord -t wav -c 2 -f S32_LE -r 44100 -d 5 |aplay
Recording WAVE 'stdin' : Signed 32 bit Little Endian, Rate 44100 Hz, Stereo
Playing WAVE 'stdin' : Signed 32 bit Little Endian, Rate 44100 Hz, Stereo
soc-audio soc-audio: XRUN: , pos = 57917440, buffer size = 16384, period size = 1024
soc-audio soc-audio: XRUN: , pos = 57917440, buffer size = 16384, period size = 1024
soc-audio soc-audio: XRUN: , pos = 57917440, buffer size = 16384, period size = 1024
bfin_mac bfin_mac.0 eth0: Link is Down
bfin_mac bfin_mac.0 eth0: Link is Up - 100Mbps/Full - flow control rx/tx
--

Discussion

  • Sonic Zhang

    Sonic Zhang - 2014-08-01
    • assigned_to: Scott Jiang
    • Resolution: none --> assigned
     
  • Scott Jiang

    Scott Jiang - 2014-08-28
    • Resolution: assigned --> fixed
     
  • Scott Jiang

    Scott Jiang - 2014-08-28

    It's a regmap bug.

     
  • panmingquan

    panmingquan - 2014-09-11
    • Resolution: fixed --> under_debugging
     
  • panmingquan

    panmingquan - 2014-09-11

    check the latest audio_ssm2603_test_log, find that this case fail from time to time even after scott's commit :

    commit 0e65f87f8fd4364ea7eae01821e9ad740e8be69e
    Author: Mark Brown broonie@linaro.org
    Date: Thu Aug 28 14:37:05 2014 +0800

     

Log in to post a comment.

MongoDB Logo MongoDB