Skip to content

Change priorities related to TISCI and other components#104673

Merged
aescolar merged 3 commits intozephyrproject-rtos:mainfrom
natto1784:tisci_priorities
Mar 3, 2026
Merged

Change priorities related to TISCI and other components#104673
aescolar merged 3 commits intozephyrproject-rtos:mainfrom
natto1784:tisci_priorities

Conversation

@natto1784
Copy link
Copy Markdown
Contributor

@natto1784 natto1784 commented Feb 27, 2026

Change priority from KERNEL_INIT_PRIORITY_OBJECTS to KERNEL_INIT_PRIORITY_DEFAULT for following components

  1. Secure Proxy: To fulfil default priority dependency on ARM GICv3 (INTC priority)
  2. TISCI: To fulfil the changed secure proxy priority dependency.
  3. TISCI clock controller: To fulfil the changed TISCI priority dependency.

Comment thread drivers/mbox/Kconfig.ti_secproxy Outdated
@@ -10,6 +10,6 @@ config MBOX_TI_SECURE_PROXY

config MBOX_TI_SECURE_PROXY_PRIORITY
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we have a non-standard priority config to begin with? If we had just used MBOX_INIT_PRIORITY in the driver like all other mailbox drivers, we would be at the same priority as KERNEL_INIT_PRIORITY_DEVICE(40) by default.

Let's do that instead, in this patch drop MBOX_TI_SECURE_PROXY_PRIORITY and use MBOX_INIT_PRIORITY in the driver to get the same result in a more standard way.

Copy link
Copy Markdown
Contributor Author

@natto1784 natto1784 Feb 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed in favor of MBOX_INIT_PRIORITY. Also changed other priorities to KERNEL_INIT_PRIORITY_DEFAULT (40). KERNEL_INIT_PRIORITY_DEVICE by defaul tis 50. Will do a quick build later to confirm this is not an issue.

@glneo
Copy link
Copy Markdown
Contributor

glneo commented Feb 27, 2026

Reverse the order of these patches, as they are now after the first patch the priorities are inverted and build fails, breaking bisectability. Start with the top driver and work down.

@natto1784
Copy link
Copy Markdown
Contributor Author

Reverse the order of these patches, as they are now after the first patch the priorities are inverted and build fails, breaking bisectability. Start with the top driver and work down.

makes sense, will do, thanks

Change priority from KERNEL_INIT_PRIORITY_OBJECTS to
KERNEL_INIT_PRIORITY_DEFAULT so that the priority dependency on TISCI
protocol/firmware layer gets fulfilled.

Signed-off-by: Amneesh Singh <amneesh@ti.com>
Change priority from KERNEL_INIT_PRIORITY_OBJECTS to
KERNEL_INIT_PRIORITY_DEFAULT so that the priority dependency on TI secure
proxy mailbox fulfilled.

Signed-off-by: Amneesh Singh <amneesh@ti.com>
Remove MBOX_TI_SECURE_PROXY_PRIORITY in favor of MBOX_INIT_PRIORITY which
by default is set to 40, which is desirable so that the priority dependency
on interrupt controllers like ARM GICv3 gets fulfilled. This change is for
convenience of building at default priorities.

Signed-off-by: Amneesh Singh <amneesh@ti.com>
@sonarqubecloud
Copy link
Copy Markdown

@aescolar aescolar merged commit fe1103b into zephyrproject-rtos:main Mar 3, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants