1. 01 Dec, 2023 33 commits
  2. 30 Nov, 2023 5 commits
  3. 29 Nov, 2023 2 commits
    • Thomas Hellström's avatar
      Documentation/gpu: VM_BIND locking document · dad19630
      Thomas Hellström authored
      Add the first version of the VM_BIND locking document which is
      intended to be part of the xe driver upstreaming agreement.
      
      The document describes and discuss the locking used during exec-
      functions, evicton and for userptr gpu-vmas. Intention is to be using the
      same nomenclature as the drm-vm-bind-async.rst.
      
      v2:
      - s/gvm/gpu_vm/g (Rodrigo Vivi)
      - Clarify the userptr seqlock with a pointer to mm/mmu_notifier.c
        (Rodrigo Vivi)
      - Adjust commit message accordingly.
      - Add SPDX license header.
      
      v3:
      - Large update to align with the drm_gpuvm manager locking
      - Add "Efficient userptr gpu_vma exec function iteration" section
      - Add "Locking at bind- and unbind time" section.
      
      v4:
      - Fix tabs vs space errors by untabifying (Rodrigo Vivi)
      - Minor style fixes and typos (Rodrigo Vivi)
      - Clarify situations where stale GPU mappings are occurring and how
        access through these mappings are blocked. (Rodrigo Vivi)
      - Insert into the toctree in implementation_guidelines.rst
      
      v5:
      - Add a section about recoverable page-faults.
      - Use local references to other documentation where possible
        (Bagas Sanjaya)
      - General documentation fixes and typos (Danilo Krummrich and
        Boris Brezillon)
      - Improve the documentation around locks that need to be grabbed from the
        dm-fence critical section (Boris Brezillon)
      - Add more references to the DRM GPUVM helpers (Danilo Krummrich and
        Boriz Brezillon)
      - Update the rfc/xe.rst document.
      
      v6:
      - Rework wording to improve readability (Boris Brezillon, Rodrigo Vivi,
        Bagas Sanjaya)
      - Various minor fixes across the document (Boris Brezillon)
      
      Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Signed-off-by: default avatarThomas Hellström <thomas.hellstrom@linux.intel.com>
      Reviewed-by: default avatarBoris Brezillon <boris.brezillon@collabora.com>
      Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      Reviewed-by: default avatarDanilo Krummrich <dakr@redhat.com>
      Acked-by: John Hubbard <jhubbard@nvidia.com> # Documentation/core-api/pin_user_pages.rst changes
      Link: https://patchwork.freedesktop.org/patch/msgid/20231129090637.2629-1-thomas.hellstrom@linux.intel.com
      dad19630
    • Thomas Zimmermann's avatar
      fbdev: Remove default file-I/O implementations · 8813e86f
      Thomas Zimmermann authored
      Drop the default implementations for file read, write and mmap
      operations. Each fbdev driver must now provide an implementation
      and select any necessary helpers. If no implementation has been
      set, fbdev returns an errno code to user space. The code is the
      same as if the operation had not been set in the file_operations
      struct.
      
      This change makes the fbdev helpers for I/O memory optional. Most
      systems only use system-memory framebuffers via DRM's fbdev emulation.
      
      v2:
      	* warn once if I/O callbacks are missing (Javier)
      Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
      Reviewed-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20231127131655.4020-33-tzimmermann@suse.de
      8813e86f