1. 17 3月, 2016 1 次提交
    • F
      Watchdog: introduce ARM SBSA watchdog driver · 57d2caaa
      Fu Wei 提交于
      According to Server Base System Architecture (SBSA) specification,
      the SBSA Generic Watchdog has two stage timeouts: the first signal (WS0)
      is for alerting the system by interrupt, the second one (WS1) is a real
      hardware reset.
      More details about the hardware specification of this device:
      ARM DEN0029B - Server Base System Architecture (SBSA)
      
      This driver can operate ARM SBSA Generic Watchdog as a single stage watchdog
      or a two stages watchdog, it's set up by the module parameter "action".
      In the single stage mode, when the timeout is reached, your system
      will be reset by WS1. The first signal (WS0) is ignored.
      In the two stages mode, when the timeout is reached, the first signal (WS0)
      will trigger panic. If the system is getting into trouble and cannot be reset
      by panic or restart properly by the kdump kernel(if supported), then the
      second stage (as long as the first stage) will be reached, system will be
      reset by WS1. This function can help administrator to backup the system
      context info by panic console output or kdump.
      
      This driver bases on linux kernel watchdog framework, so it can get
      timeout from module parameter and FDT at the driver init stage.
      Signed-off-by: NFu Wei <fu.wei@linaro.org>
      Reviewed-by: NGraeme Gregory <graeme.gregory@linaro.org>
      Tested-by: NPratyush Anand <panand@redhat.com>
      Acked-by: NTimur Tabi <timur@codeaurora.org>
      Reviewed-by: NMathieu Poirier <mathieu.poirier@linaro.org>
      Tested-by: NSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
      57d2caaa
  2. 01 3月, 2016 6 次提交
  3. 31 1月, 2016 3 次提交
  4. 10 1月, 2016 1 次提交
  5. 29 12月, 2015 5 次提交
  6. 27 12月, 2015 1 次提交
    • P
      watchdog: Read device status through sysfs attributes · 33b71126
      Pratyush Anand 提交于
      This patch adds following attributes to watchdog device's sysfs interface
      to read its different status.
      
      * state - reads whether device is active or not
      * identity - reads Watchdog device's identity string.
      * timeout - reads current timeout.
      * timeleft - reads timeleft before watchdog generates a reset
      * bootstatus - reads status of the watchdog device at boot
      * status - reads watchdog device's  internal status bits
      * nowayout - reads whether nowayout feature was set or not
      
      Testing with iTCO_wdt:
       # cd /sys/class/watchdog/watchdog1/
       # ls
      bootstatus  dev  device  identity  nowayout  power  state
      subsystem  timeleft  timeout  uevent
       # cat identity
      iTCO_wdt
       # cat timeout
      30
       # cat state
      inactive
       # echo > /dev/watchdog1
       # cat timeleft
      26
       # cat state
      active
       # cat bootstatus
      0
       # cat nowayout
      0
      Signed-off-by: NPratyush Anand <panand@redhat.com>
      Reviewed-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
      33b71126
  7. 23 11月, 2015 1 次提交
  8. 27 10月, 2015 1 次提交
  9. 28 9月, 2015 1 次提交
    • G
      watchdog: iTCO: Fix dependencies on I2C · 3cef072d
      Guenter Roeck 提交于
      If I2C is built as module, the iTCO watchdog driver must be built as module
      as well. I2C_I801 must only be selected if I2C is configured.
      
      This fixes the following build errors, seen if I2C=m and ITCO_WDT=y.
      
      i2c-i801.c:(.text+0x2bf055): undefined reference to `i2c_del_adapter'
      i2c-i801.c:(.text+0x2c13e0): undefined reference to `i2c_add_adapter'
      i2c-i801.c:(.text+0x2c17bd): undefined reference to `i2c_new_device'
      
      Fixes: 2a7a0e9b ("watchdog: iTCO_wdt: Add support for TCO on Intel Sunrisepoint")
      Reviewed-by: NMatt Fleming <matt.fleming@intel.com>
      Cc: Lee Jones <lee.jones@linaro.org>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
      3cef072d
  10. 10 9月, 2015 3 次提交
  11. 11 8月, 2015 1 次提交
  12. 29 6月, 2015 1 次提交
  13. 22 6月, 2015 6 次提交
  14. 30 4月, 2015 1 次提交
  15. 22 4月, 2015 2 次提交
  16. 17 3月, 2015 1 次提交
  17. 18 2月, 2015 4 次提交
  18. 26 11月, 2014 1 次提交