Skip to contentSkip to conversation

watchdog reset in mpc824x timer interrupt.

U-Boot-Users Gleb Natapov 3 participants 11 messages Sep 14, 2003 – Dec 15, 2003

lore
Share & tools
lore
#0 lore raw

Hello,

Attached patch makes timer_interrupt to perform watchdog reset on all
boards that support watchdog and not only for OXC.

CHANGELOG:
perform watchdog reset in mpc824x timer interrupt on all boards that have watchdog.

--
Gleb.
-------------- next part --------------
Index: cpu/mpc824x/interrupts.c
===================================================================
RCS file: /cvsroot/u-boot/u-boot/cpu/mpc824x/interrupts.c,v retrieving revision 1.3

mpc824x/interrupts.c +3 -8
diff -u -r1.3 interrupts.c
@@ -27,6 +27,7 @@
 #include <asm/processor.h>
 #include <asm/pci_io.h>
 #include <commproc.h>
+#include <watchdog.h>
 #include "drivers/epic.h"
 
 /****************************************************************************/
@@ -149,15 +150,9 @@
 
 	timestamp++;
 
-#if defined(CONFIG_WATCHDOG)
+#if defined(CONFIG_WATCHDOG) || defined (CONFIG_HW_WATCHDOG)
 	if ((timestamp % (CFG_HZ / 2)) == 0) {
-#if defined(CONFIG_OXC)
-		{
-			extern void oxc_wdt_reset (void);
-
-			oxc_wdt_reset ();
-		}
-#endif
+		WATCHDOG_RESET ();
 	}
 #endif							/* CONFIG_WATCHDOG */
 #if defined(CONFIG_SHOW_ACTIVITY) && defined(CONFIG_OXC)
#1 lore raw

Dear Gleb,

Quoted 3 lines · in message <[email protected]> you wrote:

Attached patch makes timer_interrupt to perform watchdog reset on all
boards that support watchdog and not only for OXC.

Thanks, added. Will show up on CVS "soon" :-(

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
I am not now, nor have I ever been, a member of the demigodic party.
                                                   -- Dennis Ritchie
#2 lore raw

Hello Denk,

I've looked at timer_interrupt() on all Motorola CPUs and it seems it is possible to move most of the code from cpu/$(CPU)/interrupt.c directory to one common place (ppc_lib/interrupt.c for instance). Unfortunately I have only MPC8245 CPU for testing.

Quoted 4 lines · Wolfgang Denk

Dear Gleb,

Quoted 1 line · in message <[email protected]> you wrote:
Quoted 24 lines
Quoted 2 lines

Attached patch makes timer_interrupt to perform watchdog reset on all
boards that support watchdog and not only for OXC.

Thanks, added. Will show up on CVS "soon" :-(

Best regards,

Wolfgang Denk

Signature · 14 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
I am not now, nor have I ever been, a member of the demigodic party.
                                                   -- Dennis Ritchie


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

--
Gleb.

#3 lore raw

Best regards,

Quoted 5 lines · in message <[email protected]> you wrote:

I've looked at timer_interrupt() on all Motorola CPUs and it seems it is possible to move most of the code from cpu/$(CPU)/interrupt.c directory to one common place (ppc_lib/interrupt.c for instance). Unfortunately I have only MPC8245 CPU for testing.

I can test on 8xx and 82xx.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
If the facts don't fit the theory, change the facts.
                                                   -- Albert Einstein
#4 lore raw

Hello Wolfgang,

The attached patch moves most of the things related to timer interrupt to
ppc_lib/interrupts.c leaving only cpu specific code in cpu/$(CPU)/interrupts.c

I only checked it on MPC8245. It works for me.

Can you look at the patch please.

CHANGELOG:
Move most of the things related to timer interrupt to ppc_lib/interrupts.c

Best regards,

Quoted 9 lines · Wolfgang Denk
Quoted 5 lines · in message <[email protected]> you wrote:

I've looked at timer_interrupt() on all Motorola CPUs and it seems it is possible to move most of the code from cpu/$(CPU)/interrupt.c directory to one common place (ppc_lib/interrupt.c for instance). Unfortunately I have only MPC8245 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'BQBE37ST4L;5&FQ\$\+E MI'"#HFYZ*<--SYN:$N#&QA*3D0SS4?N"21.*/-0T+9V%H9LWR";_.G.Z9A?^ M5NQ>7I56S:_=:H$W"GL1IP^^BXMI\5XIA\480T6?_#:E1\1(.3 at 6&B at Y.@O2 M_<!2O$LN,4SJ$_>^/6WLL&RL6F2TQ5ADQ0_E&*T5;ZX4^\ZV_/=2)+W.;67Y M"+_4+>9R"F_IXG(7%R6R5G&PEB4LO)X at IT9K:^9JQ%0>5;G]14YO8;85?FS M+V at QKF@F5%&Y9"527=&L6(HK.E1IK"LZ6JO+BN2"9&?:!X.!D#6 at Y*7$03$O M+7"7-4!1V*OP#M-1<QR%O&_FV&<OYN"N7/QYC^'A9>M,CGT_VT!I%J7'V M+$*R79','$68]#-M=>%PH at ZXQZ^ZIM\:^(EF#FEZ_.O#9'S-2,SP&PYG_LRA :_2)>MZCZ;T76QA)I$/8'IOT?P?[1!V=W````
`
end
--
Gleb.

#5 lore raw

Dear Gleb,

Quoted 10 lines · in message <[email protected]> you wrote:

The attached patch moves most of the things related to timer interrupt to
ppc_lib/interrupts.c leaving only cpu specific code in cpu/$(CPU)/interrupts.c

I only checked it on MPC8245. It works for me.

Can you look at the patch please.

CHANGELOG:
Move most of the things related to timer interrupt to ppc_lib/interrupts.c

You do much more than just this. I appreciate most of your cleanup, but I have a few requests:

* Please don't create a new (and undocumented!!) config option CONFIG_ACTIVITY_MONITOR - we already have CONFIG_SHOW_ACTIVITY which serves exactly this purpose. I see no need for a new option.

* Instead of just collecting common stuff in a common file you change interfaces here and there. Can you please describe these changes, and the reasons for them.

* Please keep existing Copyright notices in place.

Can you please rework your patch and resubmit it? Thanks.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
If you fail to plan, plan to fail.
#6 lore raw

Hello Wolfgang,

Quoted 12 lines · Wolfgang Denk
Quoted 10 lines · in message <[email protected]> you wrote:

The attached patch moves most of the things related to timer interrupt to
ppc_lib/interrupts.c leaving only cpu specific code in cpu/$(CPU)/interrupts.c

I only checked it on MPC8245. It works for me.

Can you look at the patch please.

CHANGELOG:
Move most of the things related to timer interrupt to ppc_lib/interrupts.c

Quoted 6 lines

You do much more than just this. I appreciate most of your cleanup, but I have a few requests:

* Please don't create a new (and undocumented!!) config option CONFIG_ACTIVITY_MONITOR - we already have CONFIG_SHOW_ACTIVITY which serves exactly this purpose. I see no need for a new option.

Yes CONFIG_SHOW_ACTIVITY is exactly what I need. I didn't find it first time. Thanks.

Quoted 4 lines

* Instead of just collecting common stuff in a common file you change interfaces here and there. Can you please describe these changes, and the reasons for them.

I don't quite understand what interfaces I changed. But I can explain how I see it working now.

There are common interrupt_init() and timer_interrupt() for all PPC archs. interrupt_init() calls interrupt_init_cpu() for cpu specific initialization. interrupt_init_cpu() should set decrementer_count to appropriate value. If cpu resets decrementer automatically after interrupt (ppc4xx) it should set decrementer_count to zero.
timer_interrupt() calls timer_interrupt_cpu() for cpu specific handling. If board has wahtchdog/status_led/other_activity_monitor it works automatically from general timer_interrupt().

Quoted 2 lines

* Please keep existing Copyright notices in place.

I hope new patch contains proper Copyright notices in place.

begin 644 interrupts.patch.gz M'XL("$O":C\``VEN=&5R<G5P=',N<&%T8V@[5U[=]K(DO];_A0UF7OG@@$C M\;*-)]D03!QV_;J;V9V9HZ.+&2L#2B"3_N3/:S;U5WZX'0"P?/(QN?Q!BI MN[JZJ[KZ5]75TMB\N8'*TCZ'R@\PMN;NF"XL*]>6Y5:O+<T>5W5K8LS=ZE0? M[^GBSMXBYMY.I5))KBG59+E>D5N5V@'(<KNNM)O[>[+WR6Y+LL[I5(IK05! MX["B'(*BM!O-=J.Q1N/U:ZC4:H?E.I3H0]F'UZ]W@'[,&RB42K;E:JYEJ^9\
M;#SJY=0<,Q_&]8-XW]5K,=J$+DRD_R+\7B#DBK55^"?+0#GW9*.Z5OS9NQ M<0/=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R7RP/_#>_P$",56Y^G4`````
`
end
--
Gleb.

#7 lore raw

Hello Wolfgang,

What is the status of my patch that combines common functionality
of timer interrupt in one place for all PPC boards. Is it rejected, accepted or needs more work?

Thanks,

--
Gleb.

#8 lore raw

Dear Gelb,

Quoted 4 lines · in message <[email protected]> you wrote:

What is the status of my patch that combines common functionality
of timer interrupt in one place for all PPC boards. Is it rejected, accepted or needs more work?

Let's say it's on hold. I think I will accept it, only not for this but for the next release.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
"We don't care.  We don't have to.  We're the Phone Company."
#9 lore raw
In reply to Gleb Natapov

Dear Glab,

Quoted 5 lines · in message <[email protected]> you wrote:
Quoted 5 lines
Quoted 5 lines

The attached patch moves most of the things related to timer interrupt to
ppc_lib/interrupts.c leaving only cpu specific code in cpu/$(CPU)/interrupts.c

I only checked it on MPC8245. It works for me.

Checked in. Thanks lot. And sorry it took so long.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
The Wright Bothers weren't the first to fly. They were just the first
not to crash.
#10 lore raw

Hi

Did anyone try to add support for interrupts for the 74xx_7xx ???

Thanks Ronen

Quoted 20 lines · Wolfgang Denk

Dear Glab,

Quoted 6 lines · in message <[email protected]> you wrote:
Quoted 6 lines
Quoted 6 lines

The attached patch moves most of the things related to timer interrupt to ppc_lib/interrupts.c leaving only cpu specific code in cpu/$(CPU)/interrupts.c

I only checked it on MPC8245. It works for me.

Checked in. Thanks lot. And sorry it took so long.

Best regards,

Wolfgang Denk

Signature · 20 lines
Ronen Shitrit

M.S.I.L
D.N. Misgav  20184
Tel:   +972-4-9951000
Fax:   +972-4-9951001
Email: mailto: ronen.shitrit at il.marvell.com
_____________________________________________________________
This message may contain confidential, proprietary or legally privileged 
information. The information is intended only for the use of the individual 
or entity named above. If the reader of this message is not the intended 
recipient, you are hereby notified that any dissemination, distribution 
or copying of this communication is strictly prohibited. If you have 
received this communication in error, please notify us immediately by 
telephone, or by e-mail and delete the message from your computer.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20031215/7db87a55/attachment.htm