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...
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 @...
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...
- 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_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; _...
pdev->dev.coherent_dma_mask=ofdev->dev.coherent_dma_mask; pdev->dev.dma_mask=&pdev->archdata.dma_mask; *pdev->dev.dma_mask=*ofdev->dev.dma_mask; retval=platform_device_add_data(pdev,pdata,sizeof(*pdata)); Expand Down
(order: 2, 16384 bytes, linear) [ 0.011800] pinctrl core: initialized pinctrl subsystem [ 0.012895] NET: Registered protocol family 16 [ 0.014057] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.015397] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint ...
+ ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32)); if (ret) return ret; - ecc = devm_kzalloc(&pdev->dev, sizeof(*ecc), GFP_KERNEL); + ecc = devm_kzalloc(dev, sizeof(*ecc), GFP_KERNEL); if (!ecc) { - dev_err(&pdev->dev, "Can't allocate controller\n"); ...
dev->read_urb->transfer_flags = (URB_NO_TRANSFER_DMA_MAP); dev->bulk_in_buffer = usb_alloc_coherent (udev, buffer_size, GFP_ATOMIC, &dev->read_urb->transfer_dma);if( dev->bulk_in_buffer ==NULL) { printk("Couldn't allocate bulk_in_buffer");gotoerror; ...