Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jan 2024 17:17:40 GMT
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: c8afd30bdb6b - stable/14 - mpi3mr: Fix MAXPHYS usage
Message-ID:  <202401191717.40JHHe0f097240@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by mav:

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

commit c8afd30bdb6b56186790f901f6d6a68d1848fd29
Author:     Alexander Motin <mav@FreeBSD.org>
AuthorDate: 2023-11-29 01:50:24 +0000
Commit:     Alexander Motin <mav@FreeBSD.org>
CommitDate: 2024-01-19 17:16:50 +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
    
    (cherry picked from commit 4e6d128bd823e5b5d0b058f918c7036978a0e8bf)
---
 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 b54a1844b173..32cba394c7b4 100644
--- a/sys/dev/mpi3mr/mpi3mr.c
+++ b/sys/dev/mpi3mr/mpi3mr.c
@@ -4947,9 +4947,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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401191717.40JHHe0f097240>