From ec40ab3c118e93c5584e0cdb3b9a69db4f514554 Mon Sep 17 00:00:00 2001 From: Dan McDonald Date: Fri, 26 Aug 2011 19:35:22 -0400 Subject: [PATCH] 1402 fix for #534 causes dire performance regression Reviewed by: Albert Lee Reviewed by: Garrett D'Amore Approved by: Richard Lowe --- usr/src/uts/common/os/sunddi.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/usr/src/uts/common/os/sunddi.c b/usr/src/uts/common/os/sunddi.c index ab6e26a124..ee3fa51b95 100644 --- a/usr/src/uts/common/os/sunddi.c +++ b/usr/src/uts/common/os/sunddi.c @@ -7332,24 +7332,6 @@ ddi_dma_mem_alloc(ddi_dma_handle_t handle, size_t length, if (*handlep == NULL) return (DDI_FAILURE); -/* SPARC mappings are always cacheable, as SPARC guarantees cache coherency. */ -#ifndef __sparc - /* Transform attributes into correct cache flags. */ - if ((flags & IOMEM_DATA_MASK) == 0) { - switch (accattrp->devacc_attr_dataorder) { - case DDI_STRICTORDER_ACC: - flags |= IOMEM_DATA_UNCACHED; - break; - case DDI_MERGING_OK_ACC: - flags |= IOMEM_DATA_UC_WR_COMBINE; - break; - default: - flags |= IOMEM_DATA_CACHED; - break; - } - } -#endif - /* check if the cache attributes are supported */ if (i_ddi_check_cache_attr(flags) == B_FALSE) return (DDI_FAILURE); -- 2.11.4.GIT