1. 14 Jun, 2024 38 commits
  2. 05 Jun, 2024 2 commits
    • Tao Zhou's avatar
      drm/amdgpu: add RAS is_rma flag · b95fa494
      Tao Zhou authored
      Set the flag to true if bad page number reaches threshold.
      Signed-off-by: default avatarTao Zhou <tao.zhou1@amd.com>
      Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      b95fa494
    • Srinivasan Shanmugam's avatar
      drm/amd/display: Add null checks for 'stream' and 'plane' before dereferencing · 15c2990e
      Srinivasan Shanmugam authored
      This commit adds null checks for the 'stream' and 'plane' variables in
      the dcn30_apply_idle_power_optimizations function. These variables were
      previously assumed to be null at line 922, but they were used later in
      the code without checking if they were null. This could potentially lead
      to a null pointer dereference, which would cause a crash.
      
      The null checks ensure that 'stream' and 'plane' are not null before
      they are used, preventing potential crashes.
      
      Fixes the below static smatch checker:
      drivers/gpu/drm/amd/amdgpu/../display/dc/hwss/dcn30/dcn30_hwseq.c:938 dcn30_apply_idle_power_optimizations() error: we previously assumed 'stream' could be null (see line 922)
      drivers/gpu/drm/amd/amdgpu/../display/dc/hwss/dcn30/dcn30_hwseq.c:940 dcn30_apply_idle_power_optimizations() error: we previously assumed 'plane' could be null (see line 922)
      
      Cc: Tom Chung <chiahsuan.chung@amd.com>
      Cc: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
      Cc: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
      Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
      Cc: Roman Li <roman.li@amd.com>
      Cc: Hersen Wu <hersenxs.wu@amd.com>
      Cc: Alex Hung <alex.hung@amd.com>
      Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
      Cc: Harry Wentland <harry.wentland@amd.com>
      Signed-off-by: default avatarSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
      Reviewed-by: default avatarAurabindo Pillai <aurabindo.pillai@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      15c2990e