git: 4e6d128bd823 - main - mpi3mr: Fix MAXPHYS usage

From: Warner Losh <imp_at_FreeBSD.org>
Date: Wed, 29 Nov 2023 01:55:41 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=4e6d128bd823e5b5d0b058f918c7036978a0e8bf

commit 4e6d128bd823e5b5d0b058f918c7036978a0e8bf
Author:     Alexander Motin <mav@FreeBSD.org>
AuthorDate: 2023-11-29 01:50:24 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-11-29 01:52:08 +0000

    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
---
 sys/dev/mpi3mr/mpi3mr.c | 4 ++--
 1 file 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 */