Skip to content
Permalink
Jason-Ekstrand…
Switch branches/tags

Commits on Jun 16, 2021

  1. DONOTMERGE: dma-buf: Get rid of dma_fence_get_rcu_safe

    This helper existed to handle the weird corner-cases caused by using
    SLAB_TYPESAFE_BY_RCU for backing dma_fence.  Now that no one is using
    that anymore (i915 was the only real user), dma_fence_get_rcu is
    sufficient.  The one slightly annoying thing we have to deal with here
    is that dma_fence_get_rcu_safe did an rcu_dereference as well as a
    SLAB_TYPESAFE_BY_RCU-safe dma_fence_get_rcu.  This means each call site
    ends up being 3 lines instead of 1.
    
    Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
    Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
    Cc: Christian König <christian.koenig@amd.com>
    Cc: Matthew Auld <matthew.auld@intel.com>
    Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
    jekstrand authored and intel-lab-lkp committed Jun 16, 2021
  2. dma-buf: Stop using SLAB_TYPESAFE_BY_RCU in selftests

    The only real-world user of SLAB_TYPESAFE_BY_RCU was i915 and it doesn't
    use that anymore so there's no need to be testing it in selftests.
    
    Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
    Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
    Cc: Christian König <christian.koenig@amd.com>
    Cc: Matthew Auld <matthew.auld@intel.com>
    Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
    jekstrand authored and intel-lab-lkp committed Jun 16, 2021
  3. drm/i915: Stop using SLAB_TYPESAFE_BY_RCU for i915_request

    Ever since 0eafec6 ("drm/i915: Enable lockless lookup of request
    tracking via RCU"), the i915 driver has used SLAB_TYPESAFE_BY_RCU (it
    was called SLAB_DESTROY_BY_RCU at the time) in order to allow RCU on
    i915_request.  As nifty as SLAB_TYPESAFE_BY_RCU may be, it comes with
    some serious disclaimers.  In particular, objects can get recycled while
    RCU readers are still in-flight.  This can be ok if everyone who touches
    these objects knows about the disclaimers and is careful.  However,
    because we've chosen to use SLAB_TYPESAFE_BY_RCU for i915_request and
    because i915_request contains a dma_fence, we've leaked
    SLAB_TYPESAFE_BY_RCU and its whole pile of disclaimers to every driver
    in the kernel which may consume a dma_fence.
    
    We've tried to keep it somewhat contained by doing most of the hard work
    to prevent access of recycled objects via dma_fence_get_rcu_safe().
    However, a quick grep of kernel sources says that, of the 30 instances
    of dma_fence_get_rcu*, only 11 of them use dma_fence_get_rcu_safe().
    It's likely there bear traps in DRM and related subsystems just waiting
    for someone to accidentally step in them.
    
    This commit gets stops us using SLAB_TYPESAFE_BY_RCU for i915_request
    and, instead, does an RCU-safe slab free via rcu_call().  This should
    let us keep most of the perf benefits of slab allocation while avoiding
    the bear traps inherent in SLAB_TYPESAFE_BY_RCU.
    
    Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
    Cc: Jon Bloomfield <jon.bloomfield@intel.com>
    Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
    Cc: Christian König <christian.koenig@amd.com>
    Cc: Dave Airlie <airlied@redhat.com>
    Cc: Matthew Auld <matthew.auld@intel.com>
    Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
    jekstrand authored and intel-lab-lkp committed Jun 16, 2021
  4. drm/i915: Use a simpler scheme for caching i915_request

    Instead of attempting to recycle a request in to the cache when it
    retires, stuff a new one in the cache every time we allocate a request
    for some other reason.
    
    Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
    Cc: Jon Bloomfield <jon.bloomfield@intel.com>
    Cc: Daniel Vetter <daniel.vetter@intel.com>
    Cc: Matthew Auld <matthew.auld@intel.com>
    Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
    jekstrand authored and intel-lab-lkp committed Jun 16, 2021
  5. drm/i915: Move intel_engine_free_request_pool to i915_request.c

    This appears to break encapsulation by moving an intel_engine_cs
    function to a i915_request file.  However, this function is
    intrinsically tied to the lifetime rules and allocation scheme of
    i915_request and having it in intel_engine_cs.c leaks details of
    i915_request.  We have an abstraction leak either way.  Since
    i915_request's allocation scheme is far more subtle than the simple
    pointer that is intel_engine_cs.request_pool, it's probably better to
    keep i915_request's details to itself.
    
    Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
    Cc: Jon Bloomfield <jon.bloomfield@intel.com>
    Cc: Daniel Vetter <daniel.vetter@intel.com>
    Cc: Matthew Auld <matthew.auld@intel.com>
    Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
    jekstrand authored and intel-lab-lkp committed Jun 16, 2021

Commits on Jun 11, 2021

  1. Merge tag 'exynos-drm-next-for-v5.14' of git://git.kernel.org/pub/scm…

    …/linux/kernel/git/daeinki/drm-exynos into drm-next
    
    Two cleanups
    - These patches make Exynos DRM driver to use pm_runtime_resume_and_get()
      function instead of m_runtime_get_sync() to deal with usage counter.
      pm_runtime_get_sync() increases the usage counter even when it failed,
      which could make callers to forget to decrease the usage counter.
      pm_runtime_resume_and_get() decreases the usage counter regardless of
      whether it failed or not.
    
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    
    From: Inki Dae <inki.dae@samsung.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210611025939.393282-1-inki.dae@samsung.com
    airlied committed Jun 11, 2021
  2. Merge tag 'drm-intel-gt-next-2021-06-10' of git://anongit.freedesktop…

    ….org/drm/drm-intel into drm-next
    
    UAPI Changes:
    
    - Disable mmap ioctl for gen12+ (excl. TGL-LP)
    - Start enabling HuC loading by default for upcoming Gen12+
      platforms (excludes TGL and RKL)
    
    Core Changes:
    
    - Backmerge of drm-next
    
    Driver Changes:
    
    - Revert "i915: use io_mapping_map_user" (Eero, Matt A)
    - Initialize the TTM device and memory managers (Thomas)
    - Major rework to the GuC submission backend to prepare
      for enabling on new platforms (Michal Wa., Daniele,
      Matt B, Rodrigo)
    - Fix i915_sg_page_sizes to record dma segments rather
      than physical pages (Thomas)
    
    - Locking rework to prep for TTM conversion (Thomas)
    - Replace IS_GEN and friends with GRAPHICS_VER (Lucas)
    - Use DEVICE_ATTR_RO macro (Yue)
    - Static code checker fixes (Zhihao)
    
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    From: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/YMHeDxg9VLiFtyn3@jlahtine-mobl.ger.corp.intel.com
    airlied committed Jun 11, 2021
  3. Merge branch 'etnaviv/next' of https://git.pengutronix.de/git/lst/linux

    … into drm-next
    
    - remove redundant NULL checks by various people
    - fix sparse checker warnings from Marc
    - expose more GPU ID values to userspace from Christian
    - add HWDB entry for GPU found on i.MX8MP from Sascha
    - rework of the linear window calculation to better deal with
      systems with large regions of reserved RAM
    
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    From: Lucas Stach <l.stach@pengutronix.de>
    Link: https://patchwork.freedesktop.org/patch/msgid/f27e1ec2c2fea310bfb6fe6c99174a54e9dfba83.camel@pengutronix.de
    airlied committed Jun 11, 2021
  4. drm/exynos: use pm_runtime_resume_and_get()

    Use pm_runtime_resume_and_get() instead of pm_runtime_get_sync()
    to deal with usage counter. pm_runtime_get_sync() increases the
    usage counter even when it failed, which makes callers to forget
    to decrease the usage counter and resulted in reference leak.
    
    pm_runtime_resume_and_get() function decreases the usage counter
    when it failed internally so it can avoid the reference leak.
    
    Changelog v1:
    - Fix an build error reported by kernel test robot of Intel.
    
    Signed-off-by: Inki Dae <inki.dae@samsung.com>
    Reported-by: kernel test robot <lkp@intel.com>
    daeinki committed Jun 11, 2021
  5. drm/exynos: Use pm_runtime_resume_and_get() to replace open coding

    use pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
    pm_runtime_put_noidle to avoid continuing to increase the refcount
    when pm_runtime_get_sync fails.
    
    Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
    Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
    Signed-off-by: Inki Dae <inki.dae@samsung.com>
    Tian Tao authored and daeinki committed Jun 11, 2021

Commits on Jun 10, 2021

  1. drm/etnaviv: add HWDB entry for GC7000 rev 6204

    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: Sascha Hauer <s.hauer@pengutronix.de>
    Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
    Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
    saschahauer authored and lynxeye-dev committed Jun 10, 2021
  2. Merge tag 'amd-drm-next-5.14-2021-06-09' of https://gitlab.freedeskto…

    …p.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: Dave 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
    airlied committed Jun 10, 2021
  3. Merge tag 'drm-intel-next-2021-06-09' of git://anongit.freedesktop.or…

    …g/drm/drm-intel into drm-next
    
    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: Dave Airlie <airlied@redhat.com>
    
    From: Rodrigo Vivi <rodrigo.vivi@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/YMEy2Ew82BeL/hDK@intel.com
    airlied committed Jun 10, 2021
  4. drm/amdgpu: use correct rounding macro for 64-bit

    This fixes 32-bit arm build due to lack of 64-bit divides.
    
    Fixes: cb1c814 ("drm/ttm: flip the switch for driver allocated resources v2")
    Link: https://patchwork.freedesktop.org/patch/438442/
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    airlied committed Jun 10, 2021
  5. drm/amdgpu/vcn: drop gfxoff control for VCN2+

    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: James Zhu <James.Zhu@amd.com>
    Acked-by: Christian König <christian.koenig@amd.com>
    Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Alex Deucher committed Jun 10, 2021
  6. Merge tag 'drm-misc-next-2021-06-09' of git://anongit.freedesktop.org…

    …/drm/drm-misc into drm-next
    
    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: Dave Airlie <airlied@redhat.com>
    
    From: Thomas Zimmermann <tzimmermann@suse.de>
    Link: https://patchwork.freedesktop.org/patch/msgid/YMBw3DF2b9udByfT@linux-uq9g
    airlied committed Jun 10, 2021

Commits on Jun 9, 2021

  1. drm/i915/uc: Use platform specific defaults for GuC/HuC enabling

    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: John Harrison <John.C.Harrison@Intel.com>
    Signed-off-by: Matthew Brost <matthew.brost@intel.com>
    Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
    Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210603164812.19045-2-matthew.brost@intel.com
    johnharr-intel authored and dceraolo committed Jun 9, 2021
  2. drm/i915/adl_p: Same slices mask is not same Dbuf state

    We currently treat same slice mask as a same DBuf state and skip
    updating the Dbuf slices, if we detect that.
    This is wrong as if we have a multi to single pipe change or
    vice versa, that would be treated as a same Dbuf state and thus
    no changes required, so we don't get Mbus updated, causing issues.
    Solution: check also mbus_join, in addition to slices mask.
    
    Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Reviewed-by: Uma Shankar <uma.shankar@intel.com>
    Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
    Signed-off-by: Jani Nikula <jani.nikula@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210527110106.21434-1-stanislav.lisovskiy@intel.com
    StanFox1984 authored and jnikula committed Jun 9, 2021
  3. drm/i915/adl_p: CDCLK crawl support for ADL

    CDCLK crawl feature allows to change CDCLK frequency
    without disabling the actual PLL and doesn't require
    a full modeset.
    
    v2: - Added has_cdclk_crawl as a feature flag to
          intel_device_info(Matt Roper)
        - s/gen13_cdclk_pll_crawl/adlp_cdclk_pll_crawl/
          (Matt Roper)
    
    Cc: Mika Kahola <mika.kahola@intel.com>
    Reviewed-by: Mika Kahola <mika.kahola@intel.com>
    Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
    Signed-off-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
    Signed-off-by: Jani Nikula <jani.nikula@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210603065038.7298-1-stanislav.lisovskiy@intel.com
    StanFox1984 authored and jnikula committed Jun 9, 2021
  4. drm/i915/dsc: Fix bigjoiner check in dsc_disable

    This change takes care of resetting the dss_ctl registers
    in case of dsc_disable, bigjoiner disable and also
    uncompressed joiner disable.
    
    v2: Fix formatting
    v3: Fix the typo (Mansi)
    
    Suggested-by: Jani Nikula <jani.nikula@intel.com>
    Fixes: d961eb2 ("drm/i915/bigjoiner: atomic commit changes for uncompressed joiner")
    Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/3537
    Signed-off-by: Vandita Kulkarni <vandita.kulkarni@intel.com>
    Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
    Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210609065914.4454-1-vandita.kulkarni@intel.com
    Vanditakulkarni authored and anshuma1 committed Jun 9, 2021
  5. drm/vmwgfx: use ttm_bo_move_null() when there is nothing to move

    Use ttm_bo_move_null() instead of ttm_bo_assign_mem().
    
    Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
    Reviewed-by: Christian König <christian.koenig@amd.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210608181306.90008-1-nirmoy.das@amd.com
    Signed-off-by: Christian König <christian.koenig@amd.com>
    nirmoy authored and ChristianKoenigAMD committed Jun 9, 2021
  6. drm: qxl: ensure surf.data is ininitialized

    The object surf is not fully initialized and the uninitialized
    field surf.data is being copied by the call to qxl_bo_create
    via the call to qxl_gem_object_create. Set surf.data to zero
    to ensure garbage data from the stack is not being copied.
    
    Addresses-Coverity: ("Uninitialized scalar variable")
    Fixes: f64122c ("drm: add new QXL driver. (v1.4)")
    Signed-off-by: Colin Ian King <colin.king@canonical.com>
    Link: http://patchwork.freedesktop.org/patch/msgid/20210608161313.161922-1-colin.king@canonical.com
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    Colin Ian King authored and kraxel committed Jun 9, 2021

Commits on Jun 8, 2021

  1. drm/i915: Disable PSR around cdclk changes

    AUX logic is often clocked from cdclk. Disable PSR to make sure
    there are no hw initiated AUX transactions in flight while we
    change the cdclk frequency.
    
    Cc: Mika Kahola <mika.kahola@intel.com>
    Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Signed-off-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
    Reviewed-by: Mika Kahola <mika.kahola@intel.com>
    Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210608085415.515342-2-gwan-gyeong.mun@intel.com
    vsyrjala authored and zehortigoza committed Jun 8, 2021
  2. drm/i915/display: Introduce new intel_psr_pause/resume function

    This introduces the following function that can exit and activate a psr
    source when intel_psr is already enabled.
    
    - intel_psr_pause(): Pause current PSR. It deactivates current psr state.
    - intel_psr_resume(): Resume paused PSR. It activates paused psr state.
    
    v2: Address Jose's review comment.
      - Remove unneeded changes around the intel_psr_enable().
      - Add intel_psr_post_exit() which processes waiting until PSR is idle
        and WA for SelectiveFetch.
    v3: Address Jose's review comment.
      - Rename intel_psr_post_exit() to intel_psr_wait_exit_locked().
      - Move WA_1408330847 to intel_psr_disable_locked()
      - If the PSR is paused by an explicit intel_psr_paused() call, make the
        intel_psr_flush() not to activate PSR.
    v4: Address Jose's review comment.
      - In order to avoid the scenario of PSR is not active but there is a
        scheduled psr->work, it changes the check routine of intel_psr_pause()
        for PSR's enablement from "psr->active" to "psr->enable".
    
    Cc: José Roberto de Souza <jose.souza@intel.com>
    Cc: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
    Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Signed-off-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
    Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
    Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
    Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210608085415.515342-1-gwan-gyeong.mun@intel.com
    elongbug authored and zehortigoza committed Jun 8, 2021
  3. drm/stm: Remove usage of drm_display_mode_to_videomode()

    There is not much value in the extra conversion step, the calculations
    required for the LTDC IP are different than what is used in the
    drm_display_mode_to_videomode(), so just do the right ones in the LTDC
    driver right away.
    
    Signed-off-by: Marek Vasut <marex@denx.de>
    Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>
    Cc: Antonio Borneo <antonio.borneo@foss.st.com>
    Cc: Benjamin Gaignard <benjamin.gaignard@foss.st.com>
    Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
    Cc: Philippe Cornu <philippe.cornu@foss.st.com>
    Cc: Sam Ravnborg <sam@ravnborg.org>
    Cc: Vincent Abriou <vincent.abriou@foss.st.com>
    Cc: Yannick Fertre <yannick.fertre@foss.st.com>
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linux-stm32@st-md-mailman.stormreply.com
    To: dri-devel@lists.freedesktop.org
    Tested-by: Yannick Fertré <yannick.fertre@st.com>
    Signed-off-by: Philippe Cornu <philippe.cornu@foss.st.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210607172457.14471-1-marex@denx.de
    Marek Vasut authored and Philippe Cornu committed Jun 8, 2021
  4. drm/amdgpu: Use PSP to program IH_RB_CNTL_RING1/2 on SRIOV

    This is similar to IH_RB_CNTL programming in
    navi10_ih_toggle_ring_interrupts
    
    Signed-off-by: Rohit Khaire <rohit.khaire@amd.com>
    Acked-by: Christian König <christian.koenig@amd.com>
    Reviewed-by: Horace Chen <horace.chen@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Rohit Khaire authored and Alex Deucher committed Jun 8, 2021
  5. drm/amd/display: 3.2.139

    Signed-off-by: Aric Cyr <aric.cyr@amd.com>
    Acked-by: Stylon Wang <stylon.wang@amd.com>
    Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    AMD-aric authored and Alex Deucher committed Jun 8, 2021
  6. drm/amd/display: [FW Promotion] Release 0.0.69

    Signed-off-by: Wyatt Wood <wyatt.wood@amd.com>
    Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
    Acked-by: Stylon Wang <stylon.wang@amd.com>
    Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Wyatt Wood authored and Alex Deucher committed Jun 8, 2021
  7. drm/amd/display: Add swizzle visual confirm mode

    [Why]
    To support a new visual confirm mode: swizzle to show the specific
    color at the screen border according to different surface swizzle mode.
    Currently we only support the Linear mode with red color.
    
    Signed-off-by: Po-Ting Chen <robin.chen@amd.com>
    Acked-by: Stylon Wang <stylon.wang@amd.com>
    Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Po-Ting Chen authored and Alex Deucher committed Jun 8, 2021
  8. drm/amd/display: force CP to DESIRED when removing display

    [WHY]
    - Commit from userspace could cause link stream to disable and hdcp
    auth to reset when the HDCP has already been enabled at the moment.
    CP should fall back to DESIRED from ENABLED in such cases.
    - This change was previously reverted due to a regression caused, which
    has now been cleared.
    
    [HOW]
    In hdcp display removal, change CP to DESIRED if at the moment CP
    is ENABLED before the auth reset and removal of linked list element.
    
    Signed-off-by: Dingchen (David) Zhang <dingchen.zhang@amd.com>
    Signed-off-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
    Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
    Acked-by: Stylon Wang <stylon.wang@amd.com>
    Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Dingchen (David) Zhang authored and Alex Deucher committed Jun 8, 2021
  9. drm/amd/display: Updates for ODM Transition Test

    [Why]
    There is an assert in cases where transition from ODM 2:1
    to ODM 1:1 (bypass)
    
    [How]
    Remove assert since this case is now valid.
    Update diags tests for ODM transitions.
    
    Signed-off-by: Eric Bernstein <eric.bernstein@amd.com>
    Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
    Acked-by: Stylon Wang <stylon.wang@amd.com>
    Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Eric Bernstein authored and Alex Deucher committed Jun 8, 2021
  10. drm/amd/display: Revert "Disconnect non-DP with no EDID"

    [Why]
    Found a use case (IPKVM) that DP-VGA active dongle does
    not return any EDID and the mentioned commit broke it.
    
    [How]
    This reverts "Disconnect non-DP with no EDID"
    
    Signed-off-by: Roy Chan <roy.chan@amd.com>
    Reviewed-by: Chris Park <Chris.Park@amd.com>
    Acked-by: Stylon Wang <stylon.wang@amd.com>
    Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Roy Chan authored and Alex Deucher committed Jun 8, 2021
  11. drm/amd/display: Add debugfs entry for dsc passthrough

    [Why & How]
    Add debugfs entry to force dsc decoding at PCON when DSC capable
    external RX is connected. In such case, it is free to test DSC
    decoding at external RX or at PCON.
    
    Signed-off-by: Fangzhi Zuo <Jerry.Zuo@amd.com>
    Reviewed-by: Hersen Wu <hersenxs.wu@amd.com>
    Acked-by: Stylon Wang <stylon.wang@amd.com>
    Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Fangzhi Zuo authored and Alex Deucher committed Jun 8, 2021
  12. drm/amd/display: Fix crash during MPO + ODM combine mode recalculation

    [Why]
    When calculating recout width for an MPO plane on a mode that's using
    ODM combine, driver can calculate a negative value, resulting in a
    crash.
    
    [How]
    For negative widths, use zero such that validation will prune the
    configuration correctly and disallow MPO.
    
    Signed-off-by: Aric Cyr <aric.cyr@amd.com>
    Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
    Acked-by: Stylon Wang <stylon.wang@amd.com>
    Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    AMD-aric authored and Alex Deucher committed Jun 8, 2021
  13. drm/amd/display: Fix off-by-one error in DML

    [WHY]
    For DCN30 and later, there is no data in DML arrays indexed by state at
    index num_states.
    
    Signed-off-by: Wesley Chalmers <Wesley.Chalmers@amd.com>
    Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
    Acked-by: Stylon Wang <stylon.wang@amd.com>
    Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Wesley Chalmers authored and Alex Deucher committed Jun 8, 2021
Older