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

Phoenix v2024.1 #3

Open
wants to merge 12 commits into
base: xlnx_rel_v2024.1
Choose a base branch
from

Conversation

makslevental
Copy link

@makslevental makslevental commented May 7, 2024

Rebase of #2 to xlnx_rel_v2024.1

stephenneuendorffer and others added 10 commits May 7, 2024 12:25
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
The new code moves several hooks from driver to fal.
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.

7 participants