Page MenuHomeFreeBSD

arm64: add a driver for the Apple watchdog
AcceptedPublic

Authored by kevans on Apr 26 2023, 5:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 2, 1:38 AM
Unknown Object (File)
Thu, Mar 28, 10:44 AM
Unknown Object (File)
Dec 20 2023, 7:41 AM
Unknown Object (File)
Dec 10 2023, 7:22 AM
Unknown Object (File)
Oct 10 2023, 6:24 PM
Unknown Object (File)
Jul 10 2023, 7:58 PM
Unknown Object (File)
Jun 22 2023, 6:19 PM
Unknown Object (File)
Jun 16 2023, 3:54 AM

Details

Reviewers
karels
manu
ray
andrew
Group Reviewers
arm64
Summary

Ensure it's disarmed upon attach, provide basic reset functionality.

Register definitions/usage obtained from OpenBSD.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 51201
Build 48092: arc lint + arc unit

Event Timeline

Would like a comment in the file mentioning what hardware this applies to

sys/arm64/apple/apple_wdog.c
6

Is this copy-paste from elsewhere? (Can we remove "All rights reserved."?)

Would like a comment in the file mentioning what hardware this applies to

Kyle, do you have any idea how to describe this? "Watchdog timer on Apple M1" is about all I know. We could mention t8103, but I don't know how accurate that is.

sys/arm64/apple/apple_wdog.c
6

It's from bcm2835_wdog.c, which has All Rights Reserved.

Should we mention the source in a comment?

Would like a comment in the file mentioning what hardware this applies to

Kyle, do you have any idea how to describe this? "Watchdog timer on Apple M1" is about all I know. We could mention t8103, but I don't know how accurate that is.

Yeah, I think a simple: /* Watchdog timer on Apple Silicon machines */ is probably sufficient and accurate enough.

sys/arm64/apple/apple_wdog.c
6

CC @ray

sys/arm64/apple/apple_wdog.c
6

IMO it's worth having something like "based on bcm2835_wdog.c".

We can drop the "All rights reserved" (from this copy) if @karels and @ray agree

sys/arm64/apple/apple_wdog.c
6

Fine with me; I wouldn't have included it except that it was in the earlier file.

For what it's worth, I don't see problems with the driver, but I worked on the code (long ago), and don't know arm or watchdogs well enough to approve this. Someone else should approve.

Look good to me. Thanks!

sys/arm64/apple/apple_wdog.c
6

Fine for me too.

This revision is now accepted and ready to land.Jun 9 2023, 9:06 PM

I had forgotten about this one... Kyle, can you remove "All rights reserved" and add the reference?

I had forgotten about this one... Kyle, can you remove "All rights reserved" and add the reference?

Yeah, I think I'll just tidy this up and push it from here. Thanks!

Is this review finished and can be closed?

In D39824#959982, @bcr wrote:

Is this review finished and can be closed?

negative; it hasn't landed yet, as I've been trying to get some consensus on some framework bits needed for the interrupt controller (I was hoping to push them at the same time).