static u32 gen8_oa_hw_tail_read(struct i915_perf_stream *stream)
{
- struct intel_uncore *uncore = stream->gt->uncore;
+ struct intel_uncore *uncore = stream->uncore;
return intel_uncore_read(uncore, GEN8_OATAILPTR) & GEN8_OATAILPTR_MASK;
}
static u32 gen7_oa_hw_tail_read(struct i915_perf_stream *stream)
{
- struct intel_uncore *uncore = stream->gt->uncore;
+ struct intel_uncore *uncore = stream->uncore;
u32 oastatus1 = intel_uncore_read(uncore, GEN7_OASTATUS1);
return oastatus1 & GEN7_OASTATUS1_TAIL_MASK;
size_t count,
size_t *offset)
{
- struct intel_uncore *uncore = stream->gt->uncore;
+ struct intel_uncore *uncore = stream->uncore;
int report_size = stream->oa_buffer.format_size;
u8 *oa_buf_base = stream->oa_buffer.vaddr;
u32 gtt_offset = i915_ggtt_offset(stream->oa_buffer.vma);
size_t count,
size_t *offset)
{
- struct intel_uncore *uncore = stream->gt->uncore;
+ struct intel_uncore *uncore = stream->uncore;
u32 oastatus;
int ret;
size_t count,
size_t *offset)
{
- struct intel_uncore *uncore = stream->gt->uncore;
+ struct intel_uncore *uncore = stream->uncore;
int report_size = stream->oa_buffer.format_size;
u8 *oa_buf_base = stream->oa_buffer.vaddr;
u32 gtt_offset = i915_ggtt_offset(stream->oa_buffer.vma);
size_t count,
size_t *offset)
{
- struct intel_uncore *uncore = stream->gt->uncore;
+ struct intel_uncore *uncore = stream->uncore;
u32 oastatus1;
int ret;
free_oa_buffer(stream);
- intel_uncore_forcewake_put(stream->gt->uncore, FORCEWAKE_ALL);
- intel_runtime_pm_put(stream->gt->uncore->rpm, stream->wakeref);
+ intel_uncore_forcewake_put(stream->uncore, FORCEWAKE_ALL);
+ intel_runtime_pm_put(stream->uncore->rpm, stream->wakeref);
if (stream->ctx)
oa_put_render_ctx_id(stream);
static void gen7_init_oa_buffer(struct i915_perf_stream *stream)
{
- struct intel_uncore *uncore = stream->gt->uncore;
+ struct intel_uncore *uncore = stream->uncore;
u32 gtt_offset = i915_ggtt_offset(stream->oa_buffer.vma);
unsigned long flags;
static void gen8_init_oa_buffer(struct i915_perf_stream *stream)
{
- struct intel_uncore *uncore = stream->gt->uncore;
+ struct intel_uncore *uncore = stream->uncore;
u32 gtt_offset = i915_ggtt_offset(stream->oa_buffer.vma);
unsigned long flags;
static int hsw_enable_metric_set(struct i915_perf_stream *stream)
{
- struct intel_uncore *uncore = stream->gt->uncore;
+ struct intel_uncore *uncore = stream->uncore;
const struct i915_oa_config *oa_config = stream->oa_config;
/*
static void hsw_disable_metric_set(struct i915_perf_stream *stream)
{
- struct intel_uncore *uncore = stream->gt->uncore;
+ struct intel_uncore *uncore = stream->uncore;
intel_uncore_rmw(uncore, GEN6_UCGCTL1,
GEN6_CSUNIT_CLOCK_GATE_DISABLE, 0);
static int gen8_enable_metric_set(struct i915_perf_stream *stream)
{
- struct intel_uncore *uncore = stream->gt->uncore;
+ struct intel_uncore *uncore = stream->uncore;
const struct i915_oa_config *oa_config = stream->oa_config;
int ret;
static void gen8_disable_metric_set(struct i915_perf_stream *stream)
{
- struct intel_uncore *uncore = stream->gt->uncore;
+ struct intel_uncore *uncore = stream->uncore;
/* Reset all contexts' slices/subslices configurations. */
gen8_configure_all_contexts(stream, NULL);
static void gen10_disable_metric_set(struct i915_perf_stream *stream)
{
- struct intel_uncore *uncore = stream->gt->uncore;
+ struct intel_uncore *uncore = stream->uncore;
/* Reset all contexts' slices/subslices configurations. */
gen8_configure_all_contexts(stream, NULL);
static void gen7_oa_enable(struct i915_perf_stream *stream)
{
- struct intel_uncore *uncore = stream->gt->uncore;
+ struct intel_uncore *uncore = stream->uncore;
struct i915_gem_context *ctx = stream->ctx;
u32 ctx_id = stream->specific_ctx_id;
bool periodic = stream->periodic;
static void gen8_oa_enable(struct i915_perf_stream *stream)
{
- struct intel_uncore *uncore = stream->gt->uncore;
+ struct intel_uncore *uncore = stream->uncore;
u32 report_format = stream->oa_buffer.format;
/*
static void gen7_oa_disable(struct i915_perf_stream *stream)
{
- struct intel_uncore *uncore = stream->gt->uncore;
+ struct intel_uncore *uncore = stream->uncore;
intel_uncore_write(uncore, GEN7_OACONTROL, 0);
if (intel_wait_for_register(uncore,
static void gen8_oa_disable(struct i915_perf_stream *stream)
{
- struct intel_uncore *uncore = stream->gt->uncore;
+ struct intel_uncore *uncore = stream->uncore;
intel_uncore_write(uncore, GEN8_OACONTROL, 0);
if (intel_wait_for_register(uncore,
}
stream->engine = props->engine;
- stream->gt = stream->engine->gt;
+ stream->uncore = stream->engine->gt->uncore;
stream->sample_size = sizeof(struct drm_i915_perf_record_header);
* In our case we are expecting that taking pm + FORCEWAKE
* references will effectively disable RC6.
*/
- stream->wakeref = intel_runtime_pm_get(stream->gt->uncore->rpm);
- intel_uncore_forcewake_get(stream->gt->uncore, FORCEWAKE_ALL);
+ stream->wakeref = intel_runtime_pm_get(stream->uncore->rpm);
+ intel_uncore_forcewake_get(stream->uncore, FORCEWAKE_ALL);
ret = alloc_oa_buffer(stream);
if (ret)
err_oa_buf_alloc:
put_oa_config(stream->oa_config);
- intel_uncore_forcewake_put(stream->gt->uncore, FORCEWAKE_ALL);
- intel_runtime_pm_put(stream->gt->uncore->rpm, stream->wakeref);
+ intel_uncore_forcewake_put(stream->uncore, FORCEWAKE_ALL);
+ intel_runtime_pm_put(stream->uncore->rpm, stream->wakeref);
err_config:
if (stream->ctx)