// SPDX-License-Identifier: GPL-2.0

cxl-disable-port(1)
===================

NAME
----
cxl-disable-port - activate / hot-add a given CXL port

SYNOPSIS
--------
[verse]
'cxl disable-port' <port0> [<port1>..<portN>] [<options>]

For test and debug scenarios, disable a CXL port and any memory devices
dependent on this port being active for CXL.mem operation.

OPTIONS
-------
-e::
--endpoint::
	Toggle from treating the port arguments as Switch Port identifiers to
	Endpoint Port identifiers.


-f::
--force::
	DANGEROUS: Override the safety measure that blocks attempts to disable a
	port if the tool determines a descendent memdev is in active usage.
	Recall that CXL memory ranges might have been established by platform
	firmware and disabling an active device is akin to force removing memory
	from a running system.

	Toggle from treating the port arguments as Switch Port identifiers to
	Endpoint Port identifiers.

--debug::
	If the cxl tool was built with debug disabled, turn on debug
	messages.


include::../copyright.txt[]

SEE ALSO
--------
linkcxl:cxl-disable-port[1]
