Page MenuHomeFreeBSD

Fix GIC interrupts decoding in FDT
ClosedPublic

Authored by bsz_semihalf.com on Nov 19 2015, 12:26 PM.
Tags
Referenced Files
F106162655: D4215.id10376.diff
Thu, Dec 26, 10:22 AM
Unknown Object (File)
Fri, Dec 13, 12:00 PM
Unknown Object (File)
Wed, Dec 11, 11:24 PM
Unknown Object (File)
Wed, Dec 4, 7:58 AM
Unknown Object (File)
Tue, Dec 3, 2:27 PM
Unknown Object (File)
Oct 20 2024, 12:41 PM
Unknown Object (File)
Sep 24 2024, 4:22 AM
Unknown Object (File)
Sep 23 2024, 3:45 AM
Subscribers

Details

Summary

Interrupt type in FDT was interpreted incorrectly.
Patch taken from freebsd-arm thread 'GIC - interrupts interpretation in
DTS/FDT':
https://lists.freebsd.org/pipermail/freebsd-arm/2015-August/012145.html

Obtained from: Semihalf
Sponsored by: Stormshield
Submitted by: Michal Stanek <mst@semihalf.com>

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

bsz_semihalf.com retitled this revision from to Fix GIC interrupts decoding in FDT.
bsz_semihalf.com updated this object.
bsz_semihalf.com edited the test plan for this revision. (Show Details)
bsz_semihalf.com added reviewers: ian, imp.
bsz_semihalf.com set the repository for this revision to rS FreeBSD src repository - subversion.
bsz_semihalf.com added a project: ARM.
bsz_semihalf.com added a subscriber: zbb.
imp edited edge metadata.
This revision is now accepted and ready to land.Nov 19 2015, 2:48 PM
sys/arm/arm/gic.c
339–341

You should follow style(9) here, new line agter the &&

bsz_semihalf.com updated this object.
bsz_semihalf.com edited edge metadata.

Style corrected.

This revision now requires review to proceed.Nov 20 2015, 1:45 PM
sys/arm/arm/gic.c
118

This is a horrible name, all 4 bits are trigger bits, the distinction is between edge and level triggering. How about something like GIC_FDT_EDGE_TRIGGERED? (or _EDGE_BITS).

sys/arm/arm/gic.c
118

Somebody fixed that already in tree, so I will remove it.

bsz_semihalf.com edited edge metadata.
bsz_semihalf.com marked 2 inline comments as done.
ian edited edge metadata.
This revision is now accepted and ready to land.Dec 22 2015, 3:49 AM
This revision was automatically updated to reflect the committed changes.