Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dGPU SR-IOV patches #30

Merged
merged 8 commits into from
Aug 29, 2024

Commits on Aug 23, 2024

  1. drm/virtio: Support tile-4 modifier

    Tile-4 is supported by Intel DG2. Support it could benefit performance.
    
    Tracked-On: OAM-123143
    Signed-off-by: HeYue <yue.he@intel.com>
    yhe39 authored and phreer committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    1ed41d3 View commit details
    Browse the repository at this point in the history
  2. dma-buf: Add internal dynamic mapping function

    ...which allows setting attach->peer2peer without implementing dynamic
    importer_ops.
    
    Tracked-On: OAM-123143
    Signed-off-by: Weifeng Liu <weifeng.liu@intel.com>
    phreer committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    0ee1b9e View commit details
    Browse the repository at this point in the history
  3. drm/virtio: Use DMA API in PRIME importing code

    TODO: We must always use DMA addresses for the following two reasons:
    
    1. By design we are not allowed to access the struct page backing a
       scatter list, especially when config DMABUF_DEBUG is turned on in
       which case the addresses will be mangled by the core.
    2. DMA addresses are required for dGPU local memory sharing between
       host and guest.
    
    Tracked-On: OAM-123143
    Signed-off-by: Weifeng Liu <weifeng.liu@intel.com>
    phreer committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    8824d05 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2024

  1. drm/virtio: Add allow_p2p capability

    This feature is mainly for dGPU local memory sharing between host and
    guest.  Presence of this capability means that the virtio-GPU backend is
    expecting local memory buffers for scan-out.
    
    Tracked-On: OAM-123143
    Signed-off-by: Weifeng Liu <weifeng.liu@intel.com>
    phreer committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    9b774c4 View commit details
    Browse the repository at this point in the history
  2. drm/virtio: Set peer2peer flag when VIRTIO_GPU_F_ALLOW_P2P is present

    Set allow_peer2peer flag when capability VIRTIO_GPU_F_ALLOW_P2P is
    exposed by the device back-end.  This allows other devices to share
    memory residing in device local memory.
    
    Tracked-On: OAM-123143
    Signed-off-by: Weifeng Liu <weifeng.liu@intel.com>
    phreer committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    a75779e View commit details
    Browse the repository at this point in the history
  3. drm/virtio: Show more capabilities in debugfs

    Tracked-On: OAM-123143
    Signed-off-by: Weifeng Liu <weifeng.liu@intel.com>
    phreer committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    ee3271e View commit details
    Browse the repository at this point in the history
  4. Add sprite planes support for virtio gpu

    Sprite planes of physical pipe are exposed to guest through
    virtio gpu, and all the supported format and modifier and rotation
    capabilities are transferred to frontend driver, so that user space
    graphic software could easily utilize them to avoid unnecessary
    gpu computing resource waste.
    
    This patch also includes alpha and pixel blend mode property support.
    
    Tracked-On: OAM-114060
    Signed-off-by: hangliu1 <hang1.liu@intel.com>
    Signed-off-by: Xue.Bosheng <bosheng.xue@intel.com>
    Signed-off-by: Weifeng Liu <weifeng.liu@intel.com>
    liuhang-bit authored and phreer committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    0251ed7 View commit details
    Browse the repository at this point in the history
  5. drm/virtio: Add multiple planar format buffer support

    Add multiple gem obj backs for virtio gpu framebuffer to support multiple
    planer for some pixel format.
    
    Test-done:
    - GAS;
    - iGPU VF + virtio-GPU;
    - iGPU VF + dGPU passthrough.
    
    Tracked-On: OAM-124054
    Signed-off-by: hangliu1 <hang1.liu@intel.com>
    Signed-off-by: HeYue <yue.he@intel.com>
    Signed-off-by: Weifeng Liu <weifeng.liu@intel.com>
    yhe39 authored and phreer committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    8ddc50b View commit details
    Browse the repository at this point in the history