]> Git Repo - linux.git/blob - drivers/gpu/drm/xe/xe_pm.h
Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
[linux.git] / drivers / gpu / drm / xe / xe_pm.h
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2022 Intel Corporation
4  */
5
6 #ifndef _XE_PM_H_
7 #define _XE_PM_H_
8
9 #include <linux/pm_runtime.h>
10
11 /*
12  * TODO: Threshold = 0 will block D3Cold.
13  *       Before we can move this to a higher value (like 300), we need to:
14  *           1. rewrite the VRAM save / restore to avoid buffer object locks
15  */
16 #define DEFAULT_VRAM_THRESHOLD 0 /* in MB */
17
18 struct xe_device;
19
20 int xe_pm_suspend(struct xe_device *xe);
21 int xe_pm_resume(struct xe_device *xe);
22
23 void xe_pm_init(struct xe_device *xe);
24 void xe_pm_runtime_fini(struct xe_device *xe);
25 int xe_pm_runtime_suspend(struct xe_device *xe);
26 int xe_pm_runtime_resume(struct xe_device *xe);
27 int xe_pm_runtime_get(struct xe_device *xe);
28 int xe_pm_runtime_put(struct xe_device *xe);
29 int xe_pm_runtime_get_if_active(struct xe_device *xe);
30 void xe_pm_assert_unbounded_bridge(struct xe_device *xe);
31 int xe_pm_set_vram_threshold(struct xe_device *xe, u32 threshold);
32 void xe_pm_d3cold_allowed_toggle(struct xe_device *xe);
33 struct task_struct *xe_pm_read_callback_task(struct xe_device *xe);
34
35 #endif
This page took 0.035344 seconds and 4 git commands to generate.