Skip to content
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

[Feature] - Add parent/child AFU management to the libopae-c shell #3072

Merged
merged 3 commits into from
Jan 9, 2024

Conversation

michael-adler
Copy link
Member

Description

Multi-ported AFUs have a parent AFU that names child AFUs by GUID, encoded in the first entry of a v1 AFU feature list.

  • Detect AFUs with children in fpgaOpen() and open all children, associating all open ports with the returned handle.
  • When a buffer is pinned in the parent, also pin the buffer at the same IOVA in all children.
  • Add fpgaGetChildren() in order to expose child handles for MMIO and interrupts.

Collateral (docs, reports, design examples, case IDs):

  • Document Update Required? (Specify FIM/AFU/Scripts)

Tests added:

Tests run:

host_exerciser on HW, ASE tests

Multi-ported AFUs have a parent AFU that names child AFUs by GUID, encoded
in the first entry of a v1 AFU feature list.

- Detect AFUs with children in fpgaOpen() and open all children, associating
  all open ports with the returned handle.
- When a buffer is pinned in the parent, also pin the buffer at the same
  IOVA in all children.
- Add fpgaGetChildren() in order to expose child handles for MMIO and
  interrupts.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 7453759883

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.3%) to 64.847%

Totals Coverage Status
Change from base Build 7424997699: -0.3%
Covered Lines: 15791
Relevant Lines: 24351

💛 - Coveralls

@michael-adler michael-adler merged commit 4d757b6 into OFS:master Jan 9, 2024
19 checks passed
@michael-adler michael-adler deleted the mcadler/multi_link branch January 9, 2024 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants