Re: cpuidle and NO_HZ

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sanjeev,

On Thu, Jan 22, 2009 at 8:14 PM, Premi, Sanjeev <premi@xxxxxx> wrote:
> Hi all,
>
> While trying to use NFS hosted filesystem, I have made a strange observation. Have verified it on multiple OMAP3EVM boards.
>
> With CONFIG_NO_HZ and CONFIG_CPU_IDLE, after the print "Freeing init memory: 152K" in the log below; the boot sequence almost stops for approx a minute before proceeding further.
>
>   Sending DHCP requests .<6>eth0: link up, 100Mbps, full-duplex, lpa 0x01E1
>   ., OK
>   IP-Config: Got DHCP answer from 0.0.0.0, my address is 192.168.1.9
>   IP-Config: Complete:
>     device=eth0, addr=192.168.1.9, mask=255.255.255.0, gw=192.168.1.9,
>     host=192.168.1.9, domain=india.ti.com, nis-domain=(none),
>     bootserver=0.0.0.0, rootserver=192.168.1.2, rootpath=
>   Looking up port of RPC 100003/2 on 192.168.1.2
>   Looking up port of RPC 100005/1 on 192.168.1.2
>   VFS: Mounted root (nfs filesystem).
>   Freeing init memory: 152K
>   init started: BusyBox v1.11.1 (2008-08-06 21:12:30 IST)
>   starting pid 442, tty '': '/etc/init.d/rcS'
>

This seems to be a wakeup issue. SMC gpio irq needs to be enabled as a
wakeup source.
I notice that sometimes even after enabling it as a wakeup source
network interface has trouble. either it is too slow or it just hangs
during nfs mount or takes a long time to mount. this issue could be
somewhere else

I also notice that the whenever network interface hangs during nfs mount.
the nfs server would have exited.



Regards,
sriram







> Later, the system response is slow.
>
> Toggling either of these CONFIG options seems to resolve the issue.
>
> My initial suspicion was on the SMC911x driver, but during this 'wait' period ping requests to the EVM are successful.
>
> Just wanted to check if anyone has seen this behavior.
> (I am on Kevin's latest PM branch 998bd5675a1e...).
>
> Best regards,
> Sanjeev
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
From 0261fa7b7c006e649319ac02907abe35c6aa7a11 Mon Sep 17 00:00:00 2001
From: Sriram V <vsriram@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 22 Jan 2009 22:27:29 +0530
Subject: [PATCH] PM: OMAP3EVM: enable smc irq gpio as a wakeup source

Signed-off-by: Sriram V <vsriram@xxxxxxxxxxxxxxxxxxxx>
---
 arch/arm/mach-omap2/board-omap3evm.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c
index 6fbbe95..3eb8b60 100644
--- a/arch/arm/mach-omap2/board-omap3evm.c
+++ b/arch/arm/mach-omap2/board-omap3evm.c
@@ -19,6 +19,7 @@
 #include <linux/err.h>
 #include <linux/clk.h>
 #include <linux/input.h>
+#include <linux/interrupt.h>
 
 #include <linux/spi/spi.h>
 #include <linux/spi/ads7846.h>
@@ -83,6 +84,10 @@ static inline void __init omap3evm_init_smc911x(void)
 	}
 
 	gpio_direction_input(OMAP3EVM_ETHR_GPIO_IRQ);
+
+#ifdef CONFIG_PM
+	enable_irq_wake(gpio_to_irq(OMAP3EVM_ETHR_GPIO_IRQ));
+#endif
 }
 
 static struct omap_uart_config omap3_evm_uart_config __initdata = {
-- 
1.6.1


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux