1. 25 Jan, 2023 21 commits
  2. 24 Jan, 2023 7 commits
    • Gustavo Sousa's avatar
      drm/i915/dmc: Use unversioned path for ADLP · 81f66500
      Gustavo Sousa authored
      The new DMC release for ADLP (v2.18) in linux-firmware adopted the new
      convention of using unversioned filenames, so update the driver code for
      that new release. Keep the latest versioned path as fallback so we do
      not cause regressions.
      Signed-off-by: default avatarGustavo Sousa <gustavo.sousa@intel.com>
      Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20230123182021.31239-3-gustavo.sousa@intel.com
      81f66500
    • Gustavo Sousa's avatar
      drm/i915/dmc: Prepare to use unversioned paths · ff6f11af
      Gustavo Sousa authored
      New DMC releases in linux-firmware will stop using version number in
      blob filenames. This new convention provides the following benefits:
      
        1. It simplifies code maintenance, as new DMC releases for a platform
           using the new convention will always use the same filename for the
           blob.
      
        2. It allows DMC to be loaded even if the target system does not have
           the most recent firmware installed.
      
      Prepare the driver by:
      
        - Using the new convention for DMC_PATH() and renaming the currently
          used one to make it clear it is for the legacy scheme.
      
        - Implementing a fallback mechanism for future transitions from
          versioned to unversioned paths so that we do not cause a regression
          for systems not having the most up-to-date linux-firmware files.
      
      v2:
        - Keep using request_firmware() instead of firmware_request_nowarn().
          (Jani)
      v3:
        - Keep current DMC paths instead of directly using unversioned ones,
          so that we do not disturb initrd generation.
          (Lucas, Rodrigo)
      Signed-off-by: default avatarGustavo Sousa <gustavo.sousa@intel.com>
      Cc: Jani Nikula <jani.nikula@intel.com>
      Cc: Lucas De Marchi <lucas.demarchi@intel.com>
      Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20230123182021.31239-2-gustavo.sousa@intel.com
      ff6f11af
    • Daniel Vetter's avatar
      Merge tag 'drm-misc-next-2023-01-19' of git://anongit.freedesktop.org/drm/drm-misc into drm-next · b8f55f24
      Daniel Vetter authored
      drm-misc-next for $kernel-version:
      
      UAPI Changes:
      
      Cross-subsystem Changes:
      
      Core Changes:
      
       * Cleanup unneeded include statements wrt <linux/fb.h>, <drm/drm_fb_helper.h>
         and <drm/drm_crtc_helper.h>
      
       * Remove unused helper DRM_DEBUG_KMS_RATELIMITED()
      
       * fbdev: Remove obsolete aperture field from struct fb_device, plus
         driver cleanups; Remove unused flag FBINFO_MISC_FIRMWARE
      
       * MIPI-DSI: Fix brightness, plus rsp. driver updates
      
       * scheduler: Deprecate drm_sched_resubmit_jobs()
      
       * ttm: Fix MIPS build; Remove ttm_bo_wait(); Documentation fixes
      
      Driver Changes:
      
       * Remove obsolete drivers for userspace modesetting i810, mga, r128,
         savage, sis, tdfx, via
      
       * bridge: Support CDNS DSI J721E, plus DT bindings; lt9611: Various
         fixes and improvements; sil902x: Various fixes; Fixes
      
       * nouveau: Removed support for legacy ioctls; Replace zero-size array;
         Cleanups
      
       * panel: Fixes
      
       * radeon: Use new DRM logging helpers
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      From: Thomas Zimmermann <tzimmermann@suse.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/Y8kDk5YX7Yz3eRhM@linux-uq9g
      b8f55f24
    • Daniel Vetter's avatar
      Merge tag 'drm-intel-gt-next-2023-01-18' of... · 045e8d10
      Daniel Vetter authored
      Merge tag 'drm-intel-gt-next-2023-01-18' of git://anongit.freedesktop.org/drm/drm-intel into drm-next
      
      Driver Changes:
      
      Fixes/improvements/new stuff:
      
      - Fix workarounds on Gen2-3 (Tvrtko Ursulin)
      - Fix HuC delayed load memory leaks (Daniele Ceraolo Spurio)
      - Fix a BUG caused by impendance mismatch in dma_fence_wait_timeout and GuC (Janusz Krzysztofik)
      - Add DG2 workarounds Wa_18018764978 and Wa_18019271663 (Matt Atwood)
      - Apply recommended L3 hashing mask tuning parameters (Gen12+) (Matt Roper)
      - Improve suspend / resume times with VT-d scanout workaround active (Andi Shyti, Chris Wilson)
      - Silence misleading "mailbox access failed" warning in snb_pcode_read (Ashutosh Dixit)
      - Fix null pointer dereference on HSW perf/OA (Umesh Nerlige Ramappa)
      - Avoid trampling the ring during buffer migration (and selftests) (Chris Wilson, Matthew Auld)
      - Fix DG2 visual corruption on small BAR systems by not forgetting to copy CCS aux state (Matthew Auld)
      - More fixing of DG2 visual corruption by not forgetting to copy CCS aux state of backup objects (Matthew Auld)
      - Fix TLB invalidation for Gen12.50 video and compute engines (Andrzej Hajda)
      - Limit Wa_22012654132 to just specific steppings (Matt Roper)
      - Fix userspace crashes due eviction not working under lock contention after the object locking conversion (Matthew Auld)
      - Avoid double free is user deploys a corrupt GuC firmware (John Harrison)
      - Fix 32-bit builds by using "%zu" to format size_t (Nirmoy Das)
      - Fix a possible BUG in TTM async unbind due not reserving enough fence slots (Nirmoy Das)
      - Fix potential use after free by not exposing the GEM context id to userspace too early (Rob Clark)
      - Show clamped PL1 limit to the user (hwmon) (Ashutosh Dixit)
      - Workaround unreliable reset on Jasperlake (Chris Wilson)
      - Cover rest of SVG unit MCR registers (Gustavo Sousa)
      - Avoid PXP log spam on platforms which do not support the feature (Alan Previn)
      - Re-disable RC6p on Sandy Bridge to avoid GPU hangs and visual glitches (Sasa Dragic)
      
      Future platform enablement:
      
      - Manage uncore->lock while waiting on MCR register (Matt Roper)
      - Enable Idle Messaging for GSC CS (Vinay Belgaumkar)
      - Only initialize GSC in tile 0 (José Roberto de Souza)
      - Media GT and Render GT share common GGTT (Aravind Iddamsetty)
      - Add dedicated MCR lock (Matt Roper)
      - Implement recommended caching policy (PVC) (Wayne Boyer)
      - Add hardware-level lock for steering (Matt Roper)
      - Check full IP version when applying hw steering semaphore (Matt Roper)
      - Enable GuC GGTT invalidation from the start (Daniele Ceraolo Spurio)
      - MTL GSC firmware support (Daniele Ceraolo Spurio, Jonathan Cavitt)
      - MTL OA support (Umesh Nerlige Ramappa)
      - MTL initial gt workarounds (Matt Roper)
      
      Driver refactors:
      
      - Hold forcewake and MCR lock over PPAT setup (Matt Roper)
      - Acquire fw before loop in intel_uncore_read64_2x32 (Umesh Nerlige Ramappa)
      - GuC filename cleanups and use submission API version number (John Harrison)
      - Promote pxp subsystem to top-level of i915 (Alan Previn)
      - Finish proofing the code agains object size overflows (Chris Wilson, Gwan-gyeong Mun)
      - Start adding module oriented dmesg output (John Harrison)
      
      Miscellaneous:
      
      - Correct kerneldoc for intel_gt_mcr_wait_for_reg() (Matt Roper)
      - Bump up sample period for busy stats selftest (Umesh Nerlige Ramappa)
      - Make GuC default_lists const data (Jani Nikula)
      - Fix table order verification to check all FW types (John Harrison)
      - Remove some limited use register access wrappers (Jani Nikula)
      - Remove struct_member macro (Andrzej Hajda)
      - Remove hardcoded value with a macro (Nirmoy Das)
      - Use helper func to find out map type (Nirmoy Das)
      - Fix a static analysis warning (John Harrison)
      - Consolidate VMA active tracking helpers (Andrzej Hajda)
      - Do not cover all future platforms in TLB invalidation (Tvrtko Ursulin)
      - Replace zero-length arrays with flexible-array members (Gustavo A. R. Silva)
      - Unwind hugepages to drop wakeref on error (Chris Wilson)
      - Remove a couple of superfluous i915_drm.h includes (Jani Nikula)
      
      Merges:
      
      - Merge drm/drm-next into drm-intel-gt-next (Rodrigo Vivi)
      
      danvet: Fix up merge conflict in intel_uc_fw.c, we ended up with 2
      copies of try_firmware_load() somehow.
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/Y8fW2Ny1B1hZ5ZmF@tursulin-desk
      045e8d10
    • Luca Coelho's avatar
      drm/i915: update src and dst scaler limits for display ver 12 and 13 · 21e18feb
      Luca Coelho authored
      The bspec has been updated and now display versions 12 and 13 support
      source width up to 5120 pixels, source height up to 8192 lines,
      destination width up to 8192 and destination height up to 8192.
      
      Update the code accordingly.
      
      BSpec: 50441
      Reviewed-by: default avatarAnkit Nautiyal <ankit.k.nautiyal@intel.com>
      Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
      Signed-off-by: default avatarStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20230113113905.130405-1-luciano.coelho@intel.com
      21e18feb
    • Javier Martinez Canillas's avatar
      drm/ssd130x: Silence a `dubious: x & !y` warning · 51affef3
      Javier Martinez Canillas authored
      The sparse tool complains with the following warning:
      
      $ make M=drivers/gpu/drm/solomon/ C=2
        CC [M]  drivers/gpu/drm/solomon/ssd130x.o
        CHECK   drivers/gpu/drm/solomon/ssd130x.c
      drivers/gpu/drm/solomon/ssd130x.c:363:21: warning: dubious: x & !y
      
      This seems to be a false positive in my opinion but still we can silence
      the tool while making the code easier to read. Let's also add a comment,
      to explain why the "com_seq" logical not is used rather than its value.
      Reported-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
      Signed-off-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
      Reviewed-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/20230121190930.2804224-1-javierm@redhat.com
      51affef3
    • Javier Martinez Canillas's avatar
      fbdev: Remove unused struct fb_deferred_io .first_io field · 998101f2
      Javier Martinez Canillas authored
      This optional callback was added in the commit 1f45f9db ("fb_defio:
      add first_io callback") but it was never used by a driver. Let's remove
      it since it's unlikely that will be used after a decade that was added.
      Signed-off-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
      Reviewed-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/20230121192418.2814955-2-javierm@redhat.com
      998101f2
  3. 23 Jan, 2023 12 commits