From ee8d8ca5c116925d8d18c00964af4bb4bf7452b2 Mon Sep 17 00:00:00 2001 From: Scott Long Date: Mon, 29 Nov 2004 14:49:27 +0000 Subject: [PATCH] Don't flag alignment constraints as a reason for bouncing. This fixes the trigger for other misbehaviour in the sym driver that was causing freezes at boot. Thanks to phk@ for reporting and testing this. --- sys/amd64/amd64/busdma_machdep.c | 2 +- sys/i386/i386/busdma_machdep.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/amd64/amd64/busdma_machdep.c b/sys/amd64/amd64/busdma_machdep.c index 5fd738f99150..a82dfded5493 100644 --- a/sys/amd64/amd64/busdma_machdep.c +++ b/sys/amd64/amd64/busdma_machdep.c @@ -277,7 +277,7 @@ bus_dma_tag_create(bus_dma_tag_t parent, bus_size_t alignment, } if (newtag->lowaddr < ptoa((vm_paddr_t)Maxmem) - || newtag->alignment > 1 || newtag->boundary > 0) + || newtag->alignment > 1) newtag->flags |= BUS_DMA_COULD_BOUNCE; if (((newtag->flags & BUS_DMA_COULD_BOUNCE) != 0) && diff --git a/sys/i386/i386/busdma_machdep.c b/sys/i386/i386/busdma_machdep.c index 5fd738f99150..a82dfded5493 100644 --- a/sys/i386/i386/busdma_machdep.c +++ b/sys/i386/i386/busdma_machdep.c @@ -277,7 +277,7 @@ bus_dma_tag_create(bus_dma_tag_t parent, bus_size_t alignment, } if (newtag->lowaddr < ptoa((vm_paddr_t)Maxmem) - || newtag->alignment > 1 || newtag->boundary > 0) + || newtag->alignment > 1) newtag->flags |= BUS_DMA_COULD_BOUNCE; if (((newtag->flags & BUS_DMA_COULD_BOUNCE) != 0) &&