1. 04 Jun, 2021 30 commits
  2. 03 Jun, 2021 1 commit
  3. 02 Jun, 2021 9 commits
    • Dave Airlie's avatar
      Merge tag 'drm-intel-gt-next-2021-05-28' of... · ccd1950c
      Dave Airlie authored
      Merge tag 'drm-intel-gt-next-2021-05-28' of git://anongit.freedesktop.org/drm/drm-intel into drm-next
      
      UAPI Changes:
      - Add reworked uAPI for DG1 behind CONFIG_BROKEN (Matt A, Abdiel)
      
      Driver Changes:
      
      - Fix for Gitlab issues #3293 and #3450:
        Avoid kernel crash on older L-shape memory machines
      
      - Add Wa_14010733141 (VDBox SFC reset) for Gen11+ (Aditya)
      - Fix crash in auto_retire active retire callback due to
        misalignment (Stephane)
      - Fix overlay active retire callback alignment (Tvrtko)
      - Eliminate need to align active retire callbacks (Matt A, Ville,
        Daniel)
      - Program FF_MODE2 tuning value for all Gen12 platforms (Caz)
      - Add Wa_14011060649 for TGL,RKL,DG1 and ADLS (Swathi)
      - Create stolen memory region from local memory on DG1 (CQ)
      - Place PD in LMEM on dGFX (Matt A)
      - Use WC when default state object is allocated in LMEM (Venkata)
      - Determine the coherent map type based on object location (Venkata)
      - Use lmem physical addresses for fb_mmap() on discrete (Mohammed)
      - Bypass aperture on fbdev when LMEM is available (Anusha)
      - Return error value when displayable BO not in LMEM for dGFX (Mohammed)
      - Do release kernel context if breadcrumb measure fails (Janusz)
      - Hide modparams for compiled-out features (Tvrtko)
      - Apply Wa_22010271021 for all Gen11 platforms (Caz)
      - Fix unlikely ref count race in arming the watchdog timer (Tvrtko)
      - Check actual RC6 enable status in PMU (Tvrtko)
      - Fix a double free in gen8_preallocate_top_level_pdp (Lv)
      - Use trylock in shrinker for GGTT on BSW VT-d and BXT (Maarten)
      - Remove erroneous i915_is_ggtt check for
        I915_GEM_OBJECT_UNBIND_VM_TRYLOCK (Maarten)
      
      - Convert uAPI headers to real kerneldoc (Matt A)
      - Clean up kerneldoc warnings headers (Matt A, Maarten)
      - Fail driver if LMEM training failed (Matt R)
      - Avoid div-by-zero on Gen2 (Ville)
      - Read C0DRB3/C1DRB3 as 16 bits again and add _BW suffix (Ville)
      - Remove reference to struct drm_device.pdev (Thomas)
      - Increase separation between GuC and execlists code (Chris, Matt B)
      
      - Use might_alloc() (Bernard)
      - Split DGFX_FEATURES from GEN12_FEATURES (Lucas)
      - Deduplicate Wa_22010271021 programming on (Jose)
      - Drop duplicate WaDisable4x2SubspanOptimization:hsw (Tvrtko)
      - Selftest improvements (Chris, Hsin-Yi, Tvrtko)
      - Shuffle around init_memory_region for stolen (Matt)
      - Typo fixes (wengjianfeng)
      
      [airlied: fix conflict with fixes in i915_active.c]
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/YLCbBR22BsQ/dpJB@jlahtine-mobl.ger.corp.intel.com
      ccd1950c
    • Jiansong Chen's avatar
      drm/amdgpu: remove unsafe optimization to drop preamble ib · 7d9c70d2
      Jiansong Chen authored
      Take the situation with gfxoff, the optimization may cause
      corrupt CE ram contents. In addition emit_cntxcntl callback
      has similar optimization which firmware can handle properly
      even for power feature.
      Signed-off-by: default avatarJiansong Chen <Jiansong.Chen@amd.com>
      Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      7d9c70d2
    • Jiawei Gu's avatar
      drm/amdgpu: Add vbios info ioctl interface · 29b4c589
      Jiawei Gu authored
      Add AMDGPU_INFO_VBIOS_INFO subquery id for detailed vbios info.
      
      Provides a way for the user application to get the VBIOS
      information without having to parse the binary.
      It is useful for the user to be able to display in a simple way the VBIOS
      version in their system if they happen to encounter an issue.
      
      V2:
      Use numeric serial.
      Parse and expose vbios version string.
      
      V3:
      Remove redundant data in drm_amdgpu_info_vbios struct.
      
      V4:
      64 bit alignment in drm_amdgpu_info_vbios.
      
      v5: squash together all the reverts, etc. (Alex)
      Signed-off-by: default avatarJiawei Gu <Jiawei.Gu@amd.com>
      Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      29b4c589
    • Alex Deucher's avatar
      drm/amdgpu: bump driver version · 915821a7
      Alex Deucher authored
      For 16bpc display support.
      Reviewed-by: default avatarMario Kleiner <mario.kleiner.de@gmail.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Cc: Mario Kleiner <mario.kleiner.de@gmail.com>
      915821a7
    • Zheng Yongjun's avatar
      drm/amdgpu: Remove unneeded semicolon · 3b42ca80
      Zheng Yongjun authored
      Remove unneeded semicolon.
      Signed-off-by: default avatarZheng Yongjun <zhengyongjun3@huawei.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      3b42ca80
    • Baokun Li's avatar
      drm/amd/display: fix warning: ‘update_dsc_caps’ and... · ea2be5c0
      Baokun Li authored
      drm/amd/display: fix warning: ‘update_dsc_caps’ and ‘apply_dsc_policy_for_stream’ defined but not used
      
      Fixes gcc '-Wunused-function' warning:
      
      ‘update_dsc_caps’ and ‘apply_dsc_policy_for_stream’ are only used
      if 'CONFIG_DRM_AMD_DC_DCN' is defined,
      
      however, it's defined even if 'CONFIG_DRM_AMD_DC_DCN' is not defined.
      Thus gcc will report following warning
      if 'CONFIG_DRM_AMD_DC_DCN' is not defined:
      
      drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5572:13: warning:
      ‘apply_dsc_policy_for_stream’ defined but not used [-Wunused-function]
      
      drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5556:13: warning:
      ‘update_dsc_caps’ defined but not used [-Wunused-function]
      
      Thus move the definition of ‘update_dsc_caps’ and
      ‘apply_dsc_policy_for_stream’ inside define macro to fix it.
      Signed-off-by: default avatarBaokun Li <libaokun1@huawei.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      ea2be5c0
    • Shaokun Zhang's avatar
      drm/amd/display: Remove the redundant initialization of local variable · d3892e20
      Shaokun Zhang authored
      Local variable 'i' and 'j' will be initialized in the for loop, so
      remove the redundant initialization.
      
      Cc: Harry Wentland <harry.wentland@amd.com>
      Cc: Leo Li <sunpeng.li@amd.com>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Signed-off-by: default avatarShaokun Zhang <zhangshaokun@hisilicon.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      d3892e20
    • Yu Kuai's avatar
      drm/amd/display: fix gcc set but not used warning of variable 'old_plane_state' · a6c3c37b
      Yu Kuai authored
      define a new macro for_each_new_plane_in_state_reverse to replace
      for_each_oldnew_plane_in_state_reverse, so that the unused variable
      'old_plane_state' can be removed.
      
      Fix gcc warning:
      drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:10066:26: warning:
       variable ‘old_plane_state’ set but not used [-Wunused-but-set-variable]
      Signed-off-by: default avatarYu Kuai <yukuai3@huawei.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      a6c3c37b
    • Kees Cook's avatar
      drm/amd/display: Avoid HDCP over-read and corruption · 06888d57
      Kees Cook authored
      Instead of reading the desired 5 bytes of the actual target field,
      the code was reading 8. This could result in a corrupted value if the
      trailing 3 bytes were non-zero, so instead use an appropriately sized
      and zero-initialized bounce buffer, and read only 5 bytes before casting
      to u64.
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      06888d57