From: Mika Kuoppala <mika.kuoppala@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: intel-gfx@lists.freedesktop.org, miku@iki.fi
Subject: Re: [PATCH 1/6] drm/i915: Get runtime pm ref on i915_drop_caches_set
Date: Tue, 15 Dec 2015 13:36:07 +0200 [thread overview]
Message-ID: <87d1u8x7tk.fsf@gaia.fi.intel.com> (raw)
In-Reply-To: <20151214214634.GA6495@nuc-i3427.alporthouse.com>
Chris Wilson <chris@chris-wilson.co.uk> writes:
> On Mon, Dec 14, 2015 at 07:14:23PM +0200, Mika Kuoppala wrote:
>> When we drop caches, this debugfs entry does hardware access later in
>> the chain, when fences are updated, so it needs a runtime pm ref.
>>
>> Dropping caches is used by some igt/bat tests, so this fixes
>> some unclaimed register access traces.
>>
>> Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
>> ---
>> drivers/gpu/drm/i915/i915_debugfs.c | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
>> index 24318b7..bd8ba7e 100644
>> --- a/drivers/gpu/drm/i915/i915_debugfs.c
>> +++ b/drivers/gpu/drm/i915/i915_debugfs.c
>> @@ -4839,6 +4839,8 @@ i915_drop_caches_set(void *data, u64 val)
>> if (ret)
>> return ret;
>>
>> + intel_runtime_pm_get(dev_priv);
>
> The current idea of the very coarse granularity of rpm_get() is to do it
> before struct_mutex (since rpm_get resume may try to acquire the mutex
> iirc).
>
> Ok, fixing that may be bolting the stable door after the horse bolted,
> but we should nevertheless. In my opinion, it would be more productive
> to work with Imre on making rpm fine grained so that we don't so many
> and can actually place the wakelock around the hardware access itself,
> not every single path that *may* touch hardware.
Please consider 1/6 v2 as it is needed to avoid random unclaimed
accesses during igt/bat if the drop caches is used in wrong spot.
We can forget the rest.
-Mika
> -Chris
>
> --
> Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2015-12-15 11:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-14 17:14 [PATCH 1/6] drm/i915: Get runtime pm ref on i915_drop_caches_set Mika Kuoppala
2015-12-14 17:14 ` [PATCH 2/6] drm/i915: Get runtime pm ref when setting min/max freqs Mika Kuoppala
2015-12-14 17:14 ` [PATCH 3/6] drm/i915: Get runtime pm ref on i915_fbc_fc_set Mika Kuoppala
2015-12-14 17:14 ` [PATCH 4/6] drm/i915: Get runtime pm ref on i915_emon_status Mika Kuoppala
2015-12-14 17:14 ` [PATCH 5/6] drm/i915: Get runtime pm ref on i915_guc_load_status_info Mika Kuoppala
2015-12-14 17:14 ` [PATCH 6/6] drm/i915: Get runtime pm ref on i915_sseu_status Mika Kuoppala
2015-12-14 21:46 ` [PATCH 1/6] drm/i915: Get runtime pm ref on i915_drop_caches_set Chris Wilson
2015-12-15 11:36 ` Mika Kuoppala [this message]
2015-12-16 10:42 ` Daniel Vetter
2015-12-16 11:03 ` Imre Deak
2015-12-15 11:35 ` [PATCH] " Mika Kuoppala
2015-12-15 11:46 ` Joonas Lahtinen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d1u8x7tk.fsf@gaia.fi.intel.com \
--to=mika.kuoppala@linux.intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=intel-gfx@lists.freedesktop.org \
--cc=miku@iki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.