Skip to content
  1. Feb 02, 2021
  2. Feb 01, 2021
  3. Feb 03, 2021
  4. Jan 30, 2021
  5. Jan 29, 2021
    • Luben Tuikov's avatar
      drm/scheduler: Job timeout handler returns status (v3) · a6a1f036
      Luben Tuikov authored
      
      
      This patch does not change current behaviour.
      
      The driver's job timeout handler now returns
      status indicating back to the DRM layer whether
      the device (GPU) is no longer available, such as
      after it's been unplugged, or whether all is
      normal, i.e. current behaviour.
      
      All drivers which make use of the
      drm_sched_backend_ops' .timedout_job() callback
      have been accordingly renamed and return the
      would've-been default value of
      DRM_GPU_SCHED_STAT_NOMINAL to restart the task's
      timeout timer--this is the old behaviour, and is
      preserved by this patch.
      
      v2: Use enum as the status of a driver's job
          timeout callback method.
      
      v3: Return scheduler/device information, rather
          than task information.
      
      Cc: Alexander Deucher <Alexander.Deucher@amd.com>
      Cc: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
      Cc: Christian König <christian.koenig@amd.com>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Lucas Stach <l.stach@pengutronix.de>
      Cc: Russell King <linux+etnaviv@armlinux.org.uk>
      Cc: Christian Gmeiner <christian.gmeiner@gmail.com>
      Cc: Qiang Yu <yuq825@gmail.com>
      Cc: Rob Herring <robh@kernel.org>
      Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>
      Cc: Steven Price <steven.price@arm.com>
      Cc: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
      Cc: Eric Anholt <eric@anholt.net>
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Signed-off-by: default avatarLuben Tuikov <luben.tuikov@amd.com>
      Acked-by: default avatarAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
      Acked-by: default avatarChristian König <christian.koenig@amd.com>
      Acked-by: default avatarSteven Price <steven.price@arm.com>
      Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
      Link: https://patchwork.freedesktop.org/patch/415095/
      a6a1f036
    • Dan Carpenter's avatar
      drm/vmwgfx/vmwgfx_drv: Fix an error path in vmw_setup_pci_resources() · f3ebd4e6
      Dan Carpenter authored
      The devm_memremap() function never returns NULL, it returns error
      pointers so the test needs to be fixed.  Also we need to call
      pci_release_regions() to avoid a memory leak.
      
      Fixes: be4f77ac
      
       ("drm/vmwgfx: Cleanup fifo mmio handling")
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: default avatarZack Rusin <zackr@vmware.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/YA6FMboLhnE3uSvb@mwanda
      f3ebd4e6
  6. Jan 28, 2021
  7. Jan 27, 2021
  8. Jan 24, 2021
    • Simon Ser's avatar
      drm/doc: document the type plane property · 97ecfff4
      Simon Ser authored
      
      
      Add a new entry for "type" in the section for standard plane properties.
      
      v3: improve paragraph about mixing legacy IOCTLs with explicit usage,
      note that a driver may support cursors without cursor planes (Daniel)
      
      v4: fixing rebase gone wrong
      
      v5:
      - Fix typo (Daniel)
      - Mention CAP_ATOMIC instead of CAP_UNIVERSAL_PLANES when referring to
        atomic test-only commits (Daniel)
      - Add newlines at end of sections (Daniel)
      
      Signed-off-by: default avatarSimon Ser <contact@emersion.fr>
      Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Reviewed-by: default avatarPekka Paalanen <pekka.paalanen@collabora.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210115110626.12233-2-contact@emersion.fr
      97ecfff4
    • Simon Ser's avatar
      drm/doc: fix drm_plane_type docs · 7e5d1e12
      Simon Ser authored
      
      
      The docs for enum drm_plane_type mention legacy IOCTLs, however the
      plane type is not tied to legacy IOCTLs, the drm_cursor.primary and
      cursor fields are. Add a small paragraph to reference these.
      
      Instead, document expectations for primary and cursor planes for
      non-legacy userspace. Note that these docs are for driver developers,
      not userspace developers, so internal kernel APIs are mentionned.
      
      Signed-off-by: default avatarSimon Ser <contact@emersion.fr>
      Reviewed-by: default avatarDaniel Vetter <daniel@ffwll.ch>
      Acked-by: default avatarPekka Paalanen <pekka.paalanen@collabora.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210115110626.12233-1-contact@emersion.fr
      7e5d1e12
  9. Jan 22, 2021
    • Marek Vasut's avatar
      dt-bindings: display: mxsfb: Add compatible for i.MX8MM · 25e524bf
      Marek Vasut authored
      
      
      NXP's i.MX8MM has an LCDIF as well.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210115222304.5427-4-laurent.pinchart@ideasonboard.com
      25e524bf
    • Laurent Pinchart's avatar
      dt-bindings: display: mxsfb: Add and fix compatible strings · 5d16e40d
      Laurent Pinchart authored
      
      
      Additional compatible strings have been added in DT source for the
      i.MX6SL, i.MX6SLL, i.MX6UL and i.MX7D without updating the bindings.
      Most of the upstream DT sources use the fsl,imx28-lcdif compatible
      string, which mostly predates the realization that the LCDIF in the
      i.MX6 and newer SoCs have extra features compared to the i.MX28.
      
      Update the bindings to add the missing compatible strings, with the
      correct fallback values. This fails to validate some of the upstream DT
      sources. Instead of adding the incorrect compatible fallback to the
      binding, the sources should be updated separately.
      
      Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Reviewed-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Reviewed-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210115222304.5427-3-laurent.pinchart@ideasonboard.com
      5d16e40d
    • Laurent Pinchart's avatar
      dt-bindings: display: mxsfb: Convert binding to YAML · 3b1b42fd
      Laurent Pinchart authored
      
      
      Convert the mxsfb binding to YAML. The deprecated binding is dropped, as
      neither the DT sources nor the driver support it anymore. The converted
      binding is named fsl,lcdif.yaml to match the usual bindings naming
      scheme.
      
      The compatible strings are messy, and DT sources use different kinds of
      combination of documented and undocumented values. Keep it simple for
      now, and update the example to make it valid. Aligning the binding with
      the existing DT sources will be performed separately.
      
      Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Reviewed-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Reviewed-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210115222304.5427-2-laurent.pinchart@ideasonboard.com
      3b1b42fd
    • Lukasz Luba's avatar
      drm/panfrost: Add governor data with pre-defined thresholds · 1f8644d5
      Lukasz Luba authored
      
      
      The simple_ondemand devfreq governor uses two thresholds to decide about
      the frequency change: upthreshold, downdifferential. These two tunable
      change the behavior of the governor decision, e.g. how fast to increase
      the frequency or how rapidly limit the frequency. This patch adds needed
      governor data with thresholds values gathered experimentally in different
      workloads.
      
      Signed-off-by: default avatarLukasz Luba <lukasz.luba@arm.com>
      Reviewed-by: default avatarSteven Price <steven.price@arm.com>
      Signed-off-by: default avatarSteven Price <steven.price@arm.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210121170445.19761-1-lukasz.luba@arm.com
      1f8644d5
    • Veera Sundaram Sankaran's avatar
      drm/drm_vblank: set the dma-fence timestamp during send_vblank_event · a78e7a51
      Veera Sundaram Sankaran authored
      
      
      The explicit out-fences in crtc are signaled as part of vblank event,
      indicating all framebuffers present on the Atomic Commit request are
      scanned out on the screen. Though the fence signal and the vblank event
      notification happens at the same time, triggered by the same hardware
      vsync event, the timestamp set in both are different. With drivers
      supporting precise vblank timestamp the difference between the two
      timestamps would be even higher. This might have an impact on use-mode
      frameworks using these fence timestamps for purposes other than simple
      buffer usage. For instance, the Android framework [1] uses the
      retire-fences as an alternative to vblank when frame-updates are in
      progress. Set the fence timestamp during send vblank event using a new
      drm_send_event_timestamp_locked variant to avoid discrepancies.
      
      [1] https://android.googlesource.com/platform/frameworks/native/+/master/
      services/surfaceflinger/Scheduler/Scheduler.cpp#397
      
      Changes in v2:
      - Use drm_send_event_timestamp_locked to update fence timestamp
      - add more information to commit text
      
      Changes in v3:
      - use same backend helper function for variants of drm_send_event to
      avoid code duplications
      
      Changes in v4:
      - remove WARN_ON from drm_send_event_timestamp_locked
      
      Signed-off-by: default avatarVeera Sundaram Sankaran <veeras@codeaurora.org>
      Reviewed-by: default avatarJohn Stultz <john.stultz@linaro.org>
      Signed-off-by: default avatarSumit Semwal <sumit.semwal@linaro.org>
        [sumits: minor parenthesis alignment correction]
      Link: https://patchwork.freedesktop.org/patch/msgid/1610757107-11892-2-git-send-email-veeras@codeaurora.org
      a78e7a51
    • Veera Sundaram Sankaran's avatar
      dma-fence: allow signaling drivers to set fence timestamp · 5a164ac4
      Veera Sundaram Sankaran authored
      
      
      Some drivers have hardware capability to get the precise HW timestamp
      of certain events based on which the fences are triggered. The delta
      between the event HW timestamp & current HW reference timestamp can
      be used to calculate the timestamp in kernel's CLOCK_MONOTONIC time
      domain. This allows it to set accurate timestamp factoring out any
      software and IRQ latencies. Add a timestamp variant of fence signal
      function, dma_fence_signal_timestamp to allow drivers to update the
      precise timestamp for fences.
      
      Changes in v2:
      - Add a new fence signal variant instead of modifying fence struct
      
      Changes in v3:
      - Add timestamp domain information to commit-text and
      dma_fence_signal_timestamp documentation
      
      Signed-off-by: default avatarVeera Sundaram Sankaran <veeras@codeaurora.org>
      Reviewed-by: default avatarJohn Stultz <john.stultz@linaro.org>
      Signed-off-by: default avatarSumit Semwal <sumit.semwal@linaro.org>
       [sumits: minor parenthesis alignment]
      Link: https://patchwork.freedesktop.org/patch/msgid/1610757107-11892-1-git-send-email-veeras@codeaurora.org
      5a164ac4
    • John Stultz's avatar
      dma-buf: heaps: Rework heap allocation hooks to return struct dma_buf instead of fd · c7f59e3d
      John Stultz authored
      
      
      Every heap needs to create a dmabuf and then export it to a fd
      via dma_buf_fd(), so to consolidate things a bit, have the heaps
      just return a struct dmabuf * and let the top level
      dma_heap_buffer_alloc() call handle creating the fd via
      dma_buf_fd().
      
      Cc: Sumit Semwal <sumit.semwal@linaro.org>
      Cc: Liam Mark <lmark@codeaurora.org>
      Cc: Laura Abbott <labbott@kernel.org>
      Cc: Brian Starkey <Brian.Starkey@arm.com>
      Cc: Hridya Valsaraju <hridya@google.com>
      Cc: Suren Baghdasaryan <surenb@google.com>
      Cc: Sandeep Patil <sspatil@google.com>
      Cc: Daniel Mentz <danielmentz@google.com>
      Cc: Chris Goldsworthy <cgoldswo@codeaurora.org>
      Cc: Ørjan Eide <orjan.eide@arm.com>
      Cc: Robin Murphy <robin.murphy@arm.com>
      Cc: Ezequiel Garcia <ezequiel@collabora.com>
      Cc: Simon Ser <contact@emersion.fr>
      Cc: James Jones <jajones@nvidia.com>
      Cc: linux-media@vger.kernel.org
      Cc: dri-devel@lists.freedesktop.org
      Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
      Signed-off-by: default avatarSumit Semwal <sumit.semwal@linaro.org>
       [sumits: minor reword of commit message]
      
      Link: https://patchwork.freedesktop.org/patch/msgid/20210119204508.9256-3-john.stultz@linaro.org
      c7f59e3d
    • John Stultz's avatar
      dma-buf: system_heap: Make sure to return an error if we abort · 14a11725
      John Stultz authored
      
      
      If we abort from the allocation due to a fatal_signal_pending(),
      be sure we report an error so any return code paths don't trip
      over the fact that the allocation didn't succeed.
      
      Cc: Sumit Semwal <sumit.semwal@linaro.org>
      Cc: Liam Mark <lmark@codeaurora.org>
      Cc: Laura Abbott <labbott@kernel.org>
      Cc: Brian Starkey <Brian.Starkey@arm.com>
      Cc: Hridya Valsaraju <hridya@google.com>
      Cc: Suren Baghdasaryan <surenb@google.com>
      Cc: Sandeep Patil <sspatil@google.com>
      Cc: Daniel Mentz <danielmentz@google.com>
      Cc: Chris Goldsworthy <cgoldswo@codeaurora.org>
      Cc: Ørjan Eide <orjan.eide@arm.com>
      Cc: Robin Murphy <robin.murphy@arm.com>
      Cc: Ezequiel Garcia <ezequiel@collabora.com>
      Cc: Simon Ser <contact@emersion.fr>
      Cc: James Jones <jajones@nvidia.com>
      Cc: linux-media@vger.kernel.org
      Cc: dri-devel@lists.freedesktop.org
      Suggested-by: default avatarSuren Baghdasaryan <surenb@google.com>
      Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
      Signed-off-by: default avatarSumit Semwal <sumit.semwal@linaro.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210119204508.9256-1-john.stultz@linaro.org
      14a11725
  10. Jan 21, 2021