CXL-ENABLE-MEMDEV(1)

πŸ’… CXL-ENABLE-MEMDEV(1) πŸ’…

okay bestie, welcome to the cxl manual β€” yes, that's the manual name, we're fancy here β€” and this page is literally all about cxl-enable-memdev. pull up a chair, grab a lil iced matcha, and let's get into it πŸ“


✨ NAME ✨

cxl-enable-memdev β€” activate / hot-add a given CXL memdev. that's it, that's the vibe πŸ¦‹


🌸 SYNOPSIS 🌸

cxl enable-memdev <mem0> [<mem1>..<memN>] [<options>]

so here's the tea, bestie: a memdev typically autoenables at initial device discovery. like, it just does its thing, main character energy, no help needed πŸ‘‘

BUT β€” if it was manually disabled, this command can trigger the kernel to activate it again. and how does it do that, you ask? it involves detecting the state of the HDM (Host Managed Device Memory) Decoders and validating that CXL.mem is enabled for each port in the device's hierarchy. yes, each port. we check 'em all πŸ’…

and here's a lil detail that lowkey matters: given any enable or disable command, if the operation is a no-op because of the current state of a target (i.e. it's already enabled or already disabled), it's still considered successful when executed β€” even if no actual operation is performed. the target can be a bus, decoder, memdev, or region. the operation will still succeed, and it will report the number of bus/decoder/memdev/region operated on, even if the operation is a no-op. no cap. πŸ™ˆ

πŸŽ€ OPTIONS πŸŽ€

  • <memory device(s)> β€” a memX device name, or a memdev id number. restricts the operation to the specified memdev(s). and you can pass the keyword all to indicate the lack of any restriction β€” like, no restrictions, we're free 🌈
  • -S, --serial β€” instead of a memdev id number, interpret the <memdev> argument(s) as a list of serial numbers. (yes, the original page says "rather an a memdev id number" β€” we're keeping the typo energy, it's iconic πŸ’€)
  • -b, --bus= β€” restrict the operation to the specified bus 🚌
  • -v β€” turn on verbose debug messages in the library (if libcxl was built with logging and debug enabled). verbose mode is giving detective era πŸ”

Copyright Β© 2016 - 2022, Intel Corporation. License GPLv2: GNU GPL version 2 http://gnu.org/licenses/gpl.html. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. periodt. πŸ’œ


πŸ¦‹ SEE ALSO πŸ¦‹


mwah, that's the whole page 🫢 this lil gem came from cxl, dated 2026-06-30 β€” now go enable some memdevs, bestie, you've got this ⭐🧚

πŸ“¦ where this page comes from
  • arch rolling: ndctl 85-1 Β· LGPL-2.1-only AND GPL-2.0-only AND CC0-1.0 AND MIT
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms