(JIT) Detect CCQE support in runtime instead of compiling#307
Open
QizhouZhang97 wants to merge 33 commits into
Open
(JIT) Detect CCQE support in runtime instead of compiling#307QizhouZhang97 wants to merge 33 commits into
QizhouZhang97 wants to merge 33 commits into
Conversation
baa7fa4 to
ded506d
Compare
jhchouuu
reviewed
May 20, 2026
87f82d9 to
f82a2cd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
MORI must support both CCQE and non-CCQE ionic deployments from a single
binary. The previous build-time
IONIC_CCQEmacro forced a recompile perhost and broke when
libionic.soandmori_application.sowere out of sync.This change moves the decision to runtime: dlsym
ionic_dv_create_cq_exatCQ creation time — if the symbol is present and firmware build ≥ 58, use
CCQE; otherwise fall back to
ibv_create_cq_ex. A new environment variableMORI_DISABLE_IONIC_CCQE=1overrides the runtime detection and forces thenon-CCQE path even on hardware that supports it.
Issues resolved
IONIC_CCQEmacro and replaced it with a runtimecapability check (
IsCcqeSupported).path was implemented; removed the now-redundant duplicate poll-CQ code.
Tests
mi355_n06_21with a77 firmware (CCQE supported) — verified CCQE path istaken and
MORI_DISABLE_IONIC_CCQE=1correctly forces fallback.