Skip to content

Uio update 20260827 - #119

Open
bentheredonethat wants to merge 3 commits into
OpenAMP:mainfrom
bentheredonethat:uio-update-20260827
Open

Uio update 20260827#119
bentheredonethat wants to merge 3 commits into
OpenAMP:mainfrom
bentheredonethat:uio-update-20260827

Conversation

@bentheredonethat

Copy link
Copy Markdown
Contributor

pivot Libmetal Linux demo to use new UIO device discovery

Open the Linux irq_shmem_demo host path on the libmetal UIO
bus using stable logical names exposed through
/sys/class/uio/uioX/name.

Read the host IPI remote kick bit from the backing device-tree
node through libmetal,uio-ipi-bitmask, and derive descriptor
and payload sizes from the opened IO regions so the host demo
no longer depends on generated device names or carveout size
macros.

Signed-off-by: Ben Levinsky <ben.levinsky@amd.com>
Remove amd_linux_userspace host-side config header generation
now that the Linux demo opens fixed logical UIO devices and
derives the remaining runtime values directly from libmetal IO
regions and the backing device tree.

Drop config.h.in and the configure-time CMake path, and update
the Linux host README to document the required UIO logical
names, the libmetal,ipi-remote-mask property, and the direct
run flow.

Signed-off-by: Ben Levinsky <ben.levinsky@amd.com>
Allow the Linux host irq_shmem_demo to override the default
logical UIO names and the IPI remote-mask property from the
command line while keeping the stable libmetal defaults.

Plumb a small platform options struct through platform_init(),
parse long-form host arguments in main(), and document the
override flow in the host README.
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.

1 participant