Skip to content

Conversation

@ya-mouse
Copy link
Contributor

@ya-mouse ya-mouse commented Jan 16, 2026

Add a 64KB memory region mapping at 0x40100000 for SCMI (System
Control and Management Interface) communication between U-Boot
and the ARM Trusted Firmware.

The region is configured with:

  • MT_NORMAL_NC (Non-cacheable normal memory) to ensure coherent
    access between the AP and SCP/firmware
  • PTE_BLOCK_NON_SHARE to match firmware expectations
  • PXN/UXN to prevent execution from this memory region

This shared memory region is used for SCMI message passing on RK3576
platforms that utilize ARM-FF-A or similar firmware interfaces for
clock, power domain, and other system control operations.

Change-Id: 9d1957c3-d21f-41de-b9b9-acfcffce4d83 batch-02

@ya-mouse ya-mouse requested a review from alchark January 16, 2026 11:48
@ya-mouse ya-mouse force-pushed the batch-02 branch 8 times, most recently from 8b7aa17 to 00d4f1e Compare January 20, 2026 07:58
@ya-mouse ya-mouse changed the title Second set of changes rockchip: rk3576: Add SCMI shared memory region to MMU mapping Jan 20, 2026
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we need this now and how did it work before without this change (or didn't)? Those should be mentioned in the commit description.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was required in order to make enabled SCMI work. We can guard this with such a config.

@ya-mouse ya-mouse force-pushed the batch-02 branch 3 times, most recently from 52da206 to f69c3ce Compare January 22, 2026 14:44
Add a 64KB memory region mapping at 0x40100000 for SCMI (System
Control and Management Interface) communication between U-Boot
and the ARM Trusted Firmware.

The region is configured with:
- MT_NORMAL_NC (Non-cacheable normal memory) to ensure coherent
  access between the AP and SCP/firmware
- PTE_BLOCK_NON_SHARE to match firmware expectations
- PXN/UXN to prevent execution from this memory region

This shared memory region is used for SCMI message passing on RK3576
platforms that utilize ARM-FF-A or similar firmware interfaces for
clock, power domain, and other system control operations.

Change-Id: 9d1957c3-d21f-41de-b9b9-acfcffce4d83 batch-02
Signed-off-by: Anton Burticica <mouse@ya.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants