1. 11 2月, 2016 8 次提交
  2. 28 1月, 2016 1 次提交
  3. 22 1月, 2016 1 次提交
  4. 14 1月, 2016 1 次提交
  5. 12 1月, 2016 1 次提交
  6. 09 1月, 2016 11 次提交
  7. 05 1月, 2016 2 次提交
  8. 04 1月, 2016 1 次提交
    • A
      drm: powerplay: use div64_s64 instead of do_div · 6a53b313
      Arnd Bergmann 提交于
      The newly added code for Fiji creates a correct compiler warning
      about invalid use of the do_div macro:
      
      In file included from powerplay/hwmgr/ppatomctrl.c:31:0:
      drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/ppevvmath.h: In function 'fDivide':
      drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/ppevvmath.h:382:89: warning: comparison of distinct pointer types lacks a cast
           do_div(longlongX, longlongY); /*Q(32,32) divided by Q(16,16) = Q(16,16) Back to original format */
      
      do_div() divides an unsigned 64-bit number by an unsigned 32-bit number.
      The code instead wants to divide two signed 64-bit numbers, which is done
      using the div64_s64 function.
      Reviewed-by: NThierry Reding <treding@nvidia.com>
      Reviewed-by: NChristian König <christian.koenig@amd.com>
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: 770911a3 ("drm/amd/powerplay: add/update headers for Fiji SMU and DPM")
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      6a53b313
  9. 22 12月, 2015 14 次提交