Skip to content
Permalink
Abhinav-Kumar/…
Switch branches/tags

Commits on Jan 21, 2022

  1. drm: allow passing a real encoder object for wb connector

    Instead of creating an internal encoder for the writeback
    connector to satisfy DRM requirements, allow the clients
    to pass a real encoder to it by changing the drm_writeback's
    encoder to a pointer.
    
    If a real encoder is not passed, drm_writeback_connector_init
    will internally allocate one.
    
    This will help the clients to manage the real encoder states
    better as they will allocate and maintain the encoder.
    
    Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
    Abhinav Kumar authored and intel-lab-lkp committed Jan 21, 2022

Commits on Jan 14, 2022

  1. Merge tag 'amd-drm-next-5.17-2022-01-12' of https://gitlab.freedeskto…

    …p.org/agd5f/linux into drm-next
    
    amd-drm-next-5.17-2022-01-12:
    
    amdgpu:
    - SR-IOV fixes
    - Suspend/resume fixes
    - Display fixes
    - DMCUB fixes
    - DP alt mode fixes
    - RAS fixes
    - UBSAN fix
    - Navy Flounder VCN fix
    - ttm resource manager cleanup
    - default_groups change for kobj_type
    - vkms fix
    - Aldebaran fixes
    
    amdkfd:
    - SDMA ECC interrupt fix
    - License clarification
    - Pointer check fix
    - DQM fixes for hawaii
    - default_groups change for kobj_type
    - Typo fixes
    
    Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
    From: Alex Deucher <alexander.deucher@amd.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20220113030537.5758-1-alexander.deucher@amd.com
    danvet committed Jan 14, 2022
  2. Merge tag 'drm-misc-next-fixes-2022-01-14' of git://anongit.freedeskt…

    …op.org/drm/drm-misc into drm-next
    
     * atomic helpers: Fix error messages
     * mipi-dbi: Fix buffer mapping
    
    Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
    From: Thomas Zimmermann <tzimmermann@suse.de>
    Link: https://patchwork.freedesktop.org/patch/msgid/YeGHu7qU92pjuQOn@linux-uq9g
    danvet committed Jan 14, 2022
  3. Merge tag 'drm-misc-fixes-2022-01-14' of git://anongit.freedesktop.or…

    …g/drm/drm-misc into drm-next
    
    Two DT bindings fixes for meson, a device refcounting fix for sun4i, a
    probe fix for vga16fb, a locking fix for the CMA dma-buf heap and a
    compilation fix for ttm.
    
    Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
    [danvet: I made sure I have exactly the same conflict resolution as
    Linus in 8d0749b ("Merge tag 'drm-next-2022-01-07' of
    git://anongit.freedesktop.org/drm/drm") to avoid further conflict fun.
    From: Maxime Ripard <maxime@cerno.tech>
    Link: https://patchwork.freedesktop.org/patch/msgid/20220114125454.zs46ny52lrxk3ljz@houat
    danvet committed Jan 14, 2022
  4. drm/mipi-dbi: Fix source-buffer address in mipi_dbi_buf_copy

    Set the source-buffer address after mapping the buffer into the
    kernel's address space. Makes MIPI DBI helpers work again.
    
    Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
    Fixes: c47160d ("drm/mipi-dbi: Remove dependency on GEM CMA helper library")
    Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
    Reported-by: Noralf Trønnes <noralf@tronnes.org>
    Cc: Thomas Zimmermann <tzimmermann@suse.de>
    Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
    Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
    Cc: Maxime Ripard <mripard@kernel.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20220111132634.18302-1-tzimmermann@suse.de
    (cherry picked from commit 9d31993)
    Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
    Thomas Zimmermann committed Jan 14, 2022
  5. drm: fix error found in some cases after the patch d1af5cd

    The patch d1af5cd ("drm: get rid of DRM_DEBUG_* log
    calls in drm core, files drm_a*.c") fails when the drm_device
    cannot be found in the parameter plane_state->crtc.
    Fix it using plane_state->plane.
    
    Reported-by: kernel test robot <oliver.sang@intel.com>
    Fixes: 6e22dc3 ("drm: get rid of DRM_DEBUG_* log calls in drm core, files drm_a*.c")
    Signed-off-by: Claudio Suarez <cssk@net-c.es>
    [danvet: fix Fixes: line]
    Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
    Link: https://patchwork.freedesktop.org/patch/msgid/YaiXEARd8z2C463h@gineta.localdomain
    (cherry picked from commit 521d459)
    Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
    Claudio Suarez authored and Thomas Zimmermann committed Jan 14, 2022
  6. Merge tag 'drm-misc-next-fixes-2022-01-13' of git://anongit.freedeskt…

    …op.org/drm/drm-misc into drm-next
    
     * Fix use of CRTC state's active vs enable in atomic helper
    
    Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
    From: Thomas Zimmermann <tzimmermann@suse.de>
    Link: https://patchwork.freedesktop.org/patch/msgid/Yd/i/zj9vEHisSSB@linux-uq9g
    danvet committed Jan 14, 2022
  7. Merge tag 'drm-intel-next-fixes-2022-01-13' of git://anongit.freedesk…

    …top.org/drm/drm-intel into drm-next
    
    - Hold runtime PM wakelock during PXP unbind (Juston Li)
    - Three fixes for the TTM backend fault handling (Matthew Auld)
    - Make sure to unmap when purging in the TTM backend (Matthew Auld)
    
    Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
    From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/Yd/xzyCM87rfrwQT@tursulin-mobl2
    danvet committed Jan 14, 2022
  8. drm/ttm: fix compilation on ARCH=um

    Even if it's probably not really useful, it can get selected
    by e.g. randconfig builds, and then failing to compile is an
    annoyance. Unfortunately, it's hard to fix in Kconfig, since
    DRM_TTM is selected by many things that don't really depend
    on any specific architecture, and just depend on PCI (which
    is indeed now available in ARCH=um via simulation/emulation).
    
    Fix this in the code instead by just ifdef'ing the relevant
    two lines that depend on "real X86".
    
    Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
    Link: https://patchwork.freedesktop.org/patch/msgid/20211220111519.a4c8c6eff702.Ie4cf4e68698f6a9f546b83379bc52c266504424f@changeid
    jmberg-intel authored and danvet committed Jan 14, 2022

Commits on Jan 13, 2022

  1. dma-buf: cma_heap: Fix mutex locking section

    Fix cma_heap_buffer mutex locking critical section to protect vmap_cnt
    and vaddr.
    
    Fixes: a5d2d29 ("dma-buf: heaps: Move heap-helper logic into the cma_heap implementation")
    Signed-off-by: Weizhao Ouyang <o451686892@gmail.com>
    Acked-by: John Stultz <john.stultz@linaro.org>
    Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20220104073545.124244-1-o451686892@gmail.com
    ownia authored and sumitsemwal committed Jan 13, 2022

Commits on Jan 12, 2022

  1. video: vga16fb: Only probe for EGA and VGA 16 color graphic cards

    The vga16fb framebuffer driver only supports Enhanced Graphics Adapter
    (EGA) and Video Graphics Array (VGA) 16 color graphic cards.
    
    But it doesn't check if the adapter is one of those or if a VGA16 mode
    is used. This means that the driver will be probed even if a VESA BIOS
    Extensions (VBE) or Graphics Output Protocol (GOP) interface is used.
    
    This issue has been present for a long time but it was only exposed by
    commit d391c58 ("drivers/firmware: move x86 Generic System
    Framebuffers support") since the platform device registration to match
    the {vesa,efi}fb drivers is done later as a consequence of that change.
    
    All non-x86 architectures though treat orig_video_isVGA as a boolean so
    only do the supported video mode check for x86 and not for other arches.
    
    Link: https://bugzilla.kernel.org/show_bug.cgi?id=215001
    Fixes: d391c58 ("drivers/firmware: move x86 Generic System Framebuffers support")
    Reported-by: Kris Karas <bugs-a21@moonlit-rail.com>
    Cc: <stable@vger.kernel.org> # 5.15.x
    Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
    Tested-by: Kris Karas <bugs-a21@moonlit-rail.com>
    Acked-by: Maxime Ripard <maxime@cerno.tech>
    Link: https://patchwork.freedesktop.org/patch/msgid/20220110095625.278836-3-javierm@redhat.com
    martinezjavier committed Jan 12, 2022

Commits on Jan 11, 2022

  1. drm/amdkfd: Fix ASIC name typos

    Three misspelled ASICs in comments here, so fix the spelling
    
    Signed-off-by: Kent Russell <kent.russell@amd.com>
    Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    kentrussell authored and Alex Deucher committed Jan 11, 2022
  2. drm/amdkfd: Fix DQM asserts on Hawaii

    start_nocpsch would never set dqm->sched_running on Hawaii due to an
    early return statement. This would trigger asserts in other functions
    and end up in inconsistent states.
    
    Bug: RadeonOpenCompute/ROCm#1624
    Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
    Reviewed-by: Kent Russell <kent.russell@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    fxkamd authored and Alex Deucher committed Jan 11, 2022
  3. drm/amdgpu: Use correct VIEWPORT_DIMENSION for DCN2

    For some reason this file isn't using the appropriate register
    headers for DCN headers, which means that on DCN2 we're getting
    the VIEWPORT_DIMENSION offset wrong.
    
    This means that we're not correctly carving out the framebuffer
    memory correctly for a framebuffer allocated by EFI and
    therefore see corruption when loading amdgpu before the display
    driver takes over control of the framebuffer scanout.
    
    Fix this by checking the DCE_HWIP and picking the correct offset
    accordingly.
    
    Long-term we should expose this info from DC as GMC shouldn't
    need to know about DCN registers.
    
    Cc: stable@vger.kernel.org
    Signed-off-by: Harry Wentland <harry.wentland@amd.com>
    Reviewed-by: Huang Rui <ray.huang@amd.com>
    Acked-by: Christian König <christian.koenig@amd.com>
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Harry Wentland authored and Alex Deucher committed Jan 11, 2022
  4. drm/amd/pm: only send GmiPwrDnControl msg on master die (v3)

    PMFW only returns 0 on master die and sends NACK back on other dies for
    the message.
    
    v2: only send GmiPwrDnControl msg on master die instead of all
    dies.
    v3: remove the pointer check for get_socket_id and get_die_id as they
    should be present on Aldebaran.
    
    Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
    Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Tao Zhou authored and Alex Deucher committed Jan 11, 2022
  5. drm/amdgpu: use spin_lock_irqsave to avoid deadlock by local interrupt

    This is observed in SRIOV case with virtual KMS as display.
    
    _raw_spin_lock_irqsave+0x37/0x40
    drm_handle_vblank+0x69/0x350 [drm]
    ? try_to_wake_up+0x432/0x5c0
    ? amdgpu_vkms_prepare_fb+0x1c0/0x1c0 [amdgpu]
    drm_crtc_handle_vblank+0x17/0x20 [drm]
    amdgpu_vkms_vblank_simulate+0x4d/0x80 [amdgpu]
    __hrtimer_run_queues+0xfb/0x230
    hrtimer_interrupt+0x109/0x220
    __sysvec_apic_timer_interrupt+0x64/0xe0
    asm_call_irq_on_stack+0x12/0x20
    
    Fixes: 84ec374 ("drm/amdgpu: create amdgpu_vkms (v4)")
    Signed-off-by: Guchun Chen <guchun.chen@amd.com>
    Acked-by: Alex Deucher <alexander.deucher@amd.com>
    Tested-by: Kelly Zytaruk <kelly.zytaruk@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Guchun Chen authored and Alex Deucher committed Jan 11, 2022
  6. drm/amdgpu: not return error on the init_apu_flags

    In some APU project we needn't always assign flags to identify each other,
    so we may not need return an error.
    
    Signed-off-by: Prike Liang <Prike.Liang@amd.com>
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
    Reviewed-by: Huang Rui <ray.huang@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Prike Liang authored and Alex Deucher committed Jan 11, 2022
  7. drm/amdkfd: Use prange->update_list head for remove_list

    The remove_list head was only used for keeping track of existing ranges
    that are to be removed from the svms->list. The update_list was used for
    new or existing ranges that need updated attributes. These two cases are
    mutually exclusive (i.e. the same range will never be on both lists).
    Therefore we can use the update_list head to track the remove_list and
    save another 16 bytes in the svm_range struct.
    
    Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
    Reviewed-by: Philip Yang <Philip.Yang@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    fxkamd authored and Alex Deucher committed Jan 11, 2022
  8. drm/amdkfd: Use prange->list head for insert_list

    There are seven list_heads in struct svm_range: list, update_list,
    remove_list, insert_list, svm_bo_list, deferred_list, child_list. This
    patch and the next one remove two of them that are redundant.
    
    The insert_list head was only used for new ranges that are not on the
    svms->list yet. So we can use that list head for keeping track of
    new ranges before they get added, and use list_move_tail to move them
    to the svms->list when ready.
    
    Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
    Reviewed-by: Philip Yang <Philip.Yang@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    fxkamd authored and Alex Deucher committed Jan 11, 2022
  9. drm/amdkfd: make SPDX License expression more sound

    Commit b5f5738 ("drm/amdkfd: Add sysfs bitfields and enums to uAPI")
    adds include/uapi/linux/kfd_sysfs.h with the "GPL-2.0 OR MIT WITH
    Linux-syscall-note" SPDX-License expression.
    
    The command ./scripts/spdxcheck.py warns:
    
      include/uapi/linux/kfd_sysfs.h: 1:48 Exception not valid for license MIT: Linux-syscall-note
    
    For a uapi header, the file under GPLv2 License must be combined with the
    Linux-syscall-note, but combining the MIT License with the
    Linux-syscall-note makes no sense, as the note provides an exception for
    GPL-licensed code, not for permissively licensed code.
    
    So, reorganize the SPDX expression to only combine the note with the GPL
    License condition. This makes spdxcheck happy again.
    
    Fixes: b5f5738 ("drm/amdkfd: Add sysfs bitfields and enums to uAPI")
    Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
    Reviewed-by: kstewart@linuxfoundation.org
    Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
    Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    bulwahn authored and Alex Deucher committed Jan 11, 2022
  10. drm/amdkfd: Check for null pointer after calling kmemdup

    As the possible failure of the allocation, kmemdup() may return NULL
    pointer.
    Therefore, it should be better to check the 'props2' in order to prevent
    the dereference of NULL pointer.
    
    Fixes: 3a87177 ("drm/amdkfd: Add topology support for dGPUs")
    Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
    Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
    Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    JiangJias authored and Alex Deucher committed Jan 11, 2022
  11. drm/amd/display: invalid parameter check in dmub_hpd_callback

    The function performs a check on the "adev" input parameter, however, it
    is used before the check.
    
    Initialize the "dev" variable after the sanity check to avoid a possible
    NULL pointer dereference.
    
    Fixes: e27c41d ("drm/amd/display: Support for DMUB HPD interrupt handling")
    Addresses-Coverity-ID: 1493909 ("Null pointer dereference")
    Reviewed-by: Harry Wentland <harry.wentland@amd.com>
    Signed-off-by: José Expósito <jose.exposito89@gmail.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    JoseExposito authored and Alex Deucher committed Jan 11, 2022
  12. Revert "drm/amdgpu: Don't inherit GEM object VMAs in child process"

    This reverts commit fbcdbfd.
    
    Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
    Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    rajbhar authored and Alex Deucher committed Jan 11, 2022
  13. drm/amd/display: reset dcn31 SMU mailbox on failures

    Otherwise future commands may fail as well leading to downstream
    problems that look like they stemmed from a timeout the first time
    but really didn't.
    
    Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
    Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    superm1 authored and Alex Deucher committed Jan 11, 2022
  14. drm/amdkfd: use default_groups in kobj_type

    There are currently 2 ways to create a set of sysfs files for a
    kobj_type, through the default_attrs field, and the default_groups
    field.  Move the amdkfd sysfs code to use default_groups field which has
    been the preferred way since aa30f47 ("kobject: Add support for
    default attribute groups to kobj_type") so that we can soon get rid of
    the obsolete default_attrs field.
    
    Cc: Felix Kuehling <Felix.Kuehling@amd.com>
    Cc: Alex Deucher <alexander.deucher@amd.com>
    Cc: "Christian König" <christian.koenig@amd.com>
    Cc: "Pan, Xinhui" <Xinhui.Pan@amd.com>
    Cc: David Airlie <airlied@linux.ie>
    Cc: Daniel Vetter <daniel@ffwll.ch>
    Cc: amd-gfx@lists.freedesktop.org
    Cc: dri-devel@lists.freedesktop.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    gregkh authored and Alex Deucher committed Jan 11, 2022
  15. drm/amdgpu: use default_groups in kobj_type

    There are currently 2 ways to create a set of sysfs files for a
    kobj_type, through the default_attrs field, and the default_groups
    field.  Move the amdgpu sysfs code to use default_groups field which has
    been the preferred way since aa30f47 ("kobject: Add support for
    default attribute groups to kobj_type") so that we can soon get rid of
    the obsolete default_attrs field.
    
    Cc: Alex Deucher <alexander.deucher@amd.com>
    Cc: "Christian König" <christian.koenig@amd.com>
    Cc: "Pan, Xinhui" <Xinhui.Pan@amd.com>
    Cc: David Airlie <airlied@linux.ie>
    Cc: Daniel Vetter <daniel@ffwll.ch>
    Cc: Hawking Zhang <Hawking.Zhang@amd.com>
    Cc: John Clements <john.clements@amd.com>
    Cc: Felix Kuehling <Felix.Kuehling@amd.com>
    Cc: Jonathan Kim <jonathan.kim@amd.com>
    Cc: Kevin Wang <kevin1.wang@amd.com>
    Cc: shaoyunl <shaoyun.liu@amd.com>
    Cc: Tao Zhou <tao.zhou1@amd.com>
    Cc: amd-gfx@lists.freedesktop.org
    Cc: dri-devel@lists.freedesktop.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    gregkh authored and Alex Deucher committed Jan 11, 2022
  16. drm/amd/amdgpu: Add pcie indirect support to amdgpu_mm_wreg_mmio_rlc()

    The function amdgpu_mm_wreg_mmio_rlc() is used by debugfs to write to
    MMIO registers.  It didn't support registers beyond the BAR mapped MMIO
    space.  This adds pcie indirect write support.
    
    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
    Acked-by: Alex Deucher <alexander.deucher@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Tom St Denis authored and Alex Deucher committed Jan 11, 2022
  17. drm/amdgpu: recover gart table at resume

    Get rid off pin/unpin of gart BO at resume/suspend and
    instead pin only once and try to recover gart content
    at resume time. This is much more stable in case there
    is OOM situation at 2nd call to amdgpu_device_evict_resources()
    while evicting GART table.
    
    v3: remove gart recovery from other places
    v2: pin gart at amdgpu_gart_table_vram_alloc()
    
    Reviewed-by: Christian König <christian.koenig@amd.com>
    Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    nirmoy authored and Alex Deucher committed Jan 11, 2022
  18. drm/amdgpu: do not pass ttm_resource_manager to vram_mgr

    Do not allow exported amdgpu_vram_mgr_*() to accept
    any ttm_resource_manager pointer. Also there is no need
    to force other module to call a ttm function just to
    eventually call vram_mgr functions.
    
    v2: pass adev's vram_mgr instead of adev
    
    Reviewed-by: Christian König <christian.koenig@amd.com>
    Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    nirmoy authored and Alex Deucher committed Jan 11, 2022
  19. drm/amdkfd: remove unused function

    Remove unused amdgpu_amdkfd_get_vram_usage()
    
    CC: Felix.Kuehling@amd.com
    
    Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
    Reviewed-by: Christian König <christian.koenig@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Fixes: dfcbe6d ("drm/amdgpu: Remove unused function pointers")
    nirmoy authored and Alex Deucher committed Jan 11, 2022
  20. drm/amdgpu: do not pass ttm_resource_manager to gtt_mgr

    Do not allow exported amdgpu_gtt_mgr_*() to accept
    any ttm_resource_manager pointer. Also there is no need
    to force other module to call a ttm function just to
    eventually call gtt_mgr functions.
    
    v4: remove unused adev.
    v3: upcast mgr from ttm resopurce manager instead of
    getting it from adev.
    v2: pass adev's gtt_mgr instead of adev.
    
    Reviewed-by: Christian König <christian.koenig@amd.com>
    Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    nirmoy authored and Alex Deucher committed Jan 11, 2022
  21. drm/amdgpu: Unmap MMIO mappings when device is not unplugged

    Patch: 3efb17a ("drm/amdgpu: Call amdgpu_device_unmap_mmio() if device
    is unplugged to prevent crash in GPU initialization failure") makes call to
    amdgpu_device_unmap_mmio() conditioned on device unplugged. This patch unmaps
    MMIO mappings even when device is not unplugged.
    
    v2: Add condition of drm_dev_enter() to deleted unmaps in patch
    "drm/amdgpu: Unmap all MMIO mappings"
    
    Signed-off-by: Leslie Shi <Yuliang.Shi@amd.com>
    Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    OkabeRintarou authored and Alex Deucher committed Jan 11, 2022
  22. drm/amdgpu: Enable second VCN for certain Navy Flounder.

    Certain Navy Flounder cards have 2 VCNs, enable it.
    
    Signed-off-by: Peng Ju Zhou <PengJu.Zhou@amd.com>
    Acked-by: Alex Deucher <alexander.deucher@amd.com>
    Reviewed-by: Guchun Chen <guchun.chen@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Peng Ju Zhou authored and Alex Deucher committed Jan 11, 2022
  23. drm/amd/display: explicitly set is_dsc_supported to false before use

    When UBSAN is enabled a case is shown on unplugging the display that
    this variable hasn't been initialized by `update_dsc_caps`, presumably
    when the display was unplugged it wasn't copied from the DPCD.
    
    Link: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1956497
    Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
    Acked-by: Alex Deucher <alexander.deucher@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    superm1 authored and Alex Deucher committed Jan 11, 2022
  24. drm/amdgpu: Clear garbage data in err_data before usage

    Memory of err_data should be cleaned before usage
    when there're multiple entry in ras ih.
    Otherwise garbage data from last loop will be used.
    
    Signed-off-by: Jiawei Gu <Jiawei.Gu@amd.com>
    Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Jiawei Gu authored and Alex Deucher committed Jan 11, 2022
Older