mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
drm/xe: Add GSC to powergate_info
Add GSC powergate status to the existing debugfs. Reviewed-by: Badal Nilawar <badal.nilawar@intel.com> Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com> Link: https://patch.msgid.link/20260204190314.2904009-2-vinay.belgaumkar@intel.com
This commit is contained in:
parent
fabedb758f
commit
2ea05b4b02
|
|
@ -367,6 +367,7 @@
|
|||
#define FORCEWAKE_RENDER XE_REG(0xa278)
|
||||
|
||||
#define POWERGATE_DOMAIN_STATUS XE_REG(0xa2a0)
|
||||
#define GSC_AWAKE_STATUS REG_BIT(8)
|
||||
#define MEDIA_SLICE3_AWAKE_STATUS REG_BIT(4)
|
||||
#define MEDIA_SLICE2_AWAKE_STATUS REG_BIT(3)
|
||||
#define MEDIA_SLICE1_AWAKE_STATUS REG_BIT(2)
|
||||
|
|
|
|||
|
|
@ -254,6 +254,11 @@ int xe_gt_idle_pg_print(struct xe_gt *gt, struct drm_printer *p)
|
|||
drm_printf(p, "Media Samplers Power Gating Enabled: %s\n",
|
||||
str_yes_no(pg_enabled & MEDIA_SAMPLERS_POWERGATE_ENABLE));
|
||||
|
||||
if (gt->info.engine_mask & BIT(XE_HW_ENGINE_GSCCS0)) {
|
||||
drm_printf(p, "GSC Power Gate Status: %s\n",
|
||||
str_up_down(pg_status & GSC_AWAKE_STATUS));
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user