-
Notifications
You must be signed in to change notification settings - Fork 20
examples: libmetal: amd_rpu: Fix dynamic config setup #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bentheredonethat
wants to merge
6
commits into
OpenAMP:main
Choose a base branch
from
bentheredonethat:libmetal-rpu-shel-update
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
0dea98b
examples: libmetal: amd_rpu: channel fields are used when possible
bentheredonethat dc2f5ca
examples: libmetal: amd_rpu: order libraries alphabetically
bentheredonethat 767fe1a
examples: libmetal: remote: accounts for non-contiguous area
bentheredonethat c28b8fb
examples: libmetal: amd_rpu: versal-net: set first 2G MPU region
bentheredonethat a6eae19
examples: libmetal: amd_rpu: fix memset call in cleanup
bentheredonethat b735d10
examples: libmetal: irq_shmem_demo: move channel state to common header
bentheredonethat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| # Copyright (C) 2025 Advanced Micro Devices, Inc. All rights reserved. | ||
| # SPDX-License-Identifier: BSD-3-Clause | ||
| collect (PROJECT_INC_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/common") | ||
| add_subdirectory(${ROLE}) |
30 changes: 30 additions & 0 deletions
30
examples/libmetal/demos/irq_shmem_demo/common/irq_shmem_demo.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| /* | ||
| * Copyright (C) 2026, Advanced Micro Devices, Inc. | ||
| * | ||
| * SPDX-License-Identifier: BSD-3-Clause | ||
| */ | ||
|
|
||
| #ifndef __IRQ_SHMEM_DEMO_H__ | ||
| #define __IRQ_SHMEM_DEMO_H__ | ||
|
|
||
| #include <stdint.h> | ||
|
|
||
| #include <metal/io.h> | ||
|
|
||
| /* | ||
| * Common transport state shared by the host and remote implementations of the | ||
| * IRQ shared-memory demo. Platform- or OS-private wait state is kept behind | ||
| * machine_ctx to avoid duplicating this layout in each machine header. | ||
| */ | ||
| struct channel_s { | ||
| struct metal_io_region *host_to_remote_desc_io; /* host to remote descriptors */ | ||
| struct metal_io_region *remote_to_host_desc_io; /* remote to host descriptors */ | ||
| struct metal_io_region *ipi_io; /* IPI metal i/o region */ | ||
| struct metal_io_region *shm_io; /* Shared memory metal i/o region */ | ||
| struct metal_io_region *ttc_io; /* TTC metal i/o region */ | ||
| void *machine_ctx; /* Platform- or OS-private channel state */ | ||
| uint32_t ipi_mask; /* RPU IPI mask */ | ||
| int irq_vector_id; /* IRQ number. */ | ||
| }; | ||
|
|
||
| #endif /* __IRQ_SHMEM_DEMO_H__ */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could use local variable here: