Skip to content

Conversation

@aingerson
Copy link
Contributor

Disable xpmem properly if FI_HMEM was requested
Remove incorrect setting of mr flag in LNX

The IOV protocol is not compatible if GPU memory is being used.
shm turns off CMA if HMEM is being used but because xpmem is
initialized elsewhere, the same disabling was not added.
This only enables the region's xpmem info if HMEM is not enabled
on the EP

Signed-off-by: Zach Dworkin <[email protected]>
Signed-off-by: Alexia Ingerson <[email protected]>
LNX cannot assume the region is device only memory. It has to simply
pass in the user provided flags.
Not using this flag will not allow shm to use IPC copies but the proper
fix is to have the application set the flag (or to use the HMEM hook to
do device information discovery)

Signed-off-by: Zach Dworkin <[email protected]>
Signed-off-by: Alexia Ingerson <[email protected]>
@j-xiong j-xiong merged commit d4b2224 into ofiwg:main Nov 29, 2025
19 of 20 checks passed
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