Skip to content
Snippets Groups Projects
  1. Aug 12, 2024
    • Vivek Kasireddy's avatar
      drm/virtio: Add prepare and cleanup routines for imported dmabuf obj · 57b0cc8f
      Vivek Kasireddy authored
      
      When an imported dmabuf obj is used as part of an atomic commit, we
      need to pin it as part of prepare and unpin it during cleanup of
      the associated FB, to make sure that it does not move until the
      commit is completed (and also while it is being used on the Host).
      
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Cc: Dmitry Osipenko <dmitry.osipenko@collabora.com>
      Cc: Rob Clark <robdclark@gmail.com>
      Cc: Gurchetan Singh <gurchetansingh@chromium.org>
      Cc: Chia-I Wu <olvaffe@gmail.com>
      Signed-off-by: default avatarVivek Kasireddy <vivek.kasireddy@intel.com>
      57b0cc8f
    • Vivek Kasireddy's avatar
      drm/virtio: Import prime buffers from other devices as guest blobs · 10b7021b
      Vivek Kasireddy authored
      
      By importing scanout buffers from other devices, we should be able
      to use the virtio-gpu driver in KMS only mode. Note that we attach
      dynamically and register a move_notify() callback so that we can
      let the VMM know of any location changes associated with the backing
      store of the imported object by sending detach_backing cmd.
      
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Cc: Dmitry Osipenko <dmitry.osipenko@collabora.com>
      Cc: Rob Clark <robdclark@gmail.com>
      Cc: Gurchetan Singh <gurchetansingh@chromium.org>
      Cc: Chia-I Wu <olvaffe@gmail.com>
      Signed-off-by: default avatarVivek Kasireddy <vivek.kasireddy@intel.com>
      10b7021b
    • Vivek Kasireddy's avatar
      drm/virtio: Add helpers to initialize and free the imported object · c518792b
      Vivek Kasireddy authored
      
      The imported object can be considered a guest blob resource;
      therefore, we use create_blob cmd while creating it. These helpers
      are used in the next patch which does the actual import.
      
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Cc: Dmitry Osipenko <dmitry.osipenko@collabora.com>
      Cc: Rob Clark <robdclark@gmail.com>
      Cc: Gurchetan Singh <gurchetansingh@chromium.org>
      Cc: Chia-I Wu <olvaffe@gmail.com>
      Signed-off-by: default avatarVivek Kasireddy <vivek.kasireddy@intel.com>
      c518792b
    • Vivek Kasireddy's avatar
      drm/virtio: Add a helper to map and note the dma addrs and lengths · 5f801719
      Vivek Kasireddy authored
      
      This helper would be used when first initializing the object as
      part of import and also when updating the plane where we need to
      ensure that the imported object's backing is valid.
      
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Cc: Dmitry Osipenko <dmitry.osipenko@collabora.com>
      Cc: Rob Clark <robdclark@gmail.com>
      Cc: Gurchetan Singh <gurchetansingh@chromium.org>
      Cc: Chia-I Wu <olvaffe@gmail.com>
      Signed-off-by: default avatarVivek Kasireddy <vivek.kasireddy@intel.com>
      5f801719
    • Vivek Kasireddy's avatar
      drm/virtio: Implement VIRTIO_GPU_CMD_RESOURCE_DETACH_BACKING cmd · 6d7e36ae
      Vivek Kasireddy authored
      
      This cmd is useful to let the VMM (i.e, Qemu) know that the backing
      store associated with a resource is no longer valid, so that the VMM
      can perform any cleanup or unmap operations.
      
      The fence related changes and virtio_gpu_object_detach()/
      virtio_gpu_detach_object_fenced() routines are extracted from a
      patch by Dmitry Osipenko <dmitry.osipenko@collabora.com>.
      
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Cc: Dmitry Osipenko <dmitry.osipenko@collabora.com>
      Cc: Rob Clark <robdclark@gmail.com>
      Cc: Gurchetan Singh <gurchetansingh@chromium.org>
      Cc: Chia-I Wu <olvaffe@gmail.com>
      Signed-off-by: default avatarVivek Kasireddy <vivek.kasireddy@intel.com>
      6d7e36ae
  2. Aug 08, 2024
  3. Aug 07, 2024
  4. Aug 06, 2024
Loading