Skip to content

Commit

Permalink
drm/i915/perf: rework mux configurations queries
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lionel Landwerlin authored and Ben Widawsky committed Jun 14, 2017
1 parent f532023 commit 3f488d9
Show file tree
Hide file tree
Showing 4 changed files with 151 additions and 81 deletions.
6 changes: 4 additions & 2 deletions drivers/gpu/drm/i915/i915_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Loading

0 comments on commit 3f488d9

Please sign in to comment.