History

drm/i915/perf: remove redundant power configuration register override

The caller of i915_oa_init_reg_state() already sets this.

Lionel Landwerlin committed 6 years ago

Commit 371aba61 parent 9aba9c11 file · +0 −7Browse files

Unified · Split

drivers/gpu/drm/i915/i915_perf.c+0−7
@@ -2098,9 +2098,6 @@ gen8_update_reg_state_unlocked(const struct intel_context *ce, · 2097 unmodified lines
20982098 for (i = 0; i < ARRAY_SIZE(flex_regs); i++)
20992099 reg_state[ctx_flexeu0 + i * 2 + 1] =
21002100 oa_config_flex_reg(stream->oa_config, flex_regs[i]);
2101−
2102− reg_state[CTX_R_PWR_CLK_STATE] =
2103− intel_sseu_make_rpcs(ce->engine->i915, &ce->sseu);
21042101 }
21052102
21062103 struct flex {
@@ -2906,10 +2903,6 @@ void i915_oa_init_reg_state(const struct intel_context *ce, · 799 unmodified lines
29062903
29072904 /* perf.exclusive_stream serialised by lrc_configure_all_contexts() */
29082905 stream = READ_ONCE(engine->i915->perf.exclusive_stream);
2909− /*
2910− * For gen12, only CTX_R_PWR_CLK_STATE needs update, but the caller
2911− * is already doing that, so nothing to be done for gen12 here.
2912− */
29132906 if (stream && INTEL_GEN(stream->perf->i915) < 12)
29142907 gen8_update_reg_state_unlocked(ce, stream);
29152908 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t