aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2023-11-29 01:50:24 +0000
committerWarner Losh <imp@FreeBSD.org>2023-11-29 01:52:08 +0000
commit4e6d128bd823e5b5d0b058f918c7036978a0e8bf (patch)
tree6f43d07ea9d94a22a64bfe3f8644b1a04f83b130
parent28a274342ea0b0666b56704477d2d1c17564942e (diff)
downloadsrc-4e6d128bd823e5b5d0b058f918c7036978a0e8bf.tar.gz
src-4e6d128bd823e5b5d0b058f918c7036978a0e8bf.zip
mpi3mr: Fix MAXPHYS usage
This usage is obsolete. Replace with maximum bus space size. maxphys will sort itself out at higher levels. Reviewed by: mav, jhb, imp Differential Revision: https://reviews.freebsd.org/D42605
-rw-r--r--sys/dev/mpi3mr/mpi3mr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mpi3mr/mpi3mr.c b/sys/dev/mpi3mr/mpi3mr.c
index 5109b970b3bc..d063ca1b6255 100644
--- a/sys/dev/mpi3mr/mpi3mr.c
+++ b/sys/dev/mpi3mr/mpi3mr.c
@@ -4946,9 +4946,9 @@ mpi3mr_alloc_requests(struct mpi3mr_softc *sc)
sc->dma_loaddr, /* lowaddr */
sc->dma_hiaddr, /* highaddr */
NULL, NULL, /* filter, filterarg */
- MAXPHYS,/* maxsize */
+ BUS_SPACE_MAXSIZE, /* maxsize */
nsegs, /* nsegments */
- MAXPHYS,/* maxsegsize */
+ BUS_SPACE_MAXSIZE_32BIT,/* maxsegsize */
BUS_DMA_ALLOCNOW, /* flags */
busdma_lock_mutex, /* lockfunc */
&sc->io_lock, /* lockarg */