Diff below should fix this.  I'm still looking for confirmation that
SCSI devices connected to ahd(4) still work wiith this diff.

Index: dev/ic/aic79xx.c
===================================================================
RCS file: /cvs/src/sys/dev/ic/aic79xx.c,v
diff -u -p -r1.70 aic79xx.c
--- dev/ic/aic79xx.c    14 Jul 2025 23:49:08 -0000      1.70
+++ dev/ic/aic79xx.c    7 Nov 2026 01:39:01 -0000
@@ -5975,7 +5975,7 @@ ahd_alloc_scbs(struct ahd_softc *ahd)
                next_scb->flags = SCB_FLAG_NONE;
 
                error = bus_dmamap_create(ahd->parent_dmat,
-                   AHD_MAXTRANSFER_SIZE, AHD_NSEG, MAXBSIZE, 0,
+                   MAXPHYS, AHD_NSEG, MAXBSIZE, 0,
                    BUS_DMA_NOWAIT|BUS_DMA_ALLOCNOW, &next_scb->dmamap);
 
                if (error != 0) {

Reply via email to