* the same or smaller than the streaming DMA mask. */ static inline int dma_set_mask_and_coherent(struct device *dev, u64 mask) { int rc = dma_set_mask(dev, mask); if (rc == 0) dma_set_coherent_mask(dev, mask); return rc; }...
staticintetnaviv_pdev_probe(struct platform_device *pdev){structdevice*dev= &pdev->dev;structdevice_node*node=dev->of_node;structcomponent_match*match=NULL;dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32));if(node) {structdevice_node*core_node;inti;for(i =0; ; i++) { core_nod...
dev->mt76.dma_dev=wed->dev; ret=dma_set_mask(wed->dev,DMA_BIT_MASK(32)); if(ret) returnret; ret=dma_set_coherent_mask(wed->dev,DMA_BIT_MASK(32)); if(ret) returnret; return1; #else return0; Expand Down 6 changes: 5 additions & 1 deletion6mt7996/pci.c ...
Add check for dma_set_mask() and return the error if it fails. Fixes: d76271d ("drm: xlnx: DRM/KMS driver for Xilinx ZynqMP DisplayPort Subsystem") Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: To...
+ err = dma_set_mask_and_coherent(tegra->dev, DMA_BIT_MASK(40)); + if (err < 0) { + dev_err(&pdev->dev, "failed to set DMA mask: %d\n", err); + goto put_rpm; + } + err = tegra_xusb_load_firmware(tegra);
The dma_mask and coherent_dma_mask values were never set. This prevented the media omap_vout driver from loading successfully. Tested on a Pandaboard and Beagle XM board. Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl>
示例1: set_dma_caps ▲点赞 9▼ staticintset_dma_caps(struct pci_dev *pdev){interr; err =pci_set_dma_mask(pdev, DMA_BIT_MASK(64));if(err) { dev_warn(&pdev->dev,"Warning: couldn't set 64-bit PCI DMA mask.\n"); err =pci_set_dma_mask(pdev, DMA_BIT_MASK(32));if(err...
> +static u64 omap_vout_dma_mask = DMA_BIT_MASK(32); > + > static struct platform_device omap_vout_device = { > .name = "omap_vout", > .num_resources = ARRAY_SIZE(omap_vout_resource), > .resource = &omap_vout_resource[0], ...
dmamask = DMA_BIT_MASK(32); + static struct platform_device dm646x_edma_device = { .name = "edma", .id = 0, - .dev.platform_data = &dm646x_edma_pdata, + .dev = { + .platform_data = &dm646x_edma_pdata, + .dma_mask = &dm646x_edma_dmamask, + .coherent_dma_mask...
s390/ism: Set DMA coherent mask Browse files A future change will convert the DMA API implementation from the architecture specific arch/s390/pci/pci_dma.c to using the common code drivers/iommu/dma-iommu.c which the utilizes the same IOMMU hardware through the s390-iommu driver. Unlike ...