28 Sep, 2019

1 commit

  • Pull watchdog updates from Wim Van Sebroeck:

    - addition of AST2600, i.MX7ULP and F81803 watchdog support

    - removal of the w90x900 and ks8695 drivers

    - ziirave_wdt improvements

    - small fixes and improvements

    * tag 'linux-watchdog-5.4-rc1' of git://www.linux-watchdog.org/linux-watchdog: (51 commits)
    watchdog: f71808e_wdt: Add F81803 support
    watchdog: qcom: remove unnecessary variable from private storage
    watchdog: qcom: support pre-timeout when the bark irq is available
    watchdog: imx_sc: this patch just fixes whitespaces
    watchdog: apseed: Add access_cs0 option for alt-boot
    watchdog: aspeed: add support for dual boot
    watchdog: orion_wdt: use timer1 as a pretimeout
    watchdog: Add i.MX7ULP watchdog support
    dt-bindings: watchdog: Add i.MX7ULP bindings
    dt-bindings: watchdog: sun4i: Add the watchdog clock
    dt-bindings: watchdog: sun4i: Add the watchdog interrupts
    dt-bindings: watchdog: Convert Allwinner watchdog to a schema
    dt-bindings: watchdog: Add YAML schemas for the generic watchdog bindings
    watchdog: aspeed: Add support for AST2600
    dt-bindings: watchdog: Add ast2600 compatible
    watchdog: ziirave_wdt: Update checked I2C functionality mask
    watchdog: ziirave_wdt: Drop ziirave_firm_write_block_data()
    watchdog: ziirave_wdt: Fix DOWNLOAD_START payload
    watchdog: ziirave_wdt: Drop status polling code
    watchdog: ziirave_wdt: Fix RESET_PROCESSOR payload
    ...

    Linus Torvalds
     

17 Sep, 2019

2 commits

  • The ARM w90x900 platform is getting removed, so this driver is obsolete

    Signed-off-by: Arnd Bergmann
    Acked-by: Guenter Roeck
    Link: https://lore.kernel.org/r/20190809202749.742267-7-arnd@arndb.de
    Signed-off-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Arnd Bergmann
     
  • The platform is getting removed, so there are no remaining
    users of this driver.

    Signed-off-by: Arnd Bergmann
    Acked-by: Guenter Roeck
    Link: https://lore.kernel.org/r/20190809202749.742267-5-arnd@arndb.de
    Signed-off-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Arnd Bergmann
     

23 Jul, 2019

1 commit


19 Jul, 2019

1 commit

  • Pull watchdog updates from Wim Van Sebroeck:

    - add Allwinner H6 watchdog

    - drop warning after registering device patches

    - hpwdt improvements

    - gpio: add support for nowayout option

    - introduce CONFIG_WATCHDOG_OPEN_TIMEOUT

    - convert remaining drivers to use SPDX license identifier

    - Fixes and improvements on several watchdog device drivers

    * tag 'linux-watchdog-5.3-rc1' of git://www.linux-watchdog.org/linux-watchdog: (74 commits)
    watchdog: digicolor_wdt: Remove unused variable in dc_wdt_probe
    watchdog: ie6xx_wdt: Use spinlock_t instead of struct spinlock
    watchdog: atmel: atmel-sama5d4-wdt: Disable watchdog on system suspend
    watchdog: convert remaining drivers to use SPDX license identifier
    dt-bindings: watchdog: Rename bindings documentation file
    watchdog: mei_wdt: no need to check return value of debugfs_create functions
    watchdog: bcm_kona_wdt: no need to check return value of debugfs_create functions
    docs: watchdog: Fix build error.
    docs: watchdog: convert docs to ReST and rename to *.rst
    watchdog: make the device time out at open_deadline when open_timeout is used
    watchdog: introduce CONFIG_WATCHDOG_OPEN_TIMEOUT
    watchdog: introduce watchdog.open_timeout commandline parameter
    dt-bindings: watchdog: move i.MX system controller watchdog binding to SCU
    watchdog: imx_sc: Add pretimeout support
    watchdog: renesas_wdt: Add a few cycles delay
    watchdog: gpio: add support for nowayout option
    watchdog: renesas_wdt: Use 'dev' instead of dereferencing it repeatedly
    dt-bindings: watchdog: add Allwinner H6 watchdog
    watchdog: jz4740: Avoid starting watchdog in set_timeout
    watchdog: jz4740: Use register names from
    ...

    Linus Torvalds
     

17 Jul, 2019

1 commit


15 Jul, 2019

1 commit

  • The contents of those directories were orphaned at the documentation
    body.

    While those directories could likely be moved to be inside some guide,
    I'm opting to just adding their indexes to the main one, removing the
    :orphan: and adding the SPDX header.

    For the drivers, the rationale is that the documentation contains
    a mix of Kernelspace, uAPI and admin-guide. So, better to keep them on
    separate directories, as we've be doing with similar subsystem-specific
    docs that were not split yet.

    For the others, well... I'm too lazy to do the move. Also, it
    seems to make sense to keep at least some of those at the main
    dir (like kbuild, for example). In any case, a latter patch
    could do the move.

    Signed-off-by: Mauro Carvalho Chehab
    Acked-by: Bartlomiej Zolnierkiewicz

    Mauro Carvalho Chehab
     

09 Jul, 2019

4 commits

  • make htmldocs fails due to missing blank line following header.

    Signed-off-by: Jerry Hoemann
    Reviewed-by: Mauro Carvalho Chehab
    Reviewed-by: Guenter Roeck
    Signed-off-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Jerry Hoemann
     
  • Convert those documents and prepare them to be part of the kernel
    API book, as most of the stuff there are related to the
    Kernel interfaces.

    Still, in the future, it would make sense to split the docs,
    as some of the stuff is clearly focused on sysadmin tasks.

    The conversion is actually:
    - add blank lines and identation in order to identify paragraphs;
    - fix tables markups;
    - add some lists markups;
    - mark literal blocks;
    - adjust title markups.

    At its new index.rst, let's add a :orphan: while this is not linked to
    the main index.rst file, in order to avoid build warnings.

    Signed-off-by: Mauro Carvalho Chehab
    Reviewed-by: Guenter Roeck
    Signed-off-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Mauro Carvalho Chehab
     
  • This allows setting a default value for the watchdog.open_timeout
    commandline parameter via Kconfig.

    Some BSPs allow remote updating of the kernel image and root file
    system, but updating the bootloader requires physical access. Hence, if
    one has a firmware update that requires relaxing the
    watchdog.open_timeout a little, the value used must be baked into the
    kernel image itself and cannot come from the u-boot environment via the
    kernel command line.

    Being able to set the initial value in .config doesn't change the fact
    that the value on the command line, if present, takes precedence, and is
    of course immensely useful for development purposes while one has
    console acccess, as well as usable in the cases where one can make a
    permanent update of the kernel command line.

    Signed-off-by: Rasmus Villemoes
    Reviewed-by: Guenter Roeck
    Signed-off-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Rasmus Villemoes
     
  • The watchdog framework takes care of feeding a hardware watchdog until
    userspace opens /dev/watchdogN. If that never happens for some reason
    (buggy init script, corrupt root filesystem or whatnot) but the kernel
    itself is fine, the machine stays up indefinitely. This patch allows
    setting an upper limit for how long the kernel will take care of the
    watchdog, thus ensuring that the watchdog will eventually reset the
    machine.

    A value of 0 (the default) means infinite timeout, preserving the
    current behaviour.

    This is particularly useful for embedded devices where some fallback
    logic is implemented in the bootloader (e.g., use a different root
    partition, boot from network, ...).

    There is already handle_boot_enabled serving a similar purpose. However,
    such a binary choice is unsuitable if the hardware watchdog cannot be
    programmed by the bootloader to provide a timeout long enough for
    userspace to get up and running. Many of the embedded devices we see use
    external (gpio-triggered) watchdogs with a fixed timeout of the order of
    1-2 seconds.

    The open timeout only applies for the first open from
    userspace. Should userspace need to close the watchdog device, with
    the intention of re-opening it shortly, the application can emulate
    the open timeout feature by combining the nowayout feature with an
    appropriate WDIOC_SETTIMEOUT immediately prior to closing the device.

    Signed-off-by: Rasmus Villemoes
    Reviewed-by: Guenter Roeck
    Signed-off-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Rasmus Villemoes
     

08 Jul, 2019

1 commit


15 Jun, 2019

2 commits

  • Convert those documents and prepare them to be part of the kernel
    API book, as most of the stuff there are related to the
    Kernel interfaces.

    Still, in the future, it would make sense to split the docs,
    as some of the stuff is clearly focused on sysadmin tasks.

    The conversion is actually:
    - add blank lines and identation in order to identify paragraphs;
    - fix tables markups;
    - add some lists markups;
    - mark literal blocks;
    - adjust title markups.

    At its new index.rst, let's add a :orphan: while this is not linked to
    the main index.rst file, in order to avoid build warnings.

    Signed-off-by: Mauro Carvalho Chehab
    Reviewed-by: Guenter Roeck
    Signed-off-by: Jonathan Corbet

    Mauro Carvalho Chehab
     
  • Convert kdump documentation to ReST and add it to the
    user faced manual, as the documents are mainly focused on
    sysadmins that would be enabling kdump.

    Note: the vmcoreinfo.rst has one very long title on one of its
    sub-sections:

    PG_lru|PG_private|PG_swapcache|PG_swapbacked|PG_slab|PG_hwpoision|PG_head_mask|PAGE_BUDDY_MAPCOUNT_VALUE(~PG_buddy)|PAGE_OFFLINE_MAPCOUNT_VALUE(~PG_offline)

    I opted to break this one, into two entries with the same content,
    in order to make it easier to display after being parsed in html and PDF.

    The conversion is actually:
    - add blank lines and identation in order to identify paragraphs;
    - fix tables markups;
    - add some lists markups;
    - mark literal blocks;
    - adjust title markups.

    At its new index.rst, let's add a :orphan: while this is not linked to
    the main index.rst file, in order to avoid build warnings.

    Signed-off-by: Mauro Carvalho Chehab
    Signed-off-by: Jonathan Corbet

    Mauro Carvalho Chehab
     

02 Mar, 2019

1 commit


24 Dec, 2018

2 commits


13 Oct, 2018

1 commit


02 Oct, 2018

1 commit

  • Remove references to deprecated features like NMI sourcing
    and obsoleted module parameters.

    Add details concerning new module parameter pretimeout and tips
    to programming it.

    Signed-off-by: Jerry Hoemann
    Reviewed-by: Guenter Roeck
    Signed-off-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Jerry Hoemann
     

26 Mar, 2018

1 commit


03 Feb, 2018

3 commits


20 Oct, 2017

1 commit


09 Sep, 2017

1 commit


03 Jul, 2017

1 commit


19 May, 2017

1 commit

  • The ICH9 is listed as having TCO v2, and indeed the behavior in the
    datasheet corresponds to v2 (for example the NO_REBOOT flag is
    accessible via the 16KiB-aligned Root Complex Base Address).

    However, the TCO counts twice just like in v1; the documentation
    of the SECOND_TO_STS bit says: "ICH9 sets this bit to 1 to indicate
    that the TIMEOUT bit had been (or is currently) set and a second
    timeout occurred before the TCO_RLD register was written. If this
    bit is set and the NO_REBOOT config bit is 0, then the ICH9 will
    reboot the system after the second timeout. The same can be found
    in the BayTrail (Atom E3800) datasheet, and even HOWTOs around
    the Internet say that it will reboot after _twice_ the specified
    heartbeat.

    I did not find the Apollo Lake datasheet, but because v4/v5 has
    a SECOND_TO_STS bit just like the previous version I'm enabling
    this for Apollo Lake as well.

    Cc: linux-watchdog@vger.kernel.org
    Reviewed-by: Andy Shevchenko
    Signed-off-by: Paolo Bonzini
    Reviewed-by: Guenter Roeck
    Signed-off-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Paolo Bonzini
     

25 Feb, 2017

2 commits


24 Oct, 2016

1 commit


15 Oct, 2016

1 commit

  • …/kernel/git/shuah/linux-kselftest

    Pull kselftest updates from Shuah Khan:
    "This update consists of:

    - Fixes and improvements to existing tests

    - Moving code from Documentation to selftests, samples, and tools:

    * Moves dnotify_test, prctl, ptp, vDSO, ia64, watchdog, and
    networking tests from Documentation to selftests.

    * Moves mic/mpssd, misc-devices/mei, timers, watchdog, auxdisplay,
    and blackfin examples from Documentation to samples.

    * Moves accounting, laptops/dslm, and pcmcia/crc32hash tools from
    Documentation to tools.

    * Deletes BUILD_DOCSRC and its dependencies"

    * tag 'linux-kselftest-4.9-rc1-update' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: (21 commits)
    selftests/futex: Check ANSI terminal color support
    Doc: update 00-INDEX files to reflect the runnable code move
    samples: move blackfin gptimers-example from Documentation
    tools: move pcmcia crc32hash tool from Documentation
    tools: move laptops dslm tool from Documentation
    tools: move accounting tool from Documentation
    samples: move auxdisplay example code from Documentation
    samples: move watchdog example code from Documentation
    samples: move timers example code from Documentation
    samples: move misc-devices/mei example code from Documentation
    samples: move mic/mpssd example code from Documentation
    selftests: Move networking/timestamping from Documentation
    selftests: move watchdog tests from Documentation/watchdog
    selftests: move ia64 tests from Documentation/ia64
    selftests: move vDSO tests from Documentation/vDSO
    selftests: move ptp tests from Documentation/ptp
    selftests: move prctl tests from Documentation/prctl
    selftests: move dnotify_test from Documentation/filesystems
    selftests/timers: Add missing error code assignment before test
    selftests/zram: replace ZRAM_LZ4_COMPRESS
    ...

    Linus Torvalds
     

08 Oct, 2016

1 commit

  • The change adds a simple watchdog pretimeout framework infrastructure,
    its purpose is to allow users to select a desired handling of watchdog
    pretimeout events, which may be generated by some watchdog devices.

    A user selects a default watchdog pretimeout governor during
    compilation stage.

    Watchdogs with WDIOF_PRETIMEOUT capability now have one more device
    attribute in sysfs, pretimeout_governor attribute is intended to display
    the selected watchdog pretimeout governor.

    The framework has no impact at runtime on watchdog devices with no
    WDIOF_PRETIMEOUT capability set.

    Signed-off-by: Vladimir Zapolskiy
    Reviewed-by: Guenter Roeck
    Reviewed-by: Wolfram Sang
    Tested-by: Wolfram Sang
    Signed-off-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Vladimir Zapolskiy
     

24 Sep, 2016

2 commits

  • Since the watchdog framework centrializes the IOCTL interfaces of device
    drivers now, SETPRETIMEOUT and GETPRETIMEOUT need to be added in the
    common code.

    Signed-off-by: Robin Gong
    Signed-off-by: Wolfram Sang
    [vzapolskiy: added conditional pretimeout sysfs attribute visibility]
    Signed-off-by: Vladimir Zapolskiy
    Reviewed-by: Guenter Roeck
    Signed-off-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Wolfram Sang
     
  • Move watchdog examples to samples and remove it from Documentation
    Makefile. Create a new Makefile to build watchdog. It can be built
    from top level directory or from watchdog directory:

    Run make -C samples/watchdog or cd samples/watchdog; make

    Acked-by: Jonathan Corbet
    Signed-off-by: Shuah Khan

    Shuah Khan
     

20 Sep, 2016

1 commit


25 Jul, 2016

1 commit

  • A recent commit added a write to the watchdog test code for doing the "magic
    close", but that caused a compile-time warning:

    Documentation/watchdog/src/watchdog-test.c: In function ‘main’:
    Documentation/watchdog/src/watchdog-test.c:94:5: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]

    This changes the code to print a runtime warning if the write fails.

    Fixes: 5a2d3de19602 ("Documentation/watchdog: add support for magic close to watchdog-test")
    Signed-off-by: Arnd Bergmann
    Acked-by: Timur Tabi
    Signed-off-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Arnd Bergmann
     

19 Jul, 2016

1 commit

  • Up to now, the watchdog status function called a driver function,
    which was supposed to return the watchdog status. All but one
    driver using the watchdog core did not implement this function,
    and the driver implementing it did not implement it correctly
    (the function is supposed to return WDIOF_ flags). At the same time,
    at least some of the status information can be provided by the watchdog
    core.

    Provide the available status bits directly from the watchdog driver core.
    Call the driver status function if it exists to get the boot status, but
    always provide WDIOF_MAGICCLOSE and WDIOF_KEEPALIVEPING internally.
    This patch makes the 'status' sysfs attribute always available.
    This attribute is now displayed as hex number with 0x prepended to be
    easier to decode.

    Signed-off-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Guenter Roeck
     

18 Jul, 2016

3 commits