M.2


M.2, formerly known as the Next Generation Form Factor, is a specification for internally mounted computer expansion cards and associated connectors. M.2 replaces the mSATA standard, which uses the PCI Express Mini Card physical card layout and connectors. Employing a more flexible physical specification, the M.2 allows different module widths and lengths, and, paired with the availability of more advanced interfacing features, makes the M.2 more suitable than mSATA in general for solid-state storage applications, and particularly in smaller devices such as ultrabooks and tablets.
Computer bus interfaces provided through the M.2 connector are PCI Express 3.0, Serial ATA 3.0, and USB 3.0. It is up to the manufacturer of the M.2 host or module to select which interfaces are to be supported, depending on the desired level of host support and device type. The M.2 connector keying notches denote various purposes and capabilities of both M.2 hosts and devices. The unique key notches of M.2 modules also prevent them from being inserted into incompatible host connectors.
The M.2 specification supports NVM Express as the logical device interface for M.2 PCI Express SSDs, in addition to supporting legacy Advanced Host Controller Interface at the logical interface level. While the support for AHCI ensures software-level backward compatibility with legacy SATA devices and legacy operating systems, NVM Express is designed to fully utilize the capability of high-speed PCI Express storage devices to perform many I/O operations in parallel.

Features

exposed through the M.2 connector are PCI Express 3.0 & newer, Serial ATA 3.0 and USB 3.0, all these standards are backward compatible. As a result, M.2 modules can integrate multiple functions, including the following device classes: Wi-Fi, Bluetooth, satellite navigation, near field communication, digital radio, WiGig, wireless WAN, and solid-state drives. The SATA revision 3.2 specification, in its gold revision as of 2013, standardizes the M.2 as a new format for storage devices and specifies its hardware layout.
The M.2 specification provides up to four PCI Express lanes and one logical SATA 3.0 port, and exposes them through the same connector so both PCI Express and SATA storage devices may exist in the form of M.2 modules. Exposed PCI Express lanes provide a pure PCI Express connection between the host and storage device, with no additional layers of bus abstraction. PCI-SIG M.2 specification, in its revision 1.0 as of 2013, provides detailed M.2 specifications.

Storage interfaces

Three options are available for the logical device interfaces and command sets used for interfacing with M.2 storage devices, which may be used depending on the type of M.2 storage device and available operating system support:
; Legacy SATA: Used for SATA SSDs, and interfaced through the AHCI driver and legacy SATA 3.0 port exposed through the M.2 connector.
; PCI Express using AHCI: Used for PCI Express SSDs and interfaced through the AHCI driver and provided PCI Express lanes, providing backward compatibility with widespread SATA support in operating systems at the cost of performance. AHCI was developed when the purpose of a host bus adapter in a system was to connect the CPU/memory subsystem with a much slower storage subsystem based on rotating magnetic media; as a result, AHCI has some inherent inefficiencies when applied to SSD devices, which behave much more like DRAM than like spinning media.
; PCI Express using NVMe: Used for PCI Express SSDs and interfaced through the NVMe driver and provided PCI Express lanes, as a high-performance and scalable host controller interface designed and optimized especially for interfacing with PCI Express SSDs. NVMe has been designed from the ground up, capitalizing on the low latency and parallelism of PCI Express SSDs, and complementing the parallelism of contemporary CPUs, platforms and applications. At a high level, primary advantages of NVMe over AHCI relate to NVMe's ability to exploit parallelism in host hardware and software, based on its design advantages that include data transfers with fewer stages, greater depth of command queues, and more efficient interrupt processing.

Form factors and keying

The M.2 standard has been designed as a revision and improvement to the mSATA standard, with the possibility of larger printed circuit boards as one of its primary incentives. While the mSATA took advantage of the existing PCI Express Mini Card form factor and connector, M.2 has been designed from the ground up to maximize usage of the PCB space while minimizing the module footprint. As the result of the M.2 standard allowing longer modules and double-sided component population, M.2 SSD devices can provide larger storage capacities and can also double the storage capacity within the footprints of mSATA devices.
M.2 modules are rectangular, with an edge connector on one side, and a semicircular mounting hole at the center of the opposite edge. Each pin on the connector is rated for up to 50 V and 0.5 A, while the connector itself is specified to endure up to 60 mating cycles. The M.2 standard allows module widths of 12, 16, 22 and 30 mm, and lengths of 16, 26, 30, 38, 42, 60, 80 and 110 mm. Initial line-up of the commercially available M.2 expansion cards is 22 mm wide, with varying lengths of 30, 42, 60, 80 and 110 mm. M.2 module codes contain both the width and length of a particular module; for example, 2242 as a module code means that the module is 22 mm wide and 42 mm long, while 2280 denotes a module 22 mm wide and 80 mm long.
An M.2 module is installed into a mating connector provided by the host's circuit board, and a single mounting screw secures the module into place. Components may be mounted on either side of the module, with the actual module type limiting how thick the components can be; the maximum allowable thickness of components is 1.5 mm per side, the board itself being thick. Different host-side connectors are used for single- and double-sided M.2 modules, providing different amounts of space between the M.2 expansion card and the host's PCB. Circuit boards on the hosts are usually designed to accept multiple lengths of M.2 modules, which means that the sockets capable of accepting longer M.2 modules usually also accept shorter ones by providing different positions for the mounting screw.
Key
ID
Notched
pins
Provided interfaces
A8–15PCIe ×2, USB 2.0, I2C and DP ×4
B12–19PCIe ×2, SATA, USB 2.0 and 3.0, audio, UIM, HSIC, SSIC, I2C and SMBus
C16–23Reserved for future use
D20–27Reserved for future use
E24–31PCIe ×2, USB 2.0, I2C, SDIO, UART and PCM
F28–35Future Memory Interface
G39–46Reserved for custom use
H43–50Reserved for future use
J47–54Reserved for future use
K51–58Reserved for future use
L55–62Reserved for future use
M59–66PCIe ×4, SATA and SMBus

Type
ID
Top sideBottom side
S11.20 mm
S21.35 mm
S31.50 mm
D11.20 mm1.35 mm
D21.35 mm1.35 mm
D31.50 mm1.35 mm
D41.50 mm0.70 mm
D51.50 mm1.50 mm

, visible in the upper-left portion of the picture. The socket is keyed in the M position and provides two positions for the mounting screw, accepting 2260 and 2280 sizes of M.2 modules.
The PCB of an M.2 module provides a 75-position edge connector; depending on the type of module, certain pin positions are removed to present one or more keying notches. Host-side M.2 connectors may populate one or more mating key positions, determining the type of modules accepted by the host; as of 2014, host-side connectors are available with only one mating key position populated. Furthermore, M.2 sockets keyed for SATA or two PCI Express lanes are referred to as "socket 2 configuration" or "socket 2", while the sockets keyed for four PCI Express lanes are referred to as "socket 3 configuration" or "socket 3".
For example, M.2 modules with two notches in B and M positions use up to two PCI Express lanes and provide broader compatibility at the same time, while the M.2 modules with only one notch in the M position use up to four PCI Express lanes; both examples may also provide SATA storage devices. Similar keying applies to M.2 modules that utilize provided USB 3.0 connectivity.
Various types of M.2 devices are denoted using the "WWLL-HH-K-K" or "WWLL-HH-K" naming schemes, in which "WW" and "LL" specify the module width and length in millimeters, respectively. The "HH" part specifies, in an encoded form, whether a module is single- or double-sided, and the maximum allowed thickness of mounted components; possible values are listed in the right table above. Module keying is specified by the "K-K" part, in an encoded form using the key IDs from the left table above; it can also be specified as "K" only, if a module has only one keying notch.
Beside socketed modules, the M.2 standard also includes the option for having permanently soldered single-sided modules.