1. 12 Aug, 2019 15 commits
  2. 09 Aug, 2019 5 commits
  3. 07 Aug, 2019 16 commits
  4. 06 Aug, 2019 4 commits
    • Hariprasad Kelam's avatar
      gpu: drm: amd: powerplay: Remove logically dead code · 2a1e00c3
      Hariprasad Kelam authored
      Result of pointer airthmentic is never null
      
      fix coverity defect:1451876
      Signed-off-by: default avatarHariprasad Kelam <hariprasad.kelam@gmail.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      2a1e00c3
    • Nathan Chancellor's avatar
      drm/amd/powerplay: Zero initialize some variables · b56a53db
      Nathan Chancellor authored
      Clang warns (only Navi warning shown but Arcturus warns as well):
      
      drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1534:4: warning:
      variable 'asic_default_power_limit' is used uninitialized whenever '?:'
      condition is false [-Wsometimes-uninitialized]
                              smu_read_smc_arg(smu, &asic_default_power_limit);
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      drivers/gpu/drm/amd/amdgpu/../powerplay/inc/amdgpu_smu.h:588:3: note:
      expanded from macro 'smu_read_smc_arg'
              ((smu)->funcs->read_smc_arg? (smu)->funcs->read_smc_arg((smu), (arg)) : 0)
               ^~~~~~~~~~~~~~~~~~~~~~~~~~
      drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1550:30: note:
      uninitialized use occurs here
                      smu->default_power_limit = asic_default_power_limit;
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~
      drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1534:4: note:
      remove the '?:' if its condition is always true
                              smu_read_smc_arg(smu, &asic_default_power_limit);
                              ^
      drivers/gpu/drm/amd/amdgpu/../powerplay/inc/amdgpu_smu.h:588:3: note:
      expanded from macro 'smu_read_smc_arg'
              ((smu)->funcs->read_smc_arg? (smu)->funcs->read_smc_arg((smu), (arg)) : 0)
               ^
      drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1517:35: note:
      initialize the variable 'asic_default_power_limit' to silence this
      warning
              uint32_t asic_default_power_limit;
                                               ^
                                                = 0
      1 warning generated.
      
      As the code is currently written, if read_smc_arg were ever NULL, arg
      would fail to be initialized but the code would continue executing as
      normal because the return value would just be zero.
      
      There are a few different possible solutions to resolve this class
      of warnings which have appeared in these drivers before:
      
      1. Assume the function pointer will never be NULL and eliminate the
         wrapper macros.
      
      2. Have the wrapper macros initialize arg when the function pointer is
         NULL.
      
      3. Have the wrapper macros return an error code instead of 0 when the
         function pointer is NULL so that the callsites can properly bail out
         before arg can be used.
      
      4. Initialize arg at the top of its function.
      
      Number four is the path of least resistance right now as every other
      change will be driver wide so do that here. I only make the comment
      now as food for thought.
      
      Fixes: b4af964e ("drm/amd/powerplay: make power limit retrieval as asic specific")
      Link: https://github.com/ClangBuiltLinux/linux/issues/627Reviewed-by: default avatarEvan Quan <evan.quan@amd.com>
      Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      b56a53db
    • Oded Gabbay's avatar
      MAINTAINERS: update amdkfd maintainer (v3) · f848be46
      Oded Gabbay authored
      I'm leaving the role of amdkfd maintainer. Therefore, update the relevant
      entry in the MAINTAINERS file with the name of the new maintainer.
      
      Good Luck!
      
      v3: update mailing list, file list (Alex)
      
      Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> (v2)
      Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      f848be46
    • Andrey Grodzovsky's avatar
      drm/amdgpu: Fix GPU reset crash regression. · b5507c7e
      Andrey Grodzovsky authored
      amdgpu_ip_block.status.hw for GMC wasn't set to
      false on suspend during GPU reset and so on resume gmc_v9_0_resume
      wasn't called.
      Caused by 'drm/amdgpu: fix double ucode load by PSP(v3)'
      Signed-off-by: default avatarAndrey Grodzovsky <andrey.grodzovsky@amd.com>
      Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      b5507c7e