diff options
author | Lionel Landwerlin <lionel.g.landwerlin@intel.com> | 2017-06-13 12:23:01 +0100 |
---|---|---|
committer | Ben Widawsky <ben@bwidawsk.net> | 2017-06-14 12:31:57 -0700 |
commit | 3f488d99858d22f584e1734f317bfcff9dbdf4fd (patch) | |
tree | 012635a952e9eee7acf2ccb2e47509e04de869fc /drivers/gpu/drm/i915/i915_drv.h | |
parent | f532023381df49ac00cb2d1e70df607cf534720d (diff) | |
download | lwn-3f488d99858d22f584e1734f317bfcff9dbdf4fd.tar.gz lwn-3f488d99858d22f584e1734f317bfcff9dbdf4fd.zip |
drm/i915/perf: rework mux configurations queries
Gen8+ might have mux configurations per slices/subslices. Depending on
whether slices/subslices have been fused off, only part of the
configuration needs to be applied. This change reworks the mux
configurations query mechanism to allow more than one set of registers
to be programmed.
v2: s/n_mux_regs/n_mux_configs/ (Matthew)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 467786d25348..f04449f9b1d5 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -2417,8 +2417,10 @@ struct drm_i915_private { int metrics_set; - const struct i915_oa_reg *mux_regs; - int mux_regs_len; + const struct i915_oa_reg *mux_regs[1]; + int mux_regs_lens[1]; + int n_mux_configs; + const struct i915_oa_reg *b_counter_regs; int b_counter_regs_len; |