Re: PM: off mode

2009-07-20 Thread Roger Quadros

Roger Quadros wrote:

ext Roger Quadros wrote:

ext Kevin Hilman wrote:

Roger Quadros ext-roger.quad...@nokia.com writes:


ext Roger Quadros wrote:

ext Kevin Hilman wrote:

Roger Quadros ext-roger.quad...@nokia.com writes:


Hi Kevin,

 Off mode does not seem to work on RX51 on latest PM branch. I get a
reboot if I set enable_off_mode and sleep_while_idle and I wait for
timeout.

 Does it work on other platforms?


Yes, I tested on SDP, omap3evm, Beagle, Overo and RX51.

On RX51, I'm using omap3_pm_defconfig with the debug UART changed to
UART3 and things work fine here.

I using rootfs from latest fiasco image, and it drops me into an 
early
shell because /sbin/preinit fails in various ways. Note that I'm 
using

an S2.0 GP board.  Note also that I modified /sbin/preinit to launch
another getty on ttyS2 so I get a shell since newer kernels ignore 
the

ATAGs passed by nolo.

Below is a console log of my boot so you can see what is going on.
Because /sbin/preinit enables off-mode and sleep_while_idle, I just
let it boot and it seems to work.

Kevin


I am having S2.1 board and it does not work on that. It gets locked
up and restarts after idle timeout.
But I checked that it works on S2.0 board.

Any clue what could be the problem?

-roger
--
To unsubscribe from this list: send the line unsubscribe 
linux-omap in

the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Kevin,

I have some new observations.

It works only if we load the kernel via USB. Instead, if we flash the
kernel, it will not work even with S2.0 board. It boots to shell but
after sleep timeout (5 seconds) console gets locked up and it reboots
after a while.


Roger,

Does this happen even with the working defconfig you sent the other day?

Kevin


The config that i sent does not work with S2.0 hardware in either case.
It works with S2.1 hardware only in one case i.e. kernel load via USB. 
It does not work if kernel is flashed.
Also when my config is used on S2.1, core always remains in ON mode 
and never hits RET/OFF mode.


-roger


Kevin,

I just found out that it has nothing to do with kernel load via USB or 
not. I was using an initrd while USB load which used to change vdd1 OPP, 
that's why it was working.


So the final conclusion is, after boot to shell, if we change VDD1 OPP, 
then off mode works fine on my S2.0 HS board.

e.g.
echo 1  /sys/power/vdd1_opp
echo 1  /sys/power/sleep_while_idle
echo 1  /sys/power/enable_off_mode

It works on S2.1 board too except that garbage characters are printed on 
console after idle timeout.


Does this give any more clue to the problem?

-roger



Hi Kevin,

What compiler version do you use?


--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html






--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: PM: off mode

2009-07-20 Thread Kevin Hilman
Roger Quadros ext-roger.quad...@nokia.com writes:

 Roger Quadros wrote:
 ext Roger Quadros wrote:
 ext Kevin Hilman wrote:
 Roger Quadros ext-roger.quad...@nokia.com writes:

 ext Roger Quadros wrote:
 ext Kevin Hilman wrote:
 Roger Quadros ext-roger.quad...@nokia.com writes:

 Hi Kevin,

  Off mode does not seem to work on RX51 on latest PM branch. I get a
 reboot if I set enable_off_mode and sleep_while_idle and I wait for
 timeout.

  Does it work on other platforms?

 Yes, I tested on SDP, omap3evm, Beagle, Overo and RX51.

 On RX51, I'm using omap3_pm_defconfig with the debug UART changed to
 UART3 and things work fine here.

 I using rootfs from latest fiasco image, and it drops me into
 an early
 shell because /sbin/preinit fails in various ways. Note that
 I'm using
 an S2.0 GP board.  Note also that I modified /sbin/preinit to launch
 another getty on ttyS2 so I get a shell since newer kernels
 ignore the
 ATAGs passed by nolo.

 Below is a console log of my boot so you can see what is going on.
 Because /sbin/preinit enables off-mode and sleep_while_idle, I just
 let it boot and it seems to work.

 Kevin

 I am having S2.1 board and it does not work on that. It gets locked
 up and restarts after idle timeout.
 But I checked that it works on S2.0 board.

 Any clue what could be the problem?

 -roger
 -- 
 To unsubscribe from this list: send the line unsubscribe
 linux-omap in
 the body of a message to majord...@vger.kernel.org
 More majordomo info at  http://vger.kernel.org/majordomo-info.html

 Kevin,

 I have some new observations.

 It works only if we load the kernel via USB. Instead, if we flash the
 kernel, it will not work even with S2.0 board. It boots to shell but
 after sleep timeout (5 seconds) console gets locked up and it reboots
 after a while.

 Roger,

 Does this happen even with the working defconfig you sent the other day?

 Kevin

 The config that i sent does not work with S2.0 hardware in either case.
 It works with S2.1 hardware only in one case i.e. kernel load via
 USB. It does not work if kernel is flashed.
 Also when my config is used on S2.1, core always remains in ON mode
 and never hits RET/OFF mode.

 -roger

 Kevin,

 I just found out that it has nothing to do with kernel load via USB
 or not. I was using an initrd while USB load which used to change
 vdd1 OPP, that's why it was working.

 So the final conclusion is, after boot to shell, if we change VDD1
 OPP, then off mode works fine on my S2.0 HS board.
 e.g.
 echo 1  /sys/power/vdd1_opp
 echo 1  /sys/power/sleep_while_idle
 echo 1  /sys/power/enable_off_mode

 It works on S2.1 board too except that garbage characters are
 printed on console after idle timeout.

 Does this give any more clue to the problem?

 -roger


 Hi Kevin,

 What compiler version do you use?


I currely use CSL 2008q3, but am switching to 2009q1-161

Kevin
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: PM: off mode

2009-07-16 Thread Roger Quadros

ext Roger Quadros wrote:

ext Kevin Hilman wrote:

Roger Quadros ext-roger.quad...@nokia.com writes:


ext Roger Quadros wrote:

ext Kevin Hilman wrote:

Roger Quadros ext-roger.quad...@nokia.com writes:


Hi Kevin,

 Off mode does not seem to work on RX51 on latest PM branch. I get a
reboot if I set enable_off_mode and sleep_while_idle and I wait for
timeout.

 Does it work on other platforms?


Yes, I tested on SDP, omap3evm, Beagle, Overo and RX51.

On RX51, I'm using omap3_pm_defconfig with the debug UART changed to
UART3 and things work fine here.

I using rootfs from latest fiasco image, and it drops me into an early
shell because /sbin/preinit fails in various ways. Note that I'm using
an S2.0 GP board.  Note also that I modified /sbin/preinit to launch
another getty on ttyS2 so I get a shell since newer kernels ignore the
ATAGs passed by nolo.

Below is a console log of my boot so you can see what is going on.
Because /sbin/preinit enables off-mode and sleep_while_idle, I just
let it boot and it seems to work.

Kevin


I am having S2.1 board and it does not work on that. It gets locked
up and restarts after idle timeout.
But I checked that it works on S2.0 board.

Any clue what could be the problem?

-roger
--
To unsubscribe from this list: send the line unsubscribe 
linux-omap in

the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Kevin,

I have some new observations.

It works only if we load the kernel via USB. Instead, if we flash the
kernel, it will not work even with S2.0 board. It boots to shell but
after sleep timeout (5 seconds) console gets locked up and it reboots
after a while.


Roger,

Does this happen even with the working defconfig you sent the other day?

Kevin


The config that i sent does not work with S2.0 hardware in either case.
It works with S2.1 hardware only in one case i.e. kernel load via USB. 
It does not work if kernel is flashed.
Also when my config is used on S2.1, core always remains in ON mode and 
never hits RET/OFF mode.


-roger


Kevin,

I just found out that it has nothing to do with kernel load via USB or not. I 
was using an initrd while USB load which used to change vdd1 OPP, that's why it 
was working.


So the final conclusion is, after boot to shell, if we change VDD1 OPP, then off 
mode works fine on my S2.0 HS board.

e.g.
echo 1  /sys/power/vdd1_opp
echo 1  /sys/power/sleep_while_idle
echo 1  /sys/power/enable_off_mode

It works on S2.1 board too except that garbage characters are printed on console 
after idle timeout.


Does this give any more clue to the problem?

-roger


--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: PM: off mode

2009-07-15 Thread Roger Quadros

ext Kevin Hilman wrote:

Roger Quadros ext-roger.quad...@nokia.com writes:


Hi Kevin,

 Off mode does not seem to work on RX51 on latest PM branch. I get a
reboot if I set enable_off_mode and sleep_while_idle and I wait for
timeout.

 Does it work on other platforms?



Yes, I tested on SDP, omap3evm, Beagle, Overo and RX51.

On RX51, I'm using omap3_pm_defconfig with the debug UART changed to
UART3 and things work fine here.

I using rootfs from latest fiasco image, and it drops me into an early
shell because /sbin/preinit fails in various ways. Note that I'm using
an S2.0 GP board.  Note also that I modified /sbin/preinit to launch
another getty on ttyS2 so I get a shell since newer kernels ignore the
ATAGs passed by nolo.

Below is a console log of my boot so you can see what is going on.
Because /sbin/preinit enables off-mode and sleep_while_idle, I just
let it boot and it seems to work.

Kevin



I am having S2.1 board and it does not work on that. It gets locked up and 
restarts after idle timeout.

But I checked that it works on S2.0 board.

Any clue what could be the problem?

-roger
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: PM: off mode

2009-07-15 Thread Roger Quadros

ext Roger Quadros wrote:

ext Kevin Hilman wrote:

Roger Quadros ext-roger.quad...@nokia.com writes:


Hi Kevin,

 Off mode does not seem to work on RX51 on latest PM branch. I get a
reboot if I set enable_off_mode and sleep_while_idle and I wait for
timeout.

 Does it work on other platforms?



Yes, I tested on SDP, omap3evm, Beagle, Overo and RX51.

On RX51, I'm using omap3_pm_defconfig with the debug UART changed to
UART3 and things work fine here.

I using rootfs from latest fiasco image, and it drops me into an early
shell because /sbin/preinit fails in various ways. Note that I'm using
an S2.0 GP board.  Note also that I modified /sbin/preinit to launch
another getty on ttyS2 so I get a shell since newer kernels ignore the
ATAGs passed by nolo.

Below is a console log of my boot so you can see what is going on.
Because /sbin/preinit enables off-mode and sleep_while_idle, I just
let it boot and it seems to work.

Kevin



I am having S2.1 board and it does not work on that. It gets locked up 
and restarts after idle timeout.

But I checked that it works on S2.0 board.

Any clue what could be the problem?

-roger
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



Kevin,

I have some new observations.

It works only if we load the kernel via USB. Instead, if we flash the kernel, it 
will not work even with S2.0 board. It boots to shell but after sleep timeout (5 
seconds) console gets locked up and it reboots after a while.


Can you please verify this?

-roger
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: PM: off mode

2009-07-15 Thread Kevin Hilman
Roger Quadros ext-roger.quad...@nokia.com writes:

 ext Roger Quadros wrote:
 ext Kevin Hilman wrote:
 Roger Quadros ext-roger.quad...@nokia.com writes:

 Hi Kevin,

  Off mode does not seem to work on RX51 on latest PM branch. I get a
 reboot if I set enable_off_mode and sleep_while_idle and I wait for
 timeout.

  Does it work on other platforms?


 Yes, I tested on SDP, omap3evm, Beagle, Overo and RX51.

 On RX51, I'm using omap3_pm_defconfig with the debug UART changed to
 UART3 and things work fine here.

 I using rootfs from latest fiasco image, and it drops me into an early
 shell because /sbin/preinit fails in various ways. Note that I'm using
 an S2.0 GP board.  Note also that I modified /sbin/preinit to launch
 another getty on ttyS2 so I get a shell since newer kernels ignore the
 ATAGs passed by nolo.

 Below is a console log of my boot so you can see what is going on.
 Because /sbin/preinit enables off-mode and sleep_while_idle, I just
 let it boot and it seems to work.

 Kevin


 I am having S2.1 board and it does not work on that. It gets locked
 up and restarts after idle timeout.
 But I checked that it works on S2.0 board.

 Any clue what could be the problem?

 -roger
 -- 
 To unsubscribe from this list: send the line unsubscribe linux-omap in
 the body of a message to majord...@vger.kernel.org
 More majordomo info at  http://vger.kernel.org/majordomo-info.html


 Kevin,

 I have some new observations.

 It works only if we load the kernel via USB. Instead, if we flash the
 kernel, it will not work even with S2.0 board. It boots to shell but
 after sleep timeout (5 seconds) console gets locked up and it reboots
 after a while.

Roger,

Does this happen even with the working defconfig you sent the other day?

Kevin
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: PM: off mode

2009-07-15 Thread Roger Quadros

ext Kevin Hilman wrote:

Roger Quadros ext-roger.quad...@nokia.com writes:


ext Roger Quadros wrote:

ext Kevin Hilman wrote:

Roger Quadros ext-roger.quad...@nokia.com writes:


Hi Kevin,

 Off mode does not seem to work on RX51 on latest PM branch. I get a
reboot if I set enable_off_mode and sleep_while_idle and I wait for
timeout.

 Does it work on other platforms?


Yes, I tested on SDP, omap3evm, Beagle, Overo and RX51.

On RX51, I'm using omap3_pm_defconfig with the debug UART changed to
UART3 and things work fine here.

I using rootfs from latest fiasco image, and it drops me into an early
shell because /sbin/preinit fails in various ways. Note that I'm using
an S2.0 GP board.  Note also that I modified /sbin/preinit to launch
another getty on ttyS2 so I get a shell since newer kernels ignore the
ATAGs passed by nolo.

Below is a console log of my boot so you can see what is going on.
Because /sbin/preinit enables off-mode and sleep_while_idle, I just
let it boot and it seems to work.

Kevin


I am having S2.1 board and it does not work on that. It gets locked
up and restarts after idle timeout.
But I checked that it works on S2.0 board.

Any clue what could be the problem?

-roger
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Kevin,

I have some new observations.

It works only if we load the kernel via USB. Instead, if we flash the
kernel, it will not work even with S2.0 board. It boots to shell but
after sleep timeout (5 seconds) console gets locked up and it reboots
after a while.


Roger,

Does this happen even with the working defconfig you sent the other day?

Kevin


The config that i sent does not work with S2.0 hardware in either case.
It works with S2.1 hardware only in one case i.e. kernel load via USB. It does 
not work if kernel is flashed.
Also when my config is used on S2.1, core always remains in ON mode and never 
hits RET/OFF mode.


-roger
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: PM: off mode

2009-07-14 Thread Roger Quadros

Roger Quadros wrote:

Hi Kevin,

 Off mode does not seem to work on RX51 on latest PM branch. I get a 
reboot if I set enable_off_mode and sleep_while_idle and I wait for 
timeout.


 Does it work on other platforms?

regards,
-roger



It works with the attached config though.

-roger
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.30-omap1
# Tue Jul 14 15:56:21 2009
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_GENERIC_GPIO=y
CONFIG_GENERIC_TIME=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_MMU=y
# CONFIG_NO_IOPORT is not set
CONFIG_GENERIC_HARDIRQS=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
CONFIG_HARDIRQS_SW_RESEND=y
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_RWSEM_GENERIC_SPINLOCK=y
# CONFIG_ARCH_HAS_ILOG2_U32 is not set
# CONFIG_ARCH_HAS_ILOG2_U64 is not set
CONFIG_GENERIC_HWEIGHT=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y
CONFIG_VECTORS_BASE=0x
CONFIG_DEFCONFIG_LIST=/lib/modules/$UNAME_RELEASE/.config

#
# General setup
#
CONFIG_EXPERIMENTAL=y
CONFIG_BROKEN_ON_SMP=y
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_LOCALVERSION=
CONFIG_LOCALVERSION_AUTO=y
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_SYSVIPC_SYSCTL=y
CONFIG_POSIX_MQUEUE=y
CONFIG_POSIX_MQUEUE_SYSCTL=y
CONFIG_BSD_PROCESS_ACCT=y
# CONFIG_BSD_PROCESS_ACCT_V3 is not set
# CONFIG_TASKSTATS is not set
# CONFIG_AUDIT is not set

#
# RCU Subsystem
#
CONFIG_CLASSIC_RCU=y
# CONFIG_TREE_RCU is not set
# CONFIG_PREEMPT_RCU is not set
# CONFIG_TREE_RCU_TRACE is not set
# CONFIG_PREEMPT_RCU_TRACE is not set
# CONFIG_IKCONFIG is not set
CONFIG_LOG_BUF_SHIFT=17
CONFIG_GROUP_SCHED=y
CONFIG_FAIR_GROUP_SCHED=y
# CONFIG_RT_GROUP_SCHED is not set
CONFIG_USER_SCHED=y
# CONFIG_CGROUP_SCHED is not set
# CONFIG_CGROUPS is not set
CONFIG_SYSFS_DEPRECATED=y
CONFIG_SYSFS_DEPRECATED_V2=y
# CONFIG_RELAY is not set
# CONFIG_NAMESPACES is not set
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=
CONFIG_RD_GZIP=y
# CONFIG_RD_BZIP2 is not set
# CONFIG_RD_LZMA is not set
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
CONFIG_SYSCTL=y
CONFIG_ANON_INODES=y
CONFIG_EMBEDDED=y
CONFIG_UID16=y
# CONFIG_SYSCTL_SYSCALL is not set
CONFIG_KALLSYMS=y
CONFIG_KALLSYMS_ALL=y
CONFIG_KALLSYMS_EXTRA_PASS=y
# CONFIG_STRIP_ASM_SYMS is not set
CONFIG_HOTPLUG=y
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_BASE_FULL=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_SIGNALFD=y
CONFIG_TIMERFD=y
CONFIG_EVENTFD=y
CONFIG_SHMEM=y
CONFIG_AIO=y
CONFIG_VM_EVENT_COUNTERS=y
CONFIG_COMPAT_BRK=y
CONFIG_SLAB=y
# CONFIG_SLUB is not set
# CONFIG_SLOB is not set
# CONFIG_PROFILING is not set
# CONFIG_MARKERS is not set
CONFIG_HAVE_OPROFILE=y
CONFIG_KPROBES=y
CONFIG_KRETPROBES=y
CONFIG_HAVE_KPROBES=y
CONFIG_HAVE_KRETPROBES=y
CONFIG_HAVE_CLK=y
# CONFIG_SLOW_WORK is not set
CONFIG_HAVE_GENERIC_DMA_COHERENT=y
CONFIG_SLABINFO=y
CONFIG_RT_MUTEXES=y
CONFIG_BASE_SMALL=0
CONFIG_MODULES=y
CONFIG_MODULE_FORCE_LOAD=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
CONFIG_MODVERSIONS=y
CONFIG_MODULE_SRCVERSION_ALL=y
CONFIG_BLOCK=y
# CONFIG_LBD is not set
# CONFIG_BLK_DEV_BSG is not set
# CONFIG_BLK_DEV_INTEGRITY is not set

#
# IO Schedulers
#
CONFIG_IOSCHED_NOOP=y
# CONFIG_IOSCHED_AS is not set
# CONFIG_IOSCHED_DEADLINE is not set
CONFIG_IOSCHED_CFQ=y
# CONFIG_DEFAULT_AS is not set
# CONFIG_DEFAULT_DEADLINE is not set
CONFIG_DEFAULT_CFQ=y
# CONFIG_DEFAULT_NOOP is not set
CONFIG_DEFAULT_IOSCHED=cfq
CONFIG_FREEZER=y

#
# System Type
#
# CONFIG_ARCH_AAEC2000 is not set
# CONFIG_ARCH_INTEGRATOR is not set
# CONFIG_ARCH_REALVIEW is not set
# CONFIG_ARCH_VERSATILE is not set
# CONFIG_ARCH_AT91 is not set
# CONFIG_ARCH_CLPS711X is not set
# CONFIG_ARCH_EBSA110 is not set
# CONFIG_ARCH_EP93XX is not set
# CONFIG_ARCH_GEMINI is not set
# CONFIG_ARCH_FOOTBRIDGE is not set
# CONFIG_ARCH_NETX is not set
# CONFIG_ARCH_H720X is not set
# CONFIG_ARCH_IMX is not set
# CONFIG_ARCH_IOP13XX is not set
# CONFIG_ARCH_IOP32X is not set
# CONFIG_ARCH_IOP33X is not set
# CONFIG_ARCH_IXP23XX is not set
# CONFIG_ARCH_IXP2000 is not set
# CONFIG_ARCH_IXP4XX is not set
# CONFIG_ARCH_L7200 is not set
# CONFIG_ARCH_KIRKWOOD is not set
# CONFIG_ARCH_KS8695 is not set
# CONFIG_ARCH_NS9XXX is not set
# CONFIG_ARCH_LOKI is not set
# CONFIG_ARCH_MV78XX0 is not set
# CONFIG_ARCH_MXC is not set
# CONFIG_ARCH_ORION5X is not set
# CONFIG_ARCH_PNX4008 is not set
# CONFIG_ARCH_PXA is not set
# CONFIG_ARCH_MMP is not set
# CONFIG_ARCH_RPC is not set
# CONFIG_ARCH_SA1100 is not set
# CONFIG_ARCH_S3C2410 is not set
# CONFIG_ARCH_S3C64XX is not set
# CONFIG_ARCH_SHARK is not set
# CONFIG_ARCH_LH7A40X is not set
# CONFIG_ARCH_DAVINCI is not set
CONFIG_ARCH_OMAP=y
# CONFIG_ARCH_MSM is not set
# CONFIG_ARCH_W90X900 is not set

#
# TI OMAP Implementations
#
CONFIG_ARCH_OMAP_OTG=y
# CONFIG_ARCH_OMAP1 is not set
# CONFIG_ARCH_OMAP2 is not set
CONFIG_ARCH_OMAP3=y
# CONFIG_ARCH_OMAP4 is not set

#
# OMAP Feature Selections
#
# CONFIG_OMAP_DEBUG_POWERDOMAIN is not set
# 

Re: PM: off mode

2009-07-14 Thread Kevin Hilman
Roger Quadros ext-roger.quad...@nokia.com writes:

 Hi Kevin,

  Off mode does not seem to work on RX51 on latest PM branch. I get a
 reboot if I set enable_off_mode and sleep_while_idle and I wait for
 timeout.

  Does it work on other platforms?


Yes, I tested on SDP, omap3evm, Beagle, Overo and RX51.

On RX51, I'm using omap3_pm_defconfig with the debug UART changed to
UART3 and things work fine here.

I using rootfs from latest fiasco image, and it drops me into an early
shell because /sbin/preinit fails in various ways. Note that I'm using
an S2.0 GP board.  Note also that I modified /sbin/preinit to launch
another getty on ttyS2 so I get a shell since newer kernels ignore the
ATAGs passed by nolo.

Below is a console log of my boot so you can see what is going on.
Because /sbin/preinit enables off-mode and sleep_while_idle, I just
let it boot and it seems to work.

Kevin


40VNOLO X-Loader (v1.4.1, Mar 25 2009)
Secondary image size 94388
Booting secondary
[   0.001] Nokia OMAP Loader v1.4.1 (Mar 25 2009) running on Nokia N00 S2.0 
(RX-51)
[   0.011] I2C v3.12
[   0.016] System DMA v4.0
[   0.020] OneNAND device ID 0040, version ID 0121 (256 MiB, 66 MHz)
[   0.054]   OneNAND blocks unlocked in 28034 us
[   0.059]   Flash id: ec4021
[   0.073] Partition table successfully read
[   0.081] Forcing power key boot reason (RD flag set)
[   0.086] Reset reason: pwr_key
[   0.089] McSPI v2.1
[   0.092] LP5523 found at I2C bus 2, address 0x32
[   0.099] SMB138C: Not loading driver (version reg. 0x4a)
[   0.104] BQ24150 (rev. 2) found on I2C bus 1, address 0x6b
[   0.110] SSI version 1.0
[   0.116] Battery voltage 3.668 V, BSI: 56
[   0.122] Disabling charging (no battery present)
[   0.128] Initializing LCD panel
[   0.131]   Detecting LCD panel moscow
[   0.135] Panel ID: 298b5c
[   0.138]   Detected LCD panel: l4f00311
[   0.142] DISPC: version 3.0
[   0.147]   LCD pixel clock 19200 kHz
[   0.178]   Logo drawn in 5 ms (11700 kB/s)
[   0.286] Initializing USB
[   0.290]   USB host detected
[   0.293]   Entering USB loop
[   0.345] USB suspend signaling detected
[   0.497] USB reset received
[   0.569] SETUP: RD STD DEVICEGET_DESCRIPTOR DEVICE (value 00, index 
, length 64 bytes)
[   0.583] USB reset received
[   0.653] SETUP: WR STD DEVICESET_ADDRESSvalue 002d index  
length 
[   0.680] SETUP: RD STD DEVICEGET_DESCRIPTOR DEVICE (value 00, index 
, length 18 bytes)
[   0.689] SETUP: RD STD DEVICEGET_DESCRIPTOR CONFIGURATION (value 00, 
index , length 9 bytes)
[   0.700] SETUP: RD STD DEVICEGET_DESCRIPTOR CONFIGURATION (value 00, 
index , length 94 bytes)
[   0.710] SETUP: RD STD DEVICEGET_DESCRIPTOR STRING (value 00, index 
, length 255 bytes)
[   0.720] SETUP: RD STD DEVICEGET_DESCRIPTOR STRING (value 02, index 
0409, length 255 bytes)
[   0.730] SETUP: RD STD DEVICEGET_DESCRIPTOR STRING (value 01, index 
0409, length 255 bytes)
[   0.741] SETUP: WR STD DEVICESET_CONFIGURATION  value 0001 index  
length 
[   0.749] SETUP: RD STD DEVICEGET_DESCRIPTOR STRING (value 03, index 
0409, length 255 bytes)
[   0.760] SETUP: RD STD DEVICEGET_DESCRIPTOR STRING (value 04, index 
0409, length 255 bytes)
[   0.774] SETUP: RD STD DEVICEGET_DESCRIPTOR STRING (value 04, index 
0409, length 255 bytes)
[   0.787] SETUP: RD STD DEVICEGET_DESCRIPTOR STRING (value 04, index 
0409, length 255 bytes)
[   0.801] SETUP: WR STD INTERFACE SET_INTERFACE  value 0001 index 0002 
length 
[   0.809] Flashing interface selected
[   0.813] SETUP: RD STD DEVICEGET_DESCRIPTOR STRING (value 04, index 
0409, length 255 bytes)
[   0.823] SETUP: RD VND DEVICEreq 01 value  index  length 0004
[   0.830] Flashing mode entered
[   0.833] SETUP: RD VND DEVICEreq 01 value  index  length 0004
[   0.840] SETUP: RD VND DEVICEreq 04 value  index  length 0200
[   0.848] SETUP: RD VND DEVICEreq 03 value  index  length 0004
[   0.856] SETUP: WR VND DEVICEreq 12 value  index  length 0012
[   0.864] SETUP: RD VND DEVICEreq 14 value  index  length 0200
[   0.872] SETUP: WR VND DEVICEreq 42 value  index  length 001b
[   0.879] Receiving kernel (length 1822976)
[   0.941] Image successfully received
[   1.042] SETUP: WR VND DEVICEreq 82 value  index  length 0092
[   1.050] SETUP: WR STD INTERFACE SET_INTERFACE  value  index 0002 
length 
[   1.100] Boot requested (normal mode)
Kernel command line: init=/sbin/preinit ubi.mtd=rootfs root=ubi0:rootfs 
rootfstype=ubifs rootflags=bulk_read,no_chk_data_crc rw console=ttyMTD,log 
console=ttyS2,115200
[   1.120] Serial console disabled
Uncompressing 
Linux...
 done, booting the kernel.
Linux version