All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v10 0/5] Watchdog: introduce ARM SBSA watchdog driver
@ 2016-02-03 17:18 ` fu.wei at linaro.org
  0 siblings, 0 replies; 130+ messages in thread
From: fu.wei @ 2016-02-03 17:18 UTC (permalink / raw)
  To: robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak, wim,
	linux, corbet, catalin.marinas, will.deacon,
	Suravee.Suthikulpanit
  Cc: linux-kernel, linux-watchdog, linux-doc, devicetree,
	linux-arm-kernel, linaro-acpi, rruigrok, harba, cov, timur,
	dyoung, panand, graeme.gregory, al.stone, hanjun.guo, jcm, arnd,
	leo.duran, sudeep.holla, Fu Wei

From: Fu Wei <fu.wei@linaro.org>

This patchset:
    (1)Introduce Documentation/devicetree/bindings/watchdog/sbsa-gwdt.txt
    for FDT info of SBSA Generic Watchdog, and give two examples of
    adding SBSA Generic Watchdog device node into the dts files:
    foundation-v8.dts and amd-seattle-soc.dtsi.

    (2)Introduce ARM SBSA watchdog driver:
        a.Use linux kernel watchdog framework;
        b.Work with FDT on ARM64;
        c.Support getting timeout from parameter and FDT at the driver
          init stage.
        d.Separate the driver to two parts:
          (1) single stage timeout driver(ignore WS0 interrupt)
          (2) register WS0 interrupt for the half timeout panic
        e.Timeout is from watchdog enabled to WS1 triggered.
          User can disable "half timeout panic" by kernel config or
          module parameter panic_enabled.

Changelog:
v10:Delete pretimeout support
    Separate the driver to two parts:
        (1) single stage timeout driver(ignore WS0 interrupt)
        (2) register WS0 interrupt for the half timeout panic
    timeout == (enable --> WS1)

v9: https://lkml.org/lkml/2015/11/9/57
    Rebase to latest kernel version(4.3).
    Update the Documentation of sbsa-gwdt device node info of FDT:
        (1) move some introduction to pretimeout patch
        (2) delete WS1 value from "interrupts" of binding documentation,
            since WS1 won't be handled by Linux.

v8: https://lkml.org/lkml/2015/10/27/466
    Rebase to latest kernel version(4.3-rc7).
    Separate the patches of GTDT support and arm_arch_timer. This
    clocksource relevant patch will upstreamed in a individual patchset.
    Update all the default timeout and pretimeout to 30s and 60s.
    Improve documentation and inline comments.
    Fix a bug in pretimeout support which makes timeout and pretimeout
    parameters initialization fail.

v7: https://lkml.org/lkml/2015/8/24/611
    Rebase to latest kernel version(4.2-rc7).
    Improve FDT support: geting resource by order, instead of name.
    According to the FDT support, Update the example dts file, gtdt.c
    and sbsa_gwdt.c.
    Pass the sparse test, and fix the warning.
    Fix the max_pretimeout and max_timeout value overflow bug.
    Delete the WCV output value.
    

v6: https://lkml.org/lkml/2015/6/23/359
    Improve the dtb example files: reduce the register frame size to 4K.
    Improve pretimeout support:
        (1) improve watchdog_init_timeouts function
	(2) rename watchdog_check_min_max_timeouts back to the original name
        (1) improve watchdog_timeout_invalid/watchdog_pretimeout_invalid
    Add the new features in the sbsa_gwdt driver:
	(1) In the second stage, user can feed the dog without cleaning WS0.
	(2) In the second stage, user can trigger WS1 by setting pretimeout = 0.
	(3) expand the max value of pretimeout, in case 10 second is not enough
	    for a kdump kernel reboot in panic.

v5: https://lkml.org/lkml/2015/6/10/357
    Improve pretimeout support:
        (1)fix typo in documentation and comments.
	(2)fix the timeout limits validation bug.
    Simplify sbsa_gwdt driver:
	(1)integrate all the registers access functions into caller.

v4: https://lkml.org/lkml/2015/6/2/4
    Refactor GTDT support code: remove it from arch/arm64/kernel/acpi.c,
    put it into drivers/acpi/gtdt.c file.
    Integrate the GTDT code of drivers/clocksource/arm_arch_timer.c into
    drivers/acpi/gtdt.c.
    Improve pretimeout support, fix "pretimeout == 0" problem.
    Simplify sbsa_gwdt driver:
        (1)timeout/pretimeout limits setup;
        (2)keepalive function;
        (3)delete "clk == 0" check;
        (4)delete WS0 status bit check in interrupt routine;
        (5)sbsa_gwdt_set_wcv function.

v3: https://lkml.org/lkml/2015/5/25/111
    Delete "export arch_timer_get_rate" patch.
    Driver back to use arch_timer_get_cntfrq.
    Improve watchdog_init_timeouts function and update relevant documentation.
    Improve watchdog_timeout_invalid and watchdog_pretimeout_invalid.
    Improve foundation-v8.dts: delete the unnecessary tag of device node.
    Remove "ARM64 || COMPILE_TEST" from Kconfig.
    Add comments in arch/arm64/kernel/acpi.c
    Fix typoes and incorrect comments.

v2: https://lkml.org/lkml/2015/5/21/172
    Improve watchdog-kernel-api.txt documentation for pretimeout support.
    Export "arch_timer_get_rate" in arm_arch_timer.c.
    Add watchdog_init_timeouts API for pretimeout support in framework.
    Improve suspend and resume foundation in driver
    Improve timeout/pretimeout values init code in driver.
    Delete unnecessary items of the sbsa_gwdt struct and #define.
    Delete all unnecessary debug info in driver.
    Fix 64bit division bug.
    Use the arch_timer interface to get watchdog clock rate.
    Add MODULE_DEVICE_TABLE for platform device id.
    Fix typoes.

v1: https://lkml.org/lkml/2015/5/15/279
    The first version upstream patchset to linux mailing list.

Fu Wei (5):
  Documentation: add sbsa-gwdt driver documentation
  ARM64: add SBSA Generic Watchdog device node in foundation-v8.dts
  ARM64: add SBSA Generic Watchdog device node in amd-seattle-soc.dtsi
  Watchdog: introduce ARM SBSA watchdog driver
  Watchdog: ARM SBSA Generic Watchdog half timeout panic support

 .../devicetree/bindings/watchdog/sbsa-gwdt.txt     |  35 ++
 Documentation/watchdog/watchdog-parameters.txt     |   6 +
 arch/arm64/boot/dts/amd/amd-seattle-soc.dtsi       |   9 +
 arch/arm64/boot/dts/arm/foundation-v8.dts          |   8 +
 drivers/watchdog/Kconfig                           |  27 ++
 drivers/watchdog/Makefile                          |   1 +
 drivers/watchdog/sbsa_gwdt.c                       | 366 +++++++++++++++++++++
 7 files changed, 452 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/watchdog/sbsa-gwdt.txt
 create mode 100644 drivers/watchdog/sbsa_gwdt.c

-- 
2.5.0

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

end of thread, other threads:[~2016-02-07  2:12 UTC | newest]

Thread overview: 130+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-03 17:18 [PATCH v10 0/5] Watchdog: introduce ARM SBSA watchdog driver fu.wei
2016-02-03 17:18 ` fu.wei at linaro.org
2016-02-03 17:18 ` [PATCH v10 1/5] Documentation: add sbsa-gwdt driver documentation fu.wei
2016-02-03 17:18   ` fu.wei at linaro.org
2016-02-03 17:18 ` [PATCH v10 2/5] ARM64: add SBSA Generic Watchdog device node in foundation-v8.dts fu.wei
2016-02-03 17:18   ` fu.wei at linaro.org
2016-02-03 17:18 ` [PATCH v10 3/5] ARM64: add SBSA Generic Watchdog device node in amd-seattle-soc.dtsi fu.wei
2016-02-03 17:18   ` fu.wei at linaro.org
2016-02-03 17:18   ` fu.wei-QSEj5FYQhm4dnm+yROfE0A
2016-02-03 17:18 ` [PATCH v10 4/5] Watchdog: introduce ARM SBSA watchdog driver fu.wei
2016-02-03 17:18   ` fu.wei at linaro.org
2016-02-03 17:48   ` Timur Tabi
2016-02-03 17:48     ` Timur Tabi
2016-02-03 17:57     ` Fu Wei
2016-02-03 17:57       ` Fu Wei
2016-02-03 17:57       ` Fu Wei
2016-02-03 17:58       ` Timur Tabi
2016-02-03 17:58         ` Timur Tabi
2016-02-03 17:58         ` Timur Tabi
2016-02-03 18:09         ` Fu Wei
2016-02-03 18:09           ` Fu Wei
2016-02-03 18:09           ` Fu Wei
2016-02-03 18:12           ` Timur Tabi
2016-02-03 18:12             ` Timur Tabi
2016-02-03 18:12             ` Timur Tabi
2016-02-04 16:25   ` Mathieu Poirier
2016-02-04 16:25     ` Mathieu Poirier
2016-02-04 16:25     ` Mathieu Poirier
2016-02-05  9:01     ` Fu Wei
2016-02-05  9:01       ` Fu Wei
2016-02-05  9:01       ` Fu Wei
2016-02-04 16:31   ` Will Deacon
2016-02-04 16:31     ` Will Deacon
2016-02-04 16:31     ` Will Deacon
2016-02-04 16:37     ` Timur Tabi
2016-02-04 16:37       ` Timur Tabi
2016-02-04 16:37       ` Timur Tabi
2016-02-04 16:46       ` Guenter Roeck
2016-02-04 16:46         ` Guenter Roeck
2016-02-05  8:52         ` Fu Wei
2016-02-05  8:52           ` Fu Wei
2016-02-05  8:52           ` Fu Wei
2016-02-03 17:18 ` [PATCH v10 5/5] Watchdog: ARM SBSA Generic Watchdog half timeout panic support fu.wei
2016-02-03 17:18   ` fu.wei at linaro.org
2016-02-03 17:27   ` Timur Tabi
2016-02-03 17:27     ` Timur Tabi
2016-02-03 17:49     ` Fu Wei
2016-02-03 17:49       ` Fu Wei
2016-02-03 17:49       ` Fu Wei
2016-02-03 17:53       ` Timur Tabi
2016-02-03 17:53         ` Timur Tabi
2016-02-03 17:53         ` Timur Tabi
2016-02-03 18:06         ` Fu Wei
2016-02-03 18:06           ` Fu Wei
2016-02-03 18:06           ` Fu Wei
2016-02-03 18:08           ` Timur Tabi
2016-02-03 18:08             ` Timur Tabi
2016-02-03 18:08             ` Timur Tabi
2016-02-03 18:18             ` Fu Wei
2016-02-03 18:18               ` Fu Wei
2016-02-03 18:18               ` Fu Wei
2016-02-03 18:26               ` Timur Tabi
2016-02-03 18:26                 ` Timur Tabi
2016-02-03 18:26                 ` Timur Tabi
2016-02-03 18:37                 ` Fu Wei
2016-02-03 18:37                   ` Fu Wei
2016-02-03 18:37                   ` Fu Wei
2016-02-03 18:45                   ` Timur Tabi
2016-02-03 18:45                     ` Timur Tabi
2016-02-03 18:45                     ` Timur Tabi
2016-02-03 23:00                     ` Fu Wei
2016-02-03 23:00                       ` Fu Wei
2016-02-03 23:00                       ` Fu Wei
2016-02-04  5:17                       ` Guenter Roeck
2016-02-04  5:17                         ` Guenter Roeck
2016-02-04  5:17                         ` Guenter Roeck
2016-02-04 13:48                         ` Timur Tabi
2016-02-04 13:48                           ` Timur Tabi
2016-02-04 13:48                           ` Timur Tabi
2016-02-04 14:41                           ` Guenter Roeck
2016-02-04 14:41                             ` Guenter Roeck
2016-02-04 14:41                             ` Guenter Roeck
2016-02-05  9:51                         ` Fu Wei
2016-02-05  9:51                           ` Fu Wei
2016-02-05  9:51                           ` Fu Wei
2016-02-05 13:02                           ` Thomas Petazzoni
2016-02-05 13:02                             ` Thomas Petazzoni
2016-02-05 13:02                             ` Thomas Petazzoni
2016-02-05 13:08                             ` Timur Tabi
2016-02-05 13:08                               ` Timur Tabi
2016-02-05 13:08                               ` Timur Tabi
2016-02-05 13:33                               ` Thomas Petazzoni
2016-02-05 13:33                                 ` Thomas Petazzoni
2016-02-05 13:33                                 ` Thomas Petazzoni
2016-02-05 14:42                           ` Guenter Roeck
2016-02-05 14:42                             ` Guenter Roeck
2016-02-05 14:42                             ` Guenter Roeck
2016-02-05 18:21                             ` Fu Wei
2016-02-05 18:21                               ` Fu Wei
2016-02-05 18:21                               ` Fu Wei
2016-02-05 23:54                               ` Guenter Roeck
2016-02-05 23:54                                 ` Guenter Roeck
2016-02-05 23:54                                 ` Guenter Roeck
2016-02-06 18:02                                 ` Fu Wei
2016-02-06 18:02                                   ` Fu Wei
2016-02-06 18:02                                   ` Fu Wei
2016-02-06 18:55                                   ` Timur Tabi
2016-02-06 18:55                                     ` Timur Tabi
2016-02-06 18:55                                     ` Timur Tabi
2016-02-07  2:02                                     ` Fu Wei
2016-02-07  2:02                                       ` Fu Wei
2016-02-07  2:02                                       ` Fu Wei
2016-02-06 18:57                                   ` Guenter Roeck
2016-02-06 18:57                                     ` Guenter Roeck
2016-02-06 18:57                                     ` Guenter Roeck
2016-02-07  2:12                                     ` Fu Wei
2016-02-07  2:12                                       ` Fu Wei
2016-02-07  2:12                                       ` Fu Wei
2016-02-04 16:32   ` Mathieu Poirier
2016-02-04 16:32     ` Mathieu Poirier
2016-02-04 16:32     ` Mathieu Poirier
2016-02-04 16:41     ` Guenter Roeck
2016-02-04 16:41       ` Guenter Roeck
2016-02-04 16:41       ` Guenter Roeck
2016-02-04 16:43     ` Timur Tabi
2016-02-04 16:43       ` Timur Tabi
2016-02-04 16:43       ` Timur Tabi
2016-02-05  9:20       ` Fu Wei
2016-02-05  9:20         ` Fu Wei
2016-02-05  9:20         ` Fu Wei

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.