aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_reg.h
diff options
context:
space:
mode:
authorJeff McGee <jeff.mcgee@intel.com>2015-02-13 11:27:55 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-02-23 17:57:08 -0500
commit7f992aba1eb5a8b57d6e9c9b22cd90ba7aec0e26 (patch)
treed7f7a3fe954192947324b0384a120194003570ce /drivers/gpu/drm/i915/i915_reg.h
parent3873218f359a411bf98f6d1d6d15a44f64933163 (diff)
drm/i915/skl: Add SKL HW status to SSEU status
Add a new section to the 'i915_sseu_status' debugfs entry to report the currently enabled counts of slice, subslice, and execution units on the device. The count of enabled subslice per slice represents the most enabled subslice on any one slice for devices where imbalances may exist. Similarly, the count of enabled EU per subslice represents the most enabled EU on any one subslice. Collect this device status for Skylake by reading the Gen9 power gate control ack message registers. Power gate control operates on EU in pairs, therefore our reported counts of enabled EU can be overestimated by one for each pair in which one EU is fused-off. Signed-off-by: Jeff McGee <jeff.mcgee@intel.com> Reviewed-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_reg.h')
-rw-r--r--drivers/gpu/drm/i915/i915_reg.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
index f9d4367ee8d4..4da883b2c3c8 100644
--- a/drivers/gpu/drm/i915/i915_reg.h
+++ b/drivers/gpu/drm/i915/i915_reg.h
@@ -6209,6 +6209,26 @@ enum skl_disp_power_wells {
6209#define GEN6_RC6 3 6209#define GEN6_RC6 3
6210#define GEN6_RC7 4 6210#define GEN6_RC7 4
6211 6211
6212#define GEN9_SLICE0_PGCTL_ACK 0x804c
6213#define GEN9_SLICE1_PGCTL_ACK 0x8050
6214#define GEN9_SLICE2_PGCTL_ACK 0x8054
6215#define GEN9_PGCTL_SLICE_ACK (1 << 0)
6216
6217#define GEN9_SLICE0_SS01_EU_PGCTL_ACK 0x805c
6218#define GEN9_SLICE0_SS23_EU_PGCTL_ACK 0x8060
6219#define GEN9_SLICE1_SS01_EU_PGCTL_ACK 0x8064
6220#define GEN9_SLICE1_SS23_EU_PGCTL_ACK 0x8068
6221#define GEN9_SLICE2_SS01_EU_PGCTL_ACK 0x806c
6222#define GEN9_SLICE2_SS23_EU_PGCTL_ACK 0x8070
6223#define GEN9_PGCTL_SSA_EU08_ACK (1 << 0)
6224#define GEN9_PGCTL_SSA_EU19_ACK (1 << 2)
6225#define GEN9_PGCTL_SSA_EU210_ACK (1 << 4)
6226#define GEN9_PGCTL_SSA_EU311_ACK (1 << 6)
6227#define GEN9_PGCTL_SSB_EU08_ACK (1 << 8)
6228#define GEN9_PGCTL_SSB_EU19_ACK (1 << 10)
6229#define GEN9_PGCTL_SSB_EU210_ACK (1 << 12)
6230#define GEN9_PGCTL_SSB_EU311_ACK (1 << 14)
6231
6212#define GEN7_MISCCPCTL (0x9424) 6232#define GEN7_MISCCPCTL (0x9424)
6213#define GEN7_DOP_CLOCK_GATE_ENABLE (1<<0) 6233#define GEN7_DOP_CLOCK_GATE_ENABLE (1<<0)
6214 6234