core: interrupt: move to new interrupt API functions and remove the old ones - #6113
core: interrupt: move to new interrupt API functions and remove the old ones#6113etienne-lms wants to merge 12 commits into
Conversation
|
If you don't mind, please wait with "[review] drivers: move to interrupt_call_handlers" until we see how the bottom half handlers will play out. |
|
Ok, i'll drop the fixup commit. |
Removes itr_handle() in favor to interrupt_call_handlers(). This changes updates all implemented main interrupt controller drivers that are the GIC driver, the HFIC driver and Atmel SAIC driver. Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
|
@borneoa, you may want to have a look at this series. |
|
Updated with |
|
For commit "core: interrupt: helper function for raise_pi, raise_sgi, set_affinity", please apply: |
|
May I squash the fixup commit and reorder the patches? |
Yes, please. |
|
Fixup commits squashed and commits reordered. |
| irq_type, irq_prio); | ||
| if (!it_hdlr) | ||
| goto err_free_wdt; | ||
| it_hdlr = calloc(1, sizeof(*it_hdlr)); |
There was a problem hiding this comment.
It would be nice with an alternative to interrupt_alloc_add_handler() which also takes irq_type and irq_prio into account. I wouldn't mind an interrupt_alloc_add_handler2() to take care of that, or interrupt_alloc_add_conf_handler() if you don't mind even longer function names.
|
For the commit "core: notif: upgrade to new interrupt framework" For the commits:
Please apply: |
|
Comment for adding an |
Adds interrupt API function interrupt_alloc_add_conf_handler() to allocate, configure and register an interrupt handler, providing interrupt type and priority. Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
Defines helper API functions to call .raise_pi, .raise_sgi and .set_affinity handlers of a chip controller. Defines API function to query support of these handlers in the interrupt controller. Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Uses main controller ops to call .raise_sgi as the old API functions itr_xxx() are deprecated. Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Moves atmel_wdt watchdog driver to the new interrupt framework API functions. Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Moves CAAM job ring driver to the new interrupt framework API functions. Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Upgrades sp805_wdt.c driver to the new interrupt API functions as itr_alloc_add() and friends will be removed. Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Moves atmel_piobu driver to the new interrupt framework API functions. Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Moves plat-vexpress to the new interrupt framework API functions. Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Moves plat-synquacer to the new interrupt framework API functions. Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Moves plat-stm32mp1 to the new interrupt framework API functions. Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Remove old itr_xxx() API functions. Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
|
Fixed commit message (#6113 (comment)) and applied review tags to relevant patches (8/11). |
|
Hello,
I just tested there is a boot issue on sama5d27, with |
|
Thansk @tprrt for the tests. Is the boot issue you found related to this P-R? I find it strange that clock drivers probinding fail due to changes in the interrupt framework. Can you check that sama5d27 boots well on current OP-TEE OS master branch tip? |
|
Hello
I agree, the issue isn’t related to this pull-request, I reproduced with the master branch (31a550c). Kind regards, |
|
@tprrt, can you bisect into master branch commits to locate (and possibly fix) the faulty commit? |
|
Hello,
Yes, I will. |
|
Hello, Sorry, I have a very busy schedule, I will do my best to apply required changes next week. Kind regards, |
|
This pull request has been marked as a stale pull request because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment, otherwise this pull request will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time. |
|
This pull request has been marked as a stale pull request because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment, otherwise this pull request will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time. |
10 patches extracted from #5954 + a fixup patch (for series 1st commit) to finalise new interrupt management API functions that can be used on CPU main interrupt controller as well as on secondary interrupt controllers.
This series makes main controller to use generic resources, then it moves each interrupt consumer to the new API functions, last the series removes old interrupt API functions
itr_*().1st commit (("drivers: move to interrupt_call_handlers()") has a review tag applied but I appended a fixup commit for some rewording in inline description comments.