Page MenuHomeFreeBSD

Configure interrupt on ARM when mapped
AbandonedPublic

Authored by zbb on Feb 9 2015, 11:55 AM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 12 2024, 12:20 AM
Unknown Object (File)
Aug 29 2023, 2:43 AM
Unknown Object (File)
Aug 11 2023, 1:21 AM
Unknown Object (File)
Jul 9 2023, 2:20 AM
Unknown Object (File)
Jun 3 2023, 7:48 AM
Unknown Object (File)
May 14 2023, 6:41 AM
Unknown Object (File)
Dec 14 2016, 4:09 PM
Unknown Object (File)
Jul 1 2016, 12:04 PM

Details

Reviewers
andrew
imp
ian
Summary

Do interrupt configuration as soon as is being mapped.

Submitted by: Wojciech Macek <wma@semihalf.com>
Obtained from: Semihalf

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

zbb retitled this revision from to Configure interrupt on ARM when mapped.
zbb updated this object.
zbb edited the test plan for this revision. (Show Details)
zbb added reviewers: ian, andrew.
zbb added a subscriber: Unknown Object (MLST).
imp added a reviewer: imp.
imp added a subscriber: imp.

This is likely to cause bumps / races that aren't in the code. Thankfully, most of these aren't that large and are easy to manage.

sys/arm/arm/intr.c
122

extra braces

This revision is now accepted and ready to land.Feb 9 2015, 3:32 PM

I think this is completely wrong and the interrupt needs to be configured when it is activated, not when it is parsed/decoded. Consider for example a gpio pin interrupt... we wouldn't want to mess with the pin state while the fdt data is being parsed because that data could refer to a possible configuration which is never going to be activated, and the actual use of the pin in the configuration that is active could be something else (not even related to interrupts).

From intrng: Each interrupt controller gets FDT(property) data in his decode fdt() routine.
And it is entirely his responsibility, if he stores and uses it, immediately or later.
Note: In theory, FDT data may contain more information than just polarity and triggering

zbb planned changes to this revision.Mar 6 2015, 4:16 PM

I'm closing this. Corresponding issue will be resolved in the platform code.