1. 08 3月, 2018 1 次提交
  2. 07 3月, 2018 1 次提交
  3. 27 2月, 2018 1 次提交
  4. 20 2月, 2018 2 次提交
  5. 20 12月, 2017 1 次提交
  6. 27 9月, 2017 2 次提交
  7. 19 9月, 2017 3 次提交
  8. 13 9月, 2017 1 次提交
  9. 30 8月, 2017 1 次提交
  10. 29 4月, 2017 1 次提交
  11. 30 3月, 2017 3 次提交
  12. 28 1月, 2017 1 次提交
  13. 07 12月, 2016 1 次提交
  14. 09 11月, 2016 1 次提交
    • A
      drm/amd/powerplay: return false instead of -EINVAL · f20024d8
      Andrew Shadura 提交于
      Returning -EINVAL from a bool-returning function
      phm_check_smc_update_required_for_display_configuration has an unexpected
      effect of returning true, which is probably not what was intended.
      Replace -EINVAL by false.
      
      The only place this function is called from is
      psm_adjust_power_state_dynamic in
      drivers/gpu/drm/amd/powerplay/eventmgr/psm.c:106:
      
      	if (!equal || phm_check_smc_update_required_for_display_configuration(hwmgr)) {
      		phm_apply_state_adjust_rules(hwmgr, requested, pcurrent);
      		phm_set_power_state(hwmgr, &pcurrent->hardware, &requested->hardware);
      		hwmgr->current_ps = requested;
      	}
      
      It seems to expect a boolean value here.
      
      This issue has been found using the following Coccinelle semantic patch
      written by Peter Senna Tschudin:
      <smpl>
      @@
      identifier f;
      constant C;
      typedef bool;
      @@
      bool f (...){
      <+...
      * return -C;
      ...+>
      }
      </smpl>
      Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: NAndrew Shadura <andrew.shadura@collabora.co.uk>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      f20024d8
  15. 15 9月, 2016 1 次提交
  16. 08 7月, 2016 2 次提交
  17. 21 6月, 2016 1 次提交
  18. 05 4月, 2016 1 次提交
  19. 01 4月, 2016 1 次提交
  20. 11 2月, 2016 2 次提交
  21. 09 1月, 2016 2 次提交
  22. 22 12月, 2015 10 次提交