zorro: Set up z->dev.dma_mask for the DMA API Browse files [ Upstream commit 55496d3 ] The generic DMA API uses dev->dma_mask to check the DMA addressable memory bitmask, and warns if no mask is set or even allocated. Set z->dev.dma_coherent_mask on Zorro bus scan, and mak...
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; ...
the mask is cleared altogether. This is needed because usb_create_shared_hcd sets hcd->self.uses_dma based on dev->dma_mask != NULL, not by looking at the actual mask itself. This change thus makes hcd->self.uses_dma have the correct value when not using dma even though a dma_mask...
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....
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....
[ 0.008539] DMA: preallocated 256 KiB pool for atomic coherent allocations[ 0.009540] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.[ 0.009558] hw-breakpoint: maximum watchpoint size is 8 bytes.[ 0.020886] SCSI subsystem initialized[ 0.021138] usbcore: registered ...
(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 ...
lp->paddr = r.start; lp->vaddr = memremap(r.start, resource_size(&r), MEMREMAP_WB); dev_info(dev,..."Allocated reserved memory, vaddr: 0x%0llX, paddr: 0x%0llX\n", (u64)lp->vaddr, lp->paddr); 通过 DMA API...memory */ dma_set_coherent_mask(dev, 0xFFFFFFFF); lp->v...
[ 0.029477] NET: Registered protocol family 16 [ 0.042051] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.044246] thermal_sys: Registered thermal governor 'step_wise' [ 0.044499] cpuidle: using governor menu [ 0.084538] mxs_phy 40350000.usb-phy: supply phy-3p0 not foun...
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 nsfutex hash table entries: 256 (order: 2, 16384 bytes)pinctrl core: initialized pinctrl subsystemNET: Registered protocol family 16DMA: preallocated 256 KiB pool for atomic coherent allocations...