Mercurial > illumos > illumos-gate
changeset 10660:8ff949139766
6884004 ahci driver calls ddi_dma_addr_bind_handle() without specifying permissions
Contributed by Boris Ostrovsky <boris.ostrovsky@amd.com>.
author | ying tian - Beijing China <Ying.Tian@Sun.COM> |
---|---|
date | Mon, 28 Sep 2009 10:26:43 +0800 |
parents | 933eae95189d |
children | 789e162d8de6 |
files | usr/src/uts/common/io/sata/adapters/ahci/ahci.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/uts/common/io/sata/adapters/ahci/ahci.c Sun Sep 27 11:48:10 2009 +0800 +++ b/usr/src/uts/common/io/sata/adapters/ahci/ahci.c Mon Sep 28 10:26:43 2009 +0800 @@ -5819,7 +5819,7 @@ if (ddi_dma_mem_alloc(ahci_portp->ahciport_rcvd_fis_dma_handle, rcvd_fis_size, &accattr, - DDI_DMA_RDWR | DDI_DMA_CONSISTENT, + DDI_DMA_CONSISTENT, DDI_DMA_SLEEP, NULL, (caddr_t *)&ahci_portp->ahciport_rcvd_fis, @@ -5837,7 +5837,7 @@ NULL, (caddr_t)ahci_portp->ahciport_rcvd_fis, rcvd_fis_size, - DDI_DMA_CONSISTENT, + DDI_DMA_RDWR | DDI_DMA_CONSISTENT, DDI_DMA_SLEEP, NULL, &ahci_portp->ahciport_rcvd_fis_dma_cookie, @@ -5919,7 +5919,7 @@ if (ddi_dma_mem_alloc(ahci_portp->ahciport_cmd_list_dma_handle, cmd_list_size, &accattr, - DDI_DMA_RDWR | DDI_DMA_CONSISTENT, + DDI_DMA_CONSISTENT, DDI_DMA_SLEEP, NULL, (caddr_t *)&ahci_portp->ahciport_cmd_list, @@ -5937,7 +5937,7 @@ NULL, (caddr_t)ahci_portp->ahciport_cmd_list, cmd_list_size, - DDI_DMA_CONSISTENT, + DDI_DMA_RDWR | DDI_DMA_CONSISTENT, DDI_DMA_SLEEP, NULL, &ahci_portp->ahciport_cmd_list_dma_cookie, @@ -6043,7 +6043,7 @@ ahci_portp->ahciport_cmd_tables_dma_handle[slot], ahci_cmd_table_size, &accattr, - DDI_DMA_RDWR | DDI_DMA_CONSISTENT, + DDI_DMA_CONSISTENT, DDI_DMA_SLEEP, NULL, (caddr_t *)&ahci_portp->ahciport_cmd_tables[slot], @@ -6065,7 +6065,7 @@ NULL, (caddr_t)ahci_portp->ahciport_cmd_tables[slot], ahci_cmd_table_size, - DDI_DMA_CONSISTENT, + DDI_DMA_RDWR | DDI_DMA_CONSISTENT, DDI_DMA_SLEEP, NULL, &cmd_table_dma_cookie,