All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] ARM: smp_twd: mpcore_wdt: Fix MPCORE watchdog setup
@ 2010-10-04  9:45 ` vkuzmichev at mvista.com
  0 siblings, 0 replies; 114+ messages in thread
From: vkuzmichev @ 2010-10-04  9:45 UTC (permalink / raw)
  To: linux-arm-kernel; +Cc: linux-watchdog, linux-kernel, linux, Vitaly Kuzmichev

From: Vitaly Kuzmichev <vkuzmichev@mvista.com>

The series of patches fixes various bugs in ARM MPCORE watchdog setup.
They also introduce some changes in common SMP_TWD timer setup code.
The PATCH 1/4 adds an exported function to obtain calibrated timer rate
in mpcore_wdt. However, this solution might be unacceptable, so we may
discuss another 2 variants:
 1) use clock framework
   This may require to fix all MPCORE boards clock implementations.
 2) copy calibration loop to mpcore_wdt
   However, this increases boot time.


Vitaly Kuzmichev (4):
  ARM: smp_twd: mpcore_wdt: Fix watchdog counter loading
  ARM: smp_twd: Fix typo in twd_timer_rate printout
  ARM: mpcore_wdt: Fix WDIOC_SETOPTIONS handling
  ARM: mpcore_wdt: Fix timer mode setup

 arch/arm/include/asm/smp_twd.h |    7 +++++++
 arch/arm/kernel/smp_twd.c      |    8 +++++++-
 drivers/watchdog/mpcore_wdt.c  |   29 +++++++++++++++++++++--------
 3 files changed, 35 insertions(+), 9 deletions(-)

-- 
1.7.2.2


^ permalink raw reply	[flat|nested] 114+ messages in thread
* Re: [PATCH V2 3/6] mpcore_wdt: Fix WDIOC_SETOPTIONS handling
@ 2011-07-06 13:18 Wim Van Sebroeck
  0 siblings, 0 replies; 114+ messages in thread
From: Wim Van Sebroeck @ 2011-07-06 13:18 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Vitaly Kuzmichev, linux-arm-kernel, linux-watchdog, Russell King,
	Marc Zyngier, arm, linux-kernel, John Stultz, Nicolas Pitre,
	Thomas Gleixner, Wolfram Sang

Hi Arnd,

> > According to the include/linux/watchdog.h WDIOC_SETOPTIONS is
> > classified as 'read from device' ioctl call:
> >   #define WDIOC_SETOPTIONS        _IOR(WATCHDOG_IOCTL_BASE, 4, int)
> > 
> > However, the driver 'mpcore_wdt' performs 'copy_from_user' only if
> > _IOC_WRITE is set, thus the local variable 'uarg' which is used in
> > WDIOC_SETOPTIONS handling remains uninitialized.
> > 
> > The proper way to fix this is to bind WDIOC_SETOPTIONS to _IOW,
> > but this will break compatibility.
> > So adding additional condition for performing 'copy_from_user'.
> > 
> > Signed-off-by: Vitaly Kuzmichev <vkuzmichev@mvista.com>
> 
> Is the new watchdog driver core ready for 3.1? If so, the best
> solution would be to get rid of the entire ioctl function in
> the mpcore_wdt driver and just use the core for that.
> 
> Otherwise, this patch is probably the best solution in the meantime.

Might be a correct fix in the mean time.
But goal is to have core ready for inclusion in 3.1 .
Wolfram is doing conversion of 3 drivers and writing a Howto for doing the conversions.
I'm improving the core based on what Wolfram finds during the conversions.
You may expect a (hopefully) last series of the patches this week.

Kind regards,
Wim.


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

end of thread, other threads:[~2011-07-11 11:50 UTC | newest]

Thread overview: 114+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-04  9:45 [PATCH 0/4] ARM: smp_twd: mpcore_wdt: Fix MPCORE watchdog setup vkuzmichev
2010-10-04  9:45 ` vkuzmichev at mvista.com
2010-10-04  9:45 ` [PATCH 1/4] ARM: smp_twd: mpcore_wdt: Fix watchdog counter loading vkuzmichev
2010-10-04  9:45   ` vkuzmichev at mvista.com
2010-10-04  9:45 ` [PATCH 2/4] ARM: smp_twd: Fix typo in twd_timer_rate printout vkuzmichev
2010-10-04  9:45   ` vkuzmichev at mvista.com
2010-10-04  9:45 ` [PATCH 3/4] ARM: mpcore_wdt: Fix WDIOC_SETOPTIONS handling vkuzmichev
2010-10-04  9:45   ` vkuzmichev at mvista.com
2010-10-04  9:45 ` [PATCH 4/4] ARM: mpcore_wdt: Fix timer mode setup vkuzmichev
2010-10-04  9:45   ` vkuzmichev at mvista.com
2011-05-27  8:26 ` [PATCH 0/4] ARM: smp_twd: mpcore_wdt: Fix MPCORE watchdog setup Wim Van Sebroeck
2011-05-27  8:26   ` Wim Van Sebroeck
2011-05-27 10:44   ` Marc Zyngier
2011-05-27 10:44     ` Marc Zyngier
2011-05-27 10:44     ` Marc Zyngier
2011-07-05 19:00 ` [PATCH V2 0/6] arm_smp_twd: " Vitaly Kuzmichev
2011-07-05 19:00   ` Vitaly Kuzmichev
2011-07-06 10:05   ` Marc Zyngier
2011-07-06 10:05     ` Marc Zyngier
2011-07-06 10:14     ` Russell King - ARM Linux
2011-07-06 10:14       ` Russell King - ARM Linux
2011-07-06 11:05       ` Catalin Marinas
2011-07-06 11:05         ` Catalin Marinas
2011-07-06 11:16         ` Russell King - ARM Linux
2011-07-06 11:16           ` Russell King - ARM Linux
2011-07-10 10:39           ` Russell King - ARM Linux
2011-07-10 10:39             ` Russell King - ARM Linux
2011-07-11  9:43           ` Catalin Marinas
2011-07-11  9:43             ` Catalin Marinas
2011-07-11  9:54             ` Russell King - ARM Linux
2011-07-11  9:54               ` Russell King - ARM Linux
2011-07-11 11:06               ` Catalin Marinas
2011-07-11 11:06                 ` Catalin Marinas
2011-07-06 12:27     ` Vitaly Kuzmichev
2011-07-06 12:27       ` Vitaly Kuzmichev
2011-07-06 12:39       ` Marc Zyngier
2011-07-06 12:39         ` Marc Zyngier
2011-07-06 15:06         ` Vitaly Kuzmichev
2011-07-06 15:06           ` Vitaly Kuzmichev
2011-07-05 19:00 ` [PATCH V2 1/6] arm_smp_twd: Fix typo in 'twd_timer_rate' printing Vitaly Kuzmichev
2011-07-05 19:00   ` Vitaly Kuzmichev
2011-07-05 19:00 ` [PATCH V2 2/6] arm_smp_twd: mpcore_wdt: Fix watchdog counter loading Vitaly Kuzmichev
2011-07-05 19:00   ` Vitaly Kuzmichev
2011-07-06 12:05   ` Arnd Bergmann
2011-07-06 12:05     ` Arnd Bergmann
2011-07-05 19:00 ` [PATCH V2 3/6] mpcore_wdt: Fix WDIOC_SETOPTIONS handling Vitaly Kuzmichev
2011-07-05 19:00   ` Vitaly Kuzmichev
2011-07-06 12:05   ` Sergei Shtylyov
2011-07-06 12:05     ` Sergei Shtylyov
2011-07-06 12:22   ` Arnd Bergmann
2011-07-06 12:22     ` Arnd Bergmann
2011-07-06 13:13     ` Vitaly Kuzmichev
2011-07-06 13:13       ` Vitaly Kuzmichev
2011-07-06 13:48   ` Russell King - ARM Linux
2011-07-06 13:48     ` Russell King - ARM Linux
2011-07-06 13:52     ` Russell King - ARM Linux
2011-07-06 13:52       ` Russell King - ARM Linux
2011-07-06 14:19       ` Arnd Bergmann
2011-07-06 14:19         ` Arnd Bergmann
2011-07-06 15:27         ` Arnd Bergmann
2011-07-06 15:27           ` Arnd Bergmann
2011-07-06 17:28           ` Wim Van Sebroeck
2011-07-06 17:28             ` Wim Van Sebroeck
2011-07-05 19:00 ` [PATCH V2 4/6] mpcore_wdt: Fix timer mode setup Vitaly Kuzmichev
2011-07-05 19:00   ` Vitaly Kuzmichev
2011-07-05 19:00 ` [PATCH V2 5/6] mpcore_wdt: Add cpufreq notifier to reload counter Vitaly Kuzmichev
2011-07-05 19:00   ` Vitaly Kuzmichev
2011-07-06 12:09   ` Sergei Shtylyov
2011-07-06 12:09     ` Sergei Shtylyov
2011-07-05 19:00 ` [PATCH V2 6/6] mpcore_wdt: Move declarations in a separate header Vitaly Kuzmichev
2011-07-05 19:00   ` Vitaly Kuzmichev
2011-07-06 11:58   ` Arnd Bergmann
2011-07-06 11:58     ` Arnd Bergmann
2011-07-06 12:36     ` Vitaly Kuzmichev
2011-07-06 12:36       ` Vitaly Kuzmichev
2011-07-06 12:48       ` Arnd Bergmann
2011-07-06 12:48         ` Arnd Bergmann
2011-07-10 10:42         ` Russell King - ARM Linux
2011-07-10 10:42           ` Russell King - ARM Linux
2011-07-06 12:11   ` Sergei Shtylyov
2011-07-06 12:11     ` Sergei Shtylyov
2011-07-07 12:22 ` [PATCH V3 0/4] ARM: smp_twd: mpcore_wdt: Fix MPCORE watchdog setup Vitaly Kuzmichev
2011-07-07 12:22   ` Vitaly Kuzmichev
2011-07-07 12:23   ` [PATCH V3 1/4] ARM: smp_twd: Fix typo in 'twd_timer_rate' printing Vitaly Kuzmichev
2011-07-07 12:23     ` Vitaly Kuzmichev
2011-07-07 12:39     ` Russell King - ARM Linux
2011-07-07 12:39       ` Russell King - ARM Linux
2011-07-07 12:50       ` Vitaly Kuzmichev
2011-07-07 12:50         ` Vitaly Kuzmichev
2011-07-07 13:31         ` Vitaly Kuzmichev
2011-07-07 13:31           ` Vitaly Kuzmichev
2011-07-07 16:20       ` Vitaly Kuzmichev
2011-07-07 16:20         ` Vitaly Kuzmichev
2011-07-10 10:47         ` Russell King - ARM Linux
2011-07-10 10:47           ` Russell King - ARM Linux
2011-07-11 11:50           ` Vitaly Kuzmichev
2011-07-11 11:50             ` Vitaly Kuzmichev
2011-07-07 12:23   ` [PATCH V3 2/4] ARM: smp_twd: mpcore_wdt: Fix watchdog counter loading Vitaly Kuzmichev
2011-07-07 12:23     ` Vitaly Kuzmichev
2011-07-07 12:44     ` Arnd Bergmann
2011-07-07 12:44       ` Arnd Bergmann
2011-07-07 14:09       ` Vitaly Kuzmichev
2011-07-07 14:09         ` Vitaly Kuzmichev
2011-07-07 12:23   ` [PATCH V3 3/4] ARM: mpcore_wdt: Fix WDIOC_SETOPTIONS handling Vitaly Kuzmichev
2011-07-07 12:23     ` Vitaly Kuzmichev
2011-07-07 12:45     ` Arnd Bergmann
2011-07-07 12:45       ` Arnd Bergmann
2011-07-07 12:23   ` [PATCH V3 4/4] ARM: mpcore_wdt: Fix timer mode setup Vitaly Kuzmichev
2011-07-07 12:23     ` Vitaly Kuzmichev
2011-07-07 12:46   ` [PATCH V3 0/4] ARM: smp_twd: mpcore_wdt: Fix MPCORE watchdog setup Wim Van Sebroeck
2011-07-07 12:46     ` Wim Van Sebroeck
2011-07-07 14:06   ` [PATCH V4 2/4] ARM: smp_twd: mpcore_wdt: Fix watchdog counter loading Vitaly Kuzmichev
2011-07-07 14:06     ` Vitaly Kuzmichev
  -- strict thread matches above, loose matches on Subject: below --
2011-07-06 13:18 [PATCH V2 3/6] mpcore_wdt: Fix WDIOC_SETOPTIONS handling Wim Van Sebroeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.