linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Down when i get date from rtc by "hwclock --hctosys"
@ 2007-05-17  7:25 li.chunlin
  0 siblings, 0 replies; 3+ messages in thread
From: li.chunlin @ 2007-05-17  7:25 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 1341 bytes --]

The system is Embeded Linux with kernel 2.6.14. And the CPU is MPC8270 of 
freescale. The rtc module is "Generic /dev/rtc emulation" and "Extended 
RTC operation". And the chip of rtc is ds1338 with the interface of i2c. 
The module of i2c has been included.

When i enable the dcache of mpc8270 and use "hwclock --hctosys" or 
"hwclock --show", the system will down. But if i disable dcache, it is ok. 

I found that when it call schedule_work(&genrtc_task) in the function 
"static inline int gen_set_rtc_irq_bit(unsigned char bit)" in file 
genrtc.c it will down.

Can you help me? 

Thanks.
Leo


--------------------------------------------------------
ZTE Information Security Notice: The information contained in this mail is solely property of the sender's organization. This mail communication is confidential. Recipients named above are obligated to maintain secrecy and are not permitted to disclose the contents of this communication to others.
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. Any views expressed in this message are those of the individual sender.
This message has been scanned for viruses and Spam by ZTE Anti-Spam system.

[-- Attachment #2: Type: text/html, Size: 2208 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Down when i get date from rtc by "hwclock --hctosys"
@ 2007-05-17  7:28 liChunlin
  2007-05-17 16:05 ` Bhupender Saharan
  0 siblings, 1 reply; 3+ messages in thread
From: liChunlin @ 2007-05-17  7:28 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 785 bytes --]

The system is Embeded Linux with kernel 2.6.14. And the CPU is MPC8270 of freescale. The rtc module is "Generic /dev/rtc emulation" and "Extended RTC operation". And the chip of rtc is ds1338 with the interface of i2c. The module of i2c has been included.
When i enable the dcache of mpc8270 and use "hwclock --hctosys" or "hwclock --show", the system will down. But if i disable dcache, it is ok. I found that when it call schedule_work(&genrtc_task) in the function "static inline int gen_set_rtc_irq_bit(unsigned char bit)" in file genrtc.c it will down.
Can you help me? 
Thanks.Leo
_________________________________________________________________
中国十大热门旅游景点
http://search.msn.com/results.aspx?q=%E4%B8%AD%E5%9B%BD%E5%8D%81%E5%A4%A7%E9%A3%8E%E6%99%AF&mkt=zh-CN&form=QBRE

[-- Attachment #2: Type: text/html, Size: 939 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Down when i get date from rtc by "hwclock --hctosys"
  2007-05-17  7:28 Down when i get date from rtc by "hwclock --hctosys" liChunlin
@ 2007-05-17 16:05 ` Bhupender Saharan
  0 siblings, 0 replies; 3+ messages in thread
From: Bhupender Saharan @ 2007-05-17 16:05 UTC (permalink / raw)
  To: liChunlin; +Cc: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 1273 bytes --]

Hi Leo,

Looks like your system is unstable when the cache is enabed. It might have
nothing to do with generic RTC driver.

Can you run cachebench or another memory benchmarks tools on the system and
see if memory sub system is OK.

Regards
Bhupi


On 5/17/07, liChunlin <lichl@hotmail.com> wrote:
>
> The system is Embeded Linux with kernel 2.6.14. And the CPU is MPC8270 of
> freescale. The rtc module is "Generic /dev/rtc emulation" and "Extended RTC
> operation". And the chip of rtc is ds1338 with the interface of i2c. The
> module of i2c has been included.
> When i enable the dcache of mpc8270 and use "hwclock --hctosys" or
> "hwclock --show", the system will down. But if i disable dcache, it is ok.
> I found that when it call schedule_work(&genrtc_task) in the function
> "static inline int gen_set_rtc_irq_bit(unsigned char bit)" in file
> genrtc.c it will down.
> Can you help me?
> Thanks.
> Leo
>
>
> ------------------------------
> 中国十大热门旅游景点 了解更多信息!<http://search.msn.com/results.aspx?q=%E4%B8%AD%E5%9B%BD%E5%8D%81%E5%A4%A7%E9%A3%8E%E6%99%AF&mkt=zh-CN&form=QBRE>
>
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>

[-- Attachment #2: Type: text/html, Size: 1955 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-05-17 16:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-17  7:28 Down when i get date from rtc by "hwclock --hctosys" liChunlin
2007-05-17 16:05 ` Bhupender Saharan
  -- strict thread matches above, loose matches on Subject: below --
2007-05-17  7:25 li.chunlin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).