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

CXL device cannot be changed from system-ram mode to devdax mode #256

Open
sulochb opened this issue Oct 9, 2023 · 0 comments
Open

CXL device cannot be changed from system-ram mode to devdax mode #256

sulochb opened this issue Oct 9, 2023 · 0 comments

Comments

@sulochb
Copy link

sulochb commented Oct 9, 2023

Using ndctl-78 on Ubuntu 22.04 with Kernel drivers 6.5rc7, the CXL device always comes up in system-ram.
I would expect it to come up in 'dax' mode until it is reconfigured as 'system-ram' mode.

daxctl list

[
{
"chardev":"dax0.0",
"size":68719476736,
"target_node":1,
"align":2097152,
"mode":"system-ram",
"online_memblocks":504,
"total_memblocks":512
}
]

The 'device-reconfigure' to 'dax' mode fails to change the mode.
#daxctl reconfigure-device dax0.0 --mode=devdax --force
dax0.0: 8 memory sections already offline
libdaxctl: offline_one_memblock: dax0.0: Failed to offline /sys/devices/system/node/node1/memory272/state: Device or resource busy
dax0.0: failed to offline memory: Device or resource busy
error reconfiguring devices: Device or resource busy
reconfigured 0 devices

  1. Tried to stop the application using the device, but it does not work:**

fuser -cu /dev/dax0.0

/dev/dax0.0: 206rc(root) 1042m(gdm)

kill -9 206

#fuser -cu /dev/dax0.0
/dev/dax0.0: 206rc(root) 1042m(gdm)

@sulochb sulochb changed the title CXL device always comes up in system-ram mode as default CXL device cannot be changed from system-ram mode to devdax mode Nov 9, 2023
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

No branches or pull requests

1 participant