On Friday 04 February 2011 11:22:26 am Rajashekhara, Sudhakar wrote:
> Hi Steve,
> 
> On Thu, Jan 13, 2011 at 19:53:26, Steve Chen wrote:
> > Hello,
> >
> > Running latest Davinci git kernel.  I issued
> >
> >  # echo mem > /sys/power/state
> >
> > to put DA850 EVM in sleep mode.  I'm unable to wake up the processor
> > (tried UART, USB, or Ethernet).  Anyone knows how to bring the
> > processor back?
> 
> I am facing an issue while doing suspend/resume on latest DaVinci git
> kernel. I followed:
> 
> * Compiled using da8xx_omapl_defconfig.
> * Enabled CONFIG_PM and CONFIG_SUSPEND
> * booted the EVM using NFS
> * issued "echo mem > /sys/power/state"
> 
> At this stage I did not see any messages on the console. So I added
> "no_console_suspend" to bootargs and got the below error messages
> after issuing "echo mem > /sys/power/state":
> 
> ------------[ cut here ]------------
> WARNING: at drivers/net/davinci_emac.c:1040 emac_rx_handler+0xf0/0x110()
> Modules linked in:
> [<c002d81c>] (unwind_backtrace+0x0/0xec) from [<c003d0b4>]
>  (warn_slowpath_common+0x4c/0x64) [<c003d0b4>]
>  (warn_slowpath_common+0x4c/0x64) from [<c003d0e4>]
>  (warn_slowpath_null+0x18/0x1c) [<c003d0e4>] (warn_slowpath_null+0x18/0x1c)
>  from [<c01a7c08>] (emac_rx_handler+0xf0/0x110) [<c01a7c08>]
>  (emac_rx_handler+0xf0/0x110) from [<c01a87a4>]
>  (__cpdma_chan_free+0xb0/0xb4) [<c01a87a4>] (__cpdma_chan_free+0xb0/0xb4)
>  from [<c01a8ab8>] (cpdma_chan_stop+0x174/0x1d4) [<c01a8ab8>]
>  (cpdma_chan_stop+0x174/0x1d4) from [<c01a8b98>]
>  (cpdma_ctlr_stop+0x80/0xe4) [<c01a8b98>] (cpdma_ctlr_stop+0x80/0xe4) from
>  [<c01a72a8>] (emac_dev_stop+0xb0/0x168) [<c01a72a8>]
>  (emac_dev_stop+0xb0/0x168) from [<c01a7378>]
>  (davinci_emac_suspend+0x18/0x30) [<c01a7378>]
>  (davinci_emac_suspend+0x18/0x30) from [<c019d5ec>]
>  (platform_pm_suspend+0x30/0x5c) [<c019d5ec>]
>  (platform_pm_suspend+0x30/0x5c) from [<c019fdd4>] (pm_op+0x4c/0xac)
>  [<c019fdd4>] (pm_op+0x4c/0xac) from [<c01a0674>]
>  (__device_suspend+0xec/0x140) [<c01a0674>] (__device_suspend+0xec/0x140)
>  from [<c01a0934>] (dpm_suspend_start+0x26c/0x36c) [<c01a0934>]
>  (dpm_suspend_start+0x26c/0x36c) from [<c006cca0>]
>  (suspend_devices_and_enter+0x40/0x1ac) [<c006cca0>]
>  (suspend_devices_and_enter+0x40/0x1ac) from [<c006ceb0>]
>  (enter_state+0xa4/0xe0) [<c006ceb0>] (enter_state+0xa4/0xe0) from
>  [<c006c5d8>] (state_store+0x90/0xb8) [<c006c5d8>] (state_store+0x90/0xb8)
>  from [<c0159dc8>] (kobj_attr_store+0x18/0x1c) [<c0159dc8>]
>  (kobj_attr_store+0x18/0x1c) from [<c00e5dbc>]
>  (sysfs_write_file+0x108/0x140) [<c00e5dbc>] (sysfs_write_file+0x108/0x140)
>  from [<c009cc30>] (vfs_write+0xac/0x134) [<c009cc30>]
>  (vfs_write+0xac/0x134) from [<c009cd64>] (sys_write+0x3c/0x68)
>  [<c009cd64>] (sys_write+0x3c/0x68) from [<c0028f80>]
>  (ret_fast_syscall+0x0/0x2c) ---[ end trace febdd54cdf7fde9e ]---
> 
> I saw that you have mentioned that suspend/resume worked fine for you. Have
> you tried suspend/resume when using NFS root file system?
> 
> I have not enabled any drivers in menuconfig except for I2C, Watchdog, RTC
> and Ethernet.
> 

I cannot suspend/resume on DM6446 while ethernet is active. emac driver is not 
well behaving wrt to suspend. After shutting down eth interfaces(ifconfig eth0 
down) I can suspend/resume without any problem.

> emac_rx_handler() function was introduced by commit id
>  3ef0fdb2342cf58f617ce2bdcd133978629c2403. I have also cc'ed the author of
>  this commit, just in case he can help.
> 

I reverted that commit and results were the same. I don't think problem is 
introduced by new cpdma layer patches.

Regards,
Caglar 
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to