nvme(4): Increase HMB alignment.

The NVME controller in Crucial P310 disk does not accept 16-byte aligned
host memory buffer on Codasip Prime platform, but works fine on PAGE_SIZE
aligned memory.

Instead of adding a quirk, just increase alignment for everyone.

Reviewed by:	jhb
Discussed with:	imp
Sponsored by:	CHERI Research Centre
Differential Revision:	https://reviews.freebsd.org/D53296
This commit is contained in:
Ruslan Bukin
2025-11-25 08:38:37 +00:00
parent aac0ef54dc
commit b87f633001
+1 -1
View File
@@ -907,7 +907,7 @@ nvme_ctrlr_hmb_alloc(struct nvme_controller *ctrlr)
size = sizeof(struct nvme_hmb_desc) * ctrlr->hmb_nchunks;
err = bus_dma_tag_create(bus_get_dma_tag(ctrlr->dev),
16, 0, BUS_SPACE_MAXADDR, BUS_SPACE_MAXADDR, NULL, NULL,
PAGE_SIZE, 0, BUS_SPACE_MAXADDR, BUS_SPACE_MAXADDR, NULL, NULL,
size, 1, size, 0, NULL, NULL, &ctrlr->hmb_desc_tag);
if (err != 0) {
nvme_printf(ctrlr, "HMB desc tag create failed %d\n", err);