1. 29 Feb, 2024 1 commit
  2. 28 Feb, 2024 4 commits
  3. 27 Feb, 2024 27 commits
  4. 26 Feb, 2024 8 commits
    • Daniel Vetter's avatar
      Merge v6.8-rc6 into drm-next · f112b68f
      Daniel Vetter authored
      Thomas Zimmermann asked to backmerge -rc6 for drm-misc branches,
      there's a few same-area-changed conflicts (xe and amdgpu mostly) that
      are getting a bit too annoying.
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      f112b68f
    • Daniel Vetter's avatar
      Merge tag 'drm-habanalabs-next-2024-02-26' of... · aa775edb
      Daniel Vetter authored
      Merge tag 'drm-habanalabs-next-2024-02-26' of https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux into drm-next
      
      This tag contains habanalabs driver and accel changes for v6.9.
      
      The notable changes are:
      
      - New features and improvements:
        - Configure interrupt affinity according to NUMA nodes for the MSI-X interrupts that are
          assigned to the userspace application which acquires the device.
        - Move the HBM MMU page tables to reside inside the HBM to minimize latency when doing
          page-walks.
        - Improve the device reset mechanism when consecutive heartbeat failures occur (firmware
          fails to ack on heartbeat message).
        - Check also extended errors in the PCIe addr_dec interrupt information.
        - Rate limit the error messages that can be printed to dmesg log by userspace actions.
      
      - Firmware related fixes:
        - Handle requests from firmware to reserve device memory
      
      - Bug fixes and code cleanups:
        - constify the struct device_type usage in accel (accel_sysfs_device_minor).
        - Fix the PCI health check by reading uncached register.
        - Fix reporting of drain events.
        - Fix debugfs files permissions.
        - Fix calculation of DRAM BAR base address.
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      From: Oded Gabbay <ogabbay@kernel.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/ZdxJprop0EniVQtf@ogabbay-vm-u22.habana-labs.com
      aa775edb
    • Daniel Vetter's avatar
      Merge tag 'drm-xe-next-2024-02-25' of ssh://gitlab.freedesktop.org/drm/xe/kernel into drm-next · 19b232b9
      Daniel Vetter authored
      drm/xe feature pull for v6.9:
      
      UAPI Changes:
      
      - New query to the GuC firmware submission version. (José Roberto de Souza)
      - Remove unused persistent exec_queues (Thomas Hellström)
      - Add vram frequency sysfs attributes (Sujaritha Sundaresan, Rodrigo Vivi)
      - Add the flag XE_VM_BIND_FLAG_DUMPABLE to notify devcoredump that mapping
        should be dumped (Maarten Lankhorst)
      
      Cross-drivers Changes:
      
      - Make sure intel_wakeref_t is treated as opaque type on i915-display
        and fix its type on xe
      
      Driver Changes:
      
      - Drop pre-production workarounds (Matt Roper)
      - Drop kunit tests for unsuported platforms: PVC and pre-production DG2 (Lucas De Marchi)
      - Start pumbling SR-IOV support with memory based interrupts
        for VF (Michal Wajdeczko)
      - Allow to map BO in GGTT with PAT index corresponding to
        XE_CACHE_UC to work with memory based interrupts (Michal Wajdeczko)
      - Improve logging with GT-oriented drm_printers (Michal Wajdeczko)
      - Add GuC Doorbells Manager as prep work SR-IOV during
        VF provisioning ((Michal Wajdeczko)
      - Refactor fake device handling in kunit integration ((Michal Wajdeczko)
      - Implement additional workarounds for xe2 and MTL (Tejas Upadhyay,
        Lucas De Marchi, Shekhar Chauhan, Karthik Poosa)
      - Program a few registers according to perfomance guide spec for Xe2 (Shekhar Chauhan)
      - Add error handling for non-blocking communication with GuC (Daniele Ceraolo Spurio)
      - Fix remaining 32b build issues and enable it back (Lucas De  Marchi)
      - Fix build with CONFIG_DEBUG_FS=n (Jani Nikula)
      - Fix warnings from GuC ABI headers (Matthew Brost)
      - Introduce Relay Communication for SR-IOV for VF <-> GuC <-> PF (Michal Wajdeczko)
      - Add mocs reset kunit (Ruthuvikas Ravikumar)
      - Fix spellings (Colin Ian King)
      - Disable mid-thread preemption when not properly supported by hardware (Nirmoy Das)
      - Release mmap mappings on rpm suspend (Badal Nilawar)
      - Fix BUG_ON on xe_exec by moving fence reservation to the validate stage (Matthew Auld)
      - Fix xe_exec by reserving extra fence slot for CPU bind (Matthew Brost)
      - Fix xe_exec with full long running exec queue, now returning
        -EWOULDBLOCK to userspace (Matthew Brost)
      - Fix CT irq handler when CT is disabled (Matthew Brost)
      - Fix VM_BIND_OP_UNMAP_ALL without any bound vmas (Thomas Hellström)
      - Fix missing __iomem annotations (Thomas Hellström)
      - Fix exec queue priority handling with GuC (Brian Welty)
      - Fix setting SLPC flag to GuC when it's not supported (Vinay Belgaumkar)
      - Fix C6 disabling without SLPC (Matt Roper)
      - Drop -Wstringop-overflow to fix build with GCC11 (Paul E. McKenney)
      - Circumvent bogus -Wstringop-overflow in one case (Arnd Bergmann)
      - Refactor exec_queue user extensions handling and fix USM attributes
        being applied too late (Brian Welty)
      - Use circ_buf head/tail convention (Matthew Brost)
      - Fail build if circ_buf-related defines are modified with incompatible values
        (Matthew Brost)
      - Fix several error paths (Dan Carpenter)
      - Fix CCS copy for small VRAM copy chunks (Thomas Hellström)
      - Rework driver initialization order and paths to account for driver running
        in VF mode (Michal Wajdeczko)
      - Initialize GuC earlier during probe to handle driver in VF mode (Michał Winiarski)
      - Fix migration use of MI_STORE_DATA_IMM to write PTEs (Matt Roper)
      - Fix bounds checking in __xe_bo_placement_for_flags (Brian Welty)
      - Drop display dependency on CONFIG_EXPERT (Jani Nikula)
      - Do not hand-roll kstrdup when creating snapshot (Michal Wajdeczko)
      - Stop creating one kunit module per kunit suite (Lucas De Marchi)
      - Reduce scope and constify variables (Thomas Hellström, Jani Nikula, Michal Wajdeczko)
      - Improve and document xe_guc_ct_send_recv() (Michal Wajdeczko)
      - Add proxy communication between CSME and GSC uC (Daniele Ceraolo Spurio)
      - Fix size calculation when writing pgtable (Fei Yang)
      - Make sure cfb is page size aligned in stolen memory (Vinod Govindapillai)
      - Stop printing guc log to dmesg when waiting for GuC fails (Rodrigo Vivi)
      - Use XE_CACHE_WB instead of XE_CACHE_NONE for cpu coherency on migration
        (Himal Prasad Ghimiray)
      - Fix error path in xe_vm_create (Moti Haimovski)
      - Fix warnings in doc generation (Thomas Hellström, Badal Nilawar)
      - Improve devcoredump content for mesa debugging (José Roberto de Souza)
      - Fix crash in trace_dma_fence_init() (José Roberto de Souza)
      - Improve CT state change handling (Matthew Brost)
      - Toggle USM support for Xe2 (Lucas De Marchi)
      - Reduces code duplication to emit PIPE_CONTROL (José Roberto de Souza)
      - Canonicalize addresses where needed for Xe2 and add to devcoredump
        (José Roberto de Souza)
      - Only allow 1 ufence per exec / bind IOCTL (Matthew Brost)
      - Move all display code to display/ (Jani Nikula)
      - Fix sparse warnings by correctly using annotations (Thomas Hellström)
      - Warn on job timeouts instead of using asserts (Matt Roper)
      - Prefix macros to avoid clashes with sparc (Matthew Brost)
      - Fix -Walloc-size by subclassing instead of allocating size smaller than struct (Thomas Hellström)
      - Add status check during gsc header readout (Suraj Kandpal)
      - Fix infinite loop in vm_bind_ioctl_ops_unwind() (Matthew Brost)
      - Fix fence refcounting (Matthew Brost)
      - Fix picking incorrect userptr VMA (Matthew Brost)
      - Fix USM on integrated by mapping both mem.kernel_bb_pool and usm.bb_pool (Matthew Brost)
      - Fix double initialization of display power domains (Xiaoming Wang)
      - Check expected uC versions by major.minor.patch instead of just major.minor (John Harrison)
      - Bump minimum GuC version to 70.19.2 for all platforms under force-probe
        (John Harrison)
      - Add GuC firmware loading for Lunar Lake (John Harrison)
      - Use kzalloc() instead of hand-rolled alloc + memset (Nirmoy Das)
      - Fix max page size of VMA during a REMAP (Matthew Brost)
      - Don't ignore error when pinning pages in kthread (Matthew Auld)
      - Refactor xe hwmon (Karthik Poosa)
      - Add debug logs for D3cold (Riana Tauro)
      - Remove broken TEST_VM_ASYNC_OPS_ERROR (Matthew Brost)
      - Always allow to override firmware blob with module param and improve
        log when no firmware is found (Lucas De Marchi)
      - Fix shift-out-of-bounds due to xe_vm_prepare_vma() accepting zero fences (Thomas Hellström)
      - Fix shift-out-of-bounds by distinguishing xe_pt/xe_pt_dir subclass (Thomas Hellström)
      - Fail driver bind if platform supports MSIX, but fails to allocate all of them (Dani Liberman)
      - Fix intel_fbdev thinking memory is backed by shmem (Matthew Auld)
      - Prefer drm_dbg() over dev_dbg() (Jani Nikula)
      - Avoid function cast warnings with clang-16 (Arnd Bergmann)
      - Enhance xe_bo_move trace (Priyanka Dandamudi)
      - Fix xe_vma_set_pte_size() not setting the right gpuva.flags for 4K size (Matthew Brost)
      - Add XE_VMA_PTE_64K VMA flag (Matthew Brost)
      - Return 2MB page size for compact 64k PTEs (Matthew Brost)
      - Remove usage of the deprecated ida_simple_xx() API (Christophe JAILLET)
      - Fix modpost warning on xe_mocs live kunit module (Ashutosh Dixit)
      - Drop extra newline in from sysfs files (Ashutosh Dixit)
      - Implement VM snapshot support for BO's and userptr (Maarten Lankhorst)
      - Add debug logs when skipping rebinds (Matthew Brost)
      - Fix code generation when mixing build directories (Dafna Hirschfeld)
      - Prefer struct_size over open coded arithmetic (Erick Archer)
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      From: Lucas De Marchi <lucas.demarchi@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/dbdkrwmcoqqlwftuc3olbauazc3pbamj26wa34puztowsnauoh@i3zms7ut4yuw
      19b232b9
    • Daniel Vetter's avatar
      Merge tag 'drm-misc-next-2024-02-22' of git://anongit.freedesktop.org/drm/drm-misc into drm-next · 71ab34f7
      Daniel Vetter authored
      drm-misc-next for v6.9:
      
      UAPI Changes:
      
      - changes to fdinfo stats
      
      Cross-subsystem Changes:
      
      agp:
      - remove unused type field from struct agp_bridge_data
      
      Core Changes:
      
      ci:
      - update test names
      - cleanups
      
      gem:
      - add stats for shared buffers plus updates to amdgpu, i915, xe
      
      Documentation:
      - fixes
      
      syncobj:
      - fixes to waiting and sleeping
      
      Driver Changes:
      
      bridge:
      - adv7511: fix crash on irq during probe
      - dw_hdmi: set bridge type
      
      host1x:
      - cleanups
      
      ivpu:
      - updates to firmware API
      - refactor BO allocation
      
      meson:
      - fix error handling in probe
      
      panel:
      - revert "drm/panel-edp: Add auo_b116xa3_mode"
      - add Himax HX83112A plus DT bindings
      - ltk500hd1829: add support for ltk101b4029w and admatec 9904370
      - simple: add BOE BP082WX1-100 8.2" panel plus DT bindungs
      
      renesas:
      - add RZ/G2L DU support plus DT bindings
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      From: Thomas Zimmermann <tzimmermann@suse.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/20240222135841.GA6677@localhost.localdomain
      71ab34f7
    • Ricardo B. Marliere's avatar
      accel: constify the struct device_type usage · 576d7cc5
      Ricardo B. Marliere authored
      Since commit aed65af1 ("drivers: make device_type const"), the driver
      core can properly handle constant struct device_type. Move the
      accel_sysfs_device_minor variable to be a constant structure as well,
      placing it into read-only memory which can not be modified at runtime.
      
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: default avatarRicardo B. Marliere <ricardo@marliere.net>
      Reviewed-by: default avatarOded Gabbay <ogabbay@kernel.org>
      Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
      576d7cc5
    • Ofir Bitton's avatar
      accel/habanalabs: modify pci health check · fa58b594
      Ofir Bitton authored
      Today we read PCI VENDOR-ID in order to make sure PCI link is
      healthy. Apparently the VENDOR-ID might be stored on host and
      hence, when we read it we might not access the PCI bus.
      In order to make sure PCI health check is reliable, we will start
      checking the DEVICE-ID instead.
      Signed-off-by: default avatarOfir Bitton <obitton@habana.ai>
      Reviewed-by: default avatarOded Gabbay <ogabbay@kernel.org>
      Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
      fa58b594
    • Tomer Tayar's avatar
      accel/habanalabs: keep explicit size of reserved memory for FW · c5170683
      Tomer Tayar authored
      The reserved memory for FW is currently saved in an ASIC property in
      units of MB, just like the value that comes from FW.
      Except the fact that it is not clear from the property's name, it means
      also that a calculation to actual size is required everywhere that it is
      used.
      Modify the property to hold the size in bytes.
      Signed-off-by: default avatarTomer Tayar <ttayar@habana.ai>
      Reviewed-by: default avatarOded Gabbay <ogabbay@kernel.org>
      Reviewed-by: default avatarCarl Vanderlip <quic_carlv@quicinc.com>
      Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
      c5170683
    • Tomer Tayar's avatar
      accel/habanalabs: handle reserved memory request when working with full FW · db45bbdd
      Tomer Tayar authored
      Currently the reserved memory request from FW is handled when running
      with preboot only, but this request is relevant also when running with
      full FW.
      Modify to always handle this reservation request.
      Signed-off-by: default avatarTomer Tayar <ttayar@habana.ai>
      Reviewed-by: default avatarOded Gabbay <ogabbay@kernel.org>
      Reviewed-by: default avatarCarl Vanderlip <quic_carlv@quicinc.com>
      Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
      db45bbdd