]> Git Repo - linux.git/blob - drivers/gpu/drm/xe/xe_gt_ccs_mode.h
Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
[linux.git] / drivers / gpu / drm / xe / xe_gt_ccs_mode.h
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2023 Intel Corporation
4  */
5
6 #ifndef _XE_GT_CCS_MODE_H_
7 #define _XE_GT_CCS_MODE_H_
8
9 #include "xe_device_types.h"
10 #include "xe_gt.h"
11 #include "xe_gt_types.h"
12 #include "xe_platform_types.h"
13
14 void xe_gt_apply_ccs_mode(struct xe_gt *gt);
15 void xe_gt_ccs_mode_sysfs_init(struct xe_gt *gt);
16
17 static inline bool xe_gt_ccs_mode_enabled(const struct xe_gt *gt)
18 {
19         /* Check if there are more than one compute engines available */
20         return hweight32(CCS_MASK(gt)) > 1;
21 }
22
23 #endif
24
This page took 0.036913 seconds and 4 git commands to generate.