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

[CDO] Patches to support Phoenix #2

Open
wants to merge 16 commits into
base: xlnx_rel_v2023.2
Choose a base branch
from

Conversation

stephenneuendorffer
Copy link

No description provided.

Copy link
Member

@keryell keryell left a comment

Choose a reason for hiding this comment

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

A comment on why/what this does since it is open-source or this is just a firmware secret detail?

makslevental and others added 13 commits January 3, 2024 22:55
Add forward decls for `cdo_*`
Building the projects creates .o files, .so files and copies some headers. None
of these artifacts are tracked under source control so we don't need to see
them.

* [amdair] xaie: Enable backend selection at init time

All IO backends are compiled no matter the configuration. The only
thing that changes is the XAIE_DEFAULT_BACKEND macro that points to
the correct backend as specified by a compile-time flag. There is no
reason why the backend selection cannot be made at runtime, giving
more control to the application as to how it wants to use the
library.

Add a configuration item specifying the backend. When the library is
initialized, the backend will be chosen based on this parameter. If
the user-selected backend index is out of range, the library will
fall back to the existing default backend logic.

* [amdair] driver: add amdair backend

The I/O commands are sent to the device using the amdair driver's
sysfs interface. This requires the amdair driver to be loaded before
sending any commands.

---------

Signed-off-by: Joel Nider <[email protected]>
Co-authored-by: Joel Nider <[email protected]>
The XAie_InstDeclare define declares a structure, but didn't completely
initialize it.  This patch initializes the structure to a default
value.
There are several trivial warnings that appear when building. Address
them as necessary by fixing the problems. In general, unused parameters
to functions that are part of an interface cannot be removed so they are
marked with the UNUSED macro. Signed comparisons can never be negative
and uints can never be larger than UINT_MAX. XAIE columns are generally
a u8 type (limited to 256 columns) although stored in a u32 in places.
If we ever need to support more than 256 columns this needs to change
across the board.

Signed-off-by: Joel Nider <[email protected]>
…ry will have an undefined symbol and the mlir-air tests will fail to compile (#8)
* Removed illegal cast to struct type
* Replaced variable length array with malloc
* Added required `=` to array initialization with designator
* Removed use of unistd.h
* Replaced usage of pthread.h
* Moved the alignment macro to avoid a circular dependency
* Disabled use of gcc-style attribute
* Replaced illegal arithmetic on void pointer
Load ELF file as binary on windows
@makslevental makslevental mentioned this pull request May 7, 2024
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.

9 participants