History

cxl/mem: Add basic IOCTL interface

Add a straightforward IOCTL that provides a mechanism for userspace to query the supported memory device commands. CXL commands as they appear to userspace are described as part of the UAPI kerneldoc. The command list returned via this IOCTL will contain the full set of commands that the driver supports, however, some of those commands may not be available for use by userspace. Memory device commands first appear in the CXL 2.0 specification. They are submitted through a mailbox mechanism specified in the CXL 2.0 specification. The send command allows userspace to issue mailbox commands directly to the hardware. The list of available commands to send are the output of the query command. The driver verifies basic properties of the command and possibly inspect the input (or output) payload to determine whether or not the command is allowed (or might taint the kernel).

Ben Widawsky committed 5 years ago

Commit 583fa5e1 parent b39cb105 files · +452 −1Browse files

Showing the changes to Documentation/userspace-api (1 of 5 files). Show all

Unified · Split

Documentation/userspace-api/ioctl/ioctl-number.rst+1−0
@@ -352,6 +352,7 @@ Code Seq# Include File Comments · 351 unmodified lines
352352 <mailto:michael.klein@puffin.lb.shuttle.de>
353353 0xCC 00-0F drivers/misc/ibmvmc.h pseries VMC driver
354354 0xCD 01 linux/reiserfs_fs.h
355+0xCE 01-02 uapi/linux/cxl_mem.h Compute Express Link Memory Devices
355356 0xCF 02 fs/cifs/ioctl.c
356357 0xDB 00-0F drivers/char/mwave/mwavepub.h
357358 0xDD 00-3F ZFCP device driver see drivers/s390/scsi/

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t