mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-08-30 13:53:54 +00:00

Make sure to differentiate normal behavior, e.g. there's no stolen, from allocation errors or failure to initialize lower layers. Reviewed-by: Francois Dugast <francois.dugast@intel.com> Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250213192909.996148-5-lucas.demarchi@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
22 lines
538 B
C
22 lines
538 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2022 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_TTM_STOLEN_MGR_H_
|
|
#define _XE_TTM_STOLEN_MGR_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct ttm_resource;
|
|
struct xe_bo;
|
|
struct xe_device;
|
|
|
|
int xe_ttm_stolen_mgr_init(struct xe_device *xe);
|
|
int xe_ttm_stolen_io_mem_reserve(struct xe_device *xe, struct ttm_resource *mem);
|
|
bool xe_ttm_stolen_cpu_access_needs_ggtt(struct xe_device *xe);
|
|
u64 xe_ttm_stolen_io_offset(struct xe_bo *bo, u32 offset);
|
|
u64 xe_ttm_stolen_gpu_offset(struct xe_device *xe);
|
|
|
|
#endif
|