1. 15 Jun, 2023 9 commits
  2. 12 Jun, 2023 1 commit
  3. 10 Jun, 2023 10 commits
  4. 09 Jun, 2023 7 commits
    • Dave Airlie's avatar
      Merge tag 'drm-intel-gt-next-2023-06-08' of... · ba57b9b1
      Dave Airlie authored
      Merge tag 'drm-intel-gt-next-2023-06-08' of git://anongit.freedesktop.org/drm/drm-intel into drm-next
      
      UAPI Changes:
      
      - I915_GEM_CREATE_EXT_SET_PAT for Mesa on Meteorlake.
      
      Driver Changes:
      
      Fixes/improvements/new stuff:
      
      - Use large rings for compute contexts (Chris Wilson)
      - Better logging/debug of unexpected GuC communication issues (Michal Wajdeczko)
      - Clear out entire reports after reading if not power of 2 size (Ashutosh Dixit)
      - Limit lmem allocation size to succeed on SmallBars (Andrzej Hajda)
      - perf/OA capture robustness improvements on DG2 (Umesh Nerlige Ramappa)
      - Fix error code in intel_gsc_uc_heci_cmd_submit_nonpriv() (Dan Carpenter)
      
      Future platform enablement:
      
      - Add workaround 14016712196 (Tejas Upadhyay)
      - HuC loading for MTL (Daniele Ceraolo Spurio)
      - Allow user to set cache at BO creation (Fei Yang)
      
      Miscellaneous:
      
      - Use system include style for drm headers (Jani Nikula)
      - Drop legacy CTB definitions (Michal Wajdeczko)
      - Turn off the timer to sample frequencies when GT is parked (Ashutosh Dixit)
      - Make PMU sample array two-dimensional (Ashutosh Dixit)
      - Use the correct error value when kernel_context() fails (Andi Shyti)
      - Fix second parameter type of pre-gen8 pte_encode callbacks (Nathan Chancellor)
      - Fix parameter in gmch_ggtt_insert_{entries, page}() (Nathan Chancellor)
      - Fix size_t format specifier in gsccs_send_message() (Nathan Chancellor)
      - Use the fdinfo helper (Tvrtko Ursulin)
      - Add some missing error propagation (Tvrtko Ursulin)
      - Reduce I915_MAX_GT to 2 (Matt Atwood)
      - Rename I915_PMU_MAX_GTS to I915_PMU_MAX_GT (Matt Atwood)
      - Remove some obsolete definitions (John Harrison)
      
      Merges:
      
      - Merge drm/drm-next into drm-intel-gt-next (Tvrtko Ursulin)
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/ZIH09fqe5v5yArsu@tursulin-desk
      ba57b9b1
    • Dave Airlie's avatar
      Merge tag 'drm-intel-next-2023-06-05' of git://anongit.freedesktop.org/drm/drm-intel into drm-next · 959294e4
      Dave Airlie authored
      drm/i915 features for v6.5:
      
      Features and functionality:
      - Meteorlake (MTL) display enabling (Mika, Radhakrishna, José, Ankit, Clint,
        Gustavo, Imre, Anusha, Juha-Pekka, Matt)
      - Allow VRR to be toggled during fastsets (Ville)
      - Allow arbitrary refresh rates with VRR eDP panels (Ville)
      - Support async flips on linear buffers on display ver 12+  (Arun)
      - New debugfs for display clock frequencies (Bhanuprakash)
      - Taint kernel when force probing unsupported devices (Jani)
      - Expose CRTC CTM property on ILK/SNB/VLV (Ville)
      
      DRM subsystem changes:
      - EDID changes to support further conversion to struct drm_edid (Jani)
      - Move i915 DSC parameter code to common DRM helpers (Dmitry Baryshkov)
      
      Refactoring and cleanups:
      - CSC color refactoring (Ville)
      - VRR cleanups (Ville)
      - Finish i915 conversion to struct drm_edid (Jani)
      - Start high level display driver file (Jani)
      - Hotplug refactoring (Ville)
      - Misc display refactoring and cleanups (Jani, Ville)
      - Use device based logging for state checker warnings (Jani)
      - Split out hotplug and display irq handling (Jani)
      - Move display device info and probe under display/ (Matt)
      - HDCP cleanups (Suraj)
      - Use localized warning ignores instead of per file (Jani)
      - Remove superfluous enum i915_drm_suspend_mode (Maarten)
      - PSR, pfit, scaler and chicken register definition cleanups (Ville)
      - Constify pointers to hwmon_channel_info (Krzysztof Kozlowski)
      - Replace all non-returning strlcpy with strscpy (Azeem Shaikh)
      - Refactor VBT aux channel and DDC pin mapping (Ville)
      - Include cleanups (Jani)
      
      Fixes:
      - Fix modeset locking issue in DP MST HDCP (Suraj)
      - Fix disconnected Type-C/DP-alt disable at probe (Imre)
      - Fix HDMI PCON DSC usage and color conversions (Ankit)
      - Fix g4x HDMI infoframe/audio transmission port usage (Ville)
      - Avoid use-after-free when DP connector init fails (Maarten)
      - Fix voltage level for 480 MHz CDCLK (Chaitanya)
      - Check HPD live state during eDP probe (Ville)
      - Fix active port PLL selection for secondary MST streams (Imre)
      - Check pipe source size when using SKL+ scalers (Ville)
      - Fix MIPI DSI sleep sequences (Hans de Goede)
      - Fix DPCD register write order to match 128b/132b requirement (Arun)
      - Increase AUX timeout for Type-C (Suraj)
      - Communicate display power demands to pcode (Stan)
      - Fix potential division by zero in DSC compute config (Nikita Zhandarovich)
      - Fix fast wake AUX sync length (Jouni)
      - Fix potential oops on intel_get_crtc_new_encoder() (Ville)
      
      Merges:
      - drm-next backmerges (Rodrigo, Jani)
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Jani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/87zg5eat32.fsf@intel.com
      959294e4
    • Dave Airlie's avatar
      Merge tag 'drm-misc-next-2023-06-07' of git://anongit.freedesktop.org/drm/drm-misc into drm-next · 45365b65
      Dave Airlie authored
      drm-misc-next for v6.5:
      
      UAPI Changes:
      
      Cross-subsystem Changes:
      
      Core Changes:
      
      Driver Changes:
      
       * bridge
         * imx: Fix module linking
         * tc358762: Support reset GPIO
      
       * meson
         * Add support for MIPI DSI displays; plus fixes and DT bindings
      
       * panel
         * Add Support for Rocktech RK043FN48H; plus DT bindings
         * Add support for Starry himax83102-j02; plus DT bindings
         * Add support for Starry ili9882t; plus DT bindings
      
       * virtio
         * Support sync-object UAPI
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Thomas Zimmermann <tzimmermann@suse.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/20230607085644.GA12673@linux-uq9g
      45365b65
    • Dave Airlie's avatar
      Merge tag 'drm-habanalabs-next-2023-06-08' of... · 7f4f4adb
      Dave Airlie authored
      Merge tag 'drm-habanalabs-next-2023-06-08' of https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux into drm-next
      
      This tag contains additional habanalabs driver changes for v6.5:
      
      - uAPI changes:
        - Return 0 when user queries if there was a h/w or f/w error and no such error happened.
          Previously we returned an error in such case.
      
      - New features and improvements:
        - Add pci health check when we lose connection with the firmware. This can be used to
          distinguish between pci link down and firmware getting stuck.
        - Add more info to the error print when TPC interrupt occur.
        - Reduce amount of code under mutex in the command submission of signal event.
      
      - Firmware related fixes:
        - Fixes to the handshake protocol during f/w initialization.
        - Display information that the f/w sends us when encountering a DMA error.
        - Do soft-reset using a message sent to firmware instead of writing to MMIO.
        - Prepare generic code to extract f/w version numbers.
      
      - Bug fixes and code cleanups. Notable fixes are:
        - Unsecure certain TPC registers that the user should access.
        - Fix handling of QMAN errors
        - Fix memory leak when recording errors (to later pass them to the user)
        - Multiple fixes to razwi interrupt handling code
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Oded Gabbay <ogabbay@kernel.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20230608103043.GA2699019@ogabbay-vm-u20.habana-labs.com
      7f4f4adb
    • Dave Airlie's avatar
      Merge tag 'drm-next-20230529' of... · c9b685df
      Dave Airlie authored
      Merge tag 'drm-next-20230529' of git://git.kernel.org/pub/scm/linux/kernel/git/pinchartl/linux into drm-next
      
      Renesas DRM/KMS drivers:
      
      - Group drivers in renesas subdirectory to prepare for new platform
      - Drop deprecated R-Car H3 ES1.x support
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20230602111504.GA24855@pendragon.ideasonboard.com
      c9b685df
    • Dmitry Baryshkov's avatar
      drm/msm/a6xx: initialize GMU mutex earlier · 12abd735
      Dmitry Baryshkov authored
      Move GMU mutex initialization earlier to make sure that it is always
      initialized. a6xx_destroy can be called from ther failure path before
      GMU initialization.
      
      This fixes the following backtrace:
      
      ------------[ cut here ]------------
      DEBUG_LOCKS_WARN_ON(lock->magic != lock)
      WARNING: CPU: 0 PID: 58 at kernel/locking/mutex.c:582 __mutex_lock+0x1ec/0x3d0
      Modules linked in:
      CPU: 0 PID: 58 Comm: kworker/u16:1 Not tainted 6.3.0-rc5-00155-g187c06436519 #565
      Hardware name: Qualcomm Technologies, Inc. SM8350 HDK (DT)
      Workqueue: events_unbound deferred_probe_work_func
      pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
      pc : __mutex_lock+0x1ec/0x3d0
      lr : __mutex_lock+0x1ec/0x3d0
      sp : ffff800008993620
      x29: ffff800008993620 x28: 0000000000000002 x27: ffff47b253c52800
      x26: 0000000001000606 x25: ffff47b240bb2810 x24: fffffffffffffff4
      x23: 0000000000000000 x22: ffffc38bba15ac14 x21: 0000000000000002
      x20: ffff800008993690 x19: ffff47b2430cc668 x18: fffffffffffe98f0
      x17: 6f74616c75676572 x16: 20796d6d75642067 x15: 0000000000000038
      x14: 0000000000000000 x13: ffffc38bbba050b8 x12: 0000000000000666
      x11: 0000000000000222 x10: ffffc38bbba603e8 x9 : ffffc38bbba050b8
      x8 : 00000000ffffefff x7 : ffffc38bbba5d0b8 x6 : 0000000000000222
      x5 : 000000000000bff4 x4 : 40000000fffff222 x3 : 0000000000000000
      x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff47b240cb1880
      Call trace:
       __mutex_lock+0x1ec/0x3d0
       mutex_lock_nested+0x2c/0x38
       a6xx_destroy+0xa0/0x138
       a6xx_gpu_init+0x41c/0x618
       adreno_bind+0x188/0x290
       component_bind_all+0x118/0x248
       msm_drm_bind+0x1c0/0x670
       try_to_bring_up_aggregate_device+0x164/0x1d0
       __component_add+0xa8/0x16c
       component_add+0x14/0x20
       dsi_dev_attach+0x20/0x2c
       dsi_host_attach+0x9c/0x144
       devm_mipi_dsi_attach+0x34/0xac
       lt9611uxc_attach_dsi.isra.0+0x84/0xfc
       lt9611uxc_probe+0x5b8/0x67c
       i2c_device_probe+0x1ac/0x358
       really_probe+0x148/0x2ac
       __driver_probe_device+0x78/0xe0
       driver_probe_device+0x3c/0x160
       __device_attach_driver+0xb8/0x138
       bus_for_each_drv+0x84/0xe0
       __device_attach+0x9c/0x188
       device_initial_probe+0x14/0x20
       bus_probe_device+0xac/0xb0
       deferred_probe_work_func+0x8c/0xc8
       process_one_work+0x2bc/0x594
       worker_thread+0x228/0x438
       kthread+0x108/0x10c
       ret_from_fork+0x10/0x20
      irq event stamp: 299345
      hardirqs last  enabled at (299345): [<ffffc38bb9ba61e4>] put_cpu_partial+0x1c8/0x22c
      hardirqs last disabled at (299344): [<ffffc38bb9ba61dc>] put_cpu_partial+0x1c0/0x22c
      softirqs last  enabled at (296752): [<ffffc38bb9890434>] _stext+0x434/0x4e8
      softirqs last disabled at (296741): [<ffffc38bb989669c>] ____do_softirq+0x10/0x1c
      ---[ end trace 0000000000000000 ]---
      
      Fixes: 4cd15a3e ("drm/msm/a6xx: Make GPU destroy a bit safer")
      Cc: Douglas Anderson <dianders@chromium.org>
      Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
      Reviewed-by: default avatarDouglas Anderson <dianders@chromium.org>
      Patchwork: https://patchwork.freedesktop.org/patch/531540/Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
      12abd735
    • Kuogee Hsieh's avatar
      drm/msm/dp: enable HDP plugin/unplugged interrupts at hpd_enable/disable · a8e981ac
      Kuogee Hsieh authored
      The internal_hpd flag is set to true by dp_bridge_hpd_enable() and set to
      false by dp_bridge_hpd_disable() to handle GPIO pinmuxed into DP controller
      case. HDP related interrupts can not be enabled until internal_hpd is set
      to true. At current implementation dp_display_config_hpd() will initialize
      DP host controller first followed by enabling HDP related interrupts if
      internal_hpd was true at that time. Enable HDP related interrupts depends on
      internal_hpd status may leave system with DP driver host is in running state
      but without HDP related interrupts being enabled. This will prevent external
      display from being detected. Eliminated this dependency by moving HDP related
      interrupts enable/disable be done at dp_bridge_hpd_enable/disable() directly
      regardless of internal_hpd status.
      
      Changes in V3:
      -- dp_catalog_ctrl_hpd_enable() and dp_catalog_ctrl_hpd_disable()
      -- rewording ocmmit text
      
      Changes in V4:
      -- replace dp_display_config_hpd() with dp_display_host_start()
      -- move enable_irq() at dp_display_host_start();
      
      Changes in V5:
      -- replace dp_display_host_start() with dp_display_host_init()
      
      Changes in V6:
      -- squash remove enable_irq() and disable_irq()
      
      Fixes: cd198cad ("drm/msm/dp: Rely on hpd_enable/disable callbacks")
      Signed-off-by: default avatarKuogee Hsieh <quic_khsieh@quicinc.com>
      Tested-by: Leonard Lausen <leonard@lausen.nl> # on sc7180 lazor
      Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
      Reviewed-by: default avatarBjorn Andersson <andersson@kernel.org>
      Tested-by: default avatarBjorn Andersson <andersson@kernel.org>
      Reviewed-by: default avatarAbhinav Kumar <quic_abhinavk@quicinc.com>
      Link: https://lore.kernel.org/r/1684878756-17830-1-git-send-email-quic_khsieh@quicinc.comSigned-off-by: default avatarRob Clark <robdclark@chromium.org>
      a8e981ac
  5. 08 Jun, 2023 13 commits