Even if the device indicates (via the DMA mask) that it may address the upper 32-bits, consistent allocation will only return > 32-bit addresses for DMA if the consistent DMA mask has been explicitly changed via dma_set_coherent_mask(). This is true of the dma_pool interface as well....
mask: 0xffffffff max_cycles: 0xffffffff, ms [ 0.095530] futex hash table entries: 256 (order: -1, 3072 bytes, linear) [ 0.096286] pinctrl core: initialized pinctrl subsystem [ 0.100993] NET: Registered protocol family 16 [ 0.103094] DMA: preallocated 256 KiB pool for atomic coherent alloca...
dev_err(&pdev->dev,"dma_declare_coherent_memory failed\n");return-ENODEV; } ret = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32));if(ret) { dev_err(&pdev->dev,"dma_set_coherent_mask: %d\n", ret);return-ENODEV; }/* Initialize a mid-level device. Needed because of ba...
Original file line numberDiff line numberDiff line change Expand Up@@ -93,6 +93,7 @@ struct platform_device * __devinit fsl_usb2_device_register( pdev->dev.parent=&ofdev->dev; pdev->dev.coherent_dma_mask=ofdev->dev.coherent_dma_mask; ...
- dma_set_mask(hsotg->dev, 0); + hsotg->dev->dma_mask = NULL; dma_set_coherent_mask(hsotg->dev, 0); } -- 1.8.0 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org ...
dma_set_mask(&dev->dev, DMA_BIT_MASK(64))) { + dma_set_coherent_mask(&dev->dev, DMA_BIT_MASK(64)); ACL_DEBUG (KERN_WARNING "using a 64-bit irq mask\n"); } else { ACL_DEBUG (KERN_WARNING "unable to use 64-bit irq mask\n"); @@ -813,7 +812,7 @...
protocol family 16 [ 0.008145] DMA: preallocated 256 KiB pool for atomic coherent allocations ...
{ dma_free_coherent(cma_dev, (i + 1) * SZ_1M, dma_virt[i], dma_phys[i]); _dev_info...dma_virt[i] + (i + 1) * SZ_1M; p += PAGE_SIZE) *(u32 *)p = 0; _dev_info...return ret; } cma_dev = cma_test_misc.this_device; cma_dev->coherent_dma_mask = ~0; _...
[ 0.012614] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.013543] thermal_sys: Registered thermal governor 'step_wise' [ 0.038838] VCC1V8: supplied by P12V0 [ 0.039229] VCC3V3: supplied by P12V0 [ 0.039588] VCC5V0: supplied by P12V0 [ 0.039963] DDR_VDDC: supplied...
dma_addr = entry << IOMMU_PAGE_SHIFT; dma_addr |= (s->offset & ~IOMMU_PAGE_MASK); DBG(" - %lu pages, entry: %lx, dma_addr: %lx\n", npages, entry, dma_addr);/* Insert into HW table */build_fail = ppc_md.tce_build(tbl, entry, npages, ...