replace internal size macro with linux size macro
Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Tianci Yin <tianci.yin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
static u64 amdgpu_ttm_training_get_c2p_offset(u64 vram_size)
{
- if ((vram_size & (ONE_MiB - 1)) < (4 * ONE_KiB + 1) )
- vram_size -= ONE_MiB;
+ if ((vram_size & (SZ_1M - 1)) < (SZ_4K + 1) )
+ vram_size -= SZ_1M;
- return ALIGN(vram_size, ONE_MiB);
+ return ALIGN(vram_size, SZ_1M);
}
/**
unsigned long offset;
};
-/* Definitions for constance */
-enum amdgpu_internal_constants
-{
- ONE_KiB = 0x400,
- ONE_MiB = 0x100000,
-};
-
extern const struct ttm_mem_type_manager_func amdgpu_gtt_mgr_func;
extern const struct ttm_mem_type_manager_func amdgpu_vram_mgr_func;