Page MenuHomeFreeBSD

Introduce separate watchdog driver for Armada to fix phony DELAY
ClosedPublic

Authored by mw_semihalf.com on May 14 2017, 12:38 AM.
Tags
Referenced Files
F105783655: D10710.diff
Fri, Dec 20, 3:45 PM
Unknown Object (File)
Sun, Dec 15, 4:49 AM
Unknown Object (File)
Sat, Dec 14, 11:57 AM
Unknown Object (File)
Oct 1 2024, 6:36 AM
Unknown Object (File)
Sep 30 2024, 7:53 PM
Unknown Object (File)
Sep 30 2024, 12:17 PM
Unknown Object (File)
Sep 29 2024, 9:55 AM
Unknown Object (File)
Sep 29 2024, 2:38 AM

Details

Summary

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.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable