mirror of
https://github.com/torvalds/linux.git
synced 2026-04-24 17:42:27 -04:00
Coarse Powergating is a power saving technique where Render and Media
can be power-gated independently irrespective of the rest of the GT.
For debug purposes, it is useful to expose the powergating information.
v2: move to debugfs
add details to commit message
add per-slice status for media
define reg bits in descending order (Matt Roper)
v3: fix return statement
fix kernel-doc
use loop for media slices
use helper function for status (Michal)
v4: add pg prefix
do not wake GT if in C6 (Badal)
Signed-off-by: Riana Tauro <riana.tauro@intel.com>
Reviewed-by: Badal Nilawar <badal.nilawar@intel.com>
Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240906071126.28078-3-riana.tauro@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
22 lines
520 B
C
22 lines
520 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_GT_IDLE_H_
|
|
#define _XE_GT_IDLE_H_
|
|
|
|
#include "xe_gt_idle_types.h"
|
|
|
|
struct drm_printer;
|
|
struct xe_gt;
|
|
|
|
int xe_gt_idle_init(struct xe_gt_idle *gtidle);
|
|
void xe_gt_idle_enable_c6(struct xe_gt *gt);
|
|
void xe_gt_idle_disable_c6(struct xe_gt *gt);
|
|
void xe_gt_idle_enable_pg(struct xe_gt *gt);
|
|
void xe_gt_idle_disable_pg(struct xe_gt *gt);
|
|
int xe_gt_idle_pg_print(struct xe_gt *gt, struct drm_printer *p);
|
|
|
|
#endif /* _XE_GT_IDLE_H_ */
|