All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/5] drm/i915/gt: Wait for new requests in intel_gt_retire_requests()
Date: Fri, 15 Nov 2019 12:56:17 +0000	[thread overview]
Message-ID: <b01bd300-4386-e041-d1f7-8f46aa0bdf59@linux.intel.com> (raw)
In-Reply-To: <157382214554.11997.1888308848075709685@skylake-alporthouse-com>


On 15/11/2019 12:49, Chris Wilson wrote:
> Quoting Tvrtko Ursulin (2019-11-15 12:45:52)
>>
>> On 14/11/2019 22:57, Chris Wilson wrote:
>>> Our callers fall into two categories, those passing timeout=0 who just
>>> want to flush request retirements and those passing a timeout that need
>>> to wait for submission completion (e.g. intel_gt_wait_for_idle()).
>>> Currently, we only wait for a snapshot of timelines at the start of the
>>> wait (but there was an expection that new requests would cause timelines
>>
>> expectation? exception?
> expectation
> 
>>> to appear at the end). However, our callers, such as
>>> intel_gt_wait_for_idle() before suspend, do require us to wait for the
>>> power management requests emitted by retirement as well. If we don't,
>>> then it takes an extra second or two for the background worker to flush
>>> the queue and mark the GT as idle.
>>
>> So with this change wait_for_idle waits for the kernel context to get
>> retired as well. And you say that's faster by a second or two? Which
>> flush gets so much slower, I mean from where, if we don't wait here?
> 
> intel_gt_pm_wait_for_idle() (so i915_gem_suspend, and selftests that
> exercise those same paths) then has to wait for the background retire
> worker to flush the final requests and drop the wakeref.

Ack.

Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

Regards,

Tvrtko

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

WARNING: multiple messages have this Message-ID (diff)
From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH 1/5] drm/i915/gt: Wait for new requests in intel_gt_retire_requests()
Date: Fri, 15 Nov 2019 12:56:17 +0000	[thread overview]
Message-ID: <b01bd300-4386-e041-d1f7-8f46aa0bdf59@linux.intel.com> (raw)
Message-ID: <20191115125617.ouxBmJu4CajsqXyy8rkBzgspCoS7d11ZLe4gJJ9SFi0@z> (raw)
In-Reply-To: <157382214554.11997.1888308848075709685@skylake-alporthouse-com>


On 15/11/2019 12:49, Chris Wilson wrote:
> Quoting Tvrtko Ursulin (2019-11-15 12:45:52)
>>
>> On 14/11/2019 22:57, Chris Wilson wrote:
>>> Our callers fall into two categories, those passing timeout=0 who just
>>> want to flush request retirements and those passing a timeout that need
>>> to wait for submission completion (e.g. intel_gt_wait_for_idle()).
>>> Currently, we only wait for a snapshot of timelines at the start of the
>>> wait (but there was an expection that new requests would cause timelines
>>
>> expectation? exception?
> expectation
> 
>>> to appear at the end). However, our callers, such as
>>> intel_gt_wait_for_idle() before suspend, do require us to wait for the
>>> power management requests emitted by retirement as well. If we don't,
>>> then it takes an extra second or two for the background worker to flush
>>> the queue and mark the GT as idle.
>>
>> So with this change wait_for_idle waits for the kernel context to get
>> retired as well. And you say that's faster by a second or two? Which
>> flush gets so much slower, I mean from where, if we don't wait here?
> 
> intel_gt_pm_wait_for_idle() (so i915_gem_suspend, and selftests that
> exercise those same paths) then has to wait for the background retire
> worker to flush the final requests and drop the wakeref.

Ack.

Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

Regards,

Tvrtko

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2019-11-15 12:56 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-14 22:57 [PATCH 1/5] drm/i915/gt: Wait for new requests in intel_gt_retire_requests() Chris Wilson
2019-11-14 22:57 ` [Intel-gfx] " Chris Wilson
2019-11-14 22:57 ` [PATCH 2/5] drm/i915/selftests: Exercise rc6 handling Chris Wilson
2019-11-14 22:57   ` [Intel-gfx] " Chris Wilson
2019-11-14 22:57 ` [PATCH 3/5] drm/i915/selftests: Be explicit in ERR_PTR handling Chris Wilson
2019-11-14 22:57   ` [Intel-gfx] " Chris Wilson
2019-11-15 12:47   ` Tvrtko Ursulin
2019-11-15 12:47     ` [Intel-gfx] " Tvrtko Ursulin
2019-11-15 12:55     ` [PATCH] " Chris Wilson
2019-11-15 12:55       ` [Intel-gfx] " Chris Wilson
2019-11-14 22:57 ` [PATCH 4/5] drm/i915/selftests: Exercise long preemption chains Chris Wilson
2019-11-14 22:57   ` [Intel-gfx] " Chris Wilson
2019-11-15 12:50   ` Tvrtko Ursulin
2019-11-15 12:50     ` [Intel-gfx] " Tvrtko Ursulin
2019-11-14 22:57 ` [PATCH 5/5] drm/i915/gem: Silence sparse for RCU protection inside the constructor Chris Wilson
2019-11-14 22:57   ` [Intel-gfx] " Chris Wilson
2019-11-15 12:55   ` Tvrtko Ursulin
2019-11-15 12:55     ` [Intel-gfx] " Tvrtko Ursulin
2019-11-15  0:12 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/5] drm/i915/gt: Wait for new requests in intel_gt_retire_requests() Patchwork
2019-11-15  0:12   ` [Intel-gfx] " Patchwork
2019-11-15  0:34 ` ✓ Fi.CI.BAT: success " Patchwork
2019-11-15  0:34   ` [Intel-gfx] " Patchwork
2019-11-15 12:45 ` [PATCH 1/5] " Tvrtko Ursulin
2019-11-15 12:45   ` [Intel-gfx] " Tvrtko Ursulin
2019-11-15 12:49   ` Chris Wilson
2019-11-15 12:49     ` [Intel-gfx] " Chris Wilson
2019-11-15 12:56     ` Tvrtko Ursulin [this message]
2019-11-15 12:56       ` Tvrtko Ursulin
2019-11-15 17:18 ` ✗ Fi.CI.BUILD: failure for series starting with [1/5] drm/i915/gt: Wait for new requests in intel_gt_retire_requests() (rev2) Patchwork
2019-11-15 17:18   ` [Intel-gfx] " Patchwork

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=b01bd300-4386-e041-d1f7-8f46aa0bdf59@linux.intel.com \
    --to=tvrtko.ursulin@linux.intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    /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.