HomeFreeBSD

nvme: limit namespace character-device I/O size

Description

nvme: limit namespace character-device I/O size

The namespace character device does not initialize si_iosize_max, so
physio falls back to DFLTPHYS and can produce a bio larger than the
qpair payload DMA tag on a controller whose maximum transfer size is
below 64KB. Such a bio fails DMA mapping and is never submitted.

Approved by: ngie (co-mentor)
MFC after: 1 week

Reviewed by: ngie, imp
Differential Revision: https://reviews.freebsd.org/D59152

Details

Provenance
seurosAuthored on Sep 3 2026, 3:34 PM
Reviewer
ngie
Differential Revision
D59152: nvme: limit namespace character-device I/O size
Parents
rGb90c2b13e975: nvme: complete requests when payload DMA mapping fails
Branches
Unknown
Tags
Unknown