1. 25 May, 2018 1 commit
    • Arnd Bergmann's avatar
      drm/amdgpu: fix 32-bit build warning · ebe1d22b
      Arnd Bergmann authored
      Casting a pointer to a 64-bit type causes a warning on 32-bit targets:
      
      drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:473:24: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
                lower_32_bits((uint64_t)wptr));
                              ^
      drivers/gpu/drm/amd/amdgpu/amdgpu.h:1701:53: note: in definition of macro 'WREG32'
       #define WREG32(reg, v) amdgpu_mm_wreg(adev, (reg), (v), 0)
                                                           ^
      drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:473:10: note: in expansion of macro 'lower_32_bits'
                lower_32_bits((uint64_t)wptr));
                ^~~~~~~~~~~~~
      
      The correct method is to cast to 'uintptr_t'.
      
      Fixes: d5a114a6 ("drm/amdgpu: Add GFXv9 kfd2kgd interface functions")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Reviewed-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
      Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
      ebe1d22b
  2. 24 May, 2018 1 commit
  3. 18 May, 2018 1 commit
    • Oded Gabbay's avatar
      drm/amdgpu: conditionally compile amdgpu's amdkfd files · fcdfa432
      Oded Gabbay authored
      In case CONFIG_HSA_AMD is not chosen, there is no need to compile amdkfd
      files that reside inside amdgpu dirver. In addition, because amdkfd
      depends on x86_64 architecture and amdgpu is not, compiling amdkfd files
      under i386 architecture can cause compiler errors and warnings.
      
      This patch modifies amdgpu's makefile to build amdkfd files only if
      CONFIG_HSA_AMD is chosen. The only file to be compiled unconditionally
      is amdgpu_amdkfd.c
      
      There are stub functions that are compiled only if amdkfd is not
      compiled. In that case, calls from amdgpu driver proper will go to those
      functions instead of the real functions.
      
      v2: instead of using function pointers, use stub functions
      
      v3: initialize kgd2kfd to NULL in case amdkfd is not compiled
      Reviewed-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
      Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
      fcdfa432
  4. 25 May, 2018 1 commit
  5. 24 May, 2018 26 commits
  6. 22 May, 2018 4 commits
  7. 20 May, 2018 1 commit
  8. 18 May, 2018 5 commits