]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/virtio_ccw: Fix dma_parm pointer not set up
authorHalil Pasic <pasic@linux.ibm.com>
Mon, 7 Oct 2024 20:10:30 +0000 (22:10 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Thu, 10 Oct 2024 13:32:43 +0000 (15:32 +0200)
commit14c7579376279e507e52bf022192b46097a55377
tree47a9a5e352e8a8830d89d302011c06402be347e2
parent61997c1e947dbf8bc625ef86ceee00fdf2a5dba1
s390/virtio_ccw: Fix dma_parm pointer not set up

At least since commit 334304ac2bac ("dma-mapping: don't return errors
from dma_set_max_seg_size") setting up device.dma_parms is basically
mandated by the DMA API. As of now Channel (CCW) I/O in general does not
utilize the DMA API, except for virtio. For virtio-ccw however the
common virtio DMA infrastructure is such that most of the DMA stuff
hinges on the virtio parent device, which is a CCW device.

So lets set up the dma_parms pointer for the CCW parent device and hope
for the best!

Fixes: 334304ac2bac ("dma-mapping: don't return errors from dma_set_max_seg_size")
Reported-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Tested-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Link: https://lore.kernel.org/r/20241007201030.204028-1-pasic@linux.ibm.com
Signed-off-by: Halil Pasic <pasic@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/virtio/virtio_ccw.c