1. 15 Jun, 2023 3 commits
    • Lee Jones's avatar
      drm/amd/display/amdgpu_dm/amdgpu_dm_helpers: Move SYNAPTICS_DEVICE_ID into... · c168feed
      Lee Jones authored
      drm/amd/display/amdgpu_dm/amdgpu_dm_helpers: Move SYNAPTICS_DEVICE_ID into CONFIG_DRM_AMD_DC_DCN ifdef
      
      Fixes the following W=1 kernel build warning(s):
      
       drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_helpers.c:48:22: warning: ‘SYNAPTICS_DEVICE_ID’ defined but not used [-Wunused-const-variable=]
      
      Cc: Harry Wentland <harry.wentland@amd.com>
      Cc: Leo Li <sunpeng.li@amd.com>
      Cc: Rodrigo Siqueira <Rodrigo.Siqueira@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@gmail.com>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: amd-gfx@lists.freedesktop.org
      Cc: dri-devel@lists.freedesktop.org
      Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
      Signed-off-by: default avatarLee Jones <lee@kernel.org>
      Signed-off-by: default avatarHamza Mahfooz <hamza.mahfooz@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      c168feed
    • Nicholas Kazlauskas's avatar
      drm/amd/display: Skip DPP DTO update if root clock is gated · 30f90f3c
      Nicholas Kazlauskas authored
      [Why]
      Hardware implements root clock gating by utilizing the DPP DTO registers
      with a special case of DTO enabled, phase = 0, modulo = 1. This
      conflicts with our policy to always update the DPPDTO for cases where
      it's expected to be disabled.
      
      The pipes unexpectedly enter a higher power state than expected because
      of this programming flow.
      
      [How]
      Guard the upper layers of HWSS against this hardware quirk with
      programming the register with an internal state flag in DCCG.
      
      While technically acting as global state for the DCCG, HWSS shouldn't be
      expected to understand the hardware quirk for having DTO disabled
      causing more power than DTO enabled with this specific setting.
      
      This also prevents sequencing errors from occuring in the future if
      we have to program DPP DTO in multiple locations.
      Acked-by: default avatarStylon Wang <stylon.wang@amd.com>
      Signed-off-by: default avatarNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
      Reviewed-by: default avatarJun Lei <jun.lei@amd.com>
      Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      30f90f3c
    • Dave Airlie's avatar
      Merge tag 'amd-drm-next-6.5-2023-06-09' of https://gitlab.freedesktop.org/agd5f/linux into drm-next · 901bdf5e
      Dave Airlie authored
      amd-drm-next-6.5-2023-06-02:
      
      amdgpu:
      - SR-IOV fixes
      - Warning fixes
      - Misc code cleanups and spelling fixes
      - DCN 3.2 updates
      - Improved DC FAMS support for better power management
      - Improved DC SubVP support for better power management
      - DCN 3.1.x fixes
      - Max IB size query
      - DC GPU reset fixes
      - RAS updates
      - DCN 3.0.x fixes
      - S/G display fixes
      - CP shadow buffer support
      - Implement connector force callback
      - Z8 power improvements
      - PSP 13.0.10 vbflash support
      - Mode2 reset fixes
      - Store MQDs in VRAM to improve queue switch latency
      - VCN 3.x fixes
      - JPEG 3.x fixes
      - Enable DC_FP on LoongArch
      - GFXOFF fixes
      - GC 9.4.3 partition support
      - SDMA 4.4.2 partition support
      - VCN/JPEG 4.0.3 partition support
      - VCN 4.0.3 updates
      - NBIO 7.9 updates
      - GC 9.4.3 updates
      - Take NUMA into account when allocating memory
      - Handle NUMA for partitions
      - SMU 13.0.6 updates
      - GC 9.4.3 RAS updates
      - Stop including unused swiotlb.h
      - SMU 13.0.7 fixes
      - Fix clock output ordering on some APUs
      - Clean up DC FPGA code
      - GFX9 preemption fixes
      - Misc irq fixes
      - S0ix fixes
      - Add new DRM_AMDGPU_WERROR config parameter to help with CI
      - PCIe fix for RDNA2
      - kdoc fixes
      - Documentation updates
      
      amdkfd:
      - Query TTM mem limit rather than hardcoding it
      - GC 9.4.3 partition support
      - Handle NUMA for partitions
      
      radeon:
      - Fix possible double free
      - Stop including unused swiotlb.h
      - Fix possible division by zero
      
      ttm:
      - Add query for TTM mem limit
      - Add NUMA awareness to pools
      - Export ttm_pool_fini()
      
      UAPI:
      - Add new ctx query flag to better handle GPU resets
        Mesa MR: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22290
      - Add new interface to query and set shadow buffer for RDNA3
        Mesa MR: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21986
      - Add new INFO query for max IB size
        Proposed userspace: https://gitlab.freedesktop.org/bnieuwenhuizen/mesa/-/commits/ib-rejection-v3
      
      amd-drm-next-6.5-2023-06-09:
      
      amdgpu:
      - S0ix fixes
      - Initial SMU13 Overdrive support
      - kdoc fixes
      - Misc clode cleanups
      - Flexible array fixes
      - Display OTG fixes
      - SMU 13.0.6 updates
      - Revert some broken clock counter updates
      - Misc display fixes
      - GFX9 preemption fixes
      - Add support for newer EEPROM bad page table format
      - Add missing radeon secondary id
      - Add support for new colorspace KMS API
      - CSA fix
      - Stable pstate fixes for APUs
      - make vbl interface admin only
      - Handle PCI accelerator class
      
      amdkfd:
      - Add debugger support for gdb
      
      radeon:
      - Fix possible UAF
      
      drm:
      - Add Colorspace functionality
      
      UAPI:
      - Add debugger interface for enabling gdb
        Proposed userspace: https://github.com/ROCm-Developer-Tools/ROCdbgapi/tree/wip-dbgapi
      - Add KMS colorspace API
        Discussion: https://lists.freedesktop.org/archives/dri-devel/2023-June/408128.html
      
      From: Alex Deucher <alexander.deucher@amd.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20230609174817.7764-1-alexander.deucher@amd.com
      901bdf5e
  2. 09 Jun, 2023 37 commits