mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 07:40:54 +07:00
drm/ttm: Add interface to export kernel_zone max memory size in ttm
Signed-off-by: Ken Wang <Qingqing.Wang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
8e9fc800ec
commit
ecf6a63709
@ -600,3 +600,9 @@ size_t ttm_round_pot(size_t size)
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(ttm_round_pot);
|
||||
|
||||
uint64_t ttm_get_kernel_zone_memory_size(struct ttm_mem_global *glob)
|
||||
{
|
||||
return glob->zone_kernel->max_mem;
|
||||
}
|
||||
EXPORT_SYMBOL(ttm_get_kernel_zone_memory_size);
|
||||
|
@ -155,4 +155,5 @@ extern int ttm_mem_global_alloc_page(struct ttm_mem_global *glob,
|
||||
extern void ttm_mem_global_free_page(struct ttm_mem_global *glob,
|
||||
struct page *page);
|
||||
extern size_t ttm_round_pot(size_t size);
|
||||
extern uint64_t ttm_get_kernel_zone_memory_size(struct ttm_mem_global *glob);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user