Page MenuHomeFreeBSD

aw_wdog: support Allwinner D1 watchdog
ClosedPublic

Authored by julien.cassette_gmail.com on Apr 2 2022, 11:38 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 12 2024, 7:47 AM
Unknown Object (File)
Jan 15 2024, 11:13 PM
Unknown Object (File)
Dec 20 2023, 8:35 AM
Unknown Object (File)
Dec 12 2023, 11:15 AM
Unknown Object (File)
Nov 11 2023, 3:25 AM
Unknown Object (File)
Nov 10 2023, 12:08 PM
Unknown Object (File)
Nov 9 2023, 3:26 AM
Unknown Object (File)
Nov 9 2023, 12:26 AM

Details

Summary

Signed-off-by: Julien Cassette <julien.cassette@gmail.com>

Test Plan

The Lichee RV does not reset any more after executing watchdog -t 0

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I don't see any reason why this needs to be part of the revision stack, it isn't dependent on anything else

sys/riscv/include/machdep.h
40 ↗(On Diff #104497)

For what? You haven't touched this header.

I don't see any reason why this needs to be part of the revision stack, it isn't dependent on anything else

Hello Jessica.
Sorry I am a new contributor to FreeBSD and have not used Phabricator before.
If you tell me how I can maybe edit the stack so that the revisions are separate?
Regards, Julien.

sys/riscv/include/machdep.h
40 ↗(On Diff #104497)

This is to get the definition of PHYS_AVAIL_ENTRIES. Otherwise the build would fail.

mhorne added subscribers: gonzo, mhorne.

The driver changes look good to me although I am not the authority there. As mentioned please drop the diff to machdep.h.

Hello Jessica.
Sorry I am a new contributor to FreeBSD and have not used Phabricator before.
If you tell me how I can maybe edit the stack so that the revisions are separate?
Regards, Julien.

Check out 'Edit Related Revisions' on the right hand side.

sys/riscv/allwinner/files.allwinner
2–4

This seems fine for now; we can always re-evaluate how this is organized if/when more allwinner drivers get added to the riscv build.

sys/riscv/include/machdep.h
40 ↗(On Diff #104497)

I believe we can do away with the problematic physmap global altogether. I will handle this separately.

For this review, it should be enough to remove #include <machine/machdep.h> from the watchdog driver. I could build the arm and arm64 kernels without it.

This revision is now accepted and ready to land.Apr 3 2022, 4:54 PM
This revision now requires review to proceed.Apr 3 2022, 6:38 PM

The driver changes look good to me although I am not the authority there. As mentioned please drop the diff to machdep.h.

Check out 'Edit Related Revisions' on the right hand side.

Hi Mitchell and thanks for the review.
I have made the corrections for machdep.h and removed the parent revision.
Julien

The watchdog driver part looks ok for me after looking at the user manual.
I leave anyone who do riscv stuff to feel free to commit.

sys/riscv/allwinner/files.allwinner
2–4

Agreed

This revision is now accepted and ready to land.Apr 8 2022, 7:57 AM
This revision was automatically updated to reflect the committed changes.