diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2024-10-08 19:41:24 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2024-10-08 19:41:24 +0000 |
commit | 33d3be73f1ac77b662b94d0800c5b2b5a9b69866 (patch) | |
tree | 2661e306f5475ee56bec67a2bebbef7bfd97e6f3 /sys/dev/ic | |
parent | 8dd2667ba9296d6a52c26d3a112bb0b3661aeec0 (diff) |
Add the BUS_DMA_64BIT flag to bus_dmamem_alloc(9) calls since NVMe devices
can do 64-bit DMA.
ok mpi@, mlarkin@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/nvme.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c index f54454b8db7..1e6c62e4ac6 100644 --- a/sys/dev/ic/nvme.c +++ b/sys/dev/ic/nvme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nvme.c,v 1.123 2024/09/13 09:57:34 jmatthew Exp $ */ +/* $OpenBSD: nvme.c,v 1.124 2024/10/08 19:41:23 kettenis Exp $ */ /* * Copyright (c) 2014 David Gwynne <dlg@openbsd.org> @@ -1621,7 +1621,7 @@ nvme_dmamem_alloc(struct nvme_softc *sc, size_t size) goto ndmfree; if (bus_dmamem_alloc(sc->sc_dmat, size, sc->sc_mps, 0, &ndm->ndm_seg, - 1, &nsegs, BUS_DMA_WAITOK | BUS_DMA_ZERO) != 0) + 1, &nsegs, BUS_DMA_WAITOK | BUS_DMA_ZERO | BUS_DMA_64BIT) != 0) goto destroy; if (bus_dmamem_map(sc->sc_dmat, &ndm->ndm_seg, nsegs, size, |