-
- Downloads
drm/virtio: Improve DMA API usage for shmem BOs
DRM API requires the DRM's driver to be backed with the device that can
be used for generic DMA operations. The VirtIO-GPU device can't perform
DMA operations if it uses PCI transport because PCI device driver creates
a virtual VirtIO-GPU device that isn't associated with the PCI. Use PCI's
GPU device for the DRM's device instead of the VirtIO-GPU device and drop
DMA-related hacks from the VirtIO-GPU driver.
Signed-off-by:
Dmitry Osipenko <dmitry.osipenko@collabora.com>
Showing
- drivers/gpu/drm/virtio/virtgpu_drv.c 12 additions, 39 deletionsdrivers/gpu/drm/virtio/virtgpu_drv.c
- drivers/gpu/drm/virtio/virtgpu_drv.h 1 addition, 4 deletionsdrivers/gpu/drm/virtio/virtgpu_drv.h
- drivers/gpu/drm/virtio/virtgpu_kms.c 3 additions, 4 deletionsdrivers/gpu/drm/virtio/virtgpu_kms.c
- drivers/gpu/drm/virtio/virtgpu_object.c 11 additions, 45 deletionsdrivers/gpu/drm/virtio/virtgpu_object.c
- drivers/gpu/drm/virtio/virtgpu_vq.c 5 additions, 8 deletionsdrivers/gpu/drm/virtio/virtgpu_vq.c
Loading
Please register or sign in to comment