From: Chris Wilson <chris@chris-wilson.co.uk>
To: intel-gfx@lists.freedesktop.org
Cc: Ben Widawsky <ben@bwidawsk.net>
Subject: Re: [PATCH 09/11] drm/i915/context: add params
Date: Wed, 15 Feb 2012 19:41:49 +0000 [thread overview]
Message-ID: <c55c5d$1vrh89@AZSMGA002.ch.intel.com> (raw)
In-Reply-To: <1329253758-24943-10-git-send-email-ben@bwidawsk.net>
On Tue, 14 Feb 2012 22:09:16 +0100, Ben Widawsky <ben@bwidawsk.net> wrote:
> From: Ben Widawsky <bwidawsk@gmail.com>
>
> Parameters tell user space if contexts are available.
>
> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
> ---
> drivers/gpu/drm/i915/i915_dma.c | 2 ++
> include/drm/i915_drm.h | 1 +
> 2 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
> index 43acac3..c5aa84c 100644
> --- a/drivers/gpu/drm/i915/i915_dma.c
> +++ b/drivers/gpu/drm/i915/i915_dma.c
> @@ -780,6 +780,8 @@ static int i915_getparam(struct drm_device *dev, void *data,
> break;
> case I915_PARAM_HAS_RELAXED_DELTA:
> value = 1;
> + case I915_PARAM_HAS_CONTEXTS:
> + value = dev_priv->contexts_disabled ? 0 : 1;
Since I don't think you meant /* fallthrough */, I guess you have a
missing break ;-)
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
next prev parent reply other threads:[~2012-02-15 19:41 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-14 21:09 [RFC PATCH 00/11] i915 HW context support Ben Widawsky
2012-02-14 21:09 ` [PATCH 01/11] drm/i915: MI_ARB_ON_OFF Ben Widawsky
2012-02-14 21:09 ` [PATCH 02/11] drm/i915: track tlb invalidate GFX_MODE state Ben Widawsky
2012-02-14 22:48 ` Eugeni Dodonov
2012-03-05 18:18 ` Ben Widawsky
2012-02-15 19:36 ` Eric Anholt
2012-03-05 18:19 ` Ben Widawsky
2012-02-14 21:09 ` [PATCH 03/11] drm/i915: PIPE_CONTROL_TLB_INVALIDATE Ben Widawsky
2012-02-14 21:09 ` [PATCH 04/11] drm/i915/context: CXT_SIZE register offsets added Ben Widawsky
2012-02-15 19:39 ` Eric Anholt
2012-02-15 20:05 ` Ben Widawsky
2012-02-14 21:09 ` [PATCH 05/11] drm/i915/context: Preliminary context support Ben Widawsky
2012-02-14 22:49 ` Eugeni Dodonov
2012-03-05 18:19 ` Ben Widawsky
2012-02-15 20:23 ` Eric Anholt
2012-03-05 18:20 ` Ben Widawsky
2012-02-14 21:09 ` [PATCH 06/11] drm/i915/context: ringbuffer context switch code Ben Widawsky
2012-02-15 20:11 ` Eric Anholt
2012-02-16 10:30 ` Ben Widawsky
2012-02-14 21:09 ` [PATCH 07/11] drm/i915/context: implementation details Ben Widawsky
2012-02-14 21:09 ` [PATCH 08/11] drm/i915/context: extend contexts to execbuffer2 Ben Widawsky
2012-02-14 22:55 ` Eugeni Dodonov
2012-02-15 19:55 ` Eric Anholt
2012-02-15 20:00 ` Ben Widawsky
2012-02-17 18:03 ` Jesse Barnes
2012-02-15 20:16 ` Eric Anholt
2012-03-05 18:18 ` Ben Widawsky
2012-02-14 21:09 ` [PATCH 09/11] drm/i915/context: add params Ben Widawsky
2012-02-14 22:56 ` Eugeni Dodonov
2012-02-15 19:41 ` Chris Wilson [this message]
2012-02-15 20:02 ` Ben Widawsky
2012-02-14 21:09 ` [PATCH 10/11] drm/i915/context: track contexts per device Ben Widawsky
2012-02-14 22:56 ` Eugeni Dodonov
2012-02-14 21:09 ` [PATCH 11/11] drm/i915: show contexts in debugfs Ben Widawsky
2012-02-14 22:57 ` Eugeni Dodonov
2012-02-14 23:17 ` [RFC PATCH 00/11] i915 HW context support Adam Jackson
2012-02-14 23:41 ` Eugeni Dodonov
2012-02-15 8:43 ` Ben Widawsky
2012-02-15 20:33 ` Eric Anholt
2012-02-16 12:04 ` Ben Widawsky
2012-02-16 12:21 ` Ben Widawsky
2012-02-16 13:58 ` Ben Widawsky
2012-02-16 18:57 ` Eric Anholt
2012-02-15 22:12 ` Daniel Vetter
2012-03-05 18:20 ` Ben Widawsky
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='c55c5d$1vrh89@AZSMGA002.ch.intel.com' \
--to=chris@chris-wilson.co.uk \
--cc=ben@bwidawsk.net \
--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.