Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1349098

Re: [RFC PATCH] watchdog: s3c2410_wdt: Add max and min timeout values

From Krzysztof Kozlowski <k.kozlowski@samsung.com>
Newsgroups linux.kernel
Subject Re: [RFC PATCH] watchdog: s3c2410_wdt: Add max and min timeout values
Date 2016-03-03 13:30 +0100
Message-ID <r8Aye-745-31@gated-at.bofh.it> (permalink)
References (2 earlier) <r8iUF-2nk-1@gated-at.bofh.it> <r8pjt-7pC-27@gated-at.bofh.it> <r8r1T-b3-5@gated-at.bofh.it> <r8twJ-1M5-3@gated-at.bofh.it> <r8A5e-6Bm-53@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


2016-03-03 20:55 GMT+09:00 Javier Martinez Canillas <javier@osg.samsung.com>:
> Hello Guenter,
>
>
> On 03/03/2016 01:50 AM, Guenter Roeck wrote:
>> A watchdog driver using a non-static clock must register a clock change
>> notifier
>> to handle the clock rate change and update its settings accordingly.
>>
>> I would also argue that the maximum timeout should be set to the minimum
>> possible value (probably associated with the highest possible frequency).
>> All other cases might end up causing trouble if a clock frequency
>> chance results in an enforced timeout change, since there is currently
>> no mechanism to inform user space about such a change.
>>
>> Example: maximum possible timeout changes from 1 minute to 30 seconds.
>> The timeout was set to 1 minute, and has to be reduced to 30 seconds.
>> Very likely result is that the watchdog will reset the system because
>> user space still believes that the timeout is 60 seconds and doesn't
>> ping the watchdog often enough to prevent it.
>>
>
> Agreed.
>
> In any case this discussion is not related to this patch since currently
> in mainline the watchdog source clock is fixed and does not change.
>
> So, $SUBJECT solves the issue of not having the fixed .{min,max}_timeout
> defined to allow the watchdog_timeout_invalid() function to check values
> set by WDIOC_SETTIMEOUT and avoid calling the .set_timeout callback.
>
> If later someone tries to scale a parent clock used by many drivers, then
> the submitter should make sure that no regressions are added by the patch.

Sounds good. For this patch then:
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>

Best regards,
Krzysztof

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC PATCH] watchdog: s3c2410_wdt: Add max and min timeout values Javier Martinez Canillas <javier@osg.samsung.com> - 2016-03-01 17:50 +0100
  Re: [RFC PATCH] watchdog: s3c2410_wdt: Add max and min timeout values Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-03-02 00:50 +0100
    Re: [RFC PATCH] watchdog: s3c2410_wdt: Add max and min timeout values Guenter Roeck <linux@roeck-us.net> - 2016-03-02 17:20 +0100
    Re: [RFC PATCH] watchdog: s3c2410_wdt: Add max and min timeout values Javier Martinez Canillas <javier@osg.samsung.com> - 2016-03-02 18:40 +0100
      Re: [RFC PATCH] watchdog: s3c2410_wdt: Add max and min timeout values Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-03-03 01:30 +0100
        Re: [RFC PATCH] watchdog: s3c2410_wdt: Add max and min timeout values Javier Martinez Canillas <javier@osg.samsung.com> - 2016-03-03 03:20 +0100
          Re: [RFC PATCH] watchdog: s3c2410_wdt: Add max and min timeout values Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-03-03 03:40 +0100
          Re: [RFC PATCH] watchdog: s3c2410_wdt: Add max and min timeout values Guenter Roeck <linux@roeck-us.net> - 2016-03-03 06:00 +0100
            Re: [RFC PATCH] watchdog: s3c2410_wdt: Add max and min timeout values Javier Martinez Canillas <javier@osg.samsung.com> - 2016-03-03 13:00 +0100
              Re: [RFC PATCH] watchdog: s3c2410_wdt: Add max and min timeout values Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-03-03 13:30 +0100
                Re: [RFC PATCH] watchdog: s3c2410_wdt: Add max and min timeout values Guenter Roeck <linux@roeck-us.net> - 2016-03-04 06:40 +0100

csiph-web