HomeFreeBSD

Introduce separate watchdog driver for Armada to fix phony DELAY

Description

Introduce separate watchdog driver for Armada to fix phony DELAY

DELAY is a problematic routine called all over the kernel.
Armada38x using CA-9 CPUs are using mpcore timer to count events
and measure time but DELAY in the mpcore timer code is a weak
function reference and therefore will be replaced by the platform
implementation if the one is introduced. Since Armada38x uses
on-chip watchdog to which the driver is merged with the on-chip timer
driver there will be a platform DELAY implementation.
The latter however will not use any HW timers as it will not attempt
to configure any. Phony busy loop will be used instead.

To fix that we introduce a separate watchdog driver for Armada platforms,
(currently only A38X) and stop using Marvell timer driver. That
switches DELAY to the desired implementation.

Submitted by: Zbigniew Bodek <zbb@semihalf.com>
Obtained from: Semihalf
Sponsored by: Stormshield
Differential revision: https://reviews.freebsd.org/D10710

Details

Committed
zbbMay 25 2017, 2:22 PM
Differential Revision
D10710: Introduce separate watchdog driver for Armada to fix phony DELAY
Parents
rS318875: Enable SCU Speculative linefills to L2 on Armada 38x
Branches
Unknown
Tags
Unknown