Skip to content
  1. Dec 14, 2018
  2. Dec 13, 2018
  3. Dec 12, 2018
  4. Dec 11, 2018
  5. Dec 10, 2018
  6. Dec 08, 2018
  7. Dec 07, 2018
  8. Dec 06, 2018
  9. Dec 05, 2018
  10. Dec 04, 2018
  11. Dec 03, 2018
  12. Dec 01, 2018
    • Eric Anholt's avatar
      drm/v3d: Fix prime imports of buffers from other drivers. · 62d1a752
      Eric Anholt authored
      
      
      v3d_bo_get_pages() checks this to decide to map the imported buffer
      instead of the backing shmem file.  The caller was about to set this
      value anyway, and there's no error path in between.  Ideally we
      wouldn't even allocate the shmem file for our imports, but that's a
      more invasive fix.
      
      Signed-off-by: default avatarEric Anholt <eric@anholt.net>
      Fixes: 57692c94
      
       ("drm/v3d: Introduce a new DRM driver for Broadcom V3D V3.x+")
      Link: https://patchwork.freedesktop.org/patch/msgid/20181128230927.10951-3-eric@anholt.net
      Acked-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Reviewed-by: default avatarDave Emett <david.emett@broadcom.com>
      62d1a752
    • Eric Anholt's avatar
      drm/v3d: Drop the "dev" argument to lock/unlock of BO reservations. · e14a07fc
      Eric Anholt authored
      
      
      They were unused, as Dave Emett noticed in TFU review.
      
      Signed-off-by: default avatarEric Anholt <eric@anholt.net>
      Cc: Dave Emett <david.emett@broadcom.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20181128230927.10951-2-eric@anholt.net
      Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      e14a07fc
    • Eric Anholt's avatar
      drm/v3d: Add support for submitting jobs to the TFU. · 1584f16c
      Eric Anholt authored
      
      
      The TFU can copy from raster, UIF, and SAND input images to UIF output
      images, with optional mipmap generation.  This will certainly be
      useful for media EGL image input, but is also useful immediately for
      mipmap generation without bogging the V3D core down.
      
      For now we only run the queue 1 job deep, and don't have any hang
      recovery (though I don't think we should need it, with TFU).  Queuing
      multiple jobs in the HW will require synchronizing the YUV coefficient
      regs updates since they don't get FIFOed with the job.
      
      v2: Change the ioctl to IOW instead of IOWR, always set COEF0, explain
          why TFU is AUTH, clarify the syncing docs, drop the unused TFU
          interrupt regs (you're expected to use the hub's), don't take
          &bo->base for NULL bos.
      v3: Fix a little whitespace alignment (noticed by checkpatch), rebase
          on drm_sched_job_cleanup() changes.
      
      Signed-off-by: default avatarEric Anholt <eric@anholt.net>
      Reviewed-by: Dave Emett <david.emett@broadcom.com> (v2)
      Link: https://patchwork.freedesktop.org/patch/264607/
      1584f16c
  13. Nov 30, 2018
    • Daniel Vetter's avatar
      drm: Fix up drm_atomic_state_helper.[hc] extraction · 1d8224e7
      Daniel Vetter authored
      I've misplaced two functions by accident:
      - drm_atomic_helper_duplicate_state is really part of the
        resume/suspend/shutdown device-wide helpers.
      - drm_atomic_helper_legacy_gamma_set is part of the legacy ioctl
        compat helpers.
      
      Move them both back.
      
      Fixes: 9ef8a9dc
      
       ("drm: Extract drm_atomic_state_helper.[hc]")
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Reviewed-by: default avatarSean Paul <sean@poorly.run>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20181128100728.4674-1-daniel.vetter@ffwll.ch
      1d8224e7
    • Sean Paul's avatar
      drm: Fix compiler warning in drm_atomic_helper.c · 615aa3d9
      Sean Paul authored
      Kbuild was complaining about:
      >> drivers/gpu/drm/drm_atomic_helper.c:3169:27: warning: 'state' may be used uninitialized in this function [-Wmaybe-uninitialized]
      
      Now state can't actually be used uninitialized, but we'll assign a value
      anyways so it stops bellyaching.
      
      Kbuild config:
      	link:	https://lists.01.org/pipermail/kbuild-all/2018-November/055374.html
      	tree:   git://anongit.freedesktop.org/drm/drm-misc for-linux-next
      	head:   b7ea04d2
      	commit: b7ea04d2 [4/4] drm: Add
      	DRM_MODESET_LOCK_BEGIN/END helpers
      	config: x86_64-randconfig-x017-201847 (attached as .config)
      	compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
      	reproduce:
      		git checkout b7ea04d2
      		# save the attached .config to linux build tree
      		make ARCH=x86_64
      
      Fixes: b7ea04d2
      
       ("drm: Add DRM_MODESET_LOCK_BEGIN/END helpers")
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Sean Paul <seanpaul@chromium.org>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Maxime Ripard <maxime.ripard@bootlin.com>
      Cc: Sean Paul <sean@poorly.run>
      Cc: David Airlie <airlied@linux.ie>
      Cc: dri-devel@lists.freedesktop.org
      Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
      [seanpaul added extra details on airlied's suggestion]
      Link: https://patchwork.freedesktop.org/patch/msgid/20181129203652.223634-1-sean@poorly.run
      615aa3d9