Page MenuHomeFreeBSD

Fix GIC interrupts decoding in FDT
ClosedPublic

Authored by bsz_semihalf.com on Nov 19 2015, 12:26 PM.
Tags
Referenced Files
Unknown Object (File)
Tue, Apr 23, 7:06 AM
Unknown Object (File)
Mon, Apr 22, 11:01 PM
Unknown Object (File)
Mon, Apr 22, 10:55 PM
Unknown Object (File)
Sun, Apr 7, 2:10 AM
Unknown Object (File)
Sat, Apr 6, 11:51 PM
Unknown Object (File)
Feb 24 2024, 7:02 AM
Unknown Object (File)
Jan 2 2024, 4:00 PM
Unknown Object (File)
Dec 20 2023, 2:34 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 Not Applicable
Unit
Tests Not Applicable

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–340 ↗(On Diff #10343)

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 ↗(On Diff #10376)

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 ↗(On Diff #10376)

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.