Re: [PATCH] virtio_ring: Fix querying of maximum DMA mapping size for virtio device

2021-12-01 Thread Jason Wang
On Wed, Dec 1, 2021 at 7:20 PM Will Deacon wrote: > > virtio_max_dma_size() returns the maximum DMA mapping size of the virtio > device by querying dma_max_mapping_size() for the device when the DMA > API is in use for the vring. Unfortunately, the device passed is > initialised by register_virtio

[PATCH] virtio_ring: Fix querying of maximum DMA mapping size for virtio device

2021-12-01 Thread Will Deacon
virtio_max_dma_size() returns the maximum DMA mapping size of the virtio device by querying dma_max_mapping_size() for the device when the DMA API is in use for the vring. Unfortunately, the device passed is initialised by register_virtio_device() and does not inherit the DMA configuration from its