All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mika Kuoppala <mika.kuoppala@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 2/3] drm/i915: Use intel_engine_lookup_user for probing HAS_BSD etc
Date: Wed, 07 Aug 2019 16:16:53 +0300	[thread overview]
Message-ID: <87y305869m.fsf@gaia.fi.intel.com> (raw)
In-Reply-To: <20190807083702.16349-2-chris@chris-wilson.co.uk>

Chris Wilson <chris@chris-wilson.co.uk> writes:

> Use the same mechanism to determine if a backend engine exists for a
> uabi mapping as used internally.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>

> ---
>  drivers/gpu/drm/i915/i915_drv.c | 12 ++++++++----
>  1 file changed, 8 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
> index ac5868c12b97..d7bc6e5d5c52 100644
> --- a/drivers/gpu/drm/i915/i915_drv.c
> +++ b/drivers/gpu/drm/i915/i915_drv.c
> @@ -373,16 +373,20 @@ static int i915_getparam_ioctl(struct drm_device *dev, void *data,
>  		value = dev_priv->overlay ? 1 : 0;
>  		break;
>  	case I915_PARAM_HAS_BSD:
> -		value = !!dev_priv->engine[VCS0];
> +		value = !!intel_engine_lookup_user(dev_priv,
> +						   I915_ENGINE_CLASS_VIDEO, 0);
>  		break;
>  	case I915_PARAM_HAS_BLT:
> -		value = !!dev_priv->engine[BCS0];
> +		value = !!intel_engine_lookup_user(dev_priv,
> +						   I915_ENGINE_CLASS_COPY, 0);
>  		break;
>  	case I915_PARAM_HAS_VEBOX:
> -		value = !!dev_priv->engine[VECS0];
> +		value = !!intel_engine_lookup_user(dev_priv,
> +						   I915_ENGINE_CLASS_VIDEO_ENHANCE, 0);
>  		break;
>  	case I915_PARAM_HAS_BSD2:
> -		value = !!dev_priv->engine[VCS1];
> +		value = !!intel_engine_lookup_user(dev_priv,
> +						   I915_ENGINE_CLASS_VIDEO, 1);
>  		break;
>  	case I915_PARAM_HAS_LLC:
>  		value = HAS_LLC(dev_priv);
> -- 
> 2.23.0.rc1
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2019-08-07 13:17 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-07  8:37 [PATCH 1/3] drm/i915: Rename engines with to match their user interface Chris Wilson
2019-08-07  8:37 ` [PATCH 2/3] drm/i915: Use intel_engine_lookup_user for probing HAS_BSD etc Chris Wilson
2019-08-07 13:16   ` Mika Kuoppala [this message]
2019-08-07  8:37 ` [PATCH 3/3] drm/i915: Defer final intel_wakeref_put to process context Chris Wilson
2019-08-07 15:04   ` Mika Kuoppala
2019-08-07 15:24     ` Chris Wilson
2019-08-08 13:49       ` Mika Kuoppala
2019-08-08 13:59         ` Chris Wilson
2019-08-07  9:16 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/3] drm/i915: Rename engines with to match their user interface Patchwork
2019-08-07  9:18 ` ✗ Fi.CI.SPARSE: " Patchwork
2019-08-07  9:45 ` ✗ Fi.CI.BAT: failure " Patchwork
2019-08-07 10:31 ` [PATCH 1/3] " Mika Kuoppala
2019-08-07 10:44   ` Chris Wilson
2019-08-07 10:55   ` [PATCH v2] drm/i915: Rename engines " Chris Wilson
2019-08-07 11:04   ` [PATCH v3] " Chris Wilson
2019-08-07 11:53     ` Mika Kuoppala
2019-08-07 12:32 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [v3] drm/i915: Rename engines to match their user interface (rev3) Patchwork
2019-08-07 12:33 ` ✗ Fi.CI.SPARSE: " Patchwork
2019-08-07 12:52 ` ✓ Fi.CI.BAT: success " Patchwork
2019-08-07 19:23 ` ✗ Fi.CI.IGT: failure " 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=87y305869m.fsf@gaia.fi.intel.com \
    --to=mika.kuoppala@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.