S3C6410 power management support status
Hi.
Can anybody explain current status of S3C6410 power management support in mainline? Suspend-to-RAM looks completely broken in the current Linus's git tree.
Signature · 5 lines
Yauhen Kharuzhy jekhor _at_ gmail.com JID: jek at jabber.ru A: No Q: Should I quote below my post?
hi,Sir.Please fix VFP Bug,who is exsited in Samsung 2.6.24.2 BSP relative.
arch/arm/kerne/entry-armv.S (2.6.24.2 BSP)
B.R
Tommy
2010/4/29 Yauhen Kharuzhy <[email protected]>
Quoted 19 lines
Hi.
Can anybody explain current status of S3C6410 power management support in mainline? Suspend-to-RAM looks completely broken in the current Linus's git tree.
--
Yauhen Kharuzhy jekhor _at_ gmail.com
JID: jek at jabber.ruA: No
Q: Should I quote below my post?_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Signature · 12 lines
concentrate for work && keep calm and carry on,Achievement provides the only real pleasure in life! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100429/d63a4be0/attachment-0001.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: entry-armv.S Type: application/octet-stream Size: 27895 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100429/d63a4be0/attachment-0001.obj>
Quoted 3 lines · tommy.hong
hi,Sir.Please fix VFP Bug,who is exsited in Samsung 2.6.24.2 BSP relative.
arch/arm/kerne/entry-armv.S(2.6.24.2 BSP)
This isn't the samsung-inhouse kernel support list. I don't think many people here actually care about non-mainline kernels.
Secondly, please don't tag new threads onto previous postings about a different subject.
Signature · 4 lines
Ben Q: What's a light-year? A: One-third less calories than a regular year.
Quoted 3 lines · Yauhen Kharuzhy
Can anybody explain current status of S3C6410 power management support in mainline? Suspend-to-RAM looks completely broken in the current Linus's git tree.
What problems are you experiencing?
Quoted 7 lines · Mark Brown
Quoted 3 lines · Yauhen Kharuzhy
Can anybody explain current status of S3C6410 power management support in mainline? Suspend-to-RAM looks completely broken in the current Linus's git tree.
What problems are you experiencing?
1. I enabled RTC driver for S3C6410 (it is cannot be enabled without modification of Kconfig) and CONFIG_SUSPEND.
2. echo +10 > /sys/class/rtc0/wakealarm && echo mem > /sys/power/state.
System didn't go to sleep with messages:
---s3c_pm_enter(3)s3c_pm_enter: No wake-up sources!s3c_pm_enter: Aborting sleep
---
This is caused by following code:
---
#define any_allowed(mask, allow) (((mask) & (allow)) != (allow))
if (!any_allowed(s3c_irqwake_intmask, s3c_irqwake_intallow) &&
!any_allowed(s3c_irqwake_eintmask, s3c_irqwake_eintallow)) {
printk(KERN_ERR "%s: No wake-up sources!\n", __func__);
printk(KERN_ERR "%s: Aborting sleep\n", __func__);
return -EINVAL;
}---
But s3c_irqwake_intallow is defined in arch/arm/mach-s3c64xx/include/mach/pm-core.h
---
/* make these defines, we currently do not have any need to change
* the IRQ wake controls depending on the CPU we are running on */
#define s3c_irqwake_eintallow ((1 << 28) - 1)
#define s3c_irqwake_intallow (0)
---
Signature · 10 lines
Yauhen Kharuzhy ----------------------------------------------------------- Promwad Innovation Company 22, Olshevskogo St. Office 809 220073, Minsk, Belarus Phone/Fax: +375 (17) 312-1246 E-mail: [email protected] Skype: jekhor Web: www.promwad.com
Quoted 13 lines · Yauhen Kharuzhy
Quoted 7 lines · Mark Brown
Quoted 3 lines · Yauhen Kharuzhy
Can anybody explain current status of S3C6410 power management support in mainline? Suspend-to-RAM looks completely broken in the current Linus's git tree.
What problems are you experiencing?
1. I enabled RTC driver for S3C6410 (it is cannot be enabled without modification of
Kconfig) andCONFIG_SUSPEND.
2. echo +10 >/sys/class/rtc0/wakealarm&& echo mem >/sys/power/state.
Quoted 7 lines
System didn't go to sleep with messages:
---
s3c_pm_enter(3)s3c_pm_enter: No wake-up sources!s3c_pm_enter: Aborting sleep
---
Ok, this is interesting, the system shouldn't have allowed the RTC as a wakeup soruce as the core currently doesn't deal with 64XX non-EINT sources. However, at-least the core code did the right thing and refused to go to sleep.
I will look into the RTC/non-EINT wakeup sources for these SoCs today and see if the changes are easy enough to make.
Quoted 14 lines
This is caused by following code:
---
#defineany_allowed(mask, allow)(((mask) & (allow)) != (allow))if (!any_allowed(s3c_irqwake_intmask, s3c_irqwake_intallow) && !any_allowed(s3c_irqwake_eintmask, s3c_irqwake_eintallow)) { printk(KERN_ERR "%s: No wake-up sources!\n", __func__); printk(KERN_ERR "%s: Aborting sleep\n", __func__); return -EINVAL; }---
But
s3c_irqwake_intallowis defined inarch/arm/mach-s3c64xx/include/mach/pm-core.h
Quoted 7 lines
---
/* make these defines, we currently do not have any need to change
* the IRQ wake controls depending on the CPU we are running on */#define
s3c_irqwake_eintallow((1 << 28) - 1)
#defines3c_irqwake_intallow(0)
---
They'll get changed once we have support for the non-eint sources.
Signature · 4 lines
Ben Q: What's a light-year? A: One-third less calories than a regular year.
Quoted 5 lines · Yauhen Kharuzhy
Hi.
Can anybody explain current status of S3C6410 power management support in mainline? Suspend-to-RAM looks completely broken in the current Linus's git tree.
I'd prefer if you didn't make sweeping accusations about the state of a given piece of the kernel without having a good look first. From reading your second post, it seems that what is actually the problem is that the 64XX support only currently handles wakeup configurations from the EINT pins.
Signature · 4 lines
Ben Q: What's a light-year? A: One-third less calories than a regular year.
Quoted 7 lines · Ben Dooks
Quoted 5 lines · Yauhen Kharuzhy
Hi.
Can anybody explain current status of S3C6410 power management support in mainline? Suspend-to-RAM looks completely broken in the current Linus's git tree.
Quoted 5 lines
I'd prefer if you didn't make sweeping accusations about the state of a given piece of the kernel without having a good look first. From reading your second post, it seems that what is actually the problem is that the 64XX support only currently handles wakeup configurations from the EINT pins.
I am sorry for my hasty opinion about StR.
But we have checked Suspend-to-RAM at our (custom, not SMDK) board just now and it is not works with EINT too. Kernel goes to sleep and never return. We found that XPWRRGTON pin isn't
changed at sleep instruction execution so CPU don't go to sleep state. If anybody can say something about reasons of this, please say.
Can anybody check suspend mode with SMDK6410 and confirm that StR works on it? If it works, we will stop to ask stupid questions and will find our hardware bugs :)
Below is log of sleeping procedure:
-----------------------------------------------------------------------/sys/power # echo mem > states3c64xx_irq_pm_suspend: suspending IRQs
saved f4500280 value 000003ff
saved f4500900 value 00400000
saved f4500904 value 00000000
saved f4500910 value 00000000
saved f4500914 value 00000000
saved f4500918 value 00000000
saved f450091c value 00000000
saved f4500920 value 0ffff7ff
saved f4300044 value 00000210s3c_pm_enter(3)
s3c_sleep_save_phys=0x503cac18
GPA: save 00000000,22222222,0000007a,00002955
GPB: save 00000000,02212222,0000007b,00002955
GPC: save 00000000,11331000,00000010,00005055
GPD: save 00000000,00000000,00000000,00000155
GPE: save 00000000,00000000,00000000,00000155
GPF: save 50000000,00008000,55555555,00000000
GPG: save 00000000,03222222,0000003e,00002000
GPH: save 33222222,00000033,000003fe,00000000
GPI: save aaaaaaaa,00000000,00000000,00000000
GPJ: save 00aaaaaa,00000f00,00000000,00000000
GPK: save 22222222,22222222,00000000,55555555
GPL: save 12121122,02222211,0000038c,15555555
GPM: save 00000000,00222222,0000001f,000002aa
GPN: save 55940454,0000f81a,55955555,00000000
GPO: save aaaaaaaa,0000003f,00000000,00000000
GPP: save 2aaaaaaa,000038e7,1011aaa0,00000000
GPQ: save 0002aaaa,00000018,00000000,00000000 UART[0]: ULCON=0007, UCON=0785, UFCON=0011, UBRDIV=0000 UART[1]: ULCON=002b, UCON=0385, UFCON=0011, UBRDIV=0003 UART[2]: ULCON=0003, UCON=0385, UFCON=0011, UBRDIV=001f UART[3]: ULCON=0007, UCON=0785, UFCON=0011, UBRDIV=0000 saved f4100100 value 04000000
saved f4100104 value 00000000
saved f4100108 value 00000000
saved f45001a0 value ffcd1501
saved f45001b0 value 00000000
saved f45001b4 value 00000000
saved f45001c0 value 00000000
saved f45001c4 value 00000000
saved f45001c8 value 00000000
saved f4100000 value 0000ffff
saved f4100004 value 0000ffff
saved f4100008 value 0000ffff
saved f410001c value 00000007
saved f4100020 value 01043310
saved f4100024 value 00000000
saved f4100028 value 00000000
saved f410002c value 00000000
saved f4100030 value fffffff7
saved f4100034 value fb9e6fff
saved f4100038 value c73fffff
saved f410003c value ffffffff
saved f4100018 value 00000000
saved f4100014 value 00200203
saved f45001d0 value 10555551
saved f45001d4 value 00555555
sleep: irq wakeup masks: ffffffff,fffff7ff
------------------------------------------------------------------------------
Signature · 10 lines
Yauhen Kharuzhy ----------------------------------------------------------- Promwad Innovation Company 22, Olshevskogo St. Office 809 220073, Minsk, Belarus Phone/Fax: +375 (17) 312-1246 E-mail: yauhen.kharuzhy at promwad.com Skype: jekhor Web: www.promwad.com
Quoted 14 lines · Yauhen Kharuzhy
Quoted 7 lines · Ben Dooks
Quoted 5 lines · Yauhen Kharuzhy
Hi.
Can anybody explain current status of S3C6410 power management support in mainline? Suspend-to-RAM looks completely broken in the current Linus's git tree.
Quoted 5 lines
I'd prefer if you didn't make sweeping accusations about the state of a given piece of the kernel without having a good look first. From reading your second post, it seems that what is actually the problem is that the 64XX support only currently handles wakeup configurations from the EINT pins.
Quoted 7 lines
I am sorry for my hasty opinion about StR.
But we have checked Suspend-to-RAM at our (custom, not SMDK) board just now and it is not works with EINT too. Kernel goes to sleep and never return. We found that XPWRRGTON pin isn't
changed at sleep instruction execution so CPU don't go to sleep state. If anybody can say something about reasons of this, please say.
Hmm, this is interesting if as your log says it should have managed to get through to the point it wants to go to sleep.
Quoted 3 lines
Can anybody check suspend mode with SMDK6410 and confirm that StR works on it? If it works, we will stop to ask stupid questions and will find our hardware bugs :)
I'll run the latest -rc through a smdk6410 today and see what happens.
It worked last tiem it was tested, but that was a couple of kernel revisions ago and something may have gotten borked since then.
Quoted 62 lines
Below is log of sleeping procedure:
-----------------------------------------------------------------------/sys/power# echo mem > states3c64xx_irq_pm_suspend: suspending IRQs
savedf4500280value000003ff
savedf4500900value 00400000
savedf4500904value 00000000
savedf4500910value 00000000
savedf4500914value 00000000
savedf4500918value 00000000
savedf450091cvalue 00000000
savedf4500920value0ffff7ff
savedf4300044value 00000210s3c_pm_enter(3)
s3c_sleep_save_phys=0x503cac18
GPA: save 00000000,22222222,0000007a,00002955
GPB: save 00000000,02212222,0000007b,00002955
GPC: save 00000000,11331000,00000010,00005055
GPD: save 00000000,00000000,00000000,00000155
GPE: save 00000000,00000000,00000000,00000155
GPF: save 50000000,00008000,55555555,00000000
GPG: save 00000000,03222222,0000003e,00002000
GPH: save 33222222,00000033,000003fe,00000000
GPI: save aaaaaaaa,00000000,00000000,00000000
GPJ: save 00aaaaaa,00000f00,00000000,00000000
GPK: save 22222222,22222222,00000000,55555555
GPL: save 12121122,02222211,0000038c,15555555
GPM: save 00000000,00222222,0000001f,000002aa
GPN: save 55940454,0000f81a,55955555,00000000
GPO: save aaaaaaaa,0000003f,00000000,00000000
GPP: save 2aaaaaaa,000038e7,1011aaa0,00000000
GPQ: save 0002aaaa,00000018,00000000,00000000 UART[0]: ULCON=0007, UCON=0785, UFCON=0011, UBRDIV=0000 UART[1]: ULCON=002b, UCON=0385, UFCON=0011, UBRDIV=0003 UART[2]: ULCON=0003, UCON=0385, UFCON=0011, UBRDIV=001f UART[3]: ULCON=0007, UCON=0785, UFCON=0011, UBRDIV=0000 savedf4100100value 04000000
savedf4100104value 00000000
savedf4100108value 00000000
savedf45001a0valueffcd1501
savedf45001b0value 00000000
savedf45001b4value 00000000
savedf45001c0value 00000000
savedf45001c4value 00000000
savedf45001c8value 00000000
savedf4100000value0000ffff
savedf4100004value0000ffff
savedf4100008value0000ffff
savedf410001cvalue 00000007
savedf4100020value 01043310
savedf4100024value 00000000
savedf4100028value 00000000
savedf410002cvalue 00000000
savedf4100030valuefffffff7
savedf4100034valuefb9e6fff
savedf4100038valuec73fffff
savedf410003cvalue ffffffff
savedf4100018value 00000000
savedf4100014value 00200203
savedf45001d0value 10555551
savedf45001d4value 00555555
sleep: irq wakeup masks: ffffffff,fffff7ff
Signature · 4 lines
Ben Q: What's a light-year? A: One-third less calories than a regular year.
Quoted 14 lines · Yauhen Kharuzhy
Quoted 7 lines · Ben Dooks
Quoted 5 lines · Yauhen Kharuzhy
Hi.
Can anybody explain current status of S3C6410 power management support in mainline? Suspend-to-RAM looks completely broken in the current Linus's git tree.
Quoted 5 lines
I'd prefer if you didn't make sweeping accusations about the state of a given piece of the kernel without having a good look first. From reading your second post, it seems that what is actually the problem is that the 64XX support only currently handles wakeup configurations from the EINT pins.
Quoted 7 lines
I am sorry for my hasty opinion about StR.
But we have checked Suspend-to-RAM at our (custom, not SMDK) board just now and it is not works with EINT too. Kernel goes to sleep and never return. We found that XPWRRGTON pin isn't
changed at sleep instruction execution so CPU don't go to sleep state. If anybody can say something about reasons of this, please say.
Just tested 2.6.34-rc6-git and it works on the SMDK6410 with the addition of the gpio buttons for EINT9..11, and it worked.
Can post the patches or git tree if you like.
Quoted 3 lines
Can anybody check suspend mode with SMDK6410 and confirm that StR works on it? If it works, we will stop to ask stupid questions and will find our hardware bugs :)
It does seem to work on this SMDK, and the XPWRTGON line on TP7 definetly goes low during sleep.
Note, not sure if I will post the buttons patches as the SMDK's single buttons share interrupts with the LAN and other devices, making them rather useless (my SMDK6410 has EINT10 held permanently active by the unused network devices...)
Quoted 79 lines
Below is log of sleeping procedure:
-----------------------------------------------------------------------/sys/power# echo mem > states3c64xx_irq_pm_suspend: suspending IRQs
savedf4500280value000003ff
savedf4500900value 00400000
savedf4500904value 00000000
savedf4500910value 00000000
savedf4500914value 00000000
savedf4500918value 00000000
savedf450091cvalue 00000000
savedf4500920value0ffff7ff
savedf4300044value 00000210s3c_pm_enter(3)
s3c_sleep_save_phys=0x503cac18
GPA: save 00000000,22222222,0000007a,00002955
GPB: save 00000000,02212222,0000007b,00002955
GPC: save 00000000,11331000,00000010,00005055
GPD: save 00000000,00000000,00000000,00000155
GPE: save 00000000,00000000,00000000,00000155
GPF: save 50000000,00008000,55555555,00000000
GPG: save 00000000,03222222,0000003e,00002000
GPH: save 33222222,00000033,000003fe,00000000
GPI: save aaaaaaaa,00000000,00000000,00000000
GPJ: save 00aaaaaa,00000f00,00000000,00000000
GPK: save 22222222,22222222,00000000,55555555
GPL: save 12121122,02222211,0000038c,15555555
GPM: save 00000000,00222222,0000001f,000002aa
GPN: save 55940454,0000f81a,55955555,00000000
GPO: save aaaaaaaa,0000003f,00000000,00000000
GPP: save 2aaaaaaa,000038e7,1011aaa0,00000000
GPQ: save 0002aaaa,00000018,00000000,00000000 UART[0]: ULCON=0007, UCON=0785, UFCON=0011, UBRDIV=0000 UART[1]: ULCON=002b, UCON=0385, UFCON=0011, UBRDIV=0003 UART[2]: ULCON=0003, UCON=0385, UFCON=0011, UBRDIV=001f UART[3]: ULCON=0007, UCON=0785, UFCON=0011, UBRDIV=0000 savedf4100100value 04000000
savedf4100104value 00000000
savedf4100108value 00000000
savedf45001a0valueffcd1501
savedf45001b0value 00000000
savedf45001b4value 00000000
savedf45001c0value 00000000
savedf45001c4value 00000000
savedf45001c8value 00000000
savedf4100000value0000ffff
savedf4100004value0000ffff
savedf4100008value0000ffff
savedf410001cvalue 00000007
savedf4100020value 01043310
savedf4100024value 00000000
savedf4100028value 00000000
savedf410002cvalue 00000000
savedf4100030valuefffffff7
savedf4100034valuefb9e6fff
savedf4100038valuec73fffff
savedf410003cvalue ffffffff
savedf4100018value 00000000
savedf4100014value 00200203
savedf45001d0value 10555551
savedf45001d4value 00555555
sleep: irq wakeup masks: ffffffff,fffff7ff
------------------------------------------------------------------------------Signature · 14 lines
Yauhen Kharuzhy ----------------------------------------------------------- Promwad Innovation Company 22, Olshevskogo St. Office 809 220073, Minsk, Belarus Phone/Fax: +375 (17) 312-1246 E-mail: yauhen.kharuzhy at promwad.com Skype: jekhor Web: www.promwad.com -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 5 lines
-- Ben Q: What's a light-year? A: One-third less calories than a regular year.
Quoted 11 lines · Ben Dooks
Quoted 3 lines
Can anybody check suspend mode with SMDK6410 and confirm that StR works on it? If it works, we will stop to ask stupid questions and will find our hardware bugs :)
It does seem to work on this SMDK, and the XPWRTGON line on TP7 definetly goes low during sleep.
Note, not sure if I will post the buttons patches as the SMDK's single buttons share interrupts with the LAN and other devices, making them rather useless (my SMDK6410 has EINT10 held permanently active by the unused network devices...)
Thanks for your help. Last question: which U-Boot (or another bootloader) you use?
Signature · 5 lines
Yauhen Kharuzhy jekhor _at_ gmail.com JID: jek at jabber.ru A: No Q: Should I quote below my post?
Quoted 8 lines · Yauhen Kharuzhy
Quoted 7 lines · Ben Dooks
Quoted 3 lines
Can anybody check suspend mode with SMDK6410 and confirm that StR works on it? If it works, we will stop to ask stupid questions and will find our hardware bugs :)
It does seem to work on this SMDK, and the XPWRTGON line on TP7 definetly goes low during sleep.
Quoted 7 lines
Quoted 4 lines
Note, not sure if I will post the buttons patches as the SMDK's single buttons share interrupts with the LAN and other devices, making them rather useless (my SMDK6410 has EINT10 held permanently active by the unused network devices...)
Thanks for your help. Last question: which U-Boot (or another bootloader) you use?
The uboot supplied on this SMDK.
Signature · 4 lines
Ben Q: What's a light-year? A: One-third less calories than a regular year.