summaryrefslogtreecommitdiff
path: root/usr/src/uts/sun4v/io
diff options
context:
space:
mode:
authorDaniel Ice <Daniel.Ice@Sun.COM>2009-05-22 16:28:25 -0700
committerDaniel Ice <Daniel.Ice@Sun.COM>2009-05-22 16:28:25 -0700
commitef2504f26d1ea5859db9838255bb63f488f1b050 (patch)
treee2526b4c7a25446e2407ac8eb5fe568567186b2e /usr/src/uts/sun4v/io
parentfdf80547c0ac3509e0ccb68d75b244f6968702f4 (diff)
downloadillumos-joyent-ef2504f26d1ea5859db9838255bb63f488f1b050.tar.gz
6828609 px driver sometimes passes invalid bits io attributes for pci_iommu_map
6771175 px does not pass readable-attribute to hypervisor during iommu mapping
Diffstat (limited to 'usr/src/uts/sun4v/io')
-rw-r--r--usr/src/uts/sun4v/io/px/px_lib4v.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/src/uts/sun4v/io/px/px_lib4v.c b/usr/src/uts/sun4v/io/px/px_lib4v.c
index 88fe69c177..129efd58cd 100644
--- a/usr/src/uts/sun4v/io/px/px_lib4v.c
+++ b/usr/src/uts/sun4v/io/px/px_lib4v.c
@@ -333,7 +333,7 @@ px_lib_iommu_map(dev_info_t *dip, tsbid_t tsbid, pages_t pages,
int i, err = DDI_SUCCESS;
DBG(DBG_LIB_DMA, dip, "px_lib_iommu_map: dip 0x%p tsbid 0x%llx "
- "pages 0x%x attr 0x%x addr 0x%p pfn_index 0x%llx flags 0x%x\n",
+ "pages 0x%x attr 0x%llx addr 0x%p pfn_index 0x%llx flags 0x%x\n",
dip, tsbid, pages, attr, addr, pfn_index, flags);
if ((pfns = pfn_p = kmem_zalloc((pages * sizeof (io_page_list_t)),
@@ -379,7 +379,7 @@ px_lib_iommu_map(dev_info_t *dip, tsbid_t tsbid, pages_t pages,
}
DBG(DBG_LIB_DMA, dip, "px_lib_iommu_map: tsb_num 0x%x "
- "tsb_index 0x%lx ttes_to_map 0x%lx attr 0x%x "
+ "tsb_index 0x%lx ttes_to_map 0x%lx attr 0x%llx "
"ra 0x%p ttes_mapped 0x%x\n", tsb_num,
tsb_index + (pfn_p - pfns), ttes2map, attr,
ra | ((uintptr_t)pfn_p & MMU_PAGE_OFFSET),
@@ -444,8 +444,8 @@ px_lib_iommu_getmap(dev_info_t *dip, tsbid_t tsbid, io_attributes_t *attr_p,
return ((ret == H_ENOMAP) ? DDI_DMA_NOMAPPING:DDI_FAILURE);
}
- DBG(DBG_LIB_DMA, dip, "px_lib_iommu_getmap: attr 0x%x r_addr 0x%llx\n",
- *attr_p, *r_addr_p);
+ DBG(DBG_LIB_DMA, dip, "px_lib_iommu_getmap: attr 0x%llx "
+ "r_addr 0x%llx\n", *attr_p, *r_addr_p);
return (DDI_SUCCESS);
}
@@ -488,7 +488,7 @@ px_lib_iommu_getbypass(dev_info_t *dip, r_addr_t ra, io_attributes_t attr,
uint64_t ret;
DBG(DBG_LIB_DMA, dip, "px_lib_iommu_getbypass: dip 0x%p ra 0x%llx "
- "attr 0x%x\n", dip, ra, attr);
+ "attr 0x%llx\n", dip, ra, attr);
if ((ret = hvio_iommu_getbypass(DIP_TO_HANDLE(dip), ra,
attr, io_addr_p)) != H_EOK) {