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.
This commit is contained in:
parent
cdc87f254a
commit
c9eff643a7
@ -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)
|
if (newtag->lowaddr < ptoa((vm_paddr_t)Maxmem)
|
||||||
|| newtag->alignment > 1 || newtag->boundary > 0)
|
|| newtag->alignment > 1)
|
||||||
newtag->flags |= BUS_DMA_COULD_BOUNCE;
|
newtag->flags |= BUS_DMA_COULD_BOUNCE;
|
||||||
|
|
||||||
if (((newtag->flags & BUS_DMA_COULD_BOUNCE) != 0) &&
|
if (((newtag->flags & BUS_DMA_COULD_BOUNCE) != 0) &&
|
||||||
|
@ -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)
|
if (newtag->lowaddr < ptoa((vm_paddr_t)Maxmem)
|
||||||
|| newtag->alignment > 1 || newtag->boundary > 0)
|
|| newtag->alignment > 1)
|
||||||
newtag->flags |= BUS_DMA_COULD_BOUNCE;
|
newtag->flags |= BUS_DMA_COULD_BOUNCE;
|
||||||
|
|
||||||
if (((newtag->flags & BUS_DMA_COULD_BOUNCE) != 0) &&
|
if (((newtag->flags & BUS_DMA_COULD_BOUNCE) != 0) &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user