Skip to content

Uio update 20260827 - #119

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

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

tnmysh
tnmysh previously approved these changes Sep 18, 2026
@tnmysh

tnmysh commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

Hi @bentheredonethat

The changes look fine. Could you please add how host side device-tree looks like in some README?
Other than that, I am okay with this commit.

Thanks,
Tanmay

@tnmysh
tnmysh self-requested a review September 18, 2026 17:14
@tnmysh
tnmysh dismissed their stale review September 18, 2026 17:15

Posted comment after the ack. So removing the ack.

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>
Add a host-side device-tree example to the Linux userspace
README so reviewers can see how the shared-memory carveouts,
UIO logical names, timer node, and IPI bitmask are wired on a
real platform.

Also fix the documented IPI property name to match what the
host code reads at runtime.

Signed-off-by: Ben Levinsky <ben.levinsky@amd.com>
Comment thread examples/libmetal/demos/irq_shmem_demo/host/irq_shmem_demo.c Outdated
@arnopo
arnopo requested a review from tnmysh September 22, 2026 16:52
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