Mercurial > illumos > illumos-gate
changeset 3141:b3d4e3b19435
6475736 Unable to read disk physical geometry due to wrong flags passed to dma_sync.
author | suha |
---|---|
date | Mon, 20 Nov 2006 09:28:37 -0800 |
parents | 0555fdc68b85 |
children | fdebd104cb99 |
files | usr/src/uts/sun4u/io/pci/pci_dma.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/uts/sun4u/io/pci/pci_dma.c Mon Nov 20 08:46:58 2006 -0800 +++ b/usr/src/uts/sun4u/io/pci/pci_dma.c Mon Nov 20 09:28:37 2006 -0800 @@ -1083,11 +1083,13 @@ } if (pci_dvma_sync_before_unmap) { - pci_dma_sync(dip, rdip, (ddi_dma_handle_t)mp, 0, 0, 0); + pci_dma_sync(dip, rdip, (ddi_dma_handle_t)mp, 0, 0, + DDI_DMA_SYNC_FORCPU); iommu_unmap_window(iommu_p, mp); } else { iommu_unmap_window(iommu_p, mp); - pci_dma_sync(dip, rdip, (ddi_dma_handle_t)mp, 0, 0, 0); + pci_dma_sync(dip, rdip, (ddi_dma_handle_t)mp, 0, 0, + DDI_DMA_SYNC_FORCPU); } if (fast_track)