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,
	Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Subject: Re: [PATCH] drm/i915: Don't need a timer to wake us up
Date: Fri, 27 Nov 2015 09:35:16 +0000	[thread overview]
Message-ID: <565823D4.2060800@linux.intel.com> (raw)
In-Reply-To: <20151126182436.GP23362@nuc-i3427.alporthouse.com>


On 26/11/15 18:24, Chris Wilson wrote:
> On Thu, Nov 26, 2015 at 05:55:39PM +0000, Chris Wilson wrote:
>> On Thu, Nov 26, 2015 at 05:15:46PM +0000, Tvrtko Ursulin wrote:
>>> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>>>
>>> Looks like the sleeping loop in __i915_wait_request can be
>>> simplified by using io_schedule_timeout instead of setting
>>> up and destroying a timer.
>>
>> Simplified by duplicating code? I liked the explicit handling for its
>> obviousness and simplicity.
> To be slightl more gracious, after we eliminate the irq handling from
> this function, the waiter does look like this, albeit I still think it
> is cleaner to keep the timeout handling distinct from the indefinite
> waits.

Duplicating code, fake_irq obviousness and simplicity?!?

To start with:

  drivers/gpu/drm/i915/i915_gem.c | 28 ++++++++--------------------
  1 file changed, 8 insertions(+), 20 deletions(-)

So less code, less binary text, less stack space, less kernel API usage 
so also fewer cycles to execute (not that it matters here but hey), and 
easier to understand logic.

So really I don't know what you don't like about it.

Regards,

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

  reply	other threads:[~2015-11-27  9:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-26 17:15 [PATCH] drm/i915: Don't need a timer to wake us up Tvrtko Ursulin
2015-11-26 17:55 ` Chris Wilson
2015-11-26 18:24   ` Chris Wilson
2015-11-27  9:35     ` Tvrtko Ursulin [this message]
2015-11-27  9:47       ` Chris Wilson

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=565823D4.2060800@linux.intel.com \
    --to=tvrtko.ursulin@linux.intel.com \
    --cc=Intel-gfx@lists.freedesktop.org \
    --cc=chris@chris-wilson.co.uk \
    --cc=tvrtko.ursulin@intel.com \
    /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.