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
F97594306: D34749.diff
Mon, Sep 30, 6:16 AM
F97529773: D34749.id104535.diff
Sun, Sep 29, 10:21 PM
Unknown Object (File)
Sat, Sep 28, 1:06 PM
Unknown Object (File)
Sat, Sep 28, 7:36 AM
Unknown Object (File)
Fri, Sep 27, 10:01 PM
Unknown Object (File)
Wed, Sep 25, 1:56 PM
Unknown Object (File)
Wed, Sep 25, 8:22 AM
Unknown Object (File)
Wed, Sep 25, 7:34 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44963
Build 41851: arc lint + arc unit

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

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

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
1–3

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

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
1–3

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.