1. 13 Jan, 2021 13 commits
  2. 12 Jan, 2021 10 commits
  3. 14 Jan, 2021 4 commits
  4. 11 Jan, 2021 3 commits
  5. 08 Jan, 2021 2 commits
  6. 07 Jan, 2021 7 commits
    • Maarten Lankhorst's avatar
      Merge drm/drm-next into drm-misc-next · 2313f470
      Maarten Lankhorst authored
      Staying in sync to drm-next, and to be able to pull ttm fixes.
      Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      2313f470
    • Daniel Vetter's avatar
      Merge tag 'drm-misc-next-2021-01-06' of git://anongit.freedesktop.org/drm/drm-misc into drm-next · cb3cfbf7
      Daniel Vetter authored
      drm-misc-next for v5.12:
      
      Core Changes:
      - Lots of drm documentation updates by Simor Ser.
      - Require that each crtc has a unique primary plane.
      - Add fixme that fbdev_generic_setup is confusing.
      
      Driver Changes:
      - Update addresses for TI display drivers maintainers.
      - Make DRM_VIRTIO_GPU select VIRTIO.
      - Small fixes to qxl, virtio, hisilicon, tve200, panel/s6e63m0.
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/fdfbfd7a-b91d-3f59-11c8-984704ce0ee1@linux.intel.com
      cb3cfbf7
    • Daniel Vetter's avatar
      Merge tag 'du-next-20210105' of git://linuxtv.org/pinchartl/media into drm-next · 73dc923e
      Daniel Vetter authored
      - Add default modes for connectors in unknown state
      - R-Car DU conversion to DRM-managed API
      - R-Car DU miscellaneous fixes
      - Miscellaneous bridge and bridge bindings fixes
      - Assorted misc driver cleanups
      - Constify drm_driver for PCI devices
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/X/P8IOrVXkTpLeCm@pendragon.ideasonboard.com
      73dc923e
    • Daniel Vetter's avatar
      Merge tag 'drm-intel-next-2021-01-04' of git://anongit.freedesktop.org/drm/drm-intel into drm-next · ca765c73
      Daniel Vetter authored
      - Display hotplug fix for gen2/gen3 (Chris)
      - Remove trailing semicolon (Tom)
      - Suppress display warnings for old ifwi presend on our CI (Chris)
      - OA/Perf related workaround (Lionel)
      - Replace I915_READ/WRITE per new uncore and display read/write functions (Jani)
      - PSR improvements (Jose)
      - HDR and other color changes on LSPCON (Uma, Ville)
      - FBC fixes for TGL (Uma)
      - Record plane update times for debugging (Chris)
      - Refactor panel backlight control functions (Dave)
      - Display power improvements (Imre)
      - Add VRR register definition (Manasi)
      - Atomic modeset improvements for bigjoiner pipes (Ville)
      - Switch off the scanout during driver unregister (Chris)
      - Clean-up DP's FEW enable (Manasi)
      - Fix VDSCP slice count (Manasi)
      - Fix and clean up around rc_model_size for DSC (Jani)
      - Remove Type-C noisy debug warn message (Sean)
      - Display HPD code clean-up (Ville)
      - Refactor Intel Display (Dave)
      - Start adding support for Intel's eDP backlight controls (Lyude)
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      
      From: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210104211018.GA1094707@intel.com
      ca765c73
    • Daniel Vetter's avatar
      Merge tag 'imx-drm-next-2021-01-04' of git://git.pengutronix.de/git/pza/linux into drm-next · e240cc76
      Daniel Vetter authored
      drm/imx: fixes and drm managed resources
      
      - Reduce stack usage in ipu-di.
      - Fix imx-ldb for compile tests.
      - Make drm encoder control functions optional.
      - Add drm managed variants drmm_encoder_alloc(),
        drmm_simple_encoder_alloc(), drmm_universal_plane_alloc(), and
        drmm_crtc_alloc_with_planes() for drm_encoder_init(),
        drm_simple_encoder_init(), drm_universal_plane_init(), and
        drm_crtc_init_with_planes(), respectively.
      - Update imx-drm to use the new functions for drm managed resource
        allocation, moving initialization from bind to probe where possible.
      - Fix imx-tve clock provider leak.
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      [danvet: Fix conflict between doc changes by both Philipp and Simon
      Ser, see 9999587b ("drm: rework description of primary and cursor
      planes")]
      From: Philipp Zabel <p.zabel@pengutronix.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/c745fc1596898932c9454fd2979297b4242566a2.camel@pengutronix.de
      e240cc76
    • Daniel Vetter's avatar
      Merge tag 'topic/dp-hdmi-2.1-pcon-2020-12-23' of... · 5beed15e
      Daniel Vetter authored
      Merge tag 'topic/dp-hdmi-2.1-pcon-2020-12-23' of git://anongit.freedesktop.org/drm/drm-intel into drm-next
      
      Add support for DP-HDMI2.1 PCON
      
      From the series cover letter:
      
      This patch series attempts to add support for a DP-HDMI2.1 Protocol
      Convertor. The VESA spec for the HDMI2.1 PCON are proposed in Errata
      E5 to DisplayPort_v2.0:
      https://vesa.org/join-vesamemberships/member-downloads/?action=stamp&fileid=42299
      The details are mentioned in:
      VESA DP-to-HDMI PCON Specification Standalone Document
      https://groups.vesa.org/wg/DP/document/15651
      
      This series starts with adding support for FRL (Fixed Rate Link)
      Training between the PCON and HDMI2.1 sink.
      As per HDMI2.1 specification, a new data-channel or lane is added in
      FRL mode, by repurposing the TMDS clock Channel. Through FRL, higher
      bit-rate can be supported, ie. up to 12 Gbps/lane (48 Gbps over 4
      lanes).
      
      With these patches, the HDMI2.1 PCON can be configured to achieve FRL
      training based on the maximum FRL rate supported by the panel, source
      and the PCON.
      The approach is to add the support for FRL training between PCON and
      HDMI2.1 sink and gradually add other blocks for supporting higher
      resolutions and other HDMI2.1 features, that can be supported by pcon
      for the sources that do not natively support HDMI2.1.
      
      This is done before the DP Link training between the source and PCON
      is started. In case of FRL training is not achieved, the PCON will
      work in the regular TMDS mode, without HDMI2.1 feature support.
      Any interruption in FRL training between the PCON and HDMI2.1 sink is
      notified through IRQ_HPD. On receiving the IRQ_HPD the concerned DPCD
      registers are read and FRL training is re-attempted.
      
      Currently, we have tested the FRL training and are able to enable 4K
      display with TGL Platform + Realtek PCON RTD2173 with HDMI2.1 supporting
      panel.
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      From: Jani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/87lfdpndkt.fsf@intel.com
      5beed15e
    • Daniel Vetter's avatar
      Merge tag 'drm-misc-next-2020-12-17' of git://anongit.freedesktop.org/drm/drm-misc into drm-next · 18589d74
      Daniel Vetter authored
      drm-misc-next for v5.12:
      
      UAPI Changes:
      - Not necessarily one, but we document that userspace needs to force probe connectors.
      
      Cross-subsystem Changes:
      - Require FB_ATY_CT for aty on sparc64.
      - video: Fix documentation, and a few compiler warnings.
      - Add devicetree bindings for DP connectors.
      - dma-buf: Update kernel-doc, and add might_lock for resv objects in begin/end_cpu_access.
      
      Core Changes:
      - ttm: Warn when releasing a pinned bo.
      - ttm: Cleanup bo size handling.
      - cma-helper: Remove prime infix, and implement mmap as GEM CMA functions.
      - Split drm_prime_sg_to_page_addr_arrays into 2 functions.
      - Add a new api to install irq using devm.
      - Update panel kerneldoc to inline style.
      - Add DP support to drm/bridge.
      - Assorted small fixes to ttm, fb-helper, scheduler.
      - Add atomic_commit_setup function callback.
      - Automatically use the atomic gamma_set, instead of forcing drivers to declare the default atomic version.
      - Allow using degamma for legacy gamma if gamma is not available.
      - Clarify that primary/cursor planes are not tied to 1 crtc (depending on possible_crtcs).
      - ttm: Cleanup the lru handler.
      
      Driver Changes:
      - Add pm support to ingenic.
      - Assorted small fixes in radeon, via, rockchip, omap2fb, kmb, gma500, nouveau, virtio, hisilicon, ingenic, s6e63m0 panel, ast, udlfb.
      - Add BOE NV110WTM-N61, ys57pss36bh5gq, Khadas TS050 panels.
      - Stop using pages with drm_prime_sg_to_page_addr_arrays, and switch all callers to use ttm_sg_tt_init.
      - Cleanup compiler and docbook warnings in a lot of fbdev devices.
      - Use the drmm_vram_helper in hisilicon.
      - Add support for BCM2711 DSI1 in vc4.
      - Add support for 8-bit delta RGB panels to ingenic.
      - Add documentation on how to test vkms.
      - Convert vc4 to atomic helpers.
      - Use degamma instead of gamma table in omap, to add support for CTM and color encoding/range properties.
      - Rework omap DSI code, and merge all omapdrm modules now that the last omap panel is now a drm panel.
      - More refactoring of omap dsi code.
      - Enable 10/12 bpc outputs in vc4.
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/78381a4f-45fd-aed4-174a-94ba051edd37@linux.intel.com
      18589d74
  7. 06 Jan, 2021 1 commit
    • Lyude Paul's avatar
      drm/ttm: Remove pinned bos from LRU in ttm_bo_move_to_lru_tail() v2 · 70612d0e
      Lyude Paul authored
      Recently a regression was introduced which caused TTM's buffer eviction to
      attempt to evict already-pinned BOs, causing issues with buffer eviction
      under memory pressure along with suspend/resume:
      
        nouveau 0000:1f:00.0: DRM: evicting buffers...
        nouveau 0000:1f:00.0: DRM: Moving pinned object 00000000c428c3ff!
        nouveau 0000:1f:00.0: fifo: fault 00 [READ] at 0000000000200000 engine 04
        [BAR1] client 07 [HUB/HOST_CPU] reason 02 [PTE] on channel -1 [00ffeaa000
        unknown]
        nouveau 0000:1f:00.0: fifo: DROPPED_MMU_FAULT 00001000
        nouveau 0000:1f:00.0: fifo: fault 01 [WRITE] at 0000000000020000 engine
        0c [HOST6] client 07 [HUB/HOST_CPU] reason 02 [PTE] on channel 1
        [00ffb28000 DRM]
        nouveau 0000:1f:00.0: fifo: channel 1: killed
        nouveau 0000:1f:00.0: fifo: runlist 0: scheduled for recovery
        [TTM] Buffer eviction failed
        nouveau 0000:1f:00.0: DRM: waiting for kernel channels to go idle...
        nouveau 0000:1f:00.0: DRM: failed to idle channel 1 [DRM]
        nouveau 0000:1f:00.0: DRM: resuming display...
      
      After some bisection and investigation, it appears this resulted from the
      recent changes to ttm_bo_move_to_lru_tail(). Previously when a buffer was
      pinned, the buffer would be removed from the LRU once ttm_bo_unreserve
      to maintain the LRU list when pinning or unpinning BOs. However, since:
      
      commit 3d1a88e1 ("drm/ttm: cleanup LRU handling further")
      
      We've been exiting from ttm_bo_move_to_lru_tail() at the very beginning of
      the function if the bo we're looking at is pinned, resulting in the pinned
      BO never getting removed from the lru and as a result - causing issues when
      it eventually becomes time for eviction.
      
      So, let's fix this by calling ttm_bo_del_from_lru() from
      ttm_bo_move_to_lru_tail() in the event that we're dealing with a pinned
      buffer.
      
      v2 (chk): reduce to only the fixing one liner since we always want to
      call the callback whenever we would move on the LRU.
      
      Fixes: 3d1a88e1 ("drm/ttm: cleanup LRU handling further")
      Cc: Dave Airlie <airlied@redhat.com>
      Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
      Signed-off-by: default avatarLyude Paul <lyude@redhat.com>
      Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210105114505.38210-1-christian.koenig@amd.com
      70612d0e