[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [sh_eth.c] Problem in dma_map_single()
Hi Konrad, In dma_capable(), it checks that mask, size and address of device. Currently, it dosen't pass to first condition code as below:
It shows the device doesn't have dma_mask bit. So I tried to set the dma_mask bit in sh_eth.c My approaches: 1. I tried to set a mask bit(dev->dma_mask) to use dma_coerce_mask_and_coherent() in sh_eth_drv_probe(), but it doesn't work. 2. forced set dev->dma_mask without kernel api. I passed to dma_capable() but driver cannot work. sh_eth driver want to get valid DMA descriptor to set DMA descriptor address for Rx and Tx. I tried to set the some bits(such as dma_mask) to get valid dma address forcibly, in this configuration sh_eth cannot work. My question is if I want to get valid dma address with xen swiotlb(suchas map_page, set_dma_mask and so on)? Wonseok. 2016-04-13 2:10 GMT+09:00 Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>: On Tue, Apr 12, 2016 at 04:54:55PM +0900, Wonseok Ko wrote: _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |