Skip to content
  1. Jun 16, 2021
  2. Jun 14, 2021
    • Thomas Hellström's avatar
      drm/i915: Simplify userptr locking · b4b9731b
      Thomas Hellström authored
      
      
      Use an rwlock instead of spinlock for the global notifier lock
      to reduce risk of contention in execbuf.
      
      Protect object state with the object lock whenever possible rather
      than with the global notifier lock
      
      Don't take an explicit page_ref in userptr_submit_init() but rather
      call get_pages() after obtaining the page list so that
      get_pages() holds the page_ref. This means we don't need to call
      userptr_submit_fini(), which is needed to avoid awkward locking
      in our upcoming VM_BIND code.
      
      Signed-off-by: default avatarThomas Hellström <thomas.hellstrom@linux.intel.com>
      Reviewed-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Signed-off-by: default avatarMatthew Auld <matthew.auld@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210610143525.624677-1-thomas.hellstrom@linux.intel.com
      b4b9731b
    • Chris Wilson's avatar
      drm/i915/selftests: Reorder tasklet_disable vs local_bh_disable · 35c6367f
      Chris Wilson authored
      Due to a change in requirements that disallows tasklet_disable() being
      called from atomic context, rearrange the selftest to avoid doing so.
      
      <3> [324.942939] BUG: sleeping function called from invalid context at kernel/softirq.c:888
      <3> [324.942952] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5601, name: i915_selftest
      <4> [324.942960] 1 lock held by i915_selftest/5601:
      <4> [324.942963]  #0: ffff888101d19240 (&dev->mutex){....}-{3:3}, at: device_driver_attach+0x18/0x50
      <3> [324.942987] Preemption disabled at:
      <3> [324.942990] [<ffffffffa026fbd2>] live_hold_reset.part.65+0xc2/0x2f0 [i915]
      <4> [324.943255] CPU: 0 PID: 5601 Comm: i915_selftest Tainted: G     U            5.13.0-rc5-CI-CI_DRM_10197+ #1
      <4> [324.943259] Hardware name: Intel Corp. Geminilake/GLK RVP2 LP4SD (07), BIOS GELKRVPA.X64.0062.B30.1708222146 08/22/2017
      <4> [324.943263] Call Trace:
      <4> [324.943267]  dump_stack+0x7f/0xad
      <4> [324.943276]  ___might_sleep.cold.123+0xf2/0x106
      <4> [324.943286]  tasklet_unlock_wait+0x2e/0xb0
      <4> [324.943291]  ? ktime_get_raw+0x81/0x120
      <4> [324.943305]  live_hold_reset.part.65+0x1ab/0x2f0 [i915]
      <4> [324.943500]  __i915_subtests.cold.7+0x42/0x92 [i915]
      <4> [324.943723]  ? __i915_live_teardown+0x50/0x50 [i915]
      <4> [324.943922]  ? __intel_gt_live_setup+0x30/0x30 [i915]
      
      Fixes: da044747
      
       ("tasklets: Replace spin wait in tasklet_unlock_wait()")
      Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Reviewed-by: default avatarThomas Hellström <thomas.hellstrom@linux.intel.com>
      Signed-off-by: default avatarMatthew Auld <matthew.auld@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210611060838.647973-1-thomas.hellstrom@linux.intel.com
      35c6367f
    • Joonas Lahtinen's avatar
      Merge tag 'topic/i915-ttm-2021-06-11' of... · 0e9d217b
      Joonas Lahtinen authored
      
      Merge tag 'topic/i915-ttm-2021-06-11' of git://anongit.freedesktop.org/drm/drm-misc into drm-intel-gt-next
      
      drm-misc and drm-intel pull request for topic/i915-ttm:
      - Convert i915 lmem handling to ttm.
      - Add a patch to temporarily add a driver_private member to vma_node.
      - Use this to allow mixed object mmap handling for i915.
      
      Signed-off-by: default avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
      From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/eb71ee2d-3413-6ca8-0b7c-a58695f00b77@linux.intel.com
      0e9d217b
    • Tvrtko Ursulin's avatar
      drm/i915: Fix busy ioctl commentary · c649432e
      Tvrtko Ursulin authored
      
      
      Just tidy one instance of incorrect context parameter name and a stray
      sentence ending from before reporting was converted to be class based.
      
      Signed-off-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Reviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210611132221.1055650-1-tvrtko.ursulin@linux.intel.com
      c649432e
  3. Jun 11, 2021
  4. Jun 10, 2021
    • Sascha Hauer's avatar
      drm/etnaviv: add HWDB entry for GC7000 rev 6204 · 989c9dad
      Sascha Hauer authored
      
      
      This is the 3D GPU found on the i.MX8MP SoC. The feature bits are
      taken from the NXP downstream kernel driver 6.4.3.p1.305572.
      
      Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
      Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
      Reviewed-by: default avatarChristian Gmeiner <christian.gmeiner@gmail.com>
      989c9dad
    • Dave Airlie's avatar
      Merge tag 'amd-drm-next-5.14-2021-06-09' of... · c707b73f
      Dave Airlie authored
      
      Merge tag 'amd-drm-next-5.14-2021-06-09' of https://gitlab.freedesktop.org/agd5f/linux into drm-next
      
      amd-drm-next-5.14-2021-06-09:
      
      amdgpu:
      - SR-IOV fixes
      - Smartshift updates
      - GPUVM TLB flush updates
      - 16bpc fixed point display fix for DCE11
      - BACO cleanups and core refactoring
      - Aldebaran updates
      - Initial Yellow Carp support
      - RAS fixes
      - PM API cleanup
      - DC visual confirm updates
      - DC DP MST fixes
      - DC DML fixes
      - Misc code cleanups and bug fixes
      
      amdkfd:
      - Initial Yellow Carp support
      
      radeon:
      - memcpy_to/from_io fixes
      
      UAPI:
      - Add Yellow Carp chip family id
        Used internally in the kernel driver and by mesa
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Alex Deucher <alexander.deucher@amd.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210610031649.4006-1-alexander.deucher@amd.com
      c707b73f
    • Dave Airlie's avatar
      Merge tag 'drm-intel-next-2021-06-09' of git://anongit.freedesktop.org/drm/drm-intel into drm-next · a2098e85
      Dave Airlie authored
      
      
      Cross-subsystem Changes:
      
      -  x86/gpu: add JasperLake to gen11 early quirks
        (Although the patch lacks the Ack info, it has been Acked by Borislav)
      
      Driver Changes:
      
      - General DMC improves (Anusha)
      - More ADL-P enabling (Vandita, Matt, Jose, Mika, Anusha, Imre, Lucas, Jani, Manasi, Ville, Stanislav)
      - Introduce MBUS relative dbuf offset (Ville)
      - PSR fixes and improvements (Gwan, Jose, Ville)
      - Re-enable LTTPR non-transparent LT mode for DPCD_REV < 1.4 (Ville)
      - Remove duplicated declarations (Shaokun, Wan)
      - Check HDMI sink deep color capabilities during .mode_valid (Ville)
      - Fix display flicker screan related to console and FBC (Chris)
      - Remaining conversions of GRAPHICS_VER (Lucas)
      - Drop invalid FIXME (Jose)
      - Fix bigjoiner check in dsc_disable (Vandita)
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/YMEy2Ew82BeL/hDK@intel.com
      a2098e85
    • Dave Airlie's avatar
      drm/amdgpu: use correct rounding macro for 64-bit · 691cf8cd
      Dave Airlie authored
      This fixes 32-bit arm build due to lack of 64-bit divides.
      
      Fixes: cb1c8146
      
       ("drm/ttm: flip the switch for driver allocated resources v2")
      Link: https://patchwork.freedesktop.org/patch/438442/
      Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      691cf8cd
    • Alex Deucher's avatar
      drm/amdgpu/vcn: drop gfxoff control for VCN2+ · 2c1b1ac7
      Alex Deucher authored
      
      
      Drop disabling of gfxoff during VCN use.  This allows gfxoff
      to kick in and potentially save power if the user is not using
      gfx for color space conversion or scaling.
      
      VCN1.0 had a bug which prevented it from working properly with
      gfxoff, so we disabled it while using VCN.  That said, most apps
      today use gfx for scaling and color space conversion rather than
      overlay planes so it was generally in use anyway. This was fixed
      on VCN2+, but since we mostly use gfx for color space conversion
      and scaling and rapidly powering up/down gfx can negate the
      advantages of gfxoff, we left gfxoff disabled. As more
      applications use overlay planes for color space conversion
      and scaling, this starts to be a win, so go ahead and leave
      gfxoff enabled.
      
      Note that VCN1.0 uses vcn_v1_0_idle_work_handler() and
      vcn_v1_0_ring_begin_use() so they are not affected by this
      patch.
      
      Reviewed-by: default avatarJames Zhu <James.Zhu@amd.com>
      Acked-by: default avatarChristian König <christian.koenig@amd.com>
      Reviewed-by: default avatarBoyuan Zhang <Boyuan.Zhang@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      2c1b1ac7
    • Dave Airlie's avatar
      Merge tag 'drm-misc-next-2021-06-09' of git://anongit.freedesktop.org/drm/drm-misc into drm-next · 09b020bb
      Dave Airlie authored
      
      
      drm-misc-next for 5.14:
      
      UAPI Changes:
      
       * drm/panfrost: Export AFBC_FEATURES register to userspace
      
      Cross-subsystem Changes:
      
       * dma-buf: Fix debug printing; Rename dma_resv_*() functions + changes
         in callers; Cleanups
      
      Core Changes:
      
       * Add prefetching memcpy for WC
      
       * Avoid circular dependency on CONFIG_FB
      
       * Cleanups
      
       * Documentation fixes throughout DRM
      
       * ttm: Make struct ttm_resource the base of all managers + changes
         in all users of TTM; Add a generic memcpy for page-based iomem; Remove
         use of VM_MIXEDMAP; Cleanups
      
      Driver Changes:
      
       * drm/bridge: Add TI SN65DSI83 and SN65DSI84 + DT bindings
      
       * drm/hyperv: Add DRM driver for HyperV graphics output
      
       * drm/msm: Fix module dependencies
      
       * drm/panel: KD53T133: Support rotation
      
       * drm/pl111: Fix module dependencies
      
       * drm/qxl: Fixes
      
       * drm/stm: Cleanups
      
       * drm/sun4i: Be explicit about format modifiers
      
       * drm/vc4: Use struct gpio_desc; Cleanups
      
       * drm/vgem: Cleanups
      
       * drm/vmwgfx: Use ttm_bo_move_null() if there's nothing to copy
      
       * fbdev/mach64: Cleanups
      
       * fbdev/mb862xx: Use DEVICE_ATTR_RO
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Thomas Zimmermann <tzimmermann@suse.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/YMBw3DF2b9udByfT@linux-uq9g
      09b020bb
    • John Harrison's avatar
      drm/i915/uc: Use platform specific defaults for GuC/HuC enabling · 47c65b38
      John Harrison authored
      
      
      The meaning of 'default' for the enable_guc module parameter has been
      updated to accurately reflect what is supported on current platforms.
      So start using the defaults instead of forcing everything off.
      Although, note that right now, the default is for everything to be off
      anyway. So this is not a change for current platforms.
      
      Signed-off-by: default avatarJohn Harrison <John.C.Harrison@Intel.com>
      Signed-off-by: default avatarMatthew Brost <matthew.brost@intel.com>
      Reviewed-by: default avatarDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
      Signed-off-by: default avatarDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210603164812.19045-2-matthew.brost@intel.com
      47c65b38
  5. Jun 09, 2021